groupbuy_evaluate.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {notempty name="goodsevallist"}
  2. {foreach name="goodsevallist" item="v" key="k" }
  3. <div id="t" class="dsg-evaluate-floor">
  4. <div class="user-avatar"> <img src="{:get_member_avatar_for_id($v['geval_frommemberid'])}"> </div>
  5. <dl class="detail">
  6. <dt>
  7. <span class="user-name">
  8. {if $v.geval_isanonymous == 1}
  9. {:str_cut($v['geval_frommembername'],2)}***
  10. {else /}
  11. {$v.geval_frommembername}
  12. {/if}
  13. </span>
  14. <time pubdate="pubdate">[<?php echo @date('Y-m-d',$v['geval_addtime']);?>]</time>
  15. </dt>
  16. <dd>{$Think.lang.user_rating}:<span class="raty" data-score="{$v.geval_scores}"></span></dd>
  17. <dd class="content">{$Think.lang.evaluation_details}:<span>{$v.geval_content}</span></dd>
  18. {notempty name="$v.geval_explain"}
  19. <dd class="explain">{$Think.lang.explanation}:<span>{$v.geval_explain}</span></dd>
  20. {/notempty}
  21. {notempty name="$v.geval_image"}
  22. <dd> {$Think.lang.photo_posting}:
  23. <ul class="photos-thumb">
  24. {php}$image_array = explode(',', $v['geval_image']);{/php}
  25. {foreach name="image_array" item="value" }
  26. <li><a data-lightbox="lightbox-image" href="{:sns_thumb($value, 1024)}"> <img src="{:sns_thumb($value)}"> </a></li>
  27. {/foreach}
  28. </ul>
  29. </dd>
  30. {/notempty}
  31. </dl>
  32. </div>
  33. {/foreach}
  34. <div class="tc pr5 pb5 pr">
  35. <div class="pagination"> {$show_page|raw}</div>
  36. </div>
  37. {else /}
  38. <div class="no-buyer">{$Think.lang.no_record}</div>
  39. {/notempty}
  40. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  41. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  42. <script type="text/javascript">
  43. $(document).ready(function(){
  44. $('.raty').raty({
  45. path: "{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/img",
  46. readOnly: true,
  47. score: function() {
  48. return $(this).attr('data-score');
  49. }
  50. });
  51. $('#groupbuy_evaluate').find('.demo').ajaxContent({
  52. event:'click', //mouseover
  53. loaderType:"img",
  54. loadingMsg:"{$Think.HOME_SITE_ROOT}/images/treetable/transparent.gif",
  55. target:'#groupbuy_evaluate'
  56. });
  57. });
  58. </script>