You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

130 lines
5.9 KiB

  1. <?php
  2. /**
  3. *
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zzcx
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By:
  12. * PhpStorm fill-order.php
  13. * Create By 2017/3/23 17:28 $
  14. */
  15. use backend\modules\zzcs\assets\ZzcsAsset;
  16. use yii\widgets\Pjax;
  17. ZzcsAsset::addCss($this, '/plug/comboSelect/combo.select.css');
  18. ZzcsAsset::addCss($this, '/plug/My97DatePicker/skin/WdatePicker.css');
  19. ZzcsAsset::addScript($this, '/plug/My97DatePicker/WdatePicker.js');
  20. ZzcsAsset::addScript($this, '/plug/comboSelect/jquery.combo.select.js');
  21. ZzcsAsset::addCss($this, '/prod/css/fill_order.css');
  22. ZzcsAsset::addScript($this, '/plug/layer/layer.js');
  23. ZzcsAsset::addScript($this, '/prod/js/fill_order.js');
  24. ?>
  25. <div id="" class="iframe_box">
  26. <div class="ticket_top">
  27. <div class="reserve_date">选择门票</div>
  28. <div class="prod_date_box">
  29. <span class="change_date1">门&nbsp; &nbsp;票:&nbsp;</span>
  30. <select id="prod_list" class="select_style" onchange="change_product()">
  31. <option value="-1">请选择</option>
  32. <?php foreach ($prod_list as $k => $v) { ?>
  33. <option value="<?php echo $v['prod_id'] ?>"><?php echo $v['prod_name'] ?></option>
  34. <?php } ?>
  35. </select>
  36. </div>
  37. <!--填购票信息-->
  38. <!-- 渠道号 -->
  39. <div class="form-group">
  40. <div class="reserve_date">渠道信息</div>
  41. <div class="reserve_date_box">
  42. <span class="">订单渠道:</span>
  43. <select id="channel" class="select_style">
  44. <option value="-1">请选择</option>
  45. <?php foreach ($supplier_list as $k => $v) { ?>
  46. <option value="<?php echo $v['id'] ?>"><?php echo $v['supplier_name'] ?></option>
  47. <?php } ?>
  48. </select>
  49. <span><input type="text" placeholder="渠道订单号" id="channel_no" value=""/></span>
  50. </div>
  51. </div>
  52. </div>
  53. <!--门票-->
  54. <div id="ticket1" class="reserve_center">
  55. <div class="reserve_center_box1">
  56. <div class="reserve_date">出行日期</div>
  57. <div class="reserve_date_box">
  58. <div class="change_date1">&nbsp;日&nbsp;&nbsp;&nbsp;期&nbsp;:</div>
  59. <div style="display: inline-block">
  60. <input id="run_date" class="Wdate ng-pristine ng-valid ng-not-empty ng-touched"
  61. value="<?php echo date('Y-m-d') ?>"
  62. type="text" onclick="WdatePicker({isShowClear:false,doubleCalendar:true,readOnly:false,onpicked:function(){select_date();}})">
  63. </div>
  64. </div>
  65. </div>
  66. <?php Pjax::begin(['id' => 'main_table', 'timeout' => 30000000]) ?>
  67. <div class="reserve_center_box2">
  68. <div class="reserve_date_box">
  69. <?php if (empty($prod_arr)) { ?>
  70. <div class="ticket_box">
  71. <div><?php echo (!isset($_GET['prod_id'])||!$_GET['prod_id'])?'请选择票种':'该日无可售票种'?></div>
  72. </div>
  73. <?php } else {foreach ($prod_arr as $k => $v) { ?>
  74. <div class="ticket_box" id="ticket_<?php echo $k;?>" cus_price="<?php echo $v['cus_price']?>" prod_name="<?php echo $v['prod_name']?>" prod_id="<?php echo $v['prod_id']?>" buy_num="0" stock="<?php echo $v['count']?>">
  75. <span class="ticket_box_span1"><?php echo $v['prod_name']?></span>
  76. <span style="margin-left:10px;size: 12px;color:green">余票<?php echo $v['count']?></span>
  77. <span style="line-height: 20px;" class="ticket_box_span2 add" onclick="add_num(this)">+</span>
  78. <input class="ticket_box_span3" type="text" id="book_num" readonly="true" id="" value="0"
  79. class="aticket"/>
  80. <span style="line-height: 20px;" class="ticket_box_span4 cut" onclick="cut_num(this)">-</span>
  81. <span id="prices1" class="ticket_box_span5"><?php echo $v['cus_price']?>元</span>
  82. </div>
  83. <?php }} ?>
  84. </div>
  85. </div>
  86. <?php Pjax::end() ?>
  87. <div class="reserve_center_box3">
  88. <div class="reserve_date">联系人信息</div>
  89. <div class="reserve_date_box">
  90. <span class="change_date1">姓<span style="color: #fff;">名</span>名:</span>
  91. <span><input type="text" placeholder="请输入姓名" id="customer_name" value=""/></span>
  92. </div>
  93. <div class="reserve_date_box">
  94. <span class="change_date1">手机号:</span>
  95. <span><input type="text" placeholder="请输入手机号" id="customer_phone" value=""/></span>
  96. </div>
  97. <div class="reserve_date_box">
  98. <span class="customer_id_type">&nbsp;证件号:&nbsp;&nbsp;</span>
  99. <select id="customer_id_type">
  100. <option value="150">身份证号</option>
  101. <option value="153">护照</option>
  102. </select>
  103. <span><input type="text" placeholder="请输入证件号" name="" id="customer_id_card" value=""/></span>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="sub btn-primary" id="submit" onclick="submit()">提交</div>
  108. <input type="hidden" id="new_url" value="<?php echo 'http://'.CS_DOMAIN;?>"/>
  109. </div>
  110. <!--</div>-->