third.proprice.edit.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  2. <style>
  3. .layui-form-select .layui-input {
  4. padding: 13px 5px;
  5. }
  6. .layui-form-select dl {
  7. top: 29px !important;
  8. }
  9. .layui-form-select {
  10. width: 85%;
  11. }
  12. .layui-select-title {
  13. width: 100%;
  14. }
  15. .page .fixed-bar .item-title h3 {
  16. margin-top: 18px !important;
  17. margin-bottom: 10px !important;
  18. font-weight: 700 !important;
  19. }
  20. .tab-base li span {
  21. font-size: 12px !important;
  22. }
  23. </style>
  24. <div class="page">
  25. <div class="fixed-bar">
  26. <div class="item-title">
  27. <h3>增值业务管理</h3>
  28. <ul class="tab-base">
  29. <li><a href="index.php?act=refill_third&op=third_proprice&system_code=<?php echo $_GET['system_code'];?>"><span>通道产品列表</span></a></li>
  30. <li><a href="JavaScript:void(0);" class="current"><span><?php echo $lang['nc_update'] ?>通道产品</span></a></li>
  31. </ul>
  32. </div>
  33. </div>
  34. <div class="fixed-empty"></div>
  35. <form id="user_form" enctype="multipart/form-data" method="post" class="layui-form">
  36. <input type="hidden" name="form_submit" value="ok"/>
  37. <table class="table tb-type2">
  38. <tbody>
  39. <tr class="noborder">
  40. <td colspan="2" class="required"><label for="product_name">产品名称:</label></td>
  41. </tr>
  42. <tr class="noborder">
  43. <td class="vatop rowform"><?php echo $output['third_product']['product_name'];?></td>
  44. <td class="vatop tips"></td>
  45. </tr>
  46. <tr class="noborder">
  47. <td colspan="2" class="required"><label for="refill_amount">产品面值:</label></td>
  48. </tr>
  49. <tr class="noborder">
  50. <td><?php echo $output['third_product']['refill_amount'];?></td>
  51. <td class="vatop tips"></td>
  52. </tr>
  53. <tr class="noborder">
  54. <td colspan="2" class="required"><label for="store">上游选择:</label></td>
  55. </tr>
  56. <tr class="">
  57. <td class="vatop rowform"><?php echo $output['channel_product']['channel_name'];?></td>
  58. <td class="vatop tips"></td>
  59. </tr>
  60. <tr class="noborder">
  61. <td colspan="2" class="required"><label class="validation" for="goods_id">商品ID:</label></td>
  62. </tr>
  63. <tr class="noborder">
  64. <td class="vatop rowform"><input type="text" value="" name="goods_id" id="goods_id" class="txt"></td>
  65. <td class="vatop tips"></td>
  66. </tr>
  67. <tr class="noborder">
  68. <td colspan="2" class="required"><label class="validation" for="channel_product_name">通道产品名称:</label></td>
  69. </tr>
  70. <tr class="noborder">
  71. <td class="vatop rowform"><input type="text" value="" name="channel_product_name" id="channel_product_name" class="txt"></td>
  72. <td class="vatop tips"></td>
  73. </tr>
  74. <tr class="noborder">
  75. <td colspan="2" class="required"><label class="validation" for="channel_code">通道code:</label></td>
  76. </tr>
  77. <tr class="noborder">
  78. <td class="vatop rowform"><input type="text" value="" name="channel_code" id="channel_code" class="txt"></td>
  79. <td class="vatop tips"></td>
  80. </tr>
  81. <tr>
  82. <td colspan="2" class="required"><label class="validation" for="channel_amount">折扣价格:</label></td>
  83. </tr>
  84. <tr class="noborder">
  85. <td class="vatop rowform"><input type="text" id="channel_amount" name="channel_amount" class="txt"></td>
  86. <td class="vatop tips"></td>
  87. </tr>
  88. <tr>
  89. <td colspan="2" class="required"><label class="validation" for="recharge_type">充值类型:</label></td>
  90. </tr>
  91. <tr class="noborder">
  92. <td>
  93. <select name="recharge_type" id="recharge_type">
  94. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  95. <option value="1">直充</option>
  96. <option value="2">卡密</option>
  97. <option value="3">直充+卡密</option>
  98. </select>
  99. </td>
  100. </tr>
  101. </tbody>
  102. <tfoot>
  103. <tr class="tfoot">
  104. <td colspan="15"><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span><?php echo $lang['nc_submit']; ?></span></a></td>
  105. </tr>
  106. </tfoot>
  107. </table>
  108. </form>
  109. </div>
  110. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/dialog/dialog.js" id="dialog_js"
  111. charset="utf-8"></script>
  112. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  113. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/ajaxfileupload/ajaxfileupload.js"></script>
  114. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.Jcrop/jquery.Jcrop.js"></script>
  115. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
  116. <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
  117. <link href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.Jcrop/jquery.Jcrop.min.css" rel="stylesheet" type="text/css"
  118. id="cssfile2"/>
  119. <script type="text/javascript">
  120. $(function () {
  121. //按钮先执行验证再提交表单
  122. $("#submitBtn").click(function () {
  123. if ($("#user_form").valid()) {
  124. $("#user_form").submit();
  125. }
  126. });
  127. $('#user_form').validate({
  128. errorPlacement: function (error, element) {
  129. error.appendTo(element.parent().parent().prev().find('td:first'));
  130. },
  131. rules: {
  132. store: {
  133. required: true,
  134. },
  135. channel_product_name: {
  136. required: true,
  137. },
  138. goods_id: {
  139. required: true,
  140. },
  141. channel_code: {
  142. required: true,
  143. },
  144. channel_amount: {
  145. required: true,
  146. },
  147. recharge_type: {
  148. required: true,
  149. },
  150. },
  151. messages: {
  152. store: {
  153. required: '必须选择上游通道',
  154. },
  155. channel_product_name: {
  156. required: '通道产品名称不能为空',
  157. },
  158. goods_id: {
  159. required: '商品ID不能为空',
  160. },
  161. channel_code: {
  162. required: '通道code不能为空',
  163. },
  164. channel_amount: {
  165. required: '折扣价格不能为空',
  166. },
  167. recharge_type: {
  168. required: '充值类型不能为空',
  169. },
  170. }
  171. });
  172. });
  173. </script>