{extend name="layout:home" /}

{block name="container"}
<?php 
    if(empty($member['member_usetime'])){
        $member['member_usetime'] = '';
    }
?>
<form class="layui-form layui-form-pane" method="post">
    <div class="layui-tab layui-tab-card">
        <div class="layui-tab-content page-tab-content">
            <div class="layui-tab-item layui-show ">
                <div class="layui-form-item">
                    <label class="layui-form-label">{$Think.lang.member_name}</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input field-name" name="member_name" id="member_name" value="{$member.member_name|default=''}" lay-verify="member_name" autocomplete="off" placeholder="{:lang('ds_please_enter')}{:lang('member_name')}" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱地址</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input field-name" name="member_mailbox" id="member_mailbox" value="{$member.member_mailbox|default=''}" lay-verify="email" autocomplete="off" placeholder="{:lang('ds_please_enter')}邮箱地址" required />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">{$Think.lang.member_url}</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input field-name" name="member_url" id="member_url" value="{$member.member_url|default=''}"  lay-verify="url" placeholder="{if $member.add eq '1'} {:lang('ds_please_enter')}{:lang('member_url')}{else}{:lang('member_edit_password_keep')}{/if} " />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"> {$Think.lang.member_mobile}</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input field-name" name="member_mobile" id="member_mobile" value="{$member.member_mobile|default=''}"  placeholder="{:lang('ds_please_enter')}{:lang('member_mobile')}" lay-verify="phone"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">{$Think.lang.member_contacts}</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input field-name" name="member_contacts" id="member_contacts" value="{$member.member_contacts|default=''}"  placeholder="{:lang('ds_please_enter')}{:lang('member_contacts')}" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"> {$Think.lang.member_usetime} </label>
                    <div class="layui-input-block">
                        <select name="member_usetime"> 
                            <option value="{$member.member_usetime}">{if $member.member_usetime}{$member.member_usetime}{else}请选择时间段{/if}</option>
                            <option value="一个月">一个月</option> 
                            <option value="一季度">一季度</option>
                            <option value="半年">半年</option> 
                            <option value="一年">一年</option> 
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">{$Think.lang.member_status}</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="member_status" lay-skin="switch" lay-text="{:lang('member_yes')}|{:lang('member_no')}" value="1" {if condition="$member.member_status eq '1'"}checked{/if}>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    layui.use('form', function() {
        var form = layui.form;
    });
</script>
{/block}



