<table class="adminlist" border="0" cellspacing="0">
  <thead>
    <tr>
      <th width="2%" class="title">#</th>
      <th width="3%" class="title"><input type="checkbox" class="checkbox" id="toggle" value="all" /></th>
      <th class="title"><?=Kohana::lang("manager_lang.model_name")?></th>
      <th class="title"><?=Kohana::lang("manager_lang.model_value")?></th>
      <th class="title"><?=Kohana::lang("manager_lang.model_create_date")?></th>
      <th class="title"><?=Kohana::lang("manager_lang.control")?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($modelobj as $model){?>
    <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="<?=$model->model_id?>" /></td>
      <td><?=$model->model_name?></td>
      <td><?=$model->model_value?></td>
      <td><?=$model->model_install_date?></td>
      <td align="center">
      <?=html::anchor(BASEURI."model_column/table/".$model->model_id,"配置模型")?>
      <?=html::anchor(BASEURI."model_form/edit/".$model->model_id."/cat","分类表单")?>
      <?=html::anchor(BASEURI."model_form/edit/".$model->model_id."/con","内容表单")?>
      <?=html::anchor(BASEURI."model_manager/edit/".$model->model_id,"编辑")?>
      <?php if($model->is_delete){?><?=html::anchor(BASEURI."model_manager/delete/".$model->model_id,Kohana::lang("manager_lang.delete"),array("onclick"=>"return confirm('".Kohana::lang('manager_lang.is_delete')."')"))?><?php }?>
      </td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7" height="25"> 
      <input type="button" value="添加" name="sb" class="submit" onclick="button_location('<?=BASEURI?>model_manager/add')" accesskey="N">
      </td>
    </tr>
  </tfoot>
</table>
