{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__/class_add','{lang='添加栏目循环'}');" >{lang='添加栏目循环'}</a>
    <a href="javascript:void(0)" onclick="open_window('__URL__/content_add','{lang='添加内容循环'}');" >{lang='添加内容循环'}</a>
      <a href="javascript:void(0)" onclick="open_window('__URL__/other_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%"><div align="center">{lang='名称'}</div></th>
            <th width="20%"><div align="center">{lang='标签'}</div></th>
            <th width="20%"><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="center">{$vo['name']}</td>
          <td align="center">
          <span>{</span>diy:{$vo['label']}<span>}</span>
          </td>
          <td align="center">
          <?php if($vo['type']==1){ ?>
          {lang='栏目循环'}
          <?php } ?>
          <?php if($vo['type']==2){ ?>
          {lang='内容循环'}
          <?php } ?>
          <?php if($vo['type']==3){ ?>
          {lang='其他循环'}
          <?php } ?>
          </td>
          <td align="center">
          <?php if($vo['type']==1){ ?>
          <a href="javascript:void(0)" onclick="open_window('__URL__/class_edit-{$vo['id']}','{lang='修改栏目循环'}');" >{lang='修改'}</a> | 
          <?php } ?>
          <?php if($vo['type']==2){ ?>
          <a href="javascript:void(0)" onclick="open_window('__URL__/content_edit-{$vo['id']}','{lang='修改内容循环'}');" >{lang='修改'}</a> | 
          <?php } ?>
          <?php if($vo['type']==3){ ?>
          <a href="javascript:void(0)" onclick="open_window('__URL__/other_edit-{$vo['id']}','{lang='修改其他循环'}');" >{lang='修改'}</a> | 
          <?php } ?>
          
          <a href="__URL__/del-{$vo['id']}">{lang='删除'}</a></td>
        </tr>
        <?php } ?>
    </table>
  </div>
</div>
</body></html>