{template "header.html"}


<div class="row table-search-tool">
    <form action="{SELF}" method="get">
        {$search}
        <div class="col-xs-12">
            <label>
                <select name="groupid" class="form-control">
                    <option value=""> {dr_lang('全部')} </option>
                    {loop $group $t}
                    <option value="{$t.id}" {if $param.groupid==$t.id}selected{/if}>{$t.name}</option>
                    {/loop}
                </select>
            </label>
            <label>
                <select name="field" class="form-control">
                    {loop $field $t}
                    {if $t.ismain}
                    <option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option>
                    {/if}
                    {/loop}
                </select>
            </label>
            <label><i class="fa fa-caret-right"></i></label>
            <label><input type="text" class="form-control" placeholder="" value="{$param['keyword']}" name="keyword" /></label>

            <label><button type="submit" class="btn green btn-sm onloading" name="submit" > <i class="fa fa-search"></i> {dr_lang('搜索')}</button></label>
        </div>
    </form>
</div>


<form class="form-horizontal" role="form" id="myform">
    {dr_form_hidden()}
    <input type="hidden" name="isajax" value="1">
    <div class="table-scrollable">
        <table class="table table-striped table-bordered table-hover table-checkable dataTable">
            <thead>
            <tr class="heading">
                <th class="myselect">
                    <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                        <input type="checkbox" class="group-checkable" data-set=".checkboxes" />
                        <span></span>
                    </label>
                </th>
                <th style="text-align:center" width="70" class="{dr_sorting('id')}" name="id">{dr_lang('头像')}</th>
                <th width="200" class="{dr_sorting('username')}" name="username">{dr_lang('账号 / 邮箱')}</th>
                <th width="140" class="{dr_sorting('money')}" name="money">{dr_lang('实际资金')}</th>
                <th width="130" class="{dr_sorting('experience')}" name="score">{dr_lang('虚拟资产')}</th>
                <th width="160" class="{dr_sorting('regtime')}" name="regtime">{dr_lang('注册时间')}</th>
            </tr>
            </thead>
            <tbody>
            {loop $list $t}
            <tr class="odd gradeX" id="dr_row_{$t.id}">
                <td class="myselect">
                    <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                        <input type="checkbox" class="checkboxes" name="ids[]" value="{$t.id}" />
                        <span></span>
                    </label>
                </td>
                <td style="text-align:center"> <a href="{dr_url($uriprefix.'/alogin_index', ['id'=>$t.id])}" target="_blank" ><img class="img-circle" src="{dr_avatar($t.id)}" style="width:50px;height:50px"></a> </td>
                <td class="member_info_p">
                    <p>{Function_list::uid($t.id)}</p>
                    <p>{$t.email}</p>
                </td>
                <td class="member_info_p">
                    <p><a href="{php echo \Phpcmf\Service::M('auth')->_menu_link_url('member_paylog/index', 'member_paylog/index', ['field'=>'uid','keyword'=>$t.id])}">{dr_lang('余额')}: {$t.money}</a></p>
                    <p>{dr_lang('消费')}: {$t.spend}</p>
                </td>
                <td class="member_info_p">
                    <p><a href="{php echo \Phpcmf\Service::M('auth')->_menu_link_url('member_scorelog/index', 'member_scorelog/index', ['field'=>'uid','keyword'=>$t.id])}">{SITE_SCORE}: {$t.score}</a></p>
                    <p>{SITE_EXPERIENCE}: {$t.experience}</p>
                </td>
                <td class="member_info_p">
                    <p>{dr_date($t.regtime, 'Y-m-d H:i:s', 'red')}</p>
                    <p>{Function_list::ip($t.regip, 0, 0, 15)}</p>
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>
    </div>

    <div class="row fc-list-footer table-checkable ">
        <div class="col-md-5 col-sm-5 fc-list-select">
            <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                <input type="checkbox" class="group-checkable" data-set=".checkboxes" />
                <span></span>
            </label>
        </div>
    </div>
</form>

{template "footer.html"}