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

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <h3><?php echo $lang['member_index_manage'] ?></h3>
            <ul class="tab-base">
                <li><a href="index.php?act=member&op=member"><span><?php echo $lang['nc_manage'] ?></span></a></li>
                <li><a href="index.php?act=member&op=member_add"><span><?php echo $lang['nc_new'] ?></span></a></li>
                <li><a href="javascript:void(0);" class="current"><span>会员属性管理</span></a></li>
            </ul>
        </div>
    </div>
    <div class="fixed-empty"></div>
    <table class="table tb-type2" id="prompt">
        <tbody>
        <tr class="space odd">
            <th 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 method="post" name="member_attribute" id="member_attribute">
        <input type="hidden" name="form_submit" value="ok" />
        <table class="table tb-type2">
            <tbody>
                <tr class="noborder">
                    <td colspan="2" class="required"><label for="members" class="validation">会员手机号码：<span style="color: red;">注：必须输入为手机号码，以英文逗号分隔开。</span></label></td>
                </tr>
                <tr class="noborder">
                    <td class="vatop rowform">
                        <textarea name="members" id="members" cols="100" rows="10" class="members"></textarea>
                    </td>
                </tr>
                <tr class="noborder">
                    <td colspan="2" class="required"><label for="members_attr" class="validation">会员属性：</label></td>
                </tr>
                <tr>
                    <td>
                        <select name="attribute" id="members_attr">
                            <option value="common">普通会员</option>
                            <option value="lrlz">丽人丽妆员工</option>
                            <option value="brand">品牌方员工</option>
                        </select>
                    </td>
                </tr>
            </tbody>
            <tfoot>
                <tr class="tfoot">
                    <td colspan="15"><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span><?php echo $lang['nc_submit'];?></span></a></td>
                </tr>
            </tfoot>
        </table>
    </form>
</div>
<script type="text/javascript">
    $('#submitBtn').on('click',function(){
        var members=$('#members').val();
        if(members == "") {
            alert('请输入正确的会员名称！');
            return;
        }
        if(confirm('确定提交？')) {
            $('#member_attribute').submit();
        }
        else {
            return;
        }
    })
</script>
