123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>推送名单</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link href="/css/ims/base.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
- <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
- <style>
- .red {
- color: red;
- }
- .yellow {
- color: #FF9900;
- }
- .ims-box {
- margin: 20px;
- }
- .screen > div {
- margin-right: 5px;
- }
- .screen button {
- padding: 4px 12px;
- }
- .table-box {
- margin-top: 30px;
- }
- .table-box table,
- .table-box table th {
- text-align: center;
- }
- .table-box button {
- margin-right: 5px;
- }
- .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
- line-height: 140px;
- text-align: center;
- }
- .resubmit-layer-box input {
- line-height: 20px;
- }
- .urge-layer-box {
- margin-top: 30px;
- margin-left: 30px;
- }
- .urge-layer-box textarea {
- margin-left: 15px;
- vertical-align: top;
- }
- .alert-msg {
- text-align: center;
- vertical-align: top;
- }
- </style>
- </head>
- <body>
- <div class="ims-box">
- <form action="<?php echo Yii::app()->createUrl('imsSale/pushList'); ?>" method="get">
- <div class="screen">
- <div class="diy_select select-clazz">
- <input type="hidden" id="clazzId" name="clazzId" class="diy_select_input" value="0">
- <div class="diy_select_txt">班级</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;width:570px">
- <li val="0">班级</li>
- <?php if (isset($classList)): ?>
- <?php foreach ($classList as $item): ?>
- <li val="<?php echo $item['clazzId'] ?>"><?php echo $item['clazzName'] ?></li>
- <?php endforeach; ?>
- <?php else: ?>
- <li val="0">暂无商品</li>
- <?php endif; ?>
- </ul>
- </div>
- <div class="diy_select select-pay">
- <input type="hidden" id="isPay" name="isPay" class="diy_select_input" value="0">
- <div class="diy_select_txt">是否下单</div>
- <div class="diy_select_btn"></div>
- <ul class="diy_select_list" style="display: none;">
- <li val="0">是否下单</li>
- <li val="2">是</li>
- <li val="1">否</li>
- </ul>
- </div>
- <input type="hidden" name="orderId" value="<?php echo $_GET['orderId']?>">
- <button type="submit" class="label-primary-s bth-s">查询</button>
- <a class="label-primary-s bth-s download-excel">导出</a>
- </div>
- </form>
- <div class="table-box">
- <table id="formalOrderTable"
- class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
- style="font-size:12px">
- <thead>
- <tr>
- <th>学生姓名</th>
- <th>年级</th>
- <th>班级</th>
- <th>是否下单</th>
- </tr>
- </thead>
- <tbody>
- <?php if ($list): ?>
- <?php foreach ($list as $item): ?>
- <tr >
- <td><?php echo $item['studentName']; ?></td>
- <td><?php echo $item['gradeName']; ?></td>
- <td><?php echo $item['clazzName']; ?></td>
- <td><?php if($item['isPay']){echo '是';}else{echo '否';} ?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if ($page): ?>
- <div class="col-sm-12">
- <ul class="pagination">
- <?php
- $params = array();
- if (isset($_GET['orderId']) && $_GET['orderId']) {
- $params['orderId'] = $_GET['orderId'];
- }
- if (isset($_GET['clazzId']) && $_GET['clazzId']) {
- $params['clazzId'] = $_GET['clazzId'];
- }
- if (isset($_GET['isPay']) && $_GET['isPay']) {
- $params['isPay'] = $_GET['isPay'];
- }
- if (isset($_GET['page'])) {
- $params['page'] = $_GET['page'];
- }else{
- $params['page'] = 1;
- }
- echo formatPage($page, 'imsSale/pushList', $params)
- ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/ims/layer/layer.js"></script>
- <script src="/js/ims/xsgl.js"></script>
- <script>
- $(document).ready(function () {
- function studentType() {
- $(".student-type").each(function (index) {
- if ($(this).attr('status') == 1) {
- $(this).addClass("green");
- } else {
- $(this).addClass("red");
- }
- })
- }
- function setSubjectType() {
- $(".subject-type").each(function (index) {
- if ($(this).attr('status') == '1') {
- $(this).addClass("green");
- } else if ($(this).attr('status') == '2') {
- $(this).addClass("red");
- } else if ($(this).attr('status') == '3') {
- $(this).addClass("grey");
- } else {
- $(this).addClass("yellow");
- }
- })
- }
- studentType();
- setSubjectType();
- //筛选条件赋值
- <?php if(isset($_GET['clazzId']) && $_GET['clazzId']>0):?>
- var clazzId = "<?php echo $_GET['clazzId'];?>";
- $('#clazzId').val(clazzId);
- var txt = $('.select-clazz li[val=' + clazzId + ']').html();
- $('.select-clazz .diy_select_txt').html(txt);
- <?php endif;?>
- <?php if(isset($_GET['isPay']) && $_GET['isPay']):?>
- var isPay = "<?php echo $_GET['isPay'];?>";
- $('#isPay').val(isPay);
- var txt = $('.select-pay li[val=' + isPay + ']').html();
- $('.select-pay .diy_select_txt').html(txt);
- <?php endif;?>
- //导出excel
- $(".download-excel").on("click", function () {
- var orderId = "<?php echo isset($_GET['orderId'])?$_GET['orderId']:'';?>";
- var clazzId = "<?php echo isset($_GET['clazzId'])?$_GET['clazzId']:'';?>";
- var isPay = "<?php echo isset($_GET['isPay'])?$_GET['isPay']:'';?>";
- $.ajax({
- type: 'post',
- url: "<?php echo Yii::app()->createUrl('imsSale/pushListExport');?>",
- data: {
- orderId: orderId,
- clazzId:clazzId,
- isPay:isPay
- },
- dataType: 'json',
- success: function (result) {
- if (result.status == 1) {
- window.location.href = result.data;
- } else {
- layer.msg(result.data);
- }
- },
- error: function () {
- return;
- }
- })
- });
- });
- </script>
- </body>
- </html>
|