<?php defined('InShopNC') or exit('Access Invalid!'); ?>

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <h3>激活用户</h3>
            <ul class="tab-base">
                <li><a href="index.php?act=oper_sms&op=index"><span><?php echo $lang['nc_manage']; ?></span></a></li>
                <li><a href="index.php?act=oper_sms&op=send_sms_push"><span>短信push发送</span></a></li>
                <li><a href="index.php?act=oper_sms&op=awaken_user" class="current"><span>激活用户</span></a></li>
            </ul>
        </div>
    </div>
    <div class="fixed-empty"></div>
    <div>
        <table class="tb-type1 noborder search">
            <tbody>
            <tr style="background: rgb(255, 255, 255);">
                <td>
                    <label>全局过滤条件:
                        <select name="golbal_last_login" class="golbal_last_login">
                            <option value="all">全部</option>
                            <option value="10">未登录10天</option>
                            <option value="20">未登录20天</option>
                            <option value="30">未登录30天</option>
                            <option value="40">未登录40天</option>
                        </select>
                    </label>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <table class="table tb-type2" id="prompt">
        <tbody>
        <tr class="space odd">
            <th class="nobg" colspan="12">
                <div class="title">
                    <h5><?php echo $lang['nc_prompts']; ?></h5>
                    <span class="arrow"></span>
                </div>
            </th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li>根据订单发红包雨</li>
                </ul>
            </td>
        </tr>
        </tbody>
    </table>
    <form id="points_form" class="form" method="post" action="index.php?act=oper_sms&op=bonus_awaken" name="form1">
        <input type="hidden" name="form_submit" value="ok"/>
        <table class="table tb-type2 nobdb">
            <tbody>
                    <tr>
                        <td class="w120 align-left">根据订单发红包雨:</td>
                        <td class="w400 align-left"><label>paysn：<input class="w300" type="text" name="paysn" placeholder="请输入paysn"></label></td>
                        <td class="w200 align-left"><label>金额：<input type="text" name="amount" placeholder="单个用户红包金额"></label></td>
                        <td class="w250 align-left"><label>最近多少天注册用户：<input type="text" name="days" placeholder="请输入天数"></label></td>
                        <input type="hidden" class="golbal_last_login" name="global_condition" value="all">
                        <td class="w200 align-left"><a href="JavaScript:void(0);" class="submit_btn btn" id="submit_form"><span><?php echo $lang['nc_submit']; ?></span></a></td>
                    </tr>
            </tbody>
        </table>
    </form>
    <table class="table tb-type2" id="prompt">
        <tbody>
        <tr>
            <td>
                <ul>
                    <li>短信内容，【熊猫美妆】周末福利大放送，{50}元红包已到账！{雪花秀、兰芝补货，SNP、婵真}上新，传送门：{http://t.cn/RY9Iiba}，退订回复N:</li>
                </ul>
            </td>
        </tr>
        </tbody>
    </table>
    <form id="newbrand_form" class="form" method="post" action="index.php?act=oper_sms&op=brand_awaken" name="form1">
        <input type="hidden" name="form_submit" value="ok"/>
        <table class="table tb-type2 nobdb">
            <tbody>
            <tr>
                <td class="w100 align-left">品牌上新:</td>
                <td class="w200 align-left"><label>金额：<input type="text" name="amount" placeholder="单个用户红包金额"></label></td>
                <td class="w250 align-left"><label>品牌：<input class="w200" type="text" name="brand" placeholder="请输入品牌语"></label></td>
                <td class="w200 align-left"><label>网页地址：<input type="text" name="openurl" placeholder="请输入可打开地址"></label></td>
                <td class="w250 align-left"><label>最近多少天注册用户：<input type="text" name="days" placeholder="请输入天数"></label></td>
                <td class="w250 align-left"><label>红包少于多少元用户：<input type="text" name="et_amount" placeholder="请输入金额"></label></td>
                <input type="hidden" class="golbal_last_login" name="global_condition" value="all">
                <td class="w200 align-left"><a href="JavaScript:void(0);" class="submit_btn btn" id="submit_form"><span><?php echo $lang['nc_submit']; ?></span></a></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">

    $('.golbal_last_login').on('change',function(){
        var last_login = $(this).val();
        $('.golbal_last_login').val(last_login);
    });

    $('.submit_btn').on('click', function () {
        var confirm = window.confirm('确认提交？');
        if (confirm) {
          $(this).parents('form').submit();
        }
        else {
            return;
        }
    })
</script>