{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.gadmin_name}</th>
                    <th class="align-center">{$Think.lang.ds_handle}</th>
                </tr>
            </thead>
            <tbody>
                <?php if(!empty($list) && is_array($list)){ ?>
                <?php foreach($list as $k => $v){ ?>
                <tr class="hover">
                    <td><?php echo $v['gname'];?></td>
                    <td class="w150 align-center">
                        <a href="{:url('/Admin/Admin/gadmin_set',['gid'=>$v.gid])}">{$Think.lang.ds_edit}</a> | <a href="javascript:void(0)" onclick="if (confirm('{$Think.lang.gadmin_del_confirm}')){location.href = '{:url('/Admin/Admin/gadmin_del',['gid'=>$v.gid])}'}">{$Think.lang.admin_index_del_admin}</a>
                    </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($list) && is_array($list)){ ?>
                <tr class="tfoot">
                    {$page}
                </tr>
                <?php } ?>
            </tfoot>
        </table>
    </form>



</div>