<!--<?php
include_once PrintEot('left');
if (empty($action)) {print <<<EOT
-->
<h3>推送位置列表</h3>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3 s3">
		<td width="22%">ID</td>
		<td width="40%">名称</td>
		<td width="29%">管理</td>
	</tr>
<!--
EOT;
foreach ($PUSH as $key => $value) {print <<<EOT
-->
	<tr class="tr3">
		<td>$value[id]</td>
		<td>$value[name]</td>
		<td><a href="$basename&action=pushlist&key=$key" class="fourm-two" title="管理"><span class="cateset"></span></a></td>
	</tr>
<!--
EOT;
}print<<<EOT
-->
</table>
<!--
EOT;
}elseif($action == 'pushlist') {print <<<EOT
-->
<h3>搜索</h3>
<form action="$basename&action=pushlist&" method="POST">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="30%">文章标题 <input type="text" name="subject" value="$subject" size="25" class="input"></td>
		<td width="30%">时间范围 <input type="text" id="starttime" name="starttime" value="$starttime" onClick="javascript:ShowCalendar(this.id)"  size="10" class="input"> - <input type="text" id="endtime" name="endtime" value="$endtime" onClick="javascript:ShowCalendar(this.id)" size="10"  class="input"></td>
		<td width="40%">所属版块 <select name="fid" style="width:200px;"><option value="0">所有版块</option>$forumcache</select>&nbsp;&nbsp;<input type="submit" name="button" value="提交" class="btn"></td>
	</tr>
	<input type="hidden" name="key" value="$key">
</table>
</form>
<h3>推送文章列表</h3>
<form action="$basename&action=del&" method="POST">
<input type="hidden" name="key" value="$key">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3 s3">
		<td width="5%">ID</td>
		<td width="25%">标题</td>
<!--
EOT;
if($scr == 'cate') {print<<<EOT
-->
		<td width="12%">分类</td>
<!--
EOT;
} else {print<<<EOT
-->
		<td width="12%">版块</td>
<!--
EOT;
}print<<<EOT
-->
		<td width="12%">发表时间</td>
		<td width="12%">推送时间</td>
		<td width="7%">重新推送</td>
		<td width="6%">编辑</td>
		<td width="5%">删除</td>
	</tr>
<!--
EOT;
$num=($page-1)*$db_perpage;
foreach ($pushdb as $k => $value) {
$num++;
print <<<EOT
-->
	<input type="hidden" name="fids[]" value="$value[fid]">
	<tr class="tr3">
		<td>$num</td>
		<td><a href="$value[url]" target="_blank">$value[subject]</a></td>
<!--
EOT;
if($scr == 'cate') {print<<<EOT
-->
		<td><a href="cate.php?cateid=$value[cateid]" target="_blank">$value[fidname]</a></td>
<!--
EOT;
} else {print<<<EOT
-->
		<td><a href="thread.php?fid=$value[fid]" target="_blank">$value[fidname]</a></td>	
<!--
EOT;
}print<<<EOT
-->
		<td>$value[postdate]</td>
		<td>$value[pushtime]</td>
		<td><a href="$basename&action=repush&id=$value[id]&key=$key" class="fourm-two" title="重新推送"><span class="top"></span></a></td>
		<td><a href="$basename&action=edit&id=$value[id]&key=$key" class="fourm-two" title="编辑"><span class="edit"></span></a></td>
		<td><input type=checkbox name="selid[]" value="$value[id]" onclick="pwJsCheck(this)"></td></td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<br>$pages<br>
<center>
<input type="button" name="chkall" value="全 选" onclick="CheckAll(this.form)" class="btn">
<input type="submit" value="提 交" class="btn"></center></form><br/>
<script type="text/javascript" language="JavaScript" src="js/date.js"></script>
<!--
EOT;
}elseif($action == 'edit') {
$pushtoname = $PUSH[$key][name];
print <<<EOT
-->
<form action="$basename&action=edit&" method="POST">
<input type="hidden" name="key" value="$key" />
<input type="hidden" name="id" value="$id" />
<input type="hidden" name="step" value="2" />
<h3>推送帖子编辑</h3>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="20%">推送位置：</td><td>$pushtoname</td>
    </tr>
	<tr class="tr3">
		<td >标题：</td><td><input type="text" class="input" name="subject" value="$pushdb[subject]" size="54"></td>
    </tr>
    <tr class="tr3">
		<td>链接：</td><td><input type="text" class="input" name="url" value="$pushdb[url]" size="54"></td>
	</tr>
	<tr class="tr3">
		<td>图片：</td><td><input type="text" class="input" name="imgurl" value="$pushdb[imgurl]" size="54"></td>
	</tr>
    <tr class="tr3">
		<td>摘要：</td><td><textarea name="content" class="input" value="$pushdb[content]" style="overflow:auto;width:300px;height:80px;" />$pushdb[content]</textarea></td>
	</tr>
</table>
<br/><center><input type="submit" value="提 交" class="btn"></center>
</form><br/>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->