index.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{$user_login} - 我的评论</title>
  5. <meta name="keywords" content=""/>
  6. <meta name="description" content="">
  7. <include file="public@head"/>
  8. </head>
  9. <body class="body-white" id="top">
  10. <include file="public@nav"/>
  11. <div class="container tc-main">
  12. <div class="row">
  13. <div class="col-md-3">
  14. <include file="public@usernav"/>
  15. </div>
  16. <div class="col-md-9">
  17. <div class="tabs">
  18. <ul class="nav nav-tabs">
  19. <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-comments-o"></i> 我的评论</a></li>
  20. </ul>
  21. <div class="tab-content">
  22. <div class="tab-pane active" id="one">
  23. <br>
  24. <table class="table table-bordered table-striped table-hover">
  25. <thead>
  26. <tr>
  27. <th>#</th>
  28. <th>评论内容</th>
  29. <th width="150">评论时间</th>
  30. <th width="150">操作</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <foreach name="comments" item="vo">
  35. <tr>
  36. <td>{$vo.id}</td>
  37. <td>{$vo.content}</td>
  38. <td>{$vo.create_time}</td>
  39. <td>
  40. <php>
  41. $url = json_decode($vo['url'],true);
  42. </php>
  43. <a href="{:cmf_url($url['action'],$url['param'])}#comment{$vo.id}">查看</a> |
  44. <a class="js-ajax-dialog-btn"
  45. href="{:url('user/comment/delete',array('id'=>$vo['id']))}"
  46. data-msg="您确定要删除评论吗?" data-ok="" data-cacel="取消">删除评论</a>
  47. </td>
  48. </tr>
  49. </foreach>
  50. </tbody>
  51. </table>
  52. </div>
  53. <ul class="pagination">{$page}</ul>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <include file="public@footer"/>
  59. </div>
  60. <!-- /container -->
  61. <include file="public@scripts"/>
  62. </body>
  63. </html>