feedback.php 2.3 KB
<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='管理反饋';
$url="<a href='../../../'>首頁</a>&nbsp;>&nbsp;<a href='../cp/'>會員中心</a>&nbsp;>&nbsp;管理反饋";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<script>
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall')
       e.checked = form.chkall.checked;
    }
  }
</script>
        <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
		<form name="feedbackform" method="post" action="index.php" onsubmit="return confirm('確認要刪除?');">
		<tr class="header"> 
		  <td width="6%" height="25"><div align="center"><input type='checkbox' name='chkall' value='on' onClick='CheckAll(this.form)'></div></td>
		  <td width="58%"><div align="center">標題(點擊查看)</div></td>
		  <td width="25%"><div align="center">提交時間</div></td>
			<td width="11%"><div align="center">刪除</div></td>
		</tr>
		<?php
		while($r=$empire->fetch($sql))
		{
			if($r['uid'])
			{
				$r['uname']="<a href='../../space/?userid=$r[uid]' target='_blank'>$r[uname]</a>";
			}
			else
			{
				$r['uname']='遊客';
			}
		?>
        <tr bgcolor="#FFFFFF"> 
			<td height="25"><div align="center"> 
			<input name="fid[]" type="checkbox" value="<?=$r[fid]?>">
			</div></td>
			<td height="25"><div align="left">
			<a href="#ecms" onclick="window.open('ShowFeedback.php?fid=<?=$r[fid]?>','','width=650,height=600,scrollbars=yes,top=70,left=100');"><?=$r[title]?></a>&nbsp;(<?=$r['uname']?>)
			</div></td>
			<td height="25"><div align="center"> 
			<?=$r[addtime]?>
			</div></td>
			<td height="25"><div align="center">
			<a href="index.php?enews=DelMemberFeedback&fid=<?=$r[fid]?>" onclick="return confirm('確認要刪除?');">刪除</a>
			</div></td>
		</tr>
		  <?
		  }
		  ?>
          <tr bgcolor="#FFFFFF"> 
			<td height="25" colspan="4"> 
			<?=$returnpage?>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" name="Submit" value="批量刪除">
			<input name="enews" type="hidden" id="enews" value="DelMemberFeedback_All"></td>
		  </tr>
		</form>
        </table>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>