
<table class="tb tb2 " cellpadding="1" cellspacing="1">
  <thead>
    <tr>
      <th width="2%" class="title">#</th>
      <th width="3%" class="title"><input type="checkbox" class="checkbox" id="toggle" value="all" id="toggle" /></th>
      <th class="title"><?=$this->lang->line("assistant_name")?></th>
      <th class="title"><?=$this->lang->line("control")?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($data as $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['article_attach_category']?>" onclick="isChecked(this.checked);" />
      </td>
      <td><?=$tmp_sort['article_attach_name'];?></td>
      <td align="center">
      	<a href="<?=BASEURI?>model/assistant/edit/<?=$tmp_sort['article_attach_category']?>/<?=$channel_id?>"><?=$this->lang->line("edit");?></a> 
        <a href="<?=BASEURI?>model/assistant/delete/<?=$tmp_sort['article_attach_category']?>/<?=$channel_id?>" onclick="return confirm('<?=$this->lang->line('is_delete')?>')"><?=$this->lang->line("delete");?></a>
      </td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7" height="25"></td>
    </tr>
  </tfoot>
</table>
