<table width="100%" border="0" cellspacing="0" cellpadding="0" class="adminlist">
<thead>
  <tr>
    <th width="5%" align="center" valign="middle"><label>
      <input type="checkbox" name="toggle" id="toggle" value="all">
    </label></th>
    <th>名称</th>
    <th>地址</th>
    <th>是否显示</th>
    <th>是否新窗口</th>
    <th>排序</th>
    <th>位置</th>
    <th>操作</th>
  </tr>
</thead>
<tbody>
  <?php foreach($lists as $list){?>
  <tr>
    <td align="center" valign="middle"><input type="checkbox" name="select_id[]" value="<?=$list->navid?>"></td>
    <td><input type="text" name="name[]" value="<?=$list->name?>" class="text" /><input type="hidden" name="navid[]" value="<?=$list->navid?>"/></td>
    <td><input type="text" name="url[]" value="<?=$list->url?>" class="text" /></td>
    <td><?php if($list->enabled==1){?>显示<?php }else{?>不显示<?php }?></td>
    <td><?php if($list->is_target==1){?>是<?php }else{?>不是<?php }?></td>
    <td><input type="text" name="order[]" value="<?=$list->order?>" style="width:60px;" class="text" /></td>
    <td><?=$list->position?></td>
    <td>
    <a href="<?=BASEURI?>navbar/edit/<?=$list->navid?>">编辑</a>
    <a href="<?=BASEURI?>navbar/delete/<?=$list->navid?>">删除</a>
    </td>
  </tr>
  <?php }?>
</tbody>
<tfoot>
  <tr>
    <td colspan="7">
    <input type="button" name="delete" onClick="select_control('<?=BASEURI?>navbar/delete','请确认是否执行此操作')" value="删除" class="button">
    <input type="button" name="add" onKeyPress="N" onClick="button_location('<?=BASEURI?>navbar/add')" class="button" value="新建">
    <input type="button" name="add" onKeyPress="N" onClick="submitform('<?=BASEURI?>navbar/update')" class="button" value="更新">
    </td>
  </tr>
</tfoot>
</table>
