|
- <?php
- /**
- *
- * ============================================================================
- * * 版权所有 蜘蛛出行 * *
- * 网站地址:
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
- * 使用;不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * Author By: 娄梦宁
- * PhpStorm cost-list.php
- * Create By 2017/2/22 10:16 $
- */
- use backend\modules\zzcs\assets\ZzcsAsset;
- use yii\widgets\Pjax;
- use yii\helpers\Url;
-
- ZzcsAsset::addCss($this, '/prod/css/prod_list.css?version=20170824');
- ZzcsAsset::addCss($this, '/plug/My97DatePicker/skin/WdatePicker.css');
- ZzcsAsset::addCss($this, '/global/css/combo.select.css');
- ZzcsAsset::addScript($this, '/global/js/jquery.combo.select.js');
- ZzcsAsset::addScript($this, '/prod/js/prod_list.js?version=20171110');
- ZzcsAsset::addScript($this, '/plug/My97DatePicker/WdatePicker.js');
- ZzcsAsset::addScript($this, '/plug/layer/layer.js');
- ?>
- <div class="search_cost">
- <ul id="search_cost">
- <li class="search2">
- <span class="name_span">名称:</span>
- <input id="prod_text" placeholder="门票编号/门票名称" type="text">
- </li>
- <li class="search3" style="margin-right: 30px">
- <span>状态:</span>
- <select id="isOnsale">
- <option value="">请选择</option>
- <option value="1">上架</option>
- <option value="0">下架</option>
- </select>
- </li>
- <li class="search2" style="margin-right: 50px">
- <span>运营负责人:</span>
- <select id="runDuty">
- <option value="">请选择</option>
- <?php foreach ($run_duty_list as $v):?>
- <option value="<?= $v['id']?>"><?= $v['true_name']?></option>
- <?php endforeach;?>
- </select>
- </li>
- <li class="search7">
- <span class="btn-primary" id="search_btn" onclick='searchInfo()'>查询</span>
- </li>
- </ul>
- </div>
-
- <div class="add_cost">
- <span class="btn-primary" id="add_prod" onclick="addProd()">+ 添加门票</span>
- <span class="btn-primary" id="batch_add" onclick="onsale()">上架</span>
- <span class="btn-primary" id="batch_affirm" style="" onclick="offsale()">下架</span>
- </div>
-
- <?php Pjax::begin(['id' => 'main_table', 'timeout' => 30000000]) ?>
-
- <div class="table_list">
- <table id="table_list">
- <thead>
- <tr>
- <th style="width: 5%"><input type="checkbox" name="select_check" class="select_all" onclick="selectAll(this)">
- </th>
- <th class="td10">门票编号</th>
- <th class="td20">门票名称</th>
- <th class="td20">供应商</th>
- <th class="td15">运营负责人</th>
- <th class="td10">创建时间</th>
- <th class="td10">状态</th>
- <th class="td10">操作</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($prod_list as $key => $vel) { ?>
- <tr data-json="<?php echo str_replace('"', '"', json_encode($vel)); ?>">
- <td style="width: 5%"><input type="checkbox" name="select_check" class="select_one" data-id="<?php echo $vel['prod_id'] ?>"></td>
- <td class="td10"><?php echo $vel['prod_code'] ?></td>
- <td class="td20"><?php echo $vel['prod_name'] ?></td>
- <td class="td20"><?php echo $vel['org_name']; ?></td>
- <td class="td15" <?php echo $vel['true_name']==''?'style="color:#ccc"':''?>><?php echo $vel['true_name']==''?'未设置':$vel['true_name']; ?></td>
- <td class="td10"><?php echo $vel['create_time'] ?></td>
- <td class="td10"> <?php echo $vel['is_onsale'] == 1 ? '上架' : '下架' ?></td>
- <td class="td10">
- <span class="update_bus_cost" prod_id="<?php echo $vel['prod_id'] ?>" onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/prod/get-calendar?prod_id='.$vel['prod_id']]) ?>">价格设置</span>
- <span class="submit_bus_cost" prod_id="<?php echo $vel['prod_id'] ?>" onclick="upt_prod(<?php echo $vel['prod_id'] ?>)">修改</span>
- </td>
- </tr>
- <?php } ?>
-
- </tbody>
- </table>
- </div>
-
- <!--页码信息-->
- <div id="page_size_d" total_row="<?php echo $page['total_row']; ?>" total_page="<?php echo $page['total_page']; ?>">
- <span class="page_size">每页条数</span>
- <select id="page_size" onchange="changePageSize(this)">
- <?php foreach ($page_size_arr as $key => $vel) {
- if ($vel == $page['page_size']) {
- echo '<option value="' . $vel . '" selected=selected>' . $vel . '</option>';
- } else {
- echo '<option value="' . $vel . '">' . $vel . '</option>';
- }
- } ?>
- </select>
- </div>
- <div id="page_list">
- <?php
- if (count($page_arr) > 0) {
- foreach ($page_arr as $key => $vel) {
- if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
- $class = 'not_click';
- } elseif ($page['current_page'] == $vel) {
- $class = 'click';
- } elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
- $class = 'not_click';
- } elseif ($vel == '...') {
- $class = 'not_click';
- } else {
- $class = 'clickable';
- }
- if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
- $class = 'page_num ' . $class;
- }
- if ($class == 'clickable' || $class == 'page_num clickable') {
- echo '<span class="' . $class . '" onclick="pageSearchInfo(this,' . $page['total_page'] . ')">' . $vel . '</span>';
- } else {
- echo '<span class="' . $class . '">' . $vel . '</span>';
- }
- }
- }
- ?>
- <span class="total_row">共<?php echo $page['total_row']; ?>条</span>
- </div>
-
- <?php Pjax::end() ?>
- <div class="modal-content" id="pop">
- <div class="newpro_top">新增产品</div>
- <div class="newpro_center" >
- <div class="form-inline mar_b">
- <span id="">门票名称:</span>
- <div class="form-group">
- <input class="form-control" id="prod_cate_name" data-id="" type="text">
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">产品编码:</span>
- <div class="form-group">
- <input class="form-control" id="prod_code" type="text">
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">运营负责人:</span>
- <div class="form-group">
- <select id="add_run_duty">
- <option value="">请选择</option>
- <?php foreach ($run_duty_list as $v):?>
- <option value="<?= $v['id']?>"><?= $v['true_name']?></option>
- <?php endforeach;?>
- </select>
- </div>
- </div>
- <div class="form-inline mar_b">
- <span style="vertical-align: top;margin-top: 7px;display: inline-block;">价格类型:</span>
- <div id="add_price_type" class="price_type" style="width: 300px;display: inline-block;">
- <button id="new_prod" style="margin-bottom: 10px;padding: 0;" type="button" class="btn btn-info" onclick="addPrice()">添加</button>
- <div class="price">
- <div style="margin-bottom: 5px;" class="form-group">
- <input type="text" class="form-control prod_id" name="prod_id" style="margin-left:-60px;width:80px;margin-right:20px" data-id="0" >
- <input class="form-control prod_price_type" data-id="0" type="text">
- </div>
- <button type="button" style="margin-bottom: 5px;" class="btn btn-danger btn-xs del_price" onclick="delPrice(this)">删除</button>
- </div>
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">退款支持:</span>
- <div class="form-group">
- <input type="radio" value="1" name="is_refund" checked="checked" /> 是
- <input type="radio" value="0" name="is_refund"/> 否
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">退票截止日期:</span>
- <div class="form-group">
- 提前
- <input type="text" value="0" id="refund_limit_day" size="5"/> 天
- <select id="refund_limit_time">
- <option value="23:59" >请选择</option>
- <option value="01:00">01:00</option>
- <option value="02:00">02:00</option>
- <option value="03:00">03:00</option>
- <option value="04:00">04:00</option>
- <option value="05:00">05:00</option>
- <option value="06:00">06:00</option>
- <option value="07:00">07:00</option>
- <option value="08:00">08:00</option>
- <option value="09:00">09:00</option>
- <option value="10:00">10:00</option>
- <option value="11:00">11:00</option>
- <option value="12:00">12:00</option>
- <option value="13:00">13:00</option>
- <option value="14:00">14:00</option>
- <option value="15:00">15:00</option>
- <option value="16:00">16:00</option>
- <option value="17:00">17:00</option>
- <option value="18:00">18:00</option>
- <option value="19:00">19:00</option>
- <option value="20:00">20:00</option>
- <option value="21:00">21:00</option>
- <option value="22:00">22:00</option>
- <option value="23:00">23:00</option>
- </select>前
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">供应商:</span>
- <div class="form-group">
- <select id="top_org_id">
- <?php
- foreach( $supplier_list as $supplier_info ) {
- echo "<option value=\"{$supplier_info["org_id"]}\">{$supplier_info["org_name"]}</option>";
- }
- ?>
- </select>
- </div>
- </div>
- <div class="form-inline mar_b">
- <span style="vertical-align: top;">门票说明:</span>
- <textarea id="remark" style="width: 400px;" class="form-control" rows="5"></textarea>
- </div>
- </div>
- </div>
- <div class="modal-content" id="pop1">
- <div class="newpro_top">修改产品</div>
- <div class="newpro_center" >
- <div class="form-inline mar_b">
- <span id="">门票名称:</span>
- <div class="form-group">
- <input class="form-control" id="prod_cate_name1" data-id="" type="text">
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">产品编码:</span>
- <div class="form-group">
- <input class="form-control" id="prod_code1" type="text">
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">运营负责人:</span>
- <div class="form-group">
- <select class="upt_run_duty">
- <option value="0">请选择</option>
- <?php foreach ($run_duty_list as $v):?>
- <option value="<?= $v['id']?>"><?= $v['true_name']?></option>
- <?php endforeach;?>
- </select>
- </div>
- </div>
- <div class="form-inline mar_b">
- <span style="vertical-align: top;margin-top: 7px;display: inline-block;">价格类型:</span>
- <div id="add_price_type1" class="price_type1" style="width: 300px;display: inline-block;">
- <button id="new_prod1" style="margin-bottom: 10px;padding: 0;" type="button" class="btn btn-info" onclick="addPrice1()">添加</button>
- <div class="price">
- <div style="margin-bottom: 5px;" class="form-group">
- <input class="form-control prod_price_type1" data-id="0" type="text">
- </div>
- <button type="button" style="margin-bottom: 5px;" class="btn btn-danger btn-xs del_price" onclick="delPrice(this)">删除</button>
- </div>
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">退款支持:</span>
- <div class="form-group">
- <input type="radio" value="1" name="is_refund1" checked="checked" /> 是
- <input type="radio" value="0" name="is_refund1"/> 否
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">退票截止日期:</span>
- <div class="form-group">
- 提前
- <input type="text" value="0" id="refund_limit_day1" size="5"/> 天
- <select id="refund_limit_time1">
- <option value="23:59" >请选择</option
- <option value="02:00">02:00</option>>
- <option value="01:00">01:00</option>
- <option value="03:00">03:00</option>
- <option value="04:00">04:00</option>
- <option value="05:00">05:00</option>
- <option value="06:00">06:00</option>
- <option value="07:00">07:00</option>
- <option value="08:00">08:00</option>
- <option value="09:00">09:00</option>
- <option value="10:00">10:00</option>
- <option value="11:00">11:00</option>
- <option value="12:00">12:00</option>
- <option value="13:00">13:00</option>
- <option value="14:00">14:00</option>
- <option value="15:00">15:00</option>
- <option value="16:00">16:00</option>
- <option value="17:00">17:00</option>
- <option value="18:00">18:00</option>
- <option value="19:00">19:00</option>
- <option value="20:00">20:00</option>
- <option value="21:00">21:00</option>
- <option value="22:00">22:00</option>
- <option value="23:00">23:00</option>
- </select>前
- </div>
- </div>
- <div class="form-inline mar_b">
- <span id="">供应商:</span>
- <div class="form-group">
- <select id="top_org_id1" autocomplete="off" >
- <option value="0">请选择</option>
- <?php
- foreach( $supplier_list as $supplier_info ) {
- echo "<option value=\"{$supplier_info["org_id"]}\">{$supplier_info["org_name"]}</option>";
- }
- ?>
- </select>
- </div>
- </div>
- <div class="form-inline mar_b">
- <span style="vertical-align: top;">门票说明:</span>
- <textarea id="remark1" style="width: 400px;" class="form-control" rows="5"></textarea>
- </div>
- </div>
- </div>
-
-
-
-
-
-
-
-
|