pl1.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title><?=$pagetitle?> 信息评论 - Powered by EmpireCMS</title>
  12. <meta name="keywords" content="<?=$pagetitle?> 信息评论" />
  13. <meta name="description" content="<?=$pagetitle?> 信息评论" />
  14. <style type="text/css">
  15. <!--
  16. body,Table{ color: #222; font-size: 12px; }
  17. a { color: #222; text-decoration: none; }
  18. a:hover { color: #f00; text-decoration: underline; }
  19. h1 { font-size:32px; font-weight: bold; }
  20. h2 { color: #1e3a9e; font-size: 25px; font-weight: bold; }
  21. .you { color: #1f3a87; font-size: 14px; }
  22. .text { font-size: 14px; padding-left: 5px; padding-right: 5px; line-height: 20px}
  23. .re a { color: #1f3a87; }
  24. .name { color: #1f3a87; }
  25. .name a { color: #1f3a87; text-decoration: underline;}
  26. .retext { background-color: #f3f3f3; width: 100%; float: left; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid #ccc; }
  27. .retext textarea { width: 535px; height: 130px; float: left; margin-left: 60px; border-top-style: inset; border-top-width: 2px; border-left-style: inset; border-left-width: 2px; }
  28. .hrLine{BORDER-BOTTOM: #807d76 1px dotted;}
  29. .ecomment {margin:0;padding:0;}
  30. .ecomment {margin-bottom:12px;overflow-x:hidden;overflow-y:hidden;padding-bottom:3px;padding-left:3px;padding-right:3px;padding-top:3px;background:#FFFFEE;padding:3px;border:solid 1px #999;}
  31. .ecommentauthor {float:left; color:#F96; font-weight:bold;}
  32. .ecommenttext {clear:left;margin:0;padding:0;}
  33. -->
  34. </style>
  35. <script src="/e/data/js/ajax.js"></script>
  36. </head>
  37. <body topmargin="0">
  38. <table width="766" border="0" align="center" cellpadding="3" cellspacing="1">
  39. <tr>
  40. <td width="210"><a href="/"><img src="/skin/default/images/logo.gif" border="0" /></a></td>
  41. <td><h1>网友评论</h1></td>
  42. <td><div align="right"><a href="#tosaypl"><strong><font color="#FF0000">我也评两句</font></strong></a></div></td>
  43. </tr>
  44. </table>
  45. <table width="766" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#222">
  46. <tr>
  47. <td height="2"></td>
  48. </tr>
  49. </table>
  50. <table width="766" border="0" align="center" cellpadding="3" cellspacing="1">
  51. <tr>
  52. <td height="42">
  53. <h2>评论:<a href="<?=$titleurl?>" target="_blank"><font color="#1e3a9e"><?=$title?></font></a></h2></td>
  54. <td><div align="right"><a href="<?=$titleurl?>" target="_blank">查看原文</a></div></td>
  55. </tr>
  56. </table>
  57. <hr align="center" width="766" size=1 class=hrline>
  58. <table width="766" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#384EA3">
  59. <form action="../enews/index.php" method="post" name="infopfenform">
  60. <input type="hidden" name="enews" value="AddInfoPfen" />
  61. <input type="hidden" name="classid" value="<?=$classid?>" />
  62. <input type="hidden" name="id" value="<?=$id?>" />
  63. <tr>
  64. <td width="50%" height="27" valign="middle"><font color="#FFFFFF">&nbsp;评分:
  65. <input type="radio" name="fen" value="1">
  66. 1分
  67. <input type="radio" name="fen" value="2">
  68. 2分
  69. <input name="fen" type="radio" value="3" checked>
  70. 3分
  71. <input type="radio" name="fen" value="4">
  72. 4分
  73. <input type="radio" name="fen" value="5">
  74. 5分
  75. <input type="submit" name="Submit" value="提交">
  76. </font></td>
  77. <td width="50%" valign="middle"><div align="center"><font color="#FFFFFF">平均得分:
  78. <strong><span id="pfendiv"><?=$pinfopfen?></span></strong> 分,共有 <strong><?=$infopfennum?></strong>
  79. 人参与评分</font></div></td>
  80. </tr>
  81. </form>
  82. </table>
  83. <table width="766" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
  84. <tr>
  85. <td height="30" bgcolor="#FFFFFF">
  86. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  87. <tr>
  88. <td width="17%">&nbsp;&nbsp;&nbsp;网友评论</td>
  89. <td width="83%"><div align="right"><?=$listpage?>&nbsp;&nbsp;&nbsp;</div></td>
  90. </tr>
  91. </table></td>
  92. </tr>
  93. <tr>
  94. <td bgcolor="#f8fcff">
  95. <?php
  96. while($r=$empire->fetch($sql))
  97. {
  98. $plusername=$r[username];
  99. if(empty($r[username]))
  100. {
  101. $plusername=$fun_r['nomember'];
  102. }
  103. if($r[userid])
  104. {
  105. $plusername="<a href='$public_r[newsurl]e/space/?userid=$r[userid]' target='_blank'>$r[username]</a>";
  106. }
  107. $saytime=date('Y-m-d H:i:s',$r['saytime']);
  108. //ip
  109. $sayip=ToReturnXhIp($r[sayip]);
  110. $saytext=RepPltextFace(stripSlashes($r['saytext']));//替换表情
  111. $includelink=" onclick=\"javascript:document.saypl.repid.value='".$r[plid]."';document.saypl.saytext.focus();\"";
  112. ?>
  113. <table width="96%" border="0" align="center" cellpadding="3" cellspacing="1" style="word-break:break-all; word-wrap:break-all;">
  114. <tr>
  115. <td height="30"><span class="name">本站网友 <?=$plusername?></span> <font color="#666666">ip:<?=$sayip?></font></td>
  116. <td><div align="right"><font color="#666666"><?=$saytime?> 发表</font></div></td>
  117. </tr>
  118. <tr valign="top">
  119. <td height="50" colspan="2" class="text"><?=$saytext?></td>
  120. </tr>
  121. <tr>
  122. <td height="30">&nbsp;</td>
  123. <td><div align="right" class="re"><a href="#tosaypl"<?=$includelink?>>回复</a>&nbsp;
  124. <a href="JavaScript:makeRequest('../pl/doaction.php?enews=DoForPl&plid=<?=$r[plid]?>&classid=<?=$classid?>&id=<?=$id?>&dopl=1&doajax=1&ajaxarea=zcpldiv<?=$r[plid]?>','EchoReturnedText','GET','');">支持</a>[<span id="zcpldiv<?=$r[plid]?>"><?=$r[zcnum]?></span>]&nbsp;
  125. <a href="JavaScript:makeRequest('../pl/doaction.php?enews=DoForPl&plid=<?=$r[plid]?>&classid=<?=$classid?>&id=<?=$id?>&dopl=0&doajax=1&ajaxarea=fdpldiv<?=$r[plid]?>','EchoReturnedText','GET','');">反对</a>[<span id="fdpldiv<?=$r[plid]?>"><?=$r[fdnum]?></span>]
  126. </div></td>
  127. </tr>
  128. </table>
  129. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  130. <tr>
  131. <td background="/skin/default/images/plhrbg.gif"></td>
  132. </tr>
  133. </table>
  134. <?
  135. }
  136. ?>
  137. <div align="right"><br />
  138. <?=$listpage?>&nbsp;&nbsp;&nbsp;<br />
  139. <br />
  140. <font color="#FF0000">网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述&nbsp;&nbsp;&nbsp;</font><br><br> </div></td>
  141. </tr>
  142. <script>
  143. function CheckPl(obj)
  144. {
  145. if(obj.saytext.value=="")
  146. {
  147. alert("错误,评论不能为空");
  148. obj.saytext.focus();
  149. return false;
  150. }
  151. return true;
  152. }
  153. </script>
  154. <form action="../pl/doaction.php" method="post" name="saypl" id="saypl" onsubmit="return CheckPl(document.saypl)">
  155. <tr id="tosaypl">
  156. <td bgcolor="#f8fcff"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
  157. <tr>
  158. <td width="13%" height="28">&nbsp;&nbsp;&nbsp;<span class="you">我也评两句</span></td>
  159. <td valign="middle">用户名:
  160. <input name="username" type="text" id="username" size="12" value="<?=$lusername?>" />
  161. 密码:
  162. <input name="password" type="password" id="password" size="12" value="<?=$lpassword?>" />
  163. 验证码:
  164. <input name="key" type="text" id="key" size="6" />
  165. <img src="/e/ShowKey/?v=pl" align="middle" name="plKeyImg" id="plKeyImg" onclick="plKeyImg.src='/e/ShowKey/?v=pl&t='+Math.random()" title="看不清楚,点击刷新" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/e/member/register/" target="_blank">还没有注册?</a></td>
  166. </tr>
  167. </table></td>
  168. </tr>
  169. <tr>
  170. <td bgcolor="#f8fcff"> <table width="100%" border="0" cellspacing="1" cellpadding="3" class="retext">
  171. <tr>
  172. <td width="78%"><div align="center">
  173. <textarea name="saytext" cols="58" rows="6" id="saytext"></textarea>
  174. </div></td>
  175. <td width="22%" rowspan="2"> <div align="center">
  176. <input name="nomember" type="checkbox" id="nomember" value="1" checked="checked" />
  177. 匿名发表<br>
  178. <br />
  179. <input name="imageField" type="submit" id="imageField" value=" 提 交 " />
  180. </div></td>
  181. </tr>
  182. <tr>
  183. <td><div align="center">
  184. <script src="/d/js/js/plface.js"></script>
  185. </div></td>
  186. </tr>
  187. </table> </td>
  188. </tr>
  189. <input name="id" type="hidden" id="id" value="<?=$id?>" />
  190. <input name="classid" type="hidden" id="classid" value="<?=$classid?>" />
  191. <input name="enews" type="hidden" id="enews" value="AddPl" />
  192. <input name="repid" type="hidden" id="repid" value="0" />
  193. </form>
  194. </table>
  195. <!-- 页脚 -->
  196. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  197. <tr>
  198. <td align="center" class="search">
  199. <form action="/e/search/index.php" method="post" name="searchform" id="searchform">
  200. <table border="0" cellspacing="6" cellpadding="0">
  201. <tr>
  202. <td><strong>站内搜索:</strong>
  203. <input name="keyboard" type="text" size="32" id="keyboard" class="inputText" />
  204. <input type="hidden" name="show" value="title" />
  205. <input type="hidden" name="tempid" value="1" />
  206. <select name="tbname">
  207. <option value="news">新闻</option>
  208. <option value="download">下载</option>
  209. <option value="photo">图库</option>
  210. <option value="flash">FLASH</option>
  211. <option value="movie">电影</option>
  212. <option value="shop">商品</option>
  213. <option value="article">文章</option>
  214. <option value="info">分类信息</option>
  215. </select>
  216. </td>
  217. <td><input type="image" class="inputSub" src="/skin/default/images/search.gif" />
  218. </td>
  219. <td><a href="/search/" target="_blank">高级搜索</a></td>
  220. </tr>
  221. </table>
  222. </form>
  223. </td>
  224. </tr>
  225. <tr>
  226. <td>
  227. <table width="100%" border="0" cellpadding="0" cellspacing="4" class="copyright">
  228. <tr>
  229. <td align="center"><a href="/">网站首页</a> | <a href="#">关于我们</a>
  230. | <a href="#">服务条款</a> | <a href="#">广告服务</a> | <a href="#">联系我们</a>
  231. | <a href="#">网站地图</a> | <a href="#">免责声明</a> | <a href="/e/wap/" target="_blank">WAP</a></td>
  232. </tr>
  233. <tr>
  234. <td align="center">Powered by <strong><a href="http://www.phome.net" target="_blank">EmpireCMS</a></strong>
  235. <strong><font color="#FF9900">7.5</font></strong>&nbsp; &copy; 2002-2018
  236. <a href="http://www.digod.com" target="_blank">EmpireSoft Inc.</a></td>
  237. </tr>
  238. </table>
  239. </td>
  240. </tr>
  241. </table>
  242. </body>
  243. </html>