<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
            <th>#</th>
            <th>标题</th>
            <th>存放位置</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <?php foreach($pages as $page){if(@!$a){ $a=1 ;}else{ $a++ ;}?>
    	<tr class="row0">
        	<td><?= $a?></td>
        	<td><a href="<?=BASEURL?><?=$page->savepath?>" target="_blank"><?=$page->title?></a></td>
        	<td><?=$page->savepath?></td>
        	<td><?=date("Y-m-d H:i:s",$page->time);?></td>
        	<td>
            <a href="<?=BASEURI?>pageweb/edit/<?=$page->id?>">编辑</a>
            <a href="<?=BASEURI?>pageweb/delete/<?=$page->id?>" <?=IS_DELETE?> >删除</a>
            </td>
        </tr>
    <?php }?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="4">
            <input type="button" class="button" value="新建" accesskey="N" onClick="button_location('<?=BASEURI?>pageweb/add')">
            <input type="button" class="button" value="删除" accesskey="D" onClick="select_control('<?=BASEURI?>pageweb/delete','请确认是否删除')">
            </td>
        </tr>
    </tfoot>
</table>