23855ba200c41b46c8cac7b1af142ebc.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php /*a:2:{s:62:"/data/web/mall.valimart.net/app/admin/view/wechat/setting.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('wechat')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. </div>
  39. </div>
  40. <form id='Wechat_form' method="post" name="form1">
  41. <table class="ds-default-table">
  42. <tbody>
  43. <tr class="noborder">
  44. <td class="required w150"><label class="validation" for="apiurl"><?php echo htmlentities(lang('wx_url')); ?>:</label></td>
  45. <td class="vatop rowform"><input id="apiurl" name="apiurl" value="<?php echo htmlentities($wx_apiurl); ?>" class="input-txt w400" type="text"></td>
  46. <td class="vatop tips"></td>
  47. </tr>
  48. <tr class="noborder">
  49. <td class="required w150"><label class="validation" for="wx_token"><?php echo htmlentities(lang('wx_token')); ?>:</label></td>
  50. <td class="vatop rowform"><input id="wx_token" name="wx_token" value="<?php echo htmlentities($wx_config['token']); ?>" class="input-txt w400" type="text"></td>
  51. <td class="vatop tips"></td>
  52. </tr>
  53. <tr class="noborder">
  54. <td class="required w150"><label class="validation" for="wx_name"><?php echo htmlentities(lang('wx_name')); ?>:</label></td>
  55. <td class="vatop rowform"><input id="wx_name" name="wx_name" value="<?php echo htmlentities($wx_config['wxname']); ?>" class="input-txt w400" type="text"></td>
  56. <td class="vatop tips"></td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="required w150"><label class="validation" for="wx_appid"><?php echo htmlentities(lang('wx_appid')); ?>:</label></td>
  60. <td class="vatop rowform"><input id="wx_appid" name="wx_appid" value="<?php echo htmlentities($wx_config['appid']); ?>" class="input-txt w400" type="text"></td>
  61. <td class="vatop tips"></td>
  62. </tr>
  63. <tr class="noborder">
  64. <td class="required w150"><label class="validation" for="wx_AppSecret"><?php echo htmlentities(lang('wx_AppSecret')); ?>:</label></td>
  65. <td class="vatop rowform"><input id="wx_AppSecret" name="wx_AppSecret" value="<?php echo htmlentities($wx_config['appsecret']); ?>" class="input-txt w400" type="text"></td>
  66. <td class="vatop tips"></td>
  67. </tr>
  68. <tr class="noborder">
  69. <td class="required w150"><label class="" for="xcx_appid"><?php echo htmlentities(lang('xcx_appid')); ?>:</label></td>
  70. <td class="vatop rowform"><input id="wx_appid" name="xcx_appid" value="<?php echo htmlentities($wx_config['xcx_appid']); ?>" class="input-txt w400" type="text"></td>
  71. <td class="vatop tips"></td>
  72. </tr>
  73. <tr class="noborder">
  74. <td class="required w150"><label class="" for="xcx_AppSecret"><?php echo htmlentities(lang('xcx_AppSecret')); ?>:</label></td>
  75. <td class="vatop rowform"><input id="wx_AppSecret" name="xcx_AppSecret" value="<?php echo htmlentities($wx_config['xcx_appsecret']); ?>" class="input-txt w400" type="text"></td>
  76. <td class="vatop tips"></td>
  77. </tr>
  78. </tbody>
  79. <tfoot>
  80. <tr class="tfoot">
  81. <td><input type="hidden" name="wx_id" value="<?php echo htmlentities($wx_config['id']); ?>"></td>
  82. <td colspan="15"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
  83. </tr>
  84. </tfoot>
  85. </table>
  86. </form>
  87. </div>
  88. <script type="text/javascript">
  89. $(function() {
  90. $('#Wechat_form').validate({
  91. errorPlacement: function(error, element) {
  92. error.appendTo(element.parent().parent().find('td:last'));
  93. },
  94. rules: {
  95. apiurl : {
  96. required: true,
  97. },
  98. wx_token : {
  99. required: true,
  100. },
  101. wx_name : {
  102. required: true,
  103. },
  104. wx_appid : {
  105. required: true,
  106. },
  107. wx_AppSecret :{
  108. required: true,
  109. }
  110. },
  111. messages: {
  112. apiurl : {
  113. required: '<?php echo htmlentities(lang('ds_none_input')); ?><?php echo htmlentities(lang('wx_url')); ?>',
  114. },
  115. wx_token : {
  116. required: '<?php echo htmlentities(lang('ds_none_input')); ?><?php echo htmlentities(lang('wx_token')); ?>',
  117. },
  118. wx_name : {
  119. required: '<?php echo htmlentities(lang('ds_none_input')); ?><?php echo htmlentities(lang('wx_name')); ?>',
  120. },
  121. wx_appid : {
  122. required: '<?php echo htmlentities(lang('ds_none_input')); ?><?php echo htmlentities(lang('wx_appid')); ?>',
  123. },
  124. wx_AppSecret :{
  125. required: '<?php echo htmlentities(lang('ds_none_input')); ?><?php echo htmlentities(lang('wx_AppSecret')); ?>',
  126. }
  127. }
  128. });
  129. });
  130. </script>