inform_handle.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-empty"></div>
  4. <form id="handle_form" method="post" action="{:url('Inform/inform_handle')}" name="form1">
  5. <input id="inform_id" name="inform_id" type="hidden" value="{$inform_id}"/>
  6. <table class="ds-default-table">
  7. <tbody>
  8. <tr class="noborder">
  9. <td colspan="2" class="required">
  10. <label>{$Think.lang.ds_goods_name}:</label>
  11. </td>
  12. </tr>
  13. <tr class="noborder">
  14. <td class="vatop rowform" id="goods_name">{$inform_goods_name}</td>
  15. <td class="vatop tips"></td>
  16. </tr>
  17. <tr>
  18. <td colspan="2" class="required"><label>{$Think.lang.inform_handle_type}:</label></td>
  19. </tr>
  20. <tr class="noborder">
  21. <td class="vatop rowform">
  22. <label class="radio-label">
  23. <i class="radio-common selected">
  24. <input type="radio" value="1" name="inform_handle_type" checked="checked">
  25. </i>
  26. <span>{$Think.lang.inform_handle_type_unuse_message}</span>
  27. </label>
  28. <label class="radio-label">
  29. <i class="radio-common">
  30. <input type="radio" value="2" name="inform_handle_type">
  31. </i>
  32. <span>{$Think.lang.inform_handle_type_venom_message}</span>
  33. </label>
  34. <label class="radio-label">
  35. <i class="radio-common">
  36. <input type="radio" value="3" name="inform_handle_type">
  37. </i>
  38. <span>{$Think.lang.inform_handle_type_valid_message}</span>
  39. </label>
  40. </td>
  41. <td class="vatop tips"></td>
  42. </tr>
  43. <tr>
  44. <td colspan="2" class="required"><label>{$Think.lang.inform_handle_message}:</label></td>
  45. </tr>
  46. <tr class="noborder">
  47. <td class="vatop rowform"><textarea class="tarea" name="inform_handle_message" rows="6" id="inform_handle_message"></textarea></td>
  48. <td class="vatop tips"></td>
  49. </tr>
  50. <tfoot>
  51. <tr class="tfoot">
  52. <td colspan="2" ><a href="JavaScript:void(0);" class="btn" id="btn_handle_submit"><span>{$Think.lang.ds_submit}</span></a></td>
  53. </tr>
  54. </tfoot>
  55. </table>
  56. </form>
  57. </div>
  58. <script type="text/javascript">
  59. $(document).ready(function () {
  60. //默认选中第一个radio
  61. $(":radio").first().attr("checked", true);
  62. $("#btn_handle_submit").click(function () {
  63. if ($("#inform_handle_message").val() == '') {
  64. layer.alert("{$Think.lang.inform_handle_message_null}");
  65. } else {
  66. layer.confirm("{$Think.lang.inform_handle_confirm}", {
  67. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  68. title: false,
  69. }, function () {
  70. $("#handle_form").submit();
  71. });
  72. }
  73. });
  74. });
  75. </script>