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

119 lines
4.3KB

  1. {dede:include file='header.htm'/}
  2. <div class="wrapper mT10">
  3. <div class="west">
  4. {dede:include file='side_icon.htm'/}
  5. {dede:include file='side_class.htm'/}
  6. {dede:include file='side_visitor.htm'/}
  7. {dede:include file='side_search.htm'/}
  8. </div>
  9. <div class="east">
  10. <dl class="border">
  11. <dt class="caption"><strong>日志文章</strong></dt>
  12. <dd class="body">
  13. <div class="mp10 dashed">
  14. <div class="mB10">
  15. <h3 class="fLeft">{dede:global.arcrow[title] /}</h3>
  16. <span class="mL5 aGray">({dede:global.arcrow[pubdate] function="MyDate('y-m-d h:i',@me)" /})</span>
  17. </div>
  18. <table class="blog-content">
  19. <tr>
  20. <td>
  21. <p>{dede:global.arcrow[body] /}</p>
  22. </td>
  23. </tr>
  24. </table>
  25. <div class="clearfix"></div>
  26. </div>
  27. <!-- //评论开始 -->
  28. <div class="comment" style="padding-left:6px;">
  29. <?php if (count($msgs)>0) { ?>
  30. <h5 id="cdisplay" style="display:;">一共有 <span id="sums"><?php echo count($msgs);?></span> 条评论</h5>
  31. <?php
  32. //原有评论(取其前50条)
  33. foreach ($msgs as $msg)
  34. {
  35. ?>
  36. <dl id="<?php echo $msg['id']; ?>">
  37. <dd class="comment-pic left">
  38. <img src="<?php echo $msg['mface']=='' ? 'images/dfboy.png' : $msg['mface']; ?>" width="40" />
  39. </dd>
  40. <dd>
  41. <?php
  42. if ($msg['username']=='匿名' || $msg['userid']=='') {
  43. echo $msg['username'];
  44. }
  45. else {
  46. ?>
  47. <a href="index.php?uid=<?php echo urlencode($msg['userid']); ?>" class="big b"><?php echo $msg['username']; ?></a>
  48. <?php } ?>
  49. <span class="gray"><?php echo MyDate('m-d H:i',$msg['dtime']);?></span> Says:
  50. </dd>
  51. <dd class="comment-content" >
  52. <span id="s_<?php echo $msg['id']; ?>"></span>
  53. <div id="r_<?php echo $msg['id']; ?>">
  54. <div class="re-comment" style="display:none;">
  55. <b><?php echo $msg['username']; ?> 于 <?php echo MyDate('m-d H:i',$msg['dtime']);?> 回复:</b>
  56. <div id="r_content_<?php echo $msg['id']; ?>"></div>
  57. </div>
  58. <div>
  59. <img src="{dede:global.cfg_templets_skin/}/images/mood/<?php echo 'ico-mood-'.($msg['face']>0 ? $msg['face'] : 6).'.gif'; ?>" /><?php echo $msg['msg']; ?>
  60. </div>
  61. </div>
  62. </dd>
  63. </dl>
  64. <?php
  65. } }
  66. ?>
  67. <div class="big"></div>
  68. <form action="feedback.php" method="post" name="feedback">
  69. <div class="post-comment">
  70. <h5>发表评论</h5>
  71. <div>
  72. {dede:var.uname /}:
  73. <input type="hidden" name="action" value="send" />
  74. <input type="hidden" name="comtype" value="comments">
  75. <input type="hidden" name="aid" value="<?php echo $aid; ?>" />
  76. <input type="hidden" name="isconfirm" value="yes" />
  77. <input type="hidden" name="cmtuser" value="{dede:var.uname /}">
  78. </div>
  79. <div>
  80. <textarea class="ip" id="cmtcontent" name="msg" style="width:90%;height:60px" ></textarea>
  81. </div>
  82. <div class="c"></div>
  83. <div class="feedbackface"">
  84. <strong style="FLOAT:left;">表情:</strong>
  85. <ul>
  86. <li><input type="radio" name='face' value='6' checked="1" /><img src="templets/images/smiley/6.gif" /></li>
  87. <li><input type="radio" name='face' value='4'/><img src="templets/images/smiley/4.gif" /></li>
  88. <li><input type="radio" name='face' value='3'/><img src="templets/images/smiley/3.gif" /></li>
  89. <li><input type="radio" name='face' value='5'/><img src="templets/images/smiley/5.gif" /></li>
  90. <li><input type="radio" name='face' value='2'/><img src="templets/images/smiley/2.gif" /></li>
  91. <li><input type="radio" name='face' value='1'/><img src="templets/images/smiley/1.gif" /></li>
  92. <li><input type="radio" name='face' value='7'/><img src="{dede:global.cfg_templets_skin/}/images/mood/ico-mood-7.gif" /></li>
  93. </ul>
  94. </div>
  95. <div class="c"></div>
  96. <table>
  97. <tr>
  98. <td>验证码:</td>
  99. <td><input name="validate" type="text" id="validate" size="10" style="height:16px;width:60px;" class="ip" /></td>
  100. <td><img src='../plus/vdimgck.php' width='60px' height='20px' /></td>
  101. <td>&nbsp;<input name="sbbt" type="submit" value="发送评论" style="width:60px;height:22px" /></td>
  102. <td><input name="notuser" type="checkbox" id="notuser" value="1" />匿名评论</td>
  103. </tr>
  104. </table>
  105. </div>
  106. </form>
  107. <div class="c" style="height:30px;"></div>
  108. </div>
  109. <!-- //评论结束 -->
  110. <div class="clearfix"></div>
  111. </dd>
  112. </dl>
  113. </div>
  114. </div>
  115. {dede:include file='footer.htm'/}
  116. </body>
  117. </html>