国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
4.5KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>会员空间留言管理</title>
  6. <link href="css/base.css" rel="stylesheet" type="text/css">
  7. <script type="text/javascript" src="../static/js/jquery/jquery.js" ></script>
  8. <script language="javascript">
  9. //获得选中文件的文件名
  10. function getCheckboxItem(){
  11. var allSel="";
  12. if(document.form1.logs.value) return document.form1.logs.value;
  13. for(i=0;i<document.form1.logs.length;i++)
  14. {
  15. if(document.form1.logs[i].checked){
  16. if(allSel=="")
  17. allSel=document.form1.logs[i].value;
  18. else
  19. allSel=allSel+"`"+document.form1.logs[i].value;
  20. }
  21. }
  22. return allSel;
  23. }
  24. function ReSel(){
  25. for(i=0;i<document.form1.logs.length;i++){
  26. if(document.form1.logs[i].checked) document.form1.logs[i].checked = false;
  27. else document.form1.logs[i].checked = true;
  28. }
  29. }
  30. function DelSel(){
  31. var nid = getCheckboxItem();
  32. if(nid==""){
  33. alert("请选择项目!\r\n");
  34. return ;
  35. }
  36. location.href = "member_guestbook.php?dopost=del&ids="+nid;
  37. }
  38. function delFeedbackIP()
  39. {
  40. var nid=getCheckboxItem();
  41. if(nid=="") alert("你没选中任何内容!");
  42. else if(window.confirm('你确定要删除这些留言吗?')) location.href="member_guestbook.php?dopost=delall&ids="+nid;
  43. }
  44. function delUname()
  45. {
  46. var nid=getCheckboxItem();
  47. if(nid=="") alert("你没选中任何内容!");
  48. else if(window.confirm('你确定要删除这些留言吗?')) location.href="member_guestbook.php?dopost=deluname&ids="+nid;
  49. }
  50. </script>
  51. </head>
  52. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  53. <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center">
  54. <tr>
  55. <td height="28" colspan="7" background='images/tbg.gif'><table width="96%" border="0" cellpadding="0" cellspacing="0">
  56. <tr>
  57. <td width="20%" height="18" style="padding-left:10px;"><strong>会员空间留言管理:</strong></td>
  58. <td width="80%" align="right">&nbsp;</td>
  59. </tr>
  60. </table></td>
  61. </tr>
  62. <tr align="center" bgcolor="#FFFFFF">
  63. <td><a href="member_guestbook.php">全部记录</a></td>
  64. <td colspan="6"><table width="90%" border="0" cellspacing="0" cellpadding="0">
  65. <form name='formsearch'>
  66. <tr>
  67. <td> 搜索:
  68. <select name="ways" id="ways">
  69. <option value="uname" selected>留言者</option>
  70. <option value="userid">空间UID</option>
  71. <option value="msg">内容</option>
  72. </select>
  73. <input type="text" name="body" id="body">
  74. <input type="submit" name="Submit" value="搜索" />
  75. </td>
  76. </tr>
  77. </form>
  78. </table></td>
  79. </tr>
  80. <tr align="center" height="26" bgcolor="#FBFCE2">
  81. <td width="8%">选择</td>
  82. <td width="11%">ID</td>
  83. <td width="11%">空间UID</td>
  84. <td width="11%">留言者</td>
  85. <td>留言内容</td>
  86. <td width="11%">IP</td>
  87. <td width="15%">时间</td>
  88. </tr>
  89. <form name="form1">
  90. {dede:datalist}
  91. <tr align="center" bgcolor="#FFFFFF">
  92. <td><input name='logs' type='checkbox' class='np' id="logs" value='{dede:field.aid/}' /></td>
  93. <td width="11%">{dede:field.aid /} </td>
  94. <td><a href="member_guestbook.php?mid={dede:field.mid /}">{dede:field.userid /}</a></td>
  95. <td><a href="member_guestbook.php?uname={dede:field.uname /}">{dede:field.uname /}</a></td>
  96. <td>{dede:field.msg /}</td>
  97. <td>{dede:field.ip /}</td>
  98. <td> {dede:field.dtime function="GetDateMk(@me)" /} </td>
  99. </tr>
  100. {/dede:datalist}
  101. </form>
  102. <tr>
  103. <td height="30" colspan="7" bgcolor="#ffffff">&nbsp;
  104. <input type="button" name="b5" value="反选" style="width:40px" class="coolbg np" onClick="ReSel();" />
  105. &nbsp;
  106. <input type="button" name="b6" value="删除所选" style="width:80px" class="coolbg np" onClick="DelSel();" />
  107. <input type='button' name='db' value=' 删除相同IP的所有留言 ' onClick="delFeedbackIP()" class="coolbg np" />
  108. <input type='button' name='db' value=' 删除相同留言者的所有留言 ' onClick="delUname()" class="coolbg np" />
  109. </td>
  110. </tr>
  111. <tr bgcolor="#F9FCEF">
  112. <td height="24" colspan="7" align="center"> {dede:pagelist listsize='5' /} </td>
  113. </tr>
  114. </table>
  115. </body>
  116. </html>