<table cellspacing="0" cellpadding="0" class="adminlist">
	<thead>
    	<tr>
        	<th width="5%"><input type="checkbox" name="toggle" value="all" id="toggle" /></th>
        	<th width="5%">#</th>
            <th>类型</th>
            <th>描述</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<?php $i=1;?>
    	<?php foreach($types as $type){?>
    	<tr>
        	<TD><input type="checkbox" name="select_id[]" value="<?=$type->default_id?>" /></TD>
            <TD><?=$i++?></TD>
            <TD><?=$type->default_type?></TD>
            <TD><?=$type->default_description?></TD>
            <TD>
            <?php if($type->enabled==1){?>
            <a href="<?=BASEURI?>defaultvalue/delete/<?=$type->default_id?>" <?=IS_DELETE?>>删除</a>
            <?php }?>
            <a href="<?=BASEURI?>defaultvalue/edit/<?=$type->default_id?>">编辑</a>
            </TD>
        </tr>
        <?php }?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="4">
            <input type="button" name="add" value="添加" class="button" onclick="button_location('<?=BASEURI?>defaultvalue/add')">
            </td>
        </tr>
    </tfoot>
</table>