{layout name="layout"}
<div class="card">
    <div class="card-body">
        <form class="form-horizontal" action="__SELF__" method="post" target="result">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">下拉框选择</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <select name="group" class="form-control selectpicker">
                        {foreach name=":Config('site.currency_langs')" item="vo"}
                        <option value="{$row.key}" {if $key==$row.value }selected{/if}>{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">selectpage</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" name="article_ids" class="form-control selectpage" value="{$row.article_ids|null}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">密码</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" name="password" value="" autocomplete="off" class="form-control" {if
                        Request()->action == 'update'}placeholder="不修改密码请留空" {/if}>
                </div>
            </div>
            <!-- cxselect -->

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">性别</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <?php 
                        $sex_options = ['1'=>"男","2"=>"女"];
                    ?>
                    {html:radio name="sex" value="1" options="$sex_options" /}
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">性别</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <?php 
                        $sex_options = ['1'=>"男","2"=>"女"];
                    ?>
                    {html:checkbox name="sex1" value="1" options="$sex_options" /}
                </div>
            </div>
            <div class="form-group">
                <label for="type" class="control-label col-xs-12 col-sm-2">头像</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    
                    {html:upload name="cover" value="$row.avatar|default='__IMG__/user/avatar.svg'" mimetype="" multiple="" url="" maxsize="" maxcount="" multipart="" params=""  /}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 col-md-2 col-xs-12 control-label" for="is_recharge_open">充值开关</label>
                <div class="col-sm-6 col-md-6 col-xs-12">
                    <div class="form-control"  style="display: flex;align-items: center;border:0">
                        {html:switch name="is_recharge_open" value="1" /}
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">favisible</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" name="favisible" id="favisible" value="{$row.favisible|null}"
                        data-favisible="is_recharge_open==1"
                        data-target="form-group"
                        autocomplete="off" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">日期</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" name="birthday" id="birthday" value="{$row.birthday|null}" data-date-debug="true"
                        data-date-sideBySide="true" data-date-collapse="false" data-date-format="YYYY-MM-DD"
                        autocomplete="off" class="form-control datepicker">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">时间</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" name="time" id="time" value="{$row.time|null}" data-date-debug="true"
                        data-date-sideBySide="true" data-date-collapse="false" data-date-format="HH:mm:ss"
                        autocomplete="off" class="form-control js-datepicker">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">日期时间</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" name="created_at" id="created_at" value="{$row.created_at|null}" data-date-debug="true"
                        data-date-sideBySide="true" data-date-collapse="false" data-date-format="YYYY-MM-DD HH:mm:ss"
                        autocomplete="off" class="form-control datetimepicker">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">状态</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <label class="lyear-switch switch-primary">
                        <input type="checkbox" name="status" {if $row.status!==0} checked{/if} value="1">
                        <span></span>
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8 col-md-6 layer-footer">
                    <button type="submit" class="btn btn-primary m-r-5">提交</button>
                    <button type="reset" class="btn btn-warning m-r-5">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
<div>
    <iframe src="" name="result" width="100%" frameborder="0"></iframe>
</div>
{include file="common/file_preview" id="preview"/}