<table class="adminlist" cellpadding="1" cellspacing="1">
  <thead>
    <tr>
      <th width="2%" class="title">#</th>
      <th width="3%" class="title"><input type="checkbox" id="toggle" value="all" id="toggle" /></th>
      <th class="title"><?=Kohana::lang("channel_lang.channel_name")?></th>
      <th class="title"><?=Kohana::lang("channel_lang.channel_type")?></th>
      <th class="title"><?=Kohana::lang("channel_lang.channel_status")?></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><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?>
      </th></tr><tr><td><input type="checkbox" id="cb<?=$a?>" name="select_id[]" value="<?=$tmp_channel->channel_id?>" onclick="isChecked(this.checked);" />
      </th></tr><tr><td><?=$tmp_channel->channel_name?></th></tr><tr><td><?=$tmp_channel->channel_type?></td>
      <td align="center"><?php 
			if($tmp_channel->channel_status){?>
        <a href="<?=BASEURI?>admin/channel/active/0/<?=$tmp_channel->channel_id?>"><span class="hasTip" title="<?=Kohana::lang("channel_lang.disabled");?>"><img src="<?=BASEURL?>public/admin/joolma/images/tick.png" width="16" height="16" border="0" alt="" /></span></a>
        <?php }
			else{ ?>
        <a href="<?=BASEURI?>admin/channel/active/1/<?=$tmp_channel->channel_id?>"><span class="hasTip" title="<?=Kohana::lang("channel_lang.open");?>"><img src="<?=BASEURL?>public/admin/joolma/images/publish_x.png" width="16" height="16" border="0" alt="" /></span></a>
        <?php }?>
      </th></tr><tr><td><?=$tmp_channel->channel_create_time?>
      </td>
      <td align="center"> <a href="<?=BASEURI?>admin/channel/edit/<?=$tmp_channel->channel_id?>"><?=Kohana::lang("channel_lang.edit");?></a> <a href="<?=BASEURI?>admin/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"> </td>
    </tr>
  </tfoot>
</table>
