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

116 lines
4.2KB

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