index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_evaluate}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.ds_goods_name}</dt>
  16. <dd><input class="txt" type="text" name="goods_name" id="goods_name" value="{$Request.get.goods_name}" /></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.ds_store_name}</dt>
  20. <dd><input class="txt" type="text" name="store_name" id="store_name" value="{$Request.get.store_name}" /></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.admin_evaluate_addtime}</dt>
  24. <dd>
  25. <input class="txt date" type="text" name="stime" id="stime" value="{$Request.get.stime}" />
  26. ~
  27. <input class="txt date" type="text" name="etime" id="etime" value="{$Request.get.etime}" />
  28. </dd>
  29. </dl>
  30. <div class="btn_group">
  31. <input type="submit"class="btn" value="{$Think.lang.ds_query}"/>
  32. {if $filtered}
  33. <a href="{:url('Evaluate/evalgoods_list')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  34. {/if}
  35. </div>
  36. </div>
  37. </form>
  38. <div class="explanation" id="explanation">
  39. <div class="title" id="checkZoom">
  40. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  41. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  42. </div>
  43. <ul>
  44. <li>{$Think.lang.admin_evaluate_help1}</li>
  45. <li>{$Think.lang.admin_evaluate_help2}</li>
  46. </ul>
  47. </div>
  48. <table class="ds-default-table">
  49. <thead>
  50. <tr class="thead">
  51. <th class="w300">{$Think.lang.ds_goods_name} </th>
  52. <th>{$Think.lang.admin_evaluate_buyerdesc}</th>
  53. <th class="w108 align-center">{$Think.lang.admin_evaluate_frommembername} </th>
  54. <th class="w108 align-center">{$Think.lang.ds_store_name}</th>
  55. <th class="w72 align-center">{$Think.lang.ds_handle}</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. {notempty name="evalgoods_list"}
  60. {foreach name="evalgoods_list" item="v"}
  61. <tr class="hover">
  62. <td><a href="{:url('home/Goods/index',['goods_id'=>$v.geval_goodsid])}" target="_blank">{$v.geval_goodsname}</a></td>
  63. <td class="evaluation"><div>{$Think.lang.admin_geval_scores}:<span class="raty" data-score="{$v.geval_scores}"></span><time>[{:date('Y-m-d',$v.geval_addtime)}]</time></div>
  64. <div>{$Think.lang.admin_geval_content}:{$v.geval_content}</div>
  65. {notempty name="v.geval_image"}
  66. <div>{$Think.lang.admin_geval_image}:
  67. <ul class="evaluation-pic-list">
  68. <?php $image_array = explode(',', $v['geval_image']);?>
  69. {foreach name="image_array" item="value"}
  70. <li style="width: auto"><a data-lightbox="lightbox-image" href="{:sns_thumb($value, 1024)}"><img src="{:sns_thumb($value)}"> </a></li>
  71. {/foreach}
  72. </ul>
  73. </div>
  74. {/notempty}
  75. {notempty name="v.geval_explain"}
  76. <div id="explain_div_{$v.geval_id}"> <span style="color:#996600;padding:5px 0px;">[{$Think.lang.admin_evaluate_explain}]{$v.geval_explain}</span> </div>
  77. {/notempty}</td>
  78. <td class="align-center">{$v.geval_frommembername}</td>
  79. <td class="align-center">{$v.geval_storename}</td>
  80. <td class="align-center"><a href="javascript:dsLayerConfirm('{:url('Evaluate/evalgoods_del',['geval_id'=>$v.geval_id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a></td>
  81. </tr>
  82. {/foreach}
  83. {else /}
  84. <tr class="no_data">
  85. <td colspan="15">{$Think.lang.ds_no_record}</td>
  86. </tr>
  87. {/notempty}
  88. </table>
  89. {$show_page|raw}
  90. </div>
  91. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  92. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  93. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/jquery.raty.min.js"></script>
  94. <script type="text/javascript">
  95. $(document).ready(function(){
  96. $('#stime').datepicker({dateFormat: 'yy-mm-dd'});
  97. $('#etime').datepicker({dateFormat: 'yy-mm-dd'});
  98. $('.raty').raty({
  99. path: "{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/img",
  100. readOnly: true,
  101. score: function() {
  102. return $(this).attr('data-score');
  103. }
  104. });
  105. });
  106. </script>