<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 class="title">操作</th>
    </tr>
  </thead>
  <tbody>
    
  	<?php foreach($formlist as $tmpform){?>
    <tr class="row0">
      <td><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
      <td><?=$tmpform->form_name?></td>
      <td><?=$tmpform->table_name?></td>
      <td><?=$tmpform->group_value?></td>
      <td align="center">
      <a href="<?=BASEURI?>model_form/edit/<?=$tmpform->form_id?>">编辑</a>
      <a href="<?=BASEURI?>model_form/delete/<?=$tmpform->form_id?>/<?=$tmpform->table_name?>" onclick="return confirm('<?=Kohana::lang('form_lang.is_delete')?>');">删除</a>
      </td>
    </tr>
    <?PHP }?>
    
  </tbody>
  <tfoot>
    <tr>
      <td colspan="7"><?=form::button("add","新建","class='submit' onclick='button_location(\"".BASEURI."model_form/add/$table_name/$model_id\")'")?> </td>
    </tr>
  </tfoot>
</table>
