<!--<?php
include_once PrintEot('left');
if(!$action){print <<<EOT
-->
<ul class="nav3">
<li><a href="#" class="two">草稿箱列表</a></li>
<li><a href="$basename&action=del">批量删除草稿</a></li>
</ul>
<div class="c"></div>

<form action="$basename" method="post">
<h3>搜 索</h3>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3" align="center">
	<td>用户名：<input type="text" class="input" name="username" /></td>
	<td>关键字：<input type="text" class="input" name="keyword" /></td>
	<td><input type="submit" class="btn" value="提 交" /></td>
</tr>
</table></form><br/>
<form action="$basename&" method="post">
<input type="hidden" name="action" value="draft" />
<h2>草稿箱管理</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 s3" align="center">
	<td width="6%">ID</td>
	<td width="15%">用户名</td>
	<td>草稿内容</td>
	<td width="6%">删除</td>
</tr>
<!--
EOT;
$i=($page-1)*$db_perpage;
foreach($draft as $key=>$value){
$i++;
print <<<EOT
-->
<tr class="tr3" align="center">
	<td>$i</td>
	<td>$value[username]</td>
	<td><textarea style="width:500px;height:35px; margin:.2em">{$value[content]}</textarea></td>
	<td><input type="checkbox" name="selid[]" value="$value[did]" onclick="pwJsCheck(this)" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>$pages<center style="margin-top:10px"><input class="btn" type="button" name="chkall" value="全 选" onclick="CheckAll(this.form)">
<input type=submit value="提 交" class="btn"></center></form><br/>
<!--
EOT;
}elseif($action=='del'){print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename">草稿箱列表</a></li>
<li><a href="#" class="two">批量删除草稿</a></li>
</ul>
<div class="c"></div>

<form action="$basename" method="post">
<input type="hidden" name="action" value="del" />
<input type="hidden" name="step" value="2" />
<h2>批量删除</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td width="25%">用户名：</td><td><input type="text" class="input" name="username" size="40" /></td></tr>
<tr class="tr3"><td>关键字：</td><td><input type="text" class="input" name="keyword" size="40" /></td></tr>
<tr class="tr3"><td>删除个数限制：</td><td><input type="text" class="input" name="num" size="8" value="200" /><input type="checkbox" name="clear" value="1" />清空草稿箱(删除草稿箱所有信息)</td></tr>
</table><center style="margin-top:10px">
<input type="submit" value="提 交" class="btn"></center></form>
<br/>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->