国内流行的内容管理系统(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.

227 lines
9.1KB

  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><?php echo $cfg_webname; ?> - 留言本</title>
  6. <link href="<?php echo $cfg_templeturl; ?>/default/style/dedecms.css" rel="stylesheet" type="text/css" media="screen" />
  7. <style>
  8. .lefttd {
  9. border-left:1px solid #dedede;
  10. border-right:1px solid #dedede;
  11. }
  12. .ltd {
  13. border-left:1px solid #dedede;
  14. border-right:1px solid #dedede;
  15. border-top:1px solid #dedede;
  16. border-bottom:1px dashed #dedede;
  17. }
  18. .msgtd {
  19. line-height:180%;
  20. border-right:1px solid #dedede;
  21. padding:5px;
  22. height:80px;
  23. }
  24. .timetd {
  25. border-right:1px solid #dedede;
  26. border-top:1px solid #dedede;
  27. border-bottom:1px dashed #dedede;
  28. padding-left:5px;
  29. }
  30. .bottomtd {
  31. border-right:1px solid #dedede;
  32. border-top:1px dashed #dedede;
  33. padding-left:5px;
  34. }
  35. .writetable td {
  36. padding: 5px;
  37. }
  38. .writetd {
  39. background:url(img/wbg.gif);
  40. }
  41. .pagetable {
  42. border:1px solid #dedede;
  43. margin-bottom:8px;
  44. background:#FBFEED;
  45. }
  46. .pagelistbox {
  47. }
  48. .pagelistbox span{
  49. border:1px solid #dedede;
  50. padding:2px;
  51. margin-right:3px;
  52. background:#E8F9BF;
  53. }
  54. .pagelistbox a {
  55. border:1px solid #dedede;
  56. padding:2px;
  57. margin-right:3px;
  58. background:#E8F9BF;
  59. padding-left:5px;
  60. padding-right:5px;
  61. }
  62. .rebox {
  63. width:98%;
  64. padding:3px;
  65. border:1px solid #dedede;
  66. }
  67. </style>
  68. </head>
  69. <body class="mapspage">
  70. <div class="header">
  71. <div class="top w960 center">
  72. <div class="title">
  73. <h1>
  74. <h1><a href="<?php echo $cfg_basehost;?>/"><?php echo $cfg_webname;?></a></h1>
  75. </h1>
  76. </div><!-- /title -->
  77. </div><!-- /top -->
  78. </div><!-- /header -->
  79. <div class="w960 clear center mt1">
  80. <div class="sp-title">
  81. <h2>留言本</h2>
  82. <span class="more">
  83. <a href="#write">[发布留言]</a> &nbsp;
  84. <a href="<?php echo $cfg_basehost;?>/">[返回主页]</a>
  85. </span>
  86. </div>
  87. <?php
  88. $ntt=0;
  89. $bgcc = '#FBFEED';
  90. ?>
  91. {dede:datalist}
  92. <table width='100%' border='0' align="center" cellpadding='0' cellspacing='0' style="<?php echo (($ntt==0) ? "background:{$bgcc}" : 'background:#ffffff'); ?>">
  93. <tr>
  94. <td width='160' align="center" class='ltd'>
  95. <b><?php echo $fields['uname']; ?></b>
  96. </td>
  97. <td height="26" class='timetd'>
  98. <img height='16' src='guestbook/images/time.gif' width='16' /> 时间: <?php echo MyDate('m-d H:i',$fields['dtime']); ?>
  99. &nbsp;
  100. 主题:<?php echo $fields['title']; ?>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td width='160' rowspan='2' align="center" class='lefttd'>
  105. <table width='160' border='0' align="center" cellpadding='1' cellspacing='2'>
  106. <tr>
  107. <td height="80" align="center">
  108. <img src='guestbook/images/<?php echo $fields['face']?>.gif' border=0 /> <?php echo GetIsCheck($fields['ischeck'],$fields['id'])?>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td height="20">&nbsp;来自:<?php echo preg_replace("#[^\.]*\.[^\.]*$#","*.*",$fields['ip']); ?></td>
  113. </tr>
  114. <tr>
  115. <td height="20">&nbsp;QQ:<?php echo $fields['qq']?></td>
  116. </tr>
  117. </table>
  118. </td>
  119. <td class='msgtd'><?php echo $fields['msg']; ?></td>
  120. </tr>
  121. <tr>
  122. <td height="26" class="bottomtd">
  123. <a href='mailto:<?php echo $fields["email"]?>'><img src='guestbook/images/mail.gif' border=0 width='16' height='16' />[邮件]</a> &nbsp;
  124. <a href='http://<?php echo $fields['homepage']?>' target='_blank'><img src='guestbook/images/home.gif' border=0 width='16' height='16' />[主页]</a> &nbsp;
  125. <a href='guestbook.php?action=admin&id=<?php echo $fields['id']; ?>'><img src='guestbook/images/quote.gif' border=0 height=16 width=16 />[回复/编辑]</a> &nbsp;
  126. <?php if($g_isadmin) { ?>
  127. <a href='guestbook.php?action=admin&id=<?php echo $fields['id']; ?>&job=del'><img src='guestbook/images/del.gif' border=0 height=16 width=16 />[删除]</a>
  128. <?php } ?>
  129. </td>
  130. </tr>
  131. </table>
  132. <?php if($ntt==0){$ntt=1;}else{ $ntt=0; } ?>
  133. {/dede:datalist}
  134. <table border='0' cellpadding='0' cellspacing='0' width='100%' align='center' class='pagetable'>
  135. <tr>
  136. <td align="center" height='28'> {dede:pagelist listsize='5'/} </td>
  137. </tr>
  138. </table>
  139. <table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" bgcolor="#dedede" class='writetable'>
  140. <form method="post" action="guestbook.php" name="form1">
  141. <input type='hidden' name='action' value='save' />
  142. <tr>
  143. <td colspan='4' class='writetd'><b>发布留言:</b><a name='write'></a></td>
  144. </tr>
  145. <tr bgcolor="#ffffff">
  146. <td width="10%" align="center" nowrap><font color="#FF0000">*</font>标题:</td>
  147. <td width="40%"><input type="text" maxlength="50" name="title" size="30" class="ipt-txt"/></td>
  148. <td width="10%" align="center" nowrap>验 证 码:</td>
  149. <td>
  150. <table border="0" cellspacing="0" cellpadding="0">
  151. <tr>
  152. <td width="70"><input name="validate" type="text" id="vdcode2" class="ipt-txt" style="width:60px;text-transform: uppercase;" /></td>
  153. <td><img src='../plus/vdimgck.php'/></td>
  154. </tr>
  155. </table>
  156. </td>
  157. </tr>
  158. <tr bgcolor="#ffffff">
  159. <td width="10%" align="center" nowrap><font color="#FF0000">*</font>你的姓名:</td>
  160. <td width="40%"><input type="text" maxlength="10" name="uname" size="30" value="<?php echo $g_name; ?>" class="ipt-txt"/></td>
  161. <td width="10%" align="center" nowrap>OICQ号码:</td>
  162. <td width="40%"><input maxlength="20" type="text" name="qq" size="20" class="ipt-txt" /></td>
  163. </tr>
  164. <tr bgcolor="#ffffff">
  165. <td align="center" nowrap>&nbsp;电子邮件:</td>
  166. <td><input maxlength="80" type="text" name="email" size="30" class="ipt-txt"/></td>
  167. <td align="center" nowrap height="12">个人主页:</td>
  168. <td height="12"><input maxlength="80" type="text" name="homepage" size="20" class="ipt-txt" /></td>
  169. </tr>
  170. <tr bgcolor="#ffffff">
  171. <td align="center" nowrap width="10%"><font color="#FF0000">*</font>留言内容:<br />
  172. (1000字内) </td>
  173. <td align="left" width="40%">
  174. <textarea name="msg" cols="38" rows="5" class="textarea ipt-txt"></textarea>
  175. </td>
  176. <td align="center" nowrap height="2" width="10%">选择头像:</td>
  177. <td nowrap height="2" width="40%">
  178. <input type="radio" name="img" value="01" checked />
  179. <img src="guestbook/images/01.gif" width="25" height="25" />
  180. <input type="radio" name="img" value="02" />
  181. <img src="guestbook/images/02.gif" width="25" height="25" />
  182. <input type="radio" name="img" value="03" />
  183. <img src="guestbook/images/03.gif" width="25" height="25" />
  184. <input type="radio" name="img" value="04" />
  185. <img src="guestbook/images/04.gif" width="25" height="25" />
  186. <input type="radio" name="img" value="05" />
  187. <img src="guestbook/images/05.gif" width="25" height="25" />
  188. <input type="radio" name="img" value="06" />
  189. <img src="guestbook/images/06.gif" width="25" height="25" />
  190. <input type="radio" name="img" value="08" />
  191. <img src="guestbook/images/08.gif" width="25" height="25" />
  192. <br /><br />
  193. <input type="radio" name="img" value="13" />
  194. <img src="guestbook/images/13.gif" width="25" height="25" />
  195. <input type="radio" name="img" value="14" />
  196. <img src="guestbook/images/14.gif" width="25" height="25" />
  197. <input type="radio" name="img" value="15" />
  198. <img src="guestbook/images/15.gif" width="25" height="25" />
  199. <input type="radio" name="img" value="16" />
  200. <img src="guestbook/images/16.gif" width="25" height="25" />
  201. <input type="radio" name="img" value="17" />
  202. <img src="guestbook/images/17.gif" width="25" height="25" />
  203. <input type="radio" name="img" value="18" />
  204. <img src="guestbook/images/18.gif" width="25" height="25" />
  205. <input type="radio" name="img" value="20" />
  206. <img src="guestbook/images/20.gif" width="25" height="25" />
  207. </td>
  208. </tr>
  209. <tr bgcolor="#ffffff">
  210. <td colspan="4" align="center" nowrap><input maxlength="1000" type="submit" name="Submit" value="提 交" class="btn-2" />
  211. &nbsp;&nbsp;
  212. <input type="reset" name="Submit2" value="取 消" class="btn-2" /></td>
  213. </tr>
  214. </form>
  215. </table>
  216. <br />
  217. </div>
  218. {dede:include filename='plus_foot.htm' /}
  219. </div>
  220. </body>
  221. </html>