consulting.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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_consulting}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="get" name="formSearch">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt>{$Think.lang.consulting_index_sender}</dt>
  17. <dd><input class="txt" type="text" name="member_name" id="member_name" value="{present name="member_name"}{$member_name}{/present}" /></dd>
  18. </dl>
  19. <dl>
  20. <dt>{$Think.lang.consulting_index_content}</dt>
  21. <dd><input class="txt" type="text" name="consult_content" id="consult_content" value="{present name="consult_content"}{$consult_content}{/present}" /></dd>
  22. </dl>
  23. <dl>
  24. <dt>{$Think.lang.consulting_index_type}</dt>
  25. <dd>
  26. <select name="ctid">
  27. <option value="0">{$Think.lang.ds_all}</option>
  28. {notempty name="consult_type"}
  29. {foreach name="consult_type" item="val"}
  30. <option {if $Request.get.ctid == $val.consulttype_id}selected="selected"{/if} value="{$val.consulttype_id}">{$val.consulttype_name}</option>
  31. {/foreach}
  32. {/notempty}
  33. </select>
  34. </dd>
  35. </dl>
  36. <dl>
  37. <dt></dt>
  38. <dd></dd>
  39. </dl>
  40. <div class="btn_group">
  41. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  42. {if $filtered}
  43. <a href="{:url('Consulting/consulting')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  44. {/if}
  45. </div>
  46. </div>
  47. </form>
  48. <div class="explanation" id="explanation">
  49. <div class="title" id="checkZoom">
  50. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  51. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  52. </div>
  53. <ul>
  54. <li>{$Think.lang.consulting_index_help1}</li>
  55. </ul>
  56. </div>
  57. <table class="ds-default-table">
  58. <tbody>
  59. {notempty name="consult_list"}
  60. {foreach name="consult_list" item="consult"}
  61. <tr class="space">
  62. <th class="w24"><input type="checkbox" class="checkitem" name="consult_id[]" value="{$consult.consult_id}" /></th>
  63. <th>
  64. <strong>{$Think.lang.consulting_index_object}:&nbsp;</strong>
  65. <span><a target="_blank" href="{:url('home/Goods/index',['goods_id'=>$consult.goods_id,'id'=>$consult.store_id])}">{$consult.goods_name}</a></span>
  66. </th>
  67. <th><strong>{$Think.lang.ds_store_name}:</strong>&nbsp;<a target="_blank" href="{:url('home/Store/index',['store_id'=>$consult.store_id])}" class="normal">{$consult.store_name}</a>
  68. </th>
  69. <th><strong class="fl">{$Think.lang.ds_handle}:</strong>&nbsp;
  70. <a href="javascript:dsLayerConfirm('{:url('Consulting/delete',['consult_id'=>$consult.consult_id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  71. </th>
  72. </tr>
  73. <tr>
  74. <td colspan="12">
  75. <fieldset style="border: 1px dashed #E7E7E7;padding: 0.5em;">
  76. <legend>
  77. <span><strong>{$Think.lang.consulting_index_sender}:</strong>&nbsp;
  78. {empty name="consult.member_id"}
  79. {$Think.lang.consulting_index_guest}
  80. {else /}
  81. {$consult.member_name}
  82. {/empty}
  83. </span>
  84. &nbsp;&nbsp;&nbsp;&nbsp;
  85. <span><strong>{$Think.lang.consulting_index_time}:</strong>&nbsp;{$consult.consult_addtime|date="Y-m-d H:i:s"}</span>
  86. </legend>
  87. <div class="formelement" id="hutia_{$key}">{$consult.consult_content}</div>
  88. </fieldset>
  89. <fieldset style="background: none repeat scroll 0 0 #FFFAE3;padding: 0.5em;border: 1px dashed #F1E38B;">
  90. <legend><strong>{$Think.lang.consulting_index_reply}:</strong></legend>
  91. <div class="formelement" id="hutia2_{$key}">
  92. {notempty name="consult.consult_reply"}
  93. {$consult.consult_reply}
  94. {else /}
  95. {$Think.lang.consulting_index_no_reply}
  96. {/notempty}
  97. </div>
  98. </fieldset>
  99. </td>
  100. </tr>
  101. {/foreach}
  102. {else /}
  103. <tr class="no_data">
  104. <td colspan="20">{$Think.lang.ds_no_record}</td>
  105. </tr>
  106. {/notempty}
  107. </tbody>
  108. <tfoot>
  109. {notempty name="consult_list"}
  110. <tr class="tfoot">
  111. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  112. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  113. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  114. </td>
  115. </tr>
  116. {/notempty}
  117. </tfoot>
  118. </table>
  119. {$show_page|raw}
  120. </div>
  121. <script type="text/javascript">
  122. function submit_delete(ids_str) {
  123. _uri = ADMINSITEURL + "/Consulting/delete.html?consult_id=" + ids_str;
  124. dsLayerConfirm(_uri, '{$Think.lang.ds_ensure_del}');
  125. }
  126. </script>