<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $top_title ?> - <?php echo _conf( 'WEB_SITE_NAME' ) ?></title>
<link href="res/css/douya.css" rel="stylesheet" type="text/css">
<script src="res/js/prototype.js"></script>
<script src="res/js/scriptaculous.js"></script>
</head>

<body class="my">

<table border="0" width="98%" id="table1" cellspacing="5" cellpadding="5" align="center">
	<tr>
		<td class="top">
		<!-- main -->
		<p class="h3">内容补全计划</p>
		<br/>
		<span class="gact"> &gt; <a href="?a=admin_content_refactory">全部</a></span>
		&nbsp;&nbsp;<span class="gact"> &gt; <a href="?a=admin_content_refactory&status=1">开启</a></span>
		&nbsp;&nbsp;<span class="gact"> &gt; <a href="?a=admin_content_refactory&status=2">处理</a></span>
		&nbsp;&nbsp;<span class="gact"> &gt; <a href="?a=admin_content_refactory&status=3">确认</a></span>
		&nbsp;&nbsp;<span class="gact"> &gt; <a href="?a=admin_content_refactory&status=4">关闭</a></span>
		&nbsp;&nbsp;<span class="gact"> &gt; <a href="?a=admin_content_refactory&status=5">复活</a></span>
		</td>
	</tr>
	<tr>
	<td>
	<?php if( is_array( $suggest ) ): ?>
		<?php foreach( $suggest as $key=>$item ): ?>
		<form action="?a=admin_content_refactory_save" method="POST">
		<fieldset style="PADDING-RIGHT: 15px; PADDING-LEFT: 15px; PADDING-BOTTOM: 15px; PADDING-TOP: 15px;width:600px">
		<legend>Suggest<?php echo $item['id'] ?></legend><br/>
		<img src="<?php echo show_user_small_icon( $item['dy_uid'] ) ?>">&nbsp;&nbsp;<a href="?a=pepole&uid=<?php echo $item['dy_uid'] ?>"><?php echo $item['dy_nickname'] ?></a> 在 <?php echo $item['dy_add_time'] ?> 对此页面建议 [ <?php $st = get_suggest_type(); echo $st[$item['dy_type']] ?> ] [ <?php $ss = get_suggest_status(); echo $ss[$item['dy_status']] ?> ] [ <a href="?a=admin_content_history&sid=<?php echo $item['id'] ?>">历史记录(<?php echo get_suggest_record_num( $item['id'] ); ?>)</a> ]<br/><br/>
		<textarea style="width:500px;height:80px"><?php echo htmlspecialchars( $item['dy_content'] ) . NL ?></textarea>
		
		<br/><br/>[ <a href="?a=admin_content_history&sid=<?php echo $item['id'] ?>" target="_blank">历史记录(<?php echo get_suggest_record_num( $item['id'] ); ?>)</a> ]
		&nbsp;&nbsp;[ <span onclick="$('content_history_<?php echo $key ?>').style.height='120px'" style="cursor:pointer">详细</span> ]&nbsp;&nbsp;[ <span onclick="$('content_history_<?php echo $key ?>').style.height='0px'" style="cursor:pointer">隐藏</span> ]<br/><br/><iframe name="content_history_<?php echo $key ?>" src="?a=admin_content_history&sid=<?php echo $item['id'] ?>" style="width:500px;height:0px;margin:0px;padding:0px;" frameborder="0" ></iframe>
		<br/><br/>对操作的注释:[ <span onclick="$('dy_explian_<?php echo $key ?>').innerHTML = '无关信息'" style="cursor:pointer">无关信息</span> ] &nbsp;&nbsp;[ <span onclick="$('dy_explian_<?php echo $key ?>').innerHTML = '重复信息'" style="cursor:pointer">重复信息</span> ]
		<textarea style="width:500px;height:80px" name="dy_explain" id="dy_explian_<?php echo $key ?>"></textarea><INPUT TYPE="hidden" name="sid" value="<?php echo $item['id'] ?>">
		<br/>
		<br/>
		<input type="submit" value="处理" class="dbutton" style="width:120px" name="do">
		&nbsp;<input type="submit" value="确认" class="dbutton" style="width:120px" name="do">
		&nbsp;<input type="submit" value="关闭" class="dbutton" style="width:120px" name="do">
		&nbsp;<input type="submit" value="复活" class="dbutton" style="width:120px" name="do">
		</fieldset/></form>
		<br/><br/>
		<?php endforeach; ?>
		<?php endif; ?>
	</td>
	</tr>
</table>

<?php echo $pager; ?>

</body>

</html>