<input type="hidden" name="channel_id" value="<?=$channel_id?>" />
<table border="0" class="search" cellspacing="0">
   	<tr>
    	<td class="searchlogo"></td>
     	<td width="10%" style="padding-left:10px;">当前站点:</td>
        <td align="left"><?=$dropdowncChannel?></td>
    </tr>
</table>
<table class="adminlist " cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <th class="title" width="2%">#</th>
      <th class="title" width="2%"><input type="checkbox" class="checkbox" id="toggle" value="all"/></th>
      <th class="title">ID</th>
      <th class="title">排序</th>
      <th class="title">分类名称</th>
      <th class="title">目录位置</th>
      <th class="title">分类创建时间</th>
      <th class="title"><?=Kohana::lang("category_lang.control")?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($sortobj as $tmp_sort){$tmp_sort	=	(object)$tmp_sort;?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?>      </td>
      <td><input type="checkbox" class="checkbox" id="cb<?=$a?>" name="select_id[]" value="<?=$tmp_sort->cat_id?>" />      </td>
      <td><?=$tmp_sort->cat_id?></td>
      <td><?=$tmp_sort->list_order?></td>
      <td><a href="<?=$tmp_sort->url?>"><?=$tmp_sort->cat_name?></a><?php if($tmp_sort->thumb){?><a href="#" thumb="<?=BASEURL.$tmp_sort->thumb?>" target="_blank" class="preview">［图］</a><?php }?></td>
      <td><?=$tmp_sort->cat_dir?></td>
      <td><?=date("Y-m-d H:i:s",$tmp_sort->cat_create_date);?></td>
      <td align="center">
      	<a href="<?=BASEURI?>model_category/edit/<?=$channel_id?>/<?=$tmp_sort->cat_id?>"><?=Kohana::lang("category_lang.edit");?></a> 
        <a href="<?=BASEURI?>model_category/delete/<?=$channel_id?>/<?=$tmp_sort->cat_id?>" onclick="return confirm('<?=Kohana::lang('category_lang.is_delete')?>')"><?=Kohana::lang("category_lang.delete");?></a>      </td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7" height="25">
        <input type="button" class="submit" value="删除" onclick="select_control('<?=BASEURI?>model_category/delete/<?=$channel_id?>','请确是否删除')">
      	<input type="button" class="submit" value="添加" onclick="button_location('<?=BASEURI?>model_category/add/<?=$channel_id?>')" AccessKey='N'/>
      </td>
    </tr>
  </tfoot>
</table>
