{include file="public/header" /}
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>权限设置</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <form method="post" id='form_admin'>
        <table class="ds-default-table">
            <thead>
                <tr class="space">
                    <th colspan="15" class="nobg">{$Think.lang.ds_list}</th>
                </tr>
                <tr class="thead">
                    <th>{$Think.lang.admin_index_username}</th>
                    <th class="align-center">{$Think.lang.admin_index_last_login}</th>
                    <th class="align-center">{$Think.lang.admin_index_login_times}</th>
                    <th class="align-center">{$Think.lang.gadmin_name}</th>
                    <th class="align-center">{$Think.lang.ds_handle}</th>
                </tr>
            </thead>
            <tbody>
                <?php if(!empty($admin_list) && is_array($admin_list)){ ?>
                <?php foreach($admin_list as $k => $v){ ?>
                <tr class="hover">
                    <td><?php echo $v['admin_name'];?></td>
                    <td class="align-center"><?php echo $v['admin_login_time'] ? date('Y-m-d H:i:s',$v['admin_login_time']) : lang('admin_index_login_null'); ?></td>
                    <td class="align-center"><?php echo $v['admin_login_num']; ?></td>
                    <td class="align-center"><?php echo $v['gname']; ?></td>
                    <td class="w150 align-center"><?php if($v['admin_is_super']){?>
                        {$Think.lang.admin_index_sys_admin_no}
                        <?php }else{?>
                        <a href="javascript:void(0)" onclick="if (confirm('{$Think.lang.ds_ensure_del}')){location.href = '{:url('/Admin/admin/admin_del',['admin_id'=>$v.admin_id])}'}">{$Think.lang.admin_index_del_admin}</a> | <a href="{:url('/Admin/admin/admin_edit',['admin_id'=>$v.admin_id])}">{$Think.lang.ds_edit}</a>
                        <?php }?></td>
                </tr>
                <?php } ?>
                <?php }else { ?>
                <tr class="no_data">
                    <td colspan="10">{$Think.lang.ds_no_record}</td>
                </tr>
                <?php } ?>
            </tbody>
            <tfoot>
                <?php if(!empty($admin_list) && is_array($admin_list)){ ?>
                <tr class="tfoot">
                    {$page}
                </tr>
                <?php } ?>
            </tfoot>
        </table>
    </form>
</div>