<table class="adminlist" cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <th width="2%" class="title">#</th>
      <th class="title">字段名称</th>
      <th class="title">字段标识</th>
      <th class="title">字段类型</th>
      <th align="center" valign="middle" class="title"><?=Kohana::lang("column_lang.control")?></th>
    </tr>
  </thead>
  <tbody>
    
  	<?php foreach($columnlist as $tmpcolumn){$tmpcolumn	=	(object)$tmpcolumn;?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
      <td><?=$tmpcolumn->comment?></td>
      <td><?=$tmpcolumn->column_name?></td>
      <td><?=$tmpcolumn->type?></td>
      <td align="center">
        <?=html::anchor(BASEURI."model_column/delete/".$tmpcolumn->column_name."/".$table_name."/".$modelid,Kohana::lang("column_lang.deletecolumn"),array("onclick"=>"return confirm('".Kohana::lang('column_lang.is_delete')."')"))?>
        <?=html::anchor(BASEURI."model_column/edit/".$tmpcolumn->column_name."/".$table_name."/".$modelid,Kohana::lang("column_lang.edit"))?>
      </td>
    </tr>
    <?PHP }?>
    
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7" height="25"><input type="button" name="add" value="新增" class="submit" onclick="button_location('<?=BASEURI?>model_column/add/<?=$table_name?>/<?=$modelid?>')" /></td>
    </tr>
  </tfoot>
</table>
