-
Notifications
You must be signed in to change notification settings - Fork 0
/
Order.php
147 lines (119 loc) · 3.98 KB
/
Order.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>店取訂單系統</title>
<?php
include('conn.php');
?>
</head>
<link rel="stylesheet" href="Bootstrap/Superhero/Superhero.css">
<link rel="stylesheet" href="css/search2.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/script2.js"></script>
<body>
<div id="herader">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand">PXmart</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="track.php">生產追蹤追溯系統</a></li>
<li><a href="stock.php">庫存管理系統 <span class="sr-only">(current)</span></a></li>
<li class="active"><a href="Order.php">店取訂單系統</a></li>
<li><a href="#">問題訂單追蹤</a></li>
<li><a href="member.php">會員資料管理</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="system.php">上一頁</a></li>
<li><a href="index.php">登出</a></li>
</ul>
</div>
</div>
</nav>
</div>
<div id="wrap">
<div id="Stitle">
<h3>店取訂單系統</h3>
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control SearchBar" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-defaul SearchButton" type="button">
<img src="img/search-icon.png" width="21" height="21" >
</button>
</span>
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
</div><!-- /.row -->
</div>
<div id="main2">
<div id="copy"> <ul>
<li><img src="img/edit-notes.png" width="60" height="58" alt="編輯資料" ></li>
<li id="Excel"><img src="img/Excel.png" width="55" height="55" alt="匯出報表" ></li>
</ul></div>
<table class="table table-striped table-hover ">
<thead>
<tr class="danger">
<th>訂單代號</th>
<th>產品名稱</th>
<th>客戶名稱</th>
<td align="center">數量</td>
<td align="center">售價</td>
<td align="center">折扣</td>
<td align="center">總額</td>
<td>到達門市名稱</td>
<td>狀態</td>
</tr>
</thead>
<tbody>
<?
$sql=" SELECT * FROM `訂單` ";
$result = mysql_query($sql) or die('SQL ERROR!!');
while($record = mysql_fetch_array($result) ){
?>
<tr>
<td><?=$record['OID2']?></td>
<td><?=$record['Oname']?></td>
<td><?=$record['OCname']?></td>
<td align="center"><?=$record['Oquantity']?></td>
<td align="center"><?=$record['Oprice']?></td>
<td align="center"><?=$record['Ocount']?></td>
<td align="center"><?=$record['Ototal']?></td>
<td ><?=$record['OSname']?></td>
<td ><?=$record['Ostatus']?></td>
<?
}
?>
</tr>
</tbody>
</table>
</div>
<div id="main3">
<p> </p> <p> </p>
<ul class="pagination pagination-lg">
<li class="disabled"></li>
<li class="disabled"><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
<li><a href="#">7</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
</body>
</html>