<table class="adminlist" cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <th width="2%" class="title">#</th>
      <th width="3%" class="title"><input type="checkbox" id="toggle" value="all" /></th>
      <th class="title"><?=Kohana::lang("channel_lang.channel_name")?></th>
      <th class="title">排序</th>
      <th class="title"><?=Kohana::lang("channel_lang.model_name")?></th>
      <th class="title">目录</th>
      <th class="title"><?=Kohana::lang("channel_lang.channel_create_time")?></th>
      <th class="title"><?=Kohana::lang("channel_lang.control")?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($channelobj as $tmp_channel){?>
    <tr class="row0">
      <td><?=$tmp_channel->channel_id?><?php  if(isset($a)){++$a;}else{$a=1;}?></td>
      <td><input type="checkbox" id="cb<?=$a?>" name="select_id[]" value="<?=$tmp_channel->channel_id?>" onclick="isChecked(this.checked);" />
        </td>
      <td><?=$tmp_channel->channel_name?></td>
      <td><?=$tmp_channel->channel_order?></td>
      <td><?=$tmp_channel->model_name?></td>
      <td><?=$tmp_channel->channel_html_dir?></td>
      <td><?=$tmp_channel->channel_create_time?>
      </td>
      <td align="center">
        <a href="<?=BASEURI?>channel/edit/<?=$tmp_channel->channel_id?>">
        <?=Kohana::lang('channel_lang.edit');?>
        </a>
		<a href="<?=BASEURI?>channel/delete/<?=$tmp_channel->channel_id?>" onclick="return confirm('<?=Kohana::lang('channel_lang.is_delete')?>')">
        <?=Kohana::lang("channel_lang.delete");?>
        </a>
      </td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7" height="25" align="left">
      	<input type="button" class="submit" value="添加" onclick="button_location('<?=BASEURI?>channel/add')" accesskey="N"/>
      </td>
    </tr>
  </tfoot>
</table>
