123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?php defined('InShopNC') or exit('Access Invalid!'); ?>
- <style>
- .layui-form-select .layui-input {
- padding: 13px 5px;
- }
- .layui-form-select dl {
- top: 29px !important;
- }
- .layui-form-select {
- width: 85%;
- }
- .layui-select-title {
- width: 100%;
- }
- .page .fixed-bar .item-title h3 {
- margin-top: 18px !important;
- margin-bottom: 10px !important;
- font-weight: 700 !important;
- }
- .tab-base li span {
- font-size: 12px !important;
- }
- </style>
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <h3>增值业务管理</h3>
- <ul class="tab-base">
- <li><a href="index.php?act=refill_third&op=third_proprice&system_code=<?php echo $_GET['system_code'];?>"><span>通道产品列表</span></a></li>
- <li><a href="JavaScript:void(0);" class="current"><span><?php echo $lang['nc_update'] ?>通道产品</span></a></li>
- </ul>
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form id="user_form" enctype="multipart/form-data" method="post" class="layui-form">
- <input type="hidden" name="form_submit" value="ok"/>
- <table class="table tb-type2">
- <tbody>
- <tr class="noborder">
- <td colspan="2" class="required"><label for="product_name">产品名称:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><?php echo $output['third_product']['product_name'];?></td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td colspan="2" class="required"><label for="refill_amount">产品面值:</label></td>
- </tr>
- <tr class="noborder">
- <td><?php echo $output['third_product']['refill_amount'];?></td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td colspan="2" class="required"><label for="store">上游选择:</label></td>
- </tr>
- <tr class="">
- <td class="vatop rowform"><?php echo $output['channel_product']['channel_name'];?></td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td colspan="2" class="required"><label class="validation" for="goods_id">商品ID:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input type="text" value="" name="goods_id" id="goods_id" class="txt"></td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td colspan="2" class="required"><label class="validation" for="channel_product_name">通道产品名称:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input type="text" value="" name="channel_product_name" id="channel_product_name" class="txt"></td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td colspan="2" class="required"><label class="validation" for="channel_code">通道code:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input type="text" value="" name="channel_code" id="channel_code" class="txt"></td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required"><label class="validation" for="channel_amount">折扣价格:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input type="text" id="channel_amount" name="channel_amount" class="txt"></td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required"><label class="validation" for="recharge_type">充值类型:</label></td>
- </tr>
- <tr class="noborder">
- <td>
- <select name="recharge_type" id="recharge_type">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="1">直充</option>
- <option value="2">卡密</option>
- <option value="3">直充+卡密</option>
- </select>
- </td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="15"><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span><?php echo $lang['nc_submit']; ?></span></a></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/dialog/dialog.js" id="dialog_js"
- charset="utf-8"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/ajaxfileupload/ajaxfileupload.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.Jcrop/jquery.Jcrop.js"></script>
- <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
- <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
- <link href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.Jcrop/jquery.Jcrop.min.css" rel="stylesheet" type="text/css"
- id="cssfile2"/>
- <script type="text/javascript">
- $(function () {
- //按钮先执行验证再提交表单
- $("#submitBtn").click(function () {
- if ($("#user_form").valid()) {
- $("#user_form").submit();
- }
- });
- $('#user_form').validate({
- errorPlacement: function (error, element) {
- error.appendTo(element.parent().parent().prev().find('td:first'));
- },
- rules: {
- store: {
- required: true,
- },
- channel_product_name: {
- required: true,
- },
- goods_id: {
- required: true,
- },
- channel_code: {
- required: true,
- },
- channel_amount: {
- required: true,
- },
- recharge_type: {
- required: true,
- },
- },
- messages: {
- store: {
- required: '必须选择上游通道',
- },
- channel_product_name: {
- required: '通道产品名称不能为空',
- },
- goods_id: {
- required: '商品ID不能为空',
- },
- channel_code: {
- required: '通道code不能为空',
- },
- channel_amount: {
- required: '折扣价格不能为空',
- },
- recharge_type: {
- required: '充值类型不能为空',
- },
- }
- });
- });
- </script>
|