{include file="head.html"}
<div id="maincontent">
  <div class="wrap">
    <div class="crumbs"> <a href="__APP__/index/home">{lang='扩展'}</a> <a href="__URL__">{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="30%"><div align="center">{lang='模型名称'}</div></th>
            <th width="30%"><div align="center">{lang='表名'}</div></th>
            <th width="30%"><div align="center">{lang='管理操作'}</div></th>
          </tr>
      </thead>      
      <?php if(is_array($list)) foreach ($list as $vo) { ?>
        <tr>
          <td align="center">{$vo['id']}</td>
          <td align="center">{$vo['name']}</td>
          <td align="center">{$vo['table']}</td>
          <td align="center"><a id="edit" href="__URL__/manage-{$vo['id']}">{lang='管理字段'}</a> | <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>