feedback.php
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']='管理反饋';
$url="<a href='../../../'>首頁</a> > <a href='../cp/'>會員中心</a> > 管理反饋";
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> (<?=$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?>
<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');
?>