<table width="100%" border="0" class="adminlist" cellspacing="0">

  <thead>
  <tr>
 	 <th><input id="toggle" type="checkbox" value=""/></th>
    <th>排序</th>
    <th>名称</th>
    <th>角色</th>
    <th>URL</th>
    <th>操作</th>
  </tr>
  </thead>
  <tbody>
  <?php $a=1; foreach($menu as $menu){
  
  ?>
  <tr class="row">
   <td><input name="select_id[]" type="checkbox" class="checkbox" id="cb<?=$a?>" value="<?=$menu['id']?>" /><input name="menuid[]" type="hidden" class="checkbox" value="<?=$menu['id']?>" /></td>
   <td><input name="orders[]" value="<?=$menu['menu_order']?>" class="text" style="width:40px; text-align:center;" dataType='Number' msg='排序值只能为整数'/></td>
    <td><?=$menu['menu_name']?>&nbsp;</td>
    <td><?=$menu['menu_roles']?>&nbsp;</td>
    <td><?=$menu['menu_url']?>&nbsp;</td>
   	<td><a href="<?=BASEURI?>menu/edit/<?=$menu['id']?>">编辑</a>&nbsp;<?=html::anchor(BASEURI."menu/delete/".$menu['id'],'删除',array('onclick'=>"return confirm('请确认是否删除')"))?></td>
  </tr>
  <? $a++; }?>
  </tbody>
  <tfoot>
  <tr>
    <td colspan="5">
    <input type="button"  value="删除" onclick="select_control('<?=BASEURI?>menu/delete','请确是否删除')" class="button"/>
    <input type="button"  value="排序" onclick="submitform('<?=BASEURI?>menu/order',true)" class="button"/>
    <input type="button" value="添加" name="sb" class="submit" onclick="button_location('<?=BASEURI?>menu/add')" accesskey="N">
    </td>
  </tr>

  </tfoot>
  
</table>
