<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<div class="layui-fluid oe_fluid">

  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">内容管理</a><span lay-separator="">/</span>
      <a href="javascript:;">相亲活动</a><span lay-separator="">/</span>
      <a><cite>查看</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">
        <!--{if $from == "view"}-->
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=view&id=<!--{$id}-->&<!--{$comeurl}-->">返回上一页</a>
        <!--{else}-->
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回上一页</a>
        <!--{/if}-->
      </span>
    </div> 
  </div>
  
  <blockquote class="layui-elem-quote">
    <strong>活动流程：</strong>
    <strong>1、</strong>发布活动 -> <strong>2、</strong>报名活动 -> <strong>3、</strong>参加活动(现场签到) -> <strong>4、</strong>活动结束(完成) 
  </blockquote>
      
  <div class="layui-card">
  
    <div class="layui-card-body">
      <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">查看活动</li>>
        </ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
          
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%"><font color="red"></font>活动标题：</th>
                <td width="35%">
                  <!--{if !empty($party.thumbimg)}-->
                  <img src="<!--{$party.thumbimg}-->" width="20px" height="20px" f="viewimg" />
                  <!--{/if}-->
                  <!--{$party.title}-->
                </td>
                <th width="15%"><font color="red"></font>活动分类：</th>
                <td width="35%">
                  <!--{hook mod='var' item='partycat' type='text' name='catid' value=$party.catid}-->
                </td>
              </tr>
              <tr>
                <th>活动城市：<span class="f_red"></span> </th>
                <td>
                  <!--{area type='text' name='area' value=$party.area1}-->
                  <!--{area type='text' name='area' value=$party.area2}-->
                  <!--{area type='text' name='area' value=$party.area3}-->
                  <!--{area type='text' name='area' value=$party.area4}-->
                </td>
                <th>活动地址：</th>
                <td><!--{$party.address}--></td>
              </tr>
              <tr>
                <th>交通线路：</th>
                <td>
                  <!--{$party.traffic}-->
                </td>
                <th><font color="red"></font>联系方式：</th>
                <td>
                  <!--{$party.contact}-->
                </td>
              </tr>
              <tr>
                <th>活动说明：<span class="f_red"></span> </th>
                <td colspan="3">
                  <!--{$party.explain}-->
                </td>
              </tr>
              <tr>
                <th>活动简介：<span class="f_red"></span> </th>
                <td colspan="3">
                  <!--{$party.intro}-->
                </td>
              </tr>
              
              <tr>
                <td colspan="4"><b>活动时间</b></td>
              </tr>
              <tr>
                <th>开始时间：<span class="f_red"></span> </th>
                <td>
                  <!--{$party.starttime|date_format:"Y-m-d H:i:s"}-->
                </td>
                <th>结束时间：<span class="f_red"></span> </th>
                <td>
                  <!--{$party.endtime|date_format:"Y-m-d H:i:s"}-->
                </td>
              </tr>
              <tr>
                <th>截止报名：<span class="f_red"></span> </th>
                <td colspan="3">
                  <!--{$party.endbmtime|date_format:"Y-m-d H:i:s"}-->
                </td>
              </tr>
              
              <tr>
                <td colspan="4"><b>邀请人数</b></td>
              </tr>
              <tr>
                <th>女士上限：</th>
                <td><!--{$party.limitlady}-->人（0表示不限制）
                <th>男士上限：</th>
                <td><!--{$party.limitman}--> 人（0表示不限制）
              </tr>
              <tr>
                <th>女士费用：</th>
                <td><!--{$party.moneylady}-->元
                <th>男士费用：</th>
                <td><!--{$party.moneyman}--> 元
              </tr>
              <tr>
                <td colspan="4"><b>其他信息</b></td>
              </tr>
              <tr>
                <th>状&#12288;&#12288;态：<span class="f_red"></span> </th>
                <td>
                  <!--{if $party.flag == '1'}-->
                  <font color="green">已通过</font>
                  <!--{elseif $party.flag == '2'}-->
                  <font color="red">未通过</font>
                  <!--{elseif $party.flag == '3'}-->
                  <font color="blue">已结束</font>
                  <!--{else}-->
                  <font color="gray">待审核</font>
                  <!--{/if}-->
                </td>
                <th>推&#12288;&#12288;荐：<span class="f_red"></span> </th>
                <td>
                  <!--{if $party.elite == '1'}--> 是<!--{else}--> 否<!--{/if}-->
                </td>
              </tr>
              <tr style="display:none;">
                <th>默认已报名人数：<span class="f_red"></span> </th>
                <td colspan="3">
                  <!--{$party.otherbms}--> 人
                  <font color="red">（用于前台显示，总报名人数=默认报名人数+男会员报名数+女会员报名数）</font>
                </td>
              </tr>
              <tr>
                <th>男会员已报名：</th>
                <td>
                  <!--{$party.bmmans}--> 人
                </td>
                <th>女会员已报名：</th>
                <td>
                  <!--{$party.bmladys}--> 人
                </td>
              </tr>
              <tr>
                <th>分享标题：</th>
                <td>
                  <!--{$party.sharetitle}-->
                </td>
                <th>分享内容：</th>
                <td>
                  <!--{$party.shareintro}-->
                </td>
              </tr>
              <tr>
                <th>活动分享：</th>
                <td colspan="3">
                  <div class="oe_fenxiang">
                    <div class="bdsharebuttonbox">
                      <a class="bds_more" data-cmd="more"></a>
                      <a class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
                      <a class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                      <a class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                    </div>
                    <!--{if $config.https == '1'}-->
                    <!--{assign var="bd_share" value="<!--{$config.siteurl}-->static/api/js/share.js?v=89860593.js"}-->
                    <!--{else}-->
                    <!--{assign var="bd_share" value="http://bdimg.share.baidu.com/static/api/js/share.js"}-->
                    <!--{/if}-->
                    <script>
                      window._bd_share_config = {
                        common : {
                          bdText : "<!--{if !empty($party.sharetitle)}--><!--{$party.sharetitle}--><!--{else}--><!--{$party.title}--><!--{/if}-->",
                          bdDesc : "<!--{if !empty($party.shareintro)}--><!--{$party.shareintro}--><!--{else}--><!--{$party.intro}--><!--{/if}-->",
                          bdUrl : "<!--{$config.siteurl}-->index.php?c=party&a=detail&id=<!--{$party.partyid}-->&nofollow=1",
                          bdPic : "<!--{$config.siteurl}--><!--{$party.thumbimg}-->"
                        },
                        share : [{"bdSize" : 16}],
                        slide : [{bdImg : 0, bdPos : "right", bdTop : 100}],
                        image : [{ viewType : 'list', viewPos : 'top', viewColor : 'black', viewSize : '16', viewList : ['qzone','tsina','huaban','tqq','renren'] }],
                        selectShare : [{ "bdselectMiniList" : ['qzone','tqq','kaixin001','bdxc','tqf'] }]
                      }
                      with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='<!--{$bd_share}-->?cdnversion='+~(-new Date()/36e5)];
                    </script>
                  </div>
                </td>
              </tr>

            </table>
            
          </div>
          <!--//content1 -->
          
        </div>
      </div>
      
    </div>
       
  </div>
  </form>

  
</div>

<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a href="javascript:;" class="enlarge layui-layer-ico" f="enlarge"></a>
    <a href="javascript:;" class="narrow" f="narrow">
      <span></span>
    </a>
  </div>
  <div class="menu_body">
    <ul>
    
      <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=sendwx&id=<!--{$party.partyid}-->&<!--{$comeurl}-->&from=view">群发已报名微信提醒</a></li>
      <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=sendmsg&id=<!--{$party.partyid}-->&<!--{$comeurl}-->&from=view">群发已报名站内通知</a></li>
      
      <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$party.partyid}-->&<!--{$comeurl}-->&from=view">编辑活动</a></li>
      
      <!--{if $party.endbmtime > $time }-->
      <li><a href="javascript:;" id="but_party_endbm" f="but_party_endbm" data-id="<!--{$party.partyid}-->">结束报名</a></li>
      <!--{else}-->
      <li><a href="javascript:;" style="color:gray;">结束报名</a></li>
      <!--{/if}-->
      
      <!--{if $party.flag < 2 }-->
      <li><a href="javascript:;" id="but_party_finish" f="but_party_finish" data-id="<!--{$party.partyid}-->">结束活动</a></li>
      <!--{else}-->
      <li><a href="javascript:;" style="color:gray;">结束活动</a></li>
      <!--{/if}-->
      
      <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=signin&id=<!--{$party.partyid}-->" target="_blank">现场签到</a></li>
      <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=exportbm&id=<!--{$party.partyid}-->&<!--{$comeurl}-->&from=view">导出报名</a></li>
      
      
      <!--{if $party.flag < 2 }-->
      <li><a href="javascript:;" f="but_party_underbm" data-id="<!--{$party.partyid}-->">生成线下报名</a></li>
      <!--{else}-->
      <li><a href="javascript:;" style="color:gray;">生成线下报名</a></li>
      <!--{/if}-->

    </ul>
  </div>
</div>
<!--//oe_menu_inner End -->
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    
    //结束活动... 8.10.29
    $(document).on("click", "[f='but_party_finish']", function(){
        $id = $(this).attr("data-id");
        $obj_id = $(this).attr("id");
        
        $_text = "确定要结束活动吗？一旦操作不可恢复。";
        layer.confirm($_text, {
                btn: ["确定","取消"] //按钮
            }, 
            function(){
                layer.closeAll();
                $("#"+$obj_id).attr("f", "");
                $.ajax({
                    type: "POST",
                    url: "<!--{$oefile}-->&c=<!--{$c}-->",
                    cache: false,
                    data: {
                        a:"finish", id:$id, r:get_rndnum(8)
                    },
                    dataType: "json",
                    success: function($data) {
                        $json = eval($data);
                        $response = $json.response;
                        $result = $json.result;
                        if ($response == "1") {
                            layer.msg("操作成功");
                            setTimeout(function(){
                                window.location.reload();
                            }, 1000);
                        }
                        else {
                            if ($result.length > 0) {
                                layer.msg($result);
                            }
                            else {
                                layer.msg("操作失败");
                            }
                        }
                        $("#"+$obj_id).attr("f", "but_party_finish");
                    },
                    error: function() {
                        layer.msg("系统繁忙，请稍后再试");
                        $("#"+$obj_id).attr("f", "but_party_finish");
                    }
                });
                
            }, 
            function(){
                layer.closeAll();
                //layer.msg("取消操作", {icon:2});
            }
        );
        
    });
    
    
    
    //结束报名... 8.10.29
    $(document).on("click", "[f='but_party_endbm']", function(){
        $id = $(this).attr("data-id");
        $obj_id = $(this).attr("id");
        
        
        $_text = "确定要结束报名吗？";
        layer.confirm($_text, {
                btn: ["确定","取消"] //按钮
            }, 
            function(){
                layer.closeAll();
                $("#"+$obj_id).attr("f", "");
                $.ajax({
                    type: "POST",
                    url: "<!--{$oefile}-->&c=<!--{$c}-->",
                    cache: false,
                    data: {
                        a:"endbm", id:$id, r:get_rndnum(8)
                    },
                    dataType: "json",
                    success: function($data) {
                        $json = eval($data);
                        $response = $json.response;
                        $result = $json.result;
                        if ($response == "1") {
                            layer.msg("操作成功");
                            setTimeout(function(){
                                window.location.reload();
                            }, 1000);
                        }
                        else {
                            if ($result.length > 0) {
                                layer.msg($result);
                            }
                            else {
                                layer.msg("操作失败");
                            }
                        }
                        $("#"+$obj_id).attr("f", "but_party_endbm");
                    },
                    error: function() {
                        layer.msg("系统繁忙，请稍后再试");
                        $("#"+$obj_id).attr("f", "but_party_endbm");
                    }
                });
                
            }, 
            function(){
                layer.closeAll();
                //layer.msg("取消操作", {icon:2});
            }
        );  
         
    });
});
</script>
</body>
</html>