complain_show.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="dsm-flow-layout" id="dsmComplainFlow">
  4. <div class="dsm-flow-container">
  5. <div class="title">
  6. <h3>{$Think.lang.trade_complaint_application}</h3>
  7. </div>
  8. <div class="dsm-flow-step">
  9. <dl id="state_new" class="step-first current">
  10. <dt>{$Think.lang.complain_state_new}</dt>
  11. <dd class="bg"></dd>
  12. </dl>
  13. <dl id="state_appeal" class="">
  14. <dt>{$Think.lang.complain_state_appeal}</dt>
  15. <dd class="bg"> </dd>
  16. </dl>
  17. <dl id="state_talk" class="">
  18. <dt>{$Think.lang.complain_state_talk}</dt>
  19. <dd class="bg"> </dd>
  20. </dl>
  21. <dl id="state_handle" class="">
  22. <dt>{$Think.lang.complain_state_handle}</dt>
  23. <dd class="bg"> </dd>
  24. </dl>
  25. <dl id="state_finish" class="">
  26. <dt>{$Think.lang.complain_state_finish}</dt>
  27. <dd class="bg"> </dd>
  28. </dl>
  29. </div>
  30. <div class="dsm-default-form">
  31. <h3>{$Think.lang.complain_message}</h3>
  32. <dl>
  33. <dt>{$Think.lang.complain_accused}{$Think.lang.ds_colon}</dt>
  34. <dd>{$complain_info.accused_name}</dd>
  35. <dt>{$Think.lang.complain_subject_content}{$Think.lang.ds_colon}</dt>
  36. <dd>{$complain_info.complain_subject_content}</dd>
  37. <dt>{$Think.lang.complain_datetime}{$Think.lang.ds_colon}</dt>
  38. <dd>{$complain_info.complain_datetime|date="Y-m-d H:i:s"}</dd>
  39. <dt>{$Think.lang.complain_content}{$Think.lang.ds_colon}</dt>
  40. <dd>{$complain_info.complain_content}</dd>
  41. <dt>{$Think.lang.complain_evidence}{$Think.lang.ds_colon}</dt>
  42. <dd>
  43. {if $complain_pic}
  44. <ul class="dsm-evidence-pic">
  45. {foreach name="complain_pic" item="val"}
  46. {notempty name="val"}
  47. <li><a href="{:ds_get_pic(ATTACH_COMPLAIN,$val)}" data-lightbox="lightbox-image">
  48. <img class="show_image" src="{:ds_get_pic(ATTACH_COMPLAIN,$val)}"></a></li>
  49. {/notempty}
  50. {/foreach}
  51. </ul>
  52. {else /}
  53. {$Think.lang.complain_pic_none}
  54. {if $complain_info.complain_state lt '99'}
  55. <a class="dsm-btn-mini dsm-btn-orange" href="javascript:void(0);" onclick="$('#post_add_pic_form').toggle();" title="{$Think.lang.complain_add_pic}"><i class="iconfont">&#xe733;</i>{$Think.lang.complain_add_pic}</a>
  56. <form style="display: none;" id="post_add_pic_form" method="post" action="{:url('Membercomplain/complain_add_pic',['complain_id'=>$complain_info.complain_id])}" enctype="multipart/form-data">
  57. <p>
  58. <input name="input_complain_pic1" type="file" />
  59. </p>
  60. <p>
  61. <input name="input_complain_pic2" type="file" />
  62. </p>
  63. <p>
  64. <input name="input_complain_pic3" type="file" />
  65. </p>
  66. <p>
  67. <input id="add_pic_submit_button" type="button" class="submit" value="{$Think.lang.complain_text_submit}" >
  68. </p>
  69. </form>
  70. {/if}
  71. {/if}
  72. </dd>
  73. </dl>
  74. {egt name="complain_info.complain_state" value="30"}
  75. {gt name="complain_info.appeal_datetime" value="0"}
  76. <h3>{$Think.lang.complain_appeal_message}</h3>
  77. <dl>
  78. <dt>{$Think.lang.complain_appeal_datetime}{$Think.lang.ds_colon}</dt>
  79. <dd>{$complain_info.appeal_datetime|date="Y-m-d H:i:s"}</dd>
  80. <dt>{$Think.lang.complain_appeal_content}{$Think.lang.ds_colon}</dt>
  81. <dd>{$complain_info.appeal_message}</dd>
  82. <dt>{$Think.lang.complain_appeal_evidence}{$Think.lang.ds_colon}</dt>
  83. <dd>
  84. {notempty name="appeal_pic"}
  85. <ul class="dsm-evidence-pic">
  86. {foreach name="appeal_pic" item="val"}
  87. {notempty name="val"}
  88. <li>
  89. <a href="{:ds_get_pic(ATTACH_COMPLAIN,$val)}" data-lightbox="lightbox-image-1">
  90. <img class="show_image" src="{:ds_get_pic(ATTACH_COMPLAIN,$val)}">
  91. </a>
  92. </li>
  93. {/notempty}
  94. {/foreach}
  95. </ul>
  96. {else /}
  97. {$Think.lang.complain_pic_none}
  98. {/notempty}
  99. </dd>
  100. </dl>
  101. {/gt}
  102. {include file="default/member/membercomplain/complain_talk" /}
  103. {/egt}
  104. {eq name="complain_info.complain_state" value="99"}
  105. <h3>{$Think.lang.final_handle_message}</h3>
  106. <dl>
  107. <dt>{$Think.lang.processing_opinion}{$Think.lang.ds_colon}</dt>
  108. <dd>{$complain_info.final_handle_message}</dd>
  109. <dt>{$Think.lang.final_handle_datetime}{$Think.lang.ds_colon}</dt>
  110. <dd>{$complain_info.final_handle_datetime|date="Y-m-d H:i:s"}</dd>
  111. </dl>
  112. {/eq}
  113. <div class="bottom"><a href="javascript:history.go(-1);" class="dsm-btn"><i class="iconfont">&#xe74e;</i>{$Think.lang.return_list}</a></div>
  114. </div>
  115. </div>
  116. {include file="default/member/membercomplain/complain_order" /}
  117. </div>
  118. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  119. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  120. <script type="text/javascript">
  121. $(document).ready(function(){
  122. var state = {empty name="complain_info.complain_state"}0{else}{$complain_info.complain_state}{/empty};
  123. if(state == 20 ){
  124. $("#state_appeal").addClass('current');
  125. }
  126. if(state == 30 ){
  127. $("#state_appeal").addClass('current');
  128. $("#state_talk").addClass('current');
  129. }
  130. if(state == 40 ){
  131. $("#state_appeal").addClass('current');
  132. $("#state_talk").addClass('current');
  133. $("#state_handle").addClass('current');
  134. }
  135. if(state == 99 ){
  136. $("#state_appeal").addClass('current');
  137. $("#state_talk").addClass('current');
  138. $("#state_handle").addClass('current');
  139. $("#state_finish").addClass('current');
  140. }
  141. $("#add_pic_submit_button").click(function(){
  142. if($("#post_add_pic_form").valid()){
  143. $('#post_add_pic_form').submit();
  144. }
  145. });
  146. $('#post_add_pic_form').validate({
  147. errorPlacement: function(error, element){
  148. $(element).next('.field_notice').hide();
  149. $(element).after(error);
  150. },
  151. });
  152. });
  153. </script>
  154. {/block}