{include file="head.html"}
<div id="maincontent">
  <div class="wrap">
    <div class="crumbs"> <a href="__APP__/index/home">{lang='系统设置'}</a> <a href="#">{lang='菜单管理'}</a> </div>
    <hr />
    <div class="admin_main_function"> <a href="javascript:void(0)" onclick="open_window('__URL__/add','{lang='添加菜单'}');" >{lang='添加菜单'}</a> </div>
    <table class="list_table table_style">
      <thead>
        <tr>
          <th width="10%"><div align="center">ID</div></th>
          <th width="20%" align="left">{lang='菜单名'}</th>
          <th width="25%" align="left">{lang='菜单链接'}</th>
          <th width="10%"><div align="center">{lang='菜单排序'}</div></th>
          <th width="15%"><div align="center">{lang='指向目标'}</div></th>
          <th width="20%"><div align="center">{lang='操作'}</div></th>
        </tr>
      </thead>
      <?php if (is_array($list)) foreach ($list as $vo) { ?>
        <tr id="del_{$vo['id']}">
          <td align="center">{$vo['id']}</td>
          <td align="left">{$vo['cname']} <?php if($vo['hide']==0) { ?><a href="__URL__/hide-{$vo['id']}-1"><span style="color: #06F">[{lang='显'}]</span></a><?php }else{ ?><a href="__URL__/hide-{$vo['id']}-0"><span style="color:#F00">[{lang='隐'}]</span></a><?php } ?></td>
          <td align="left">{$vo['url']}</td>
          <td align="center">{$vo['sorter']}</td>
          <td align="center">
          <?php if($vo['target']==1) { ?>
          {lang='左菜单'}
          <?php }else{ ?>
          {lang='右内容'}
          <?php } ?>
          </td>
          <td align="center">
          <a href="javascript:void(0)" onclick="open_window('__URL__/edit-{$vo['id']}','{lang='修改菜单'}');">{lang='修改'}</a> | 
          <a onclick="del('__URL__/del-{$vo['id']}','{lang='确认要删除该菜单吗？'}','{lang='操作提示'}',this)" href="javascript:void(0)">{lang='删除'}</a>
          </td>
        </tr>
        <?php } ?>
    </table>
  </div>
</div>
</body></html>