  <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" cellspacing="0">
  	<thead>
    	<th align='center' width="3%">#</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>
        <th align="center">日期</th>
    	<th align='center' width="15%">操作</th>
    </thead>
    <tbody>
    	<?php foreach($lists as $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="<?=$row->id?>" onclick="isChecked(this.checked);" /></td>
            <td><?=$row->title?></td>
            <td>&nbsp;<?=$row->img_url?></td>
            <td>&nbsp;<?=$row->link?></td>
            <td>&nbsp;<?=date("Y-m-d H:i:s",$row->time)?></td>
        	<td align="center" width="20%">
            	<a href="<?=BASEURI?>imgdemo/delete/<?=$channel_id?>/<?=$row->type_id?>/<?=$row->id?>" onclick="if(!confirm('确认是否删除')){return false;}">删除</a>
            	<a href="<?=BASEURI?>imgdemo/edit/<?=$channel_id?>/<?=$row->type_id?>/<?=$row->id?>">編辑</a>
            </td>
        </tr>
        <?Php }?>
    </tbody>
    <tfoot>
    	<tr>
    	<td colspan="6">
        	<input type="button" class="button" value="删除" onclick="select_control('<?=BASEURI?>imgdemo/delete/<?=$channel_id?>/<?=$type_id?>','确认是否删除')"/>
            <input type="button" value="新建" class="button" accesskey="N" onclick="button_location('<?=BASEURI?>imgdemo/add/<?=$channel_id?>/<?=$type_id?>')" />
         </td>
        </tr>
    </tfoot>
  </table>
