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

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <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>
  <!--//top end -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">任务单：</div>
        <div class="layui-input-inline input-150">
          <input type="text" name="stasksn" id="stasksn" class="layui-input" value="<!--{$stasksn}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">手机号：</div>
        <div class="layui-input-inline input-150">
          <input type="text" name="smobile" id="smobile" class="layui-input" value="<!--{$smobile}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">内容：</div>
        <div class="layui-input-inline input-150">
          <input type="text" name="scont" id="scont" class="layui-input" value="<!--{$scont}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">状态：</div>
        <div class="layui-input-inline input-150">
          <select name="sflag" id="sflag">
            <option value="">=不限=</option>
            <option value="1"<!--{if $sflag == '1'}--> selected<!--{/if}-->>成功</option>
            <option value="2"<!--{if $sflag == '2'}--> selected<!--{/if}-->>失败</option>
            <option value="3"<!--{if $sflag == '3'}--> selected<!--{/if}-->>待发送</option>
          </select>
        </div>
      </div>
      
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
    </div>
  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">
    <div class="oe_tbl_tool clearfix">
      <div class="oe_gnbar clearfix">
        <div class="select btn fl">
          <input type="checkbox" name="allid[]" lay-skin="primary" title="全选" lay-filter="selectAll">
        </div>
        <div class="btn del fl" f="handle-array" data-form="myform">
          <i class="layui-icon layui-icon-delete"></i>
          <span>删除</span>
        </div>
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=add" class="btn add fl">
          <i class="layui-icon layui-icon-friends"></i>
          <span>群发营销短信</span>
        </a>
      </div>
      <div class="oe_tongji_bar clearfix current">
        <span><b><!--{$total}--></b> 条记录</span>
      </div>
    </div>
    
    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
    <input type="hidden" name="a" id="a" value="del" />
    <table class="layui-table">
      <thead>
        <tr>
          <th width="4%">选</th>
          <th width="13%">任务单</th>
          <th width="10%">用户</th>
          <th width="10%">手机号</th>
          <th width="9%">创建时间</th>
          <th width="6%">状态</th>
          <th width="9%">发送时间</th>
          <th width="8%">返回结果</th>
          <th>内容</th>
          <th width="10%">操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($marketsms)}-->
      <tr>
        <td colspan="10" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $marketsms as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.mid}-->" />
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=send&tasksn=<!--{$volist.tasksn}-->&<!--{$comeurl}-->">
          <!--{$volist.tasksn}-->
          </a>
        </td>
        <td class="text_center">
          <!--{if $volist.userid > 0}-->
          <!--{$volist.username}-->/<!--{$volist.userid}-->
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{$volist.mobile}-->
        </td>
        <td class="text_center">
          <!--{$volist.addtime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.addtime|date_format:"%H:%M:%S"}-->
        </td>
        <td class="text_center">
          <!--{if $volist.flag == '1'}-->
          <font color="green">成功</font>
          <!--{elseif $volist.flag == '2'}-->
          <font color="red">失败</font>
          <!--{else}-->
          <font color="gray">待发送</font>
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.lasttime > 0}-->
          <!--{$volist.lasttime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.lasttime|date_format:"%H:%M:%S"}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{$volist.resultmsg}-->
        </td>
        <td class="text_center">
          <!--{$volist.content}-->
        </td>
        <td class="text_center">
          <div class="td_btn">
          
            <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=send&tasksn=<!--{$volist.tasksn}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs">群发</a>
            
            <a href="javascript:;" f="handle-one" data-text="确定要删除吗？" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.mid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-danger">删除</a>
          </div>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    
    <div class="oe_page_box"><!--{$showpage}--></div>
    
  </div>
</div>
<!--{/if}-->


<!--{if $a == "add"}-->
<div class="layui-fluid oe_fluid" style="padding-top:10px;">
  <div class="layui-card">
    <div class="layui-card-header">选择群发对象</div>
    <div class="layui-card-body">
      <div class="oe_markdtsms_select">
        <div class="oe_ustep" style="margin-bottom:50px; margin-left:12px;">
          <ul>
            <li class="ws current" style="width:33.33%">
              <span>1. 群发对象</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>2. 选择模板</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>3. 发送短信</span>
            </li>
          </ul>
          <div class="clear"></div>
        </div>
        
        <dl class="dl_1" onclick="location.href='<!--{$oefile}-->&c=<!--{$c}-->&a=addimport'">
        	<dt><span><i class="iconfont icon-wenben"></i></span></dt>
        	<dd>
            <h3>导入手机号</h3>
            <p>导入txt格式(记事本)的手机号</p>
          </dd>
        </dl>
        <dl class="dl_2" onclick="location.href='<!--{$oefile}-->&c=<!--{$c}-->&a=adduser'">
        	<dt><span><i class="iconfont icon-lijidenglu"></i></span></dt>
        	<dd>
            <h3>选择会员</h3>
            <p>根据搜索条件选择发送会员</p>
          </dd>
        </dl>
        <dl class="dl_3" onclick="location.href='<!--{$oefile}-->&c=<!--{$c}-->&a=addparty'">
        	<dt><span><i class="iconfont icon-huodong"></i></span></dt>
        	<dd>
            <h3>活动通知</h3>
            <p>
              给已成功报名活动的会员群发短信
            </p>
          </dd>
        </dl>
        <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
<!--{/if}-->

<!--{if $a == "addimport"}-->
<div class="oe_send_loading" id="loading_box" style="display:none;">
  <div class="txt">
    <img src="<!--{$urlpath}-->tpl/admin/images/page_loading.gif" />
    <p id="loading_1">
      数据导入中,请稍后...
    </p>
    <p class="tips" id="loading_2" style="display:none;">
      <span id="loading_result">没有可导入的手机号，请重新上传</span>
      <br />
      <a class="btn" href="javascript:;" f="but_reset_import">确定</a>
    </p>
  </div>
</div>

<div class="layui-fluid oe_fluid" style="padding-top:10px;">
  <div class="layui-card">
    <div class="layui-card-header">导入手机号</div>
    <div class="layui-card-body">

      <div class="oe_marketsms_import layui-form">
        <blockquote class="layui-elem-quote oe_jifen">
          请上传你需要群发短信的txt(记事本)文件，格式为一行一个手机号，可下载查看示例文件 <a href="<!--{$urlpath}-->tpl/admin/moible_demo.zip"><i class="iconfont icon-wenben"></i> 点击下载</a>
        </blockquote>
        <div class="oe_ustep">
          <ul>
            <li class="ws current" style="width:33.33%">
              <span>1. 群发对象</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>2. 选择模板</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>3. 发送短信</span>
            </li>
          </ul>
          <div class="clear"></div>
        </div>
        <dl>
        	<dt>
            上传txt文件
          </dt>
        	<dd>
            <span class="get"><i class="iconfont icon-iconfont7"></i>
              <input type="file" name="txt" id="txt" f="but_upload_txt">
            </span>
            <input type="hidden" id="txt_url" name="filename" value="" />
            <label class="tips"></label>
          </dd>
        </dl>
        <dl>
        	<dt>已上传文件</dt>
        	<dd >
            <img id="txt_loading" src="<!--{$urlpath}-->tpl/admin/images/loading.gif" alt="" style="margin-top:3px; display:none;" />
            <label id="txt_preview">--</label>
          </dd>
        </dl>
        <dl>
        	<dt>导入选项</dt>
        	<dd>
             <input type="checkbox" name="checkuser" id="checkuser" lay-skin="primary" value="1" title="会员表存在的手机号跳过" checked />
          </dd>
        </dl>
      </div>
    </div>
  </div>
 
  <div class="oe_tbl_form_btn">
    <button class="layui-btn oe_market_prebtn" f="but_pre_step">上一步</button>
    <input type="hidden" name="tasksn" id="tasksn" value="<!--{$tasksn}-->" />
    <input type="hidden" name="total" id="total" />
    <button class="layui-btn" f="but_submit_import" id="but_submit_import" style="height:50px;line-height: 50px;font-size: 16px;padding: 0px 55px;">
      下一步
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->
  

<!--{if $a == "adduser"}-->
<div class="oe_send_loading" id="loading_box" style="display:none;">
  <div class="txt">
    <img src="<!--{$urlpath}-->tpl/admin/images/page_loading.gif" />
    <p id="loading_1">
      数据筛选中,请稍后...
    </p>
    <p class="tips" id="loading_2" style="display:none;">
      <span id="loading_result">没有可筛选的数据，请重新筛选</span>
      <br />
      <a class="btn" href="javascript:;" f="but_reset_user">确定</a>
    </p>
  </div>
</div>
<div class="layui-fluid oe_fluid" style="padding-top:10px;">
  <div class="layui-card">
    <div class="layui-card-header">筛选会员</div>
    <div class="layui-card-body">
      <div class="oe_market_seruser">
        <div class="oe_ustep">
          <ul>
            <li class="ws current" style="width:33.33%">
              <span>1. 群发对象</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>2. 选择模板</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>3. 发送短信</span>
            </li>
          </ul>
          <div class="clear"></div>
        </div>
        <dl class="my">
          <dd>
            <div class="layui-form" id="user_search_box" style=" padding-top:15px;">
              <div class="select">
                <label>性别</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="gender" name="sgender" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>年龄</label>
                <div class="item input-80"><input type="text" name="sage" id="sage" class="layui-input" /></div> -
                <div class="item input-80"><input type="text" name="eage" id="eage" class="layui-input" /></div>岁
              </div>
              <div class="select">
                <label>身高</label>
                <div class="item input-80"><input type="text" name="sheight" id="sheight" class="layui-input" /></div> -
                <div class="item input-80"><input type="text" name="eheight" id="eheight" class="layui-input" /></div>CM
              </div>
              <div class="select">
                <label>婚况</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="marry" name="smarry" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>学历</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="education" name="seducation" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>职业</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="job" name="sjob" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>购车</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="car" name="scar" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>住房</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="house" name="shouse" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>类型</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="sort" name="ssort" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>生肖</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="lunar" name="slunar" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>星座</label>
                <div class="item input-150">
                  <!--{hook mod="var" item="astro" name="sastro" type="select" text="不限"}-->
                </div>
              </div>
              <div class="select">
                <label>头像</label>
                <div class="item input-150">
                  <select name="sheadflag" id="sheadflag">
                    <option value="">不限</option>
                    <option value="1">通过</option>
                    <option value="2">待审</option>
                    <option value="3">未通过</option>
                    <option value="4">>无</option>
                  </select>
                </div>
              </div>
              <div class="select">
                <label>独白</label>
                <div class="item input-150">
                  <select name="sintroflag" id="sintroflag">
                    <option value="">不限</option>
                    <option value="1">通过</option>
                    <option value="2">待审</option>
                    <option value="3">未通过</option>
                    <option value="4">无</option>
                  </select>
                </div>
              </div>
              <div class="select">
                <label>状态</label>
                <div class="item input-150">
                  <select name="sflag" id="sflag">
                    <option value="">不限</option>
                    <option value="1">通过</option>
                    <option value="2">未通过</option>
                    <option value="3">待审核</option>
                  </select>
                </div>
              </div>
              <div class="select">
                <label>实名</label>
                <div class="item input-150">
                  <select name="sidrz" id="sidrz">
                    <option value="">不限</option>
                    <option value="1">已实名</option>
                    <option value="2">未实名</option>
                  </select>
                </div>
              </div>
              <div class="select">
                <label>手机</label>
                <div class="item input-150">
                  <select name="smobilerz" id="smobilerz">
                    <option value="">不限</option>
                    <option value="1">已认证</option>
                    <option value="2">未认证</option>
                  </select>
                </div>
              </div>
              <div class="select">
                <label>地区</label>
                <div class="layui-input-inline input-120">
                  <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                  <select name="sdist1" id="sdist1" lay-filter="area" data-depth="1" data-name="sdist" data-text="=请选择=">
                    <option value="">=请选择=</option>
                    <!--{foreach $distlist as $val}-->
                    <option value="<!--{$val.areaid}-->"><!--{$val.areaname}--></option>
                    <!--{/foreach}-->
                  </select>
                </div>
                <div class="layui-input-inline input-120" id="json_sdist2">
                  <select name="sdist2" id="sdist2" lay-filter="area">
                    <option value="">=请选择=</option>
                  </select>
                </div>
                <div class="layui-input-inline input-120" id="json_sdist3">
                  <select name="sdist3" id="sdist3" lay-filter="area">
                    <option value="">=请选择=</option>
                  </select>
                </div>
              </div>
              <div class="select">
                <label>等级</label>
                <div class="item input-150">
                  <!--{assign var="grouplist" value=vo_list("mod={group} where={v.flag='1'} orderby={v.orders ASC}")}-->
                  <select name="sgroupid" id="sgroupid">
                    <option value="">不限</option>
                    <!--{foreach $grouplist as $volist}-->
                    <option value="<!--{$volist.groupid}-->"><!--{$volist.groupname}--></option>
                    <!--{/foreach}-->
                  </select>
                </div>
              </div>
              <div class="select input-200">
                 <select name="svip" id="svip">
                  <option value="">不限</option>
                  <option value="1">即将到期(14天后到期)</option>
                  <option value="2">已到期</option>
                 </select>
              </div>
              <div class="clear"></div>
            </div>
          </dd>
        </dl>
      </div>
    </div>
  </div>
  <div class="oe_tbl_form_btn">
    <input type="hidden" name="tasksn" id="tasksn" value="<!--{$tasksn}-->" />
    <input type="hidden" name="total" id="total" value="" />
    
    <button class="layui-btn oe_market_prebtn" f="but_pre_step">上一步</button>
    <button class="layui-btn" id="but_submit_user" f="but_submit_user" style="height:50px;line-height: 50px;font-size: 16px;padding: 0px 55px;">
      下一步
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>

</div>
<!--{/if}-->


<!--{if $a == "addparty"}-->
<div class="oe_send_loading" id="loading_box" style="display:none;">
  <div class="txt">
    <img src="<!--{$urlpath}-->tpl/admin/images/page_loading.gif" />
    <p id="loading_1">
      数据筛选中,请稍后...
    </p>
    <p class="tips" id="loading_2" style="display:none;">
      <span id="loading_result">没有可筛选的数据，请重新筛选</span>
      <br />
      <a class="btn" href="javascript:;" f="but_reset_party">确定</a>
    </p>
  </div>
</div>
<div class="layui-fluid oe_fluid" style="padding-top:10px;">
  <div class="layui-card">
    <div class="layui-card-header">筛选活动</div>
    <div class="layui-card-body">
      <div class="oe_market_party">
        <div class="oe_ustep">
          <ul>
            <li class="ws current" style="width:33.33%">
              <span>1. 群发对象</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>2. 选择模板</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>3. 发送短信</span>
            </li>
          </ul>
          <div class="clear"></div>
        </div>
        
        <!--{assign var="partylist" value=vo_list("mod={party} where={v.endtime><!--{time()}-->} num={500} orderby={v.partyid DESC}")}-->
        <div class="bd layui-form">
          <!--{if !empty($partylist)}-->
          <!--{foreach $partylist as $key=>$volist}-->
          <dl>
            <dt><input type="radio" name="partyid" <!--{if $volist.bmnums == 0}-->disabled<!--{/if}--> lay-skin="primary" title="<!--{$volist.bmnums}-->人报名" value="<!--{$volist.partyid}-->" /></dt>
          	<dd>
              <!--{$volist.title}--> 时间：<!--{$volist.starttime|date_format:"Y-m-d H:i"}--> 至 <!--{$volist.endtime|date_format:"Y-m-d H:i"}-->
            </dd>
          </dl>
          <!--{/foreach}-->
          <!--{else}-->
          <div class="oe_market_partynodata">
            <img src="<!--{$urlpath}-->tpl/admin/images/no_data.svg" />
            <p>没有可选的活动</p>
          </div>
          <!--{/if}-->
        </div>
      </div>
       
    </div>
  </div>

  <div class="oe_tbl_form_btn">
    <input type="hidden" name="tasksn" id="tasksn" value="<!--{$tasksn}-->" />
    <input type="hidden" name="total" id="total" value="" />
    
    <button class="layui-btn oe_market_prebtn" f="but_pre_step">上一步</button>
    <button class="layui-btn" id="but_submit_party" f="but_submit_party" lay-submit lay-filter="sendform" style="height: 50px;line-height:50px;font-size: 16px;padding: 0px 55px;">
      下一步
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>

</div>
<!--{/if}-->


<!--{if $a == "send"}-->
<div class="layui-fluid oe_fluid" style="padding-top:10px;">
  <div class="layui-card">
    <div class="layui-card-header">
      群发营销短信
      <span class="oe_rightback"><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
      
    </div>
    <div class="layui-card-body">
      <div class="oe_market_send layui-form">
        <div class="oe_ustep">
          <ul>
            <li class="ws current" style="width:33.33%">
              <span>1. 群发对象</span>
            </li>
            <li class="ws current" style="width:33.33%">
              <span>2. 选择模板</span>
            </li>
            <li class="ws" style="width:33.33%">
              <span>3. 发送短信</span>
            </li>
          </ul>
          <div class="clear"></div>
        </div>
        <dl>
          <dt><span></span>群发任务</dt>
          <dd>
            <div class="txt">
              <ul>
                <li>任务单：<!--{$tasksn}--> <br></li>
                <li>手机号：<b> <!--{$total}--> </b>个  <span class="btn"><a href="<!--{$oefile}-->&c=<!--{$c}-->&stasksn=<!--{$tasksn}-->">查看列表</a></span></li>
                
                <li>
                  已发：<b style="color:green;"> <!--{$success_nums}--> </b>条&#12288;
                  失败：<b> <!--{$fail_nums}--> </b>条&#12288;
                  待发：<b style="color:gray;"> <!--{$wait_nums}--> </b>条
                  <div class="clear"></div>
                  
                  <!--//9.09.17 -->
                  <!--{if $config.sms.flag == '1'}-->
                  <div class="oe_tips_forsms">
                    通道4短信帐户营销短信余额：<b id="sms4_tips"> 0 </b> 条
                    &#12288;
                    
                    <label id="recharge_sms">
                      为确保能正常群发短信，请及时充值。
                      <a href="http://open.oephp.com/index.php?c=smstc&appid=<!--{$config.rpzy.appid}-->&type=2" target="_blank">立即充值</a>
                    </label>
                  </div>
                  <script type="text/javascript">
                  $(function(){
                      _getSmsNums();
                  });
                  </script>
                  <!--{/if}-->
                  
                </li>
              </ul>
            </div>
          </dd>
        </dl>
        
        <dl>
        	<dt><span></span>选择模板</dt>
          <dd>
            <div class="tips">
              注：如果短信模板有跳转链接，链接地址将转成短网址。
            </div>
          </dd>
        </dl>
        <dl class="oe_smsmb" style="margin-top:0px;">
          <dt class="hd">
            <ul>
              <li f="but_select_box" data-box="guest" <!--{if $mold == 'guest' || $mold == ""}-->class="on"<!--{/if}-->>游客</li>
              <li f="but_select_box" data-box="user" <!--{if $mold == 'user'}-->class="on"<!--{/if}-->>会员</li>
              <li f="but_select_box" data-box="rz" <!--{if $mold == 'rz'}-->class="on"<!--{/if}-->>认证</li>
              <li f="but_select_box" data-box="party" <!--{if $mold == 'party'}-->class="on"<!--{/if}-->>活动</li>
              <div class="clear"></div>
            </ul>
          </dt>
          
          <div class="oe_smstipsbox" id="smstips_box" style="display:none;">
            <div class="top"><img src="<!--{$urlpath}-->tpl/admin/images/sms_top.png" /></div>
            <div class="txt">
              <div class="title"><img src="<!--{$urlpath}-->tpl/admin/images/sms_ka1.png" />
                <div class="cont cursor" id="smstips_text" f="but_click_shorturl" data-url="">
                  --
                </div>
              </div>
            </div>
            <div class="tips">
              当前字数：<span id="smstips_text_length">--</span>个&#12288;每条短信字数限制为70字。
            </div>
            <div class="bottom">
              <img src="<!--{$urlpath}-->tpl/admin/images/sms_bottom.png" />
            </div>
          </div>
          
          <dd class="bd">
            <div class="conn" id="tpl_guest_box"<!--{if $mold != ""}--> style="display:none;"<!--{/if}-->>
              <!--{assign var="tpllist" value=vo_list("mod={smstpl} where={v.type='guest'}")}-->
              <!--{if !empty($tpllist)}-->
              <!--{foreach $tpllist as $val}-->
              <div class="content curren" f="but_select_tpl" data-id="<!--{$val.tplid}-->" data-url="<!--{$val.httpurl}-->">【<!--{$config.sms.sender}-->】<!--{$val.content}--> <i class="iconfont icon-jiaobiao"></i></div>
              <!--{/foreach}-->
              <!--{/if}-->
              <div class="clear"></div>
            </div>
            
            <div class="conn" id="tpl_user_box"<!--{if $mold != "user"}--> style="display:none;"<!--{/if}-->>
              <!--{assign var="tpllist" value=vo_list("mod={smstpl} where={v.type='user'}")}-->
              <!--{if !empty($tpllist)}-->
              <!--{foreach $tpllist as $val}-->
              <div class="content" f="but_select_tpl" data-id="<!--{$val.tplid}-->" data-url="<!--{$val.httpurl}-->">【<!--{$config.sms.sender}-->】<!--{$val.content}--> <i class="iconfont icon-jiaobiao"></i></div>
              <!--{/foreach}-->
              <!--{/if}-->
              <div class="clear"></div>
            </div>
            <div class="conn" id="tpl_rz_box"<!--{if $mold != "rz"}--> style="display:none;"<!--{/if}-->>
              <!--{assign var="tpllist" value=vo_list("mod={smstpl} where={v.type='rz'}")}-->
              <!--{if !empty($tpllist)}-->
              <!--{foreach $tpllist as $val}-->
              <div class="content" f="but_select_tpl" data-id="<!--{$val.tplid}-->" data-url="<!--{$val.httpurl}-->">【<!--{$config.sms.sender}-->】<!--{$val.content}--> <i class="iconfont icon-jiaobiao"></i></div>
              <!--{/foreach}-->
              <!--{/if}-->
              <div class="clear"></div>
            </div>
            <div class="conn" id="tpl_party_box"<!--{if $mold != "party"}--> style="display:none;"<!--{/if}-->>
              <!--{assign var="tpllist" value=vo_list("mod={smstpl} where={v.type='party'}")}-->
              <!--{if !empty($tpllist)}-->
              <!--{foreach $tpllist as $val}-->
              <div class="content" f="but_select_tpl" data-id="<!--{$val.tplid}-->" data-url="<!--{$val.httpurl}-->">【<!--{$config.sms.sender}-->】<!--{$val.content}--> <i class="iconfont icon-jiaobiao"></i></div>
              <!--{/foreach}-->
              <!--{/if}-->
              <div class="clear"></div>
            </div>
          </dd>
        </dl>
      </div>
    </div>
  </div>
  <div class="oe_tbl_form_btn">
  
    <input type="hidden" name="tasksn" id="tasksn" value="<!--{$tasksn}-->" />
    <input type="hidden" name="tplid" id="tplid" value="" />
    <input type="hidden" name="tplcont" id="tplcont" value="" />
    <input type="hidden" name="wait_nums" id="wait_nums" value="<!--{$wait_nums}-->" />
    <input type="hidden" name="sms_nums" id="sms_nums" value="0" />
    <input type="hidden" name="start_page" id="start_page" value="<!--{$start_page}-->" />
    
    <button class="layui-btn" id="but_send_submit" f="but_send_submit" style="height:50px; line-height:50px; font-size:16px;  padding:0px 55px;">
      确定发送
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<div class="oe_shade" id="progress_box" style="display:none;">
  <div class="oe_send_tips">
    <div class="hd">
      短信群发中...
    </div>
    <div class="bd">
      <div class="txt">
        群发任务：<!--{$tasksn}--><br />
        共有 <b><!--{$total}--></b> 个手机号，待发送 <b><!--{$wait_nums}--></b> 个 <br />
        群发短信需要时间，请耐心等待，并请确保短信通道4有足够的营销短信余额
      </div>

      <div class="txt">
        <div class="layui-progress layui-progress-big" lay-showpercent="true">
          <div class="layui-progress-bar" id="percent_box" lay-percent="0%" style="width: 0%;">
            <span class="layui-progress-text">0%</span>
          </div>
        </div>
        <!--
        当前发送 <b id="send_nums">0</b>/<!--{$total}-->
        -->
      </div>
      
      <div class="btn">
        <button class="layui-btn" id="but_finish_submit" f="">发送完成，返回列表</button>
      </div>
    </div>
  </div>
</div>

<div class="oe_send_loading" id="loading_box" style="display:none;">
  <div class="txt">
    <img src="<!--{$urlpath}-->tpl/admin/images/page_loading.gif" />
    <p>loading…</p>
  </div>
</div>

<!--{if $need_set == "1"}-->
<div class="oe_sendtips_box">
  <div class="content">
    <div class="hd">温馨提示</div>
    <div class="bd">
      <p class="txt">请先配置好RP诚信开放平台接口</p>
      <p class="btn">
        <a href="<!--{$oefile}-->&c=setting&a=rpzy">去设置</a>
      </p>
    </div>
  </div>
</div>
<!--{elseif $need_set == "2"}-->
<div class="oe_sendtips_box">
  <div class="content">
    <div class="hd">温馨提示</div>
    <div class="bd">
      <p class="txt">请先配置好短信通道4接口(支持群发营销短信)</p>
      <p class="btn">
        <a href="<!--{$oefile}-->&c=setting&a=sms">去设置</a>
      </p>
    </div>
  </div>
</div>
<!--{/if}-->


<!--{/if}-->

<!--{if $a == "moblist"}-->
<div class="layui-fluid">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->&a=moblist" method="post">


    <div class="oe_searchbar layui-form">
      <div class="layui-form-item">

        <input type="hidden" name="stasksn" id="stasksn" class="layui-input" value="<!--{$stasksn}-->" />
        <div class="layui-inline">
          <div class="layui-form-label">手机号码：</div>
          <div class="layui-input-inline input-150">
            <input type="text" name="smobile" id="smobile" class="layui-input" value="<!--{$smobile}-->" />
          </div>
        </div>
        <div class="layui-inline">
          <div class="layui-form-label">发送状态：</div>
          <div class="layui-input-inline input-150">
            <select name="sflag" id="sflag">
              <option value="">=全部=</option>
              <option value="1"<!--{if $sflag == '1'}--> selected<!--{/if}-->>成功</option>
              <option value="2"<!--{if $sflag == '2'}--> selected<!--{/if}-->>失败</option>
              <option value="3"<!--{if $sflag == '3'}--> selected<!--{/if}-->>待发送</option>
            </select>
          </div>
        </div>

        <div class="layui-inline">
          <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
            <i class="layui-icon layui-icon-search"></i>
            搜索
            <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
          </button>
        </div>

      </div>
    </div>
    <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">

    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
      <input type="hidden" name="a" id="a" value="del" />
      <table class="layui-table">
        <thead>
        <tr>
          <th width="30%">批次</th>
          <th width="20%">对象</th>
          <th width="15%">手机号</th>
          <th width="20%">时间</th>
          <th width="15%">状态</th>
        </tr>
        </thead>

        <!--{if empty($marketsms)}-->
        <tr>
          <td colspan="5" class="text_center">没有符合条件的信息</td>
        </tr>
        <!--{else}-->
        <!--{foreach $marketsms as $volist}-->
        <tr>
          <td class="text_center">
            <!--{$volist.tasksn}-->
          </td>
          <td class="text_center">
            <!--{if !empty($volist.user)}-->
            <!--{$volist.user.username}-->
            <!--{else}-->--
            <!--{/if}-->
          </td>
          <td class="text_center"><!--{$volist.mobile}--></td>
          <td class="text_center"><!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
          <td class="text_center">
            <!--{if $volist.flag == '1'}-->
            <font color="green">成功</font>
            <!--{elseif $volist.flag == '2'}-->
            <font color="gray">失败</font>
            <!--{if !empty($volist.resultmsg)}-->
            <br /><font color="red"><!--{$volist.resultmsg}--></font>
            <!--{/if}-->
            <!--{else}-->
            待发送
            <!--{/if}-->
          </td>
        </tr>
        <!--{/foreach}-->
        <!--{/if}-->
      </table>
    </form>
    <div class="oe_page_box"><!--{$showpage}--></div>

  </div>
</div>
<!--{/if}-->
<script src="<!--{$urlpath}-->tpl/admin/js/marketsms.js"></script>
</body>
</html>