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.
106 lines
2.7 KiB
106 lines
2.7 KiB
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<!-- 主頁header -->
|
|
<?php
|
|
|
|
/*--- 處理session ----*/
|
|
include "include-session-security.php"; #確認session
|
|
/*
|
|
if(isset($_SESSION['user_id'])){
|
|
#echo $_SESSION['user_id'];
|
|
$userid = $_SESSION['user_id'];
|
|
}
|
|
*/
|
|
/*--- 處理session ----*/
|
|
|
|
#$userid = "B000000001";
|
|
require_once "db/database.php"; # 載入db.php來連結資料庫
|
|
$data = array(); # 設置一個空陣列來放資料is
|
|
$sql = "SELECT * FROM delivery_info where (orderer_id = '$user_id') order by id desc"; # sql語法存在變數中
|
|
$data = mysqli_query($link,$sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中
|
|
|
|
|
|
|
|
include "include-header.php";
|
|
?>
|
|
<!-- * 主頁header -->
|
|
|
|
<body>
|
|
|
|
<!-- loader -->
|
|
<div id="loader">
|
|
<div class="spinner-border text-primary" role="status"></div>
|
|
</div>
|
|
<!-- * loader -->
|
|
|
|
<!-- App Header -->
|
|
<div class="appHeader bg-primary text-light">
|
|
<!--
|
|
<div class="left">
|
|
<a href="javascript:;" class="headerButton goBack">
|
|
<ion-icon name="chevron-back-outline"></ion-icon>
|
|
</a>
|
|
</div>
|
|
-->
|
|
<div class="pageTitle">發運查詢</div>
|
|
</div>
|
|
<!-- * App Header -->
|
|
|
|
|
|
<!-- App Capsule -->
|
|
<div id="appCapsule">
|
|
|
|
<div class="section mt-2">
|
|
<!-- item -->
|
|
<?php foreach($data as $data){ ?>
|
|
<div class="card cart-item mb-2">
|
|
<div class="card-body">
|
|
<div class="in">
|
|
<!-- <img src="assets/img/sample/photo/sensor-1.jpg" alt="product" class="imaged"> -->
|
|
<div class="text">
|
|
<h3 class="title">貨運單號:<?php echo $data['deliver_no']; ?></h3>
|
|
<p class="detail">訂貨日:<?php echo $data['create_at']; ?></p>
|
|
<strong class="price">總價:<?php echo $data['summation']; ?></strong>
|
|
</div>
|
|
</div>
|
|
<div class="cart-item-footer">
|
|
<a href="app-productsshippinglog.php?deliver_no=<?php echo $data['deliver_no']; ?>&token=<?php echo $token; ?>" class="btn btn-outline-secondary btn-sm">查看物流</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<!-- * item -->
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<!-- * App Capsule -->
|
|
|
|
|
|
<!-- 主頁頁尾 -->
|
|
<?php
|
|
include "include-footer.php";
|
|
mysqli_close($link); #代表結束連線
|
|
?>
|
|
<!-- * 主頁頁尾 -->
|
|
|
|
|
|
<!-- 主頁頁尾按鈕 -->
|
|
<?php
|
|
#include "include-bottom-menu.php";
|
|
?>
|
|
<!-- * 主頁頁尾按鈕 -->
|
|
|
|
|
|
<!-- ///////////// Js Files //////////////////// -->
|
|
<!-- Jquery -->
|
|
<?php
|
|
include "include-jsfiles.php";
|
|
?>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|