setting.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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.wechat}</h3>
  7. <h5></h5>
  8. </div>
  9. </div>
  10. </div>
  11. <form id='Wechat_form' method="post" name="form1">
  12. <table class="ds-default-table">
  13. <tbody>
  14. <tr class="noborder">
  15. <td class="required w150"><label class="validation" for="apiurl">{$Think.lang.wx_url}:</label></td>
  16. <td class="vatop rowform"><input id="apiurl" name="apiurl" value="{$wx_apiurl}" class="input-txt w400" type="text"></td>
  17. <td class="vatop tips"></td>
  18. </tr>
  19. <tr class="noborder">
  20. <td class="required w150"><label class="validation" for="wx_token">{$Think.lang.wx_token}:</label></td>
  21. <td class="vatop rowform"><input id="wx_token" name="wx_token" value="{$wx_config.token}" class="input-txt w400" type="text"></td>
  22. <td class="vatop tips"></td>
  23. </tr>
  24. <tr class="noborder">
  25. <td class="required w150"><label class="validation" for="wx_name">{$Think.lang.wx_name}:</label></td>
  26. <td class="vatop rowform"><input id="wx_name" name="wx_name" value="{$wx_config.wxname}" class="input-txt w400" type="text"></td>
  27. <td class="vatop tips"></td>
  28. </tr>
  29. <tr class="noborder">
  30. <td class="required w150"><label class="validation" for="wx_appid">{$Think.lang.wx_appid}:</label></td>
  31. <td class="vatop rowform"><input id="wx_appid" name="wx_appid" value="{$wx_config.appid}" class="input-txt w400" type="text"></td>
  32. <td class="vatop tips"></td>
  33. </tr>
  34. <tr class="noborder">
  35. <td class="required w150"><label class="validation" for="wx_AppSecret">{$Think.lang.wx_AppSecret}:</label></td>
  36. <td class="vatop rowform"><input id="wx_AppSecret" name="wx_AppSecret" value="{$wx_config.appsecret}" class="input-txt w400" type="text"></td>
  37. <td class="vatop tips"></td>
  38. </tr>
  39. <tr class="noborder">
  40. <td class="required w150"><label class="" for="xcx_appid">{$Think.lang.xcx_appid}:</label></td>
  41. <td class="vatop rowform"><input id="wx_appid" name="xcx_appid" value="{$wx_config.xcx_appid}" class="input-txt w400" type="text"></td>
  42. <td class="vatop tips"></td>
  43. </tr>
  44. <tr class="noborder">
  45. <td class="required w150"><label class="" for="xcx_AppSecret">{$Think.lang.xcx_AppSecret}:</label></td>
  46. <td class="vatop rowform"><input id="wx_AppSecret" name="xcx_AppSecret" value="{$wx_config.xcx_appsecret}" class="input-txt w400" type="text"></td>
  47. <td class="vatop tips"></td>
  48. </tr>
  49. </tbody>
  50. <tfoot>
  51. <tr class="tfoot">
  52. <td><input type="hidden" name="wx_id" value="{$wx_config.id}"></td>
  53. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  54. </tr>
  55. </tfoot>
  56. </table>
  57. </form>
  58. </div>
  59. <script type="text/javascript">
  60. $(function() {
  61. $('#Wechat_form').validate({
  62. errorPlacement: function(error, element) {
  63. error.appendTo(element.parent().parent().find('td:last'));
  64. },
  65. rules: {
  66. apiurl : {
  67. required: true,
  68. },
  69. wx_token : {
  70. required: true,
  71. },
  72. wx_name : {
  73. required: true,
  74. },
  75. wx_appid : {
  76. required: true,
  77. },
  78. wx_AppSecret :{
  79. required: true,
  80. }
  81. },
  82. messages: {
  83. apiurl : {
  84. required: '{$Think.lang.ds_none_input}{$Think.lang.wx_url}',
  85. },
  86. wx_token : {
  87. required: '{$Think.lang.ds_none_input}{$Think.lang.wx_token}',
  88. },
  89. wx_name : {
  90. required: '{$Think.lang.ds_none_input}{$Think.lang.wx_name}',
  91. },
  92. wx_appid : {
  93. required: '{$Think.lang.ds_none_input}{$Think.lang.wx_appid}',
  94. },
  95. wx_AppSecret :{
  96. required: '{$Think.lang.ds_none_input}{$Think.lang.wx_AppSecret}',
  97. }
  98. }
  99. });
  100. });
  101. </script>