<table cellpadding="0" cellspacing="0" class="adminlist">
  <thead>
    <tr>
      <th width="2%" class="title">#</th>
      <th class="title"><?=Kohana::lang("column_lang.table_name")?></th>
      <th class="title"><?=Kohana::lang("column_lang.table_attach")?></th>
      <th align="center" valign="middle" class="title"><?=Kohana::lang("column_lang.control")?></th>
    </tr>
  </thead>
  <tbody>
    
  	<?php if($model->model_article_table){?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
      <td><?=$model->model_article_table?></td>
      <td><?=Kohana::lang("column_lang.base_table");?></td>
      <td align="center">
        <?=html::anchor(BASEURI."model_column/manager/".$model->model_article_table."/".$model_id,Kohana::lang("column_lang.table_manager"))?>
      </td>
    </tr>
    <?PHP }?>
    
  	<?php if($model->model_category_table){?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
      <td><?=$model->model_category_table?></td>
      <td><?=Kohana::lang("column_lang.category_table");?></td>
      <td align="center">
        <?=html::anchor(BASEURI."model_column/manager/".$model->model_category_table."/".$model->model_id,Kohana::lang("column_lang.table_manager"))?>
      </td>
    </tr>
    <?PHP }?>
    
  	<?php if($model->model_annex_table){?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
      <td><?=$model->model_annex_table?></td>
      <td><?=Kohana::lang("column_lang.annex_table");?></td>
      <td align="center">
        <?=html::anchor(BASEURI."model_column/manager/".$model->model_annex_table."/".$model->model_id,Kohana::lang("column_lang.table_manager"))?>
      </td>
    </tr>
    <?PHP }?>
  	<?php if($model->model_assistant_table){?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
      <td><?=$model->model_assistant_table?></td>
      <td><?=Kohana::lang("column_lang.assistant_table");?></td>
      <td align="center">
      	<a href="<?=BASEURI?>model_column/manager/<?=$model->model_assistant_table?>/<?=$model->model_id?>"><?=Kohana::lang("column_lang.table_manager");?></a> 
      </td>
    </tr>
    <?PHP }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7"></td>
    </tr>
  </tfoot>
</table>
