  <table border="0" class="search" cellspacing="0">
   	<tr>
    	<td class="searchlogo"></td>
     	<td width="10%" style="padding-left:10px;">当前频道:</td>
        <td align="left"><?=$dropdowncChannel?></td>
    </tr>
</table>
<table class="adminlist col width-40" style="width:50%;" cellspacing="0">
  	<thead>
    	<th>#</th>
    	<th align='center' width="5%"><input type="checkbox" name="toggle" value="all" id="toggle" /></th>
    	<th align='center'>名称</th>
    	<th align='center'>描述</th>
    	<th align='center'>操作</th>
    </thead>
    <tbody>
    	<?php foreach($types as $type_row){?>
    	<tr>
        	<td align='center'><?php  if(isset($a)){echo ++$a;}else{echo $a=1;}?></td>
            <td><input type="checkbox" id="cb<?=$a?>" name="select_id[]" value="<?=$type_row->type_id?>" onclick="isChecked(this.checked);" /></td>
            <td><?=$type_row->name?></td>
            <td>&nbsp;<?=$type_row->description?></td>
        	<td align="center" width="20%">
            	<a href="<?=BASEURI?>imgdemo/deltype/<?=$channel_id?>/<?=$type_row->type_id?>" onclick="if(!confirm('确认是否删除')){return false;}">删除</a>
            	<a href="<?=BASEURI?>imgdemo/edittype/<?=$channel_id?>/<?=$type_row->type_id?>">编辑</a>
            	<a href="<?=BASEURI?>imgdemo/index/<?=$channel_id?>/<?=$type_row->type_id?>">管理</a>
            </td>
        </tr>
        <?Php }?>
    </tbody>
  </table>
  <table class="adminform col width-55" cellspacing="0" style="width:45%;">
  	<tr>
    	<th>类型名称</th>
    </tr>
    <tr>
        <td><input type="text" name="type[name]" value="" dataType="Require" msg="类型名称不能为空"/></td>
    </tr>
  	<tr>
    	<th class="key">描述</th>
     </tr>
     <tr>
        <td><textarea name="type[description]" cols="30" rows="5"></textarea><input type="hidden" name="type[channel_id]" value="<?=$channel_id?>" /></td>
    </tr>
    <tr>
    	<td><input type="submit" value="提交" class="button"/>
    </tr>
  </table>
