setting_edit.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <div class="eject_con">
  2. <div id="warning" class="alert alert-error"></div>
  3. <form method="post" target="_parent" action="{:url('Sellermsg/save_msg_setting')}" id="store_msg_setting">
  4. <input type="hidden" name="code" value="{$smt_info.storemt_code}" />
  5. {if $smt_info.storemt_message_switch}
  6. <dl>
  7. <dt>
  8. <input type="checkbox" class="checkbox mr5" name="message_forced" value="1" {if $smt_info.storemt_message_forced}disabled="disabled" checked="checked"{/if}{if $smsetting_info.storems_message_switch}checked="checked"{/if} /> <strong>{$Think.lang.business_alert}{$Think.lang.ds_colon}</strong>
  9. </dt>
  10. <dd>{$Think.lang.send_station_message_automatically}。</dd>
  11. </dl>
  12. {/if}
  13. {if $smt_info.storemt_short_switch}
  14. <dl>
  15. <dt>
  16. <input type="checkbox" class="checkbox mr5" name="short_forced" id="short_forced" value="1" {if $smt_info.smt_short_forced}disabled="disabled" checked="checked"{/if}{if $smsetting_info.storems_short_switch}checked="checked"{/if} /> <strong>{$Think.lang.sms_alerts}{$Think.lang.ds_colon}</strong>
  17. </dt>
  18. <dd>
  19. <input type="text" class="text w250" name="storems_short_number" id="storems_short_number"
  20. value="{$smsetting_info.storems_short_number}" />
  21. <p class="hint">{$Think.lang.select_sms_alerts}。</p>
  22. </dd>
  23. </dl>
  24. {/if}
  25. {if $smt_info.storemt_mail_switch}
  26. <dl>
  27. <dt>
  28. <input type="checkbox" class="checkbox mr5" name="mail_forced" id="mail_forced" value="1" {if $smt_info.storemt_mail_forced}disabled="disabled" checked="checked"{/if}{if $smsetting_info.storems_mail_switch}checked="checked"{/if} /> <strong>{$Think.lang.email_alerts}{$Think.lang.ds_colon}</strong>
  29. </dt>
  30. <dd>
  31. <input type="text" class="text w250" name="storems_mail_number" id="storems_mail_number" value="{$smsetting_info.storems_mail_number}" />
  32. <p class="hint">{$Think.lang.select_email_alerts}。</p>
  33. </dd>
  34. </dl>
  35. {/if}
  36. {if $smt_info.storemt_weixin_switch}
  37. <dl>
  38. <dt>
  39. <input type="checkbox" class="checkbox mr5" name="weixin_forced" id="weixin_forced" value="1" {if $smt_info.storemt_weixin_forced}disabled="disabled" checked="checked"{/if}{if $smsetting_info.storems_weixin_switch}checked="checked"{/if} /> <strong>{$Think.lang.weixin_alerts}{$Think.lang.ds_colon}</strong>
  40. </dt>
  41. <dd>{$Think.lang.select_weixin_alerts}。</dd>
  42. </dl>
  43. {/if}
  44. <div class="bottom">
  45. <input type="submit" class="submit" value="{$Think.lang.ds_submit}" />
  46. </div>
  47. </form>
  48. </div>
  49. <script>
  50. $(function(){
  51. $('#store_msg_setting').validate({
  52. errorLabelContainer: $('#warning'),
  53. submitHandler:function(form){
  54. ds_ajaxpost('store_msg_setting');
  55. },
  56. rules : {
  57. storems_short_number : {
  58. required : '#short_forced:checked',
  59. digits : true,
  60. rangelength : [11,11]
  61. },
  62. storems_mail_number : {
  63. required : '#mail_forced:checked',
  64. email : true
  65. }
  66. },
  67. messages : {
  68. storems_short_number : {
  69. required : '<i class="iconfont">&#xe64c;</i>{$Think.lang.fill_correct_phone_number}',
  70. digits : '<i class="iconfont">&#xe64c;</i>{$Think.lang.fill_correct_phone_number}',
  71. rangelength : '<i class="iconfont">&#xe64c;</i>{$Think.lang.fill_correct_phone_number}'
  72. },
  73. storems_mail_number : {
  74. required : '<i class="iconfont">&#xe64c;</i>{$Think.lang.fill_correct_email_address}',
  75. email : '<i class="iconfont">&#xe64c;</i>{$Think.lang.fill_correct_email_address}'
  76. }
  77. }
  78. });
  79. });
  80. </script>