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.
 
 
 
 

48 lines
1.8 KiB

  1. <?php
  2. require_once '../st-xm/Common/Mysql.php';
  3. header("Access-Control-Allow-Origin:*");
  4. header("Content-type:text/html;charset=utf-8");
  5. /**
  6. * Created by PhpStorm.
  7. * User: luocj
  8. * Date: 2017/1/25
  9. * Time: 11:10
  10. */
  11. $order_id = isset($_POST['order_id']) ? $_POST['order_id'] : '';
  12. $pdo = conn();
  13. //$sql = "select count(id) as order_number,parent_prod_name from order_main where order_prod_type = 26 and order_status in (313,198,314,147,382) and cancel_flag = 0 and prod_start_station_date = '$data' group by parent_prod_name order by parent_prod_name ";
  14. $sql = "select * from order_ht_exception_list where order_id LIKE '%$order_id%'";
  15. $result = $pdo->query($sql);
  16. $result_array = $result->fetchAll();
  17. ?>
  18. <link rel="stylesheet" type="text/css" href="../css/bootstrap/bootstrap.min.css"/>
  19. <link rel="stylesheet" type="text/css" href="../css/datepicker.css"/>
  20. <script type="text/javascript" src="../js/jquery-2.2.4.min.js"></script>
  21. <script type="text/javascript" src="../js/date-time/bootstrap-datepicker.min.js"></script>
  22. <form method="post" style="margin-left: 10px;margin-top: 10px;">
  23. 订单号:<input id="order_id" name="date" value="<?php echo $order_id; ?>" class="date-picker"
  24. data-date-format="yyyy-mm-dd">
  25. <input type="submit" value="查询">
  26. </form>
  27. <table border="1" style="margin-left: 10px;">
  28. <thead>
  29. <tr>
  30. <th style="text-align:center;">订单号</th>
  31. <th style="text-align:center;min-width: 100px;">状态</th>
  32. <th style="text-align:center;min-width: 50px;">信息</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <?php foreach ($result_array as $k => $v) { ?>
  37. <tr>
  38. <td><?php echo $v['order_id']; ?></td>
  39. <td><?php echo $v['status']; ?></td>
  40. <td><?php echo $v['msg']; ?></td>
  41. </tr>
  42. <?php } ?>
  43. </tbody>
  44. </table>