consult_reply.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_mall_consult}</h3>
  7. <h5></h5>
  8. </div>
  9. </div>
  10. </div>
  11. <form id="reply_form" method="post" name="reply_form">
  12. <input type="hidden" name="mallconsult_id" value="{$consult_info.mallconsult_id}" />
  13. <table class="ds-default-table">
  14. <tbody>
  15. <tr class="noborder">
  16. <td colspan="2" class="required">{$Think.lang.ds_member_name}:</td>
  17. </tr>
  18. <tr class="noborder">
  19. <td class="vatop rowform">{$consult_info.member_name}</td>
  20. <td class="vatop tips"></td>
  21. </tr>
  22. <tr class="noborder">
  23. <td colspan="2" class="required">{$Think.lang.mallconsult_content}:</td>
  24. </tr>
  25. <tr class="noborder">
  26. <td class="vatop rowform">{$consult_info.mallconsult_content}</td>
  27. <td class="vatop tips"></td>
  28. </tr>
  29. <tr>
  30. <td colspan="2" class="required">{$Think.lang.mallconsult_addtime}: </td>
  31. </tr>
  32. <tr class="noborder">
  33. <td class="vatop rowform">{:date('Y-m-d H:i:s',$consult_info.mallconsult_addtime)}</td>
  34. <td class="vatop tips"></td>
  35. </tr>
  36. <tr>
  37. <td colspan="2" class="required">{$Think.lang.reply_content}: </td>
  38. </tr>
  39. <tr class="noborder">
  40. <td class="vatop rowform"><textarea name="reply_content" class="tarea" rows="6">{$consult_info.mallconsult_reply_content}</textarea></td>
  41. <td class="vatop tips">{$Think.lang.reply_content_tips}</td>
  42. </tr>
  43. </tbody>
  44. <tfoot>
  45. <tr class="tfoot">
  46. <td colspan="15" ><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  47. </tr>
  48. </tfoot>
  49. </table>
  50. </form>
  51. </div>
  52. <script>
  53. $(function(){
  54. $("#reply_form").validate({
  55. errorPlacement: function(error, element){
  56. error.appendTo(element.parent().parent().prev().find('td:first'));
  57. },
  58. rules : {
  59. reply_content : {
  60. required : true,
  61. maxlength : 255
  62. }
  63. },
  64. messages : {
  65. reply_content : {
  66. required : '{$Think.lang.mallconsult_content_required}',
  67. maxlength : '{$Think.lang.mallconsult_content_maxlength}'
  68. }
  69. }
  70. });
  71. });
  72. </script>