<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
            <th><input type="checkbox" name="toggle" id="toggle" value="all" /></th>
            <th>ID</th>
            <th>广告名称</th>
            <th>js位置</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <?php foreach($myads as $myad){if(@!$a){ $a=1 ;}else{ $a++ ;}?>
    	<tr class="row0">
        	<td><input type="checkbox" name="select_id[]" value="<?=$myad->id?>"></td>
        	<td><?=$myad->id?></td>
        	<td><?=$myad->name?></td>
        	<td>data/cache/ad<?=$myad->id?>.js</td>
        	<td><?=date("Y-m-d H:i:s",$myad->time);?></td>
        	<td>
            <a href="<?=BASEURI?>myad/edit/<?=$myad->id?>">编辑</a>
            <a href="<?=BASEURI?>myad/delete/<?=$myad->id?>" <?=IS_DELETE?> >删除</a>
            </td>
        </tr>
    <?php }?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="5">
            <input type="button" class="button" value="新建" accesskey="N" onClick="button_location('<?=BASEURI?>myad/add')">
            <input type="button" class="button" value="删除" accesskey="D" onClick="select_control('<?=BASEURI?>myad/delete','请确认是否删除')">
            </td>
        </tr>
    </tfoot>
</table>