This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vieworder.php
267 lines (243 loc) · 9.49 KB
/
vieworder.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?php
require 'dbconfig.php';
/*
if(is_null($_GET['id']))
{
die();
}
*/
$id = 2;
$info = getInfo($servername, $username, $password, $dbname, $id);
?>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css" integrity="sha256-46qynGAkLSFpVbEBog43gvNhfrOj+BmwXdxFgVK/Kvc=" crossorigin="anonymous" />
<!------ Include the above in your HEAD tag ---------->
<style>
tr td b {
color: green;
}
</style>
<div class="container">
<div class="row">
<h2 class="text-danger">View Order</h2>
<table class="table table-bordered success">
<thead>
<tr>
<th>Order ID</th>
<td><?php echo $id ?></td>
</tr>
<tr>
<th class="info">Address</th>
<td><?php echo $info['address'] ?></td>
</tr>
<tr>
<th class="info">Shipping Method</th>
<td><?php echo $info['shipping method'] ?></td>
</tr>
<tr>
<th class="info">Contact</th>
<td>+91 9999955555</td>
</tr>
<tr>
<th class="info">State</th>
<td>Maharashtra</td>
</tr>
<tr>
<th class="info">City</th>
<td>Pune</td>
</tr>
<tr>
<th class="info">Service List</th>
<td>Service 1 , Service 2 , Serive 3</td>
</tr>
<tr>
<th valign="top" class="info">Machine</th>
<td>Machine1 , Machine2 , Machine3</td>
</tr>
<tr>
<th class="info">Brand</th>
<td>Audi</td>
</tr>
<tr>
<th class="info">Specialization</th>
<td>Lorem Ipsum that is dollor sign to write</td>
</tr>
<tr>
<th class="info">Approval Status</th>
<td><b>Active</b></td>
</tr>
<tr>
<th class="info bg-info">Approval Date</th>
<td class="bg-primary">14/12/2018</td>
</tr>
<tr>
<th class="info bg-primary">Register Date</th>
<td class="bg-info">10/12/2018 12:00:45</td>
</tr>
<tr>
<form>
<th class="info">Action To Approval</th>
<td><select id="approv_status" name="approv_status" class="form-control">
<option value="">Select</option>
<option value="active"><b>Active</b></option>
<option value="inactive"><b>Inactive</b></option>
</select></td>
</tr>
<tr>
<th colspan="1"></th>
<td>
<input type="hidden" name="hidden_id" id="hidden_id" value="<?php echo $value->id; ?>">
<input type="hidden" name="folder_name" id="folder_name" value="<?php echo $value->email; ?>">
<a href="<?php echo '' ?>module_c/approval_manager/service_provider_display" class="btn btn-warning">Back</a>
<input type="button" id="approve_btn" class="btn btn-info" name="approve_btn" value="Approve"></td>
</form>
</tr>
</thead>
</table>
</div>
<div class="container">
<div class="row">
<table class="table table-hover table-striped">
<thead>
<tr class="thead-dark">
<th>S. #</th>
<th>Title</th>
<th>Price</th>
<th>Tracking</th>
<th>Another Header</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
foreach ($info['products'] as &$value) {
//$value = $value * 2;
echo '<tr>
<td>
01
</td>
<td style="max-width:300px">
<h6>'.$value['name'].'</h6>
<em class="text-muted">
'.$value['attributes'].' </em>
</td>
<td>
<h6>USD '.$value['total'].'</h6>
<br>
<em class="text-muted">
Quantity: '.$value['quantity'].'
</em>
<br>
<em class="text-muted">
Item Price: $'.$value['price'].'
</em>
<br>
<em class="text-muted">
Shipping: $'.$value['shipping'].'
</em>
</td>
<td>
Column data
</td>
<td>
<a href="#" class="btn btn-warning"><i class="fas fa-edit"></i></a> |
<a href="#" class="btn btn-danger"><i class="fas fa-trash"></i></a>
</td>
</tr>
';
}
?>
<tr>
<td>
01
</td>
<td style="max-width:300px">
<h6>Dummy Title 01</h6>
<em class="text-muted">
This is some long text or discription regarding Dummy Title 01. Even more lenghthy description will be automatically adjusted as per the width specified.
</em>
</td>
<td>
<h6>USD 00</h6>
<br>
<em class="text-muted">
Quantity: 2
</em>
<br>
<em class="text-muted">
Item Price: $00
</em>
<br>
<em class="text-muted">
Shipping: $00
</em>
</td>
<td>
Column data
</td>
<td>
<a href="#" class="btn btn-warning"><i class="fas fa-edit"></i></a> |
<a href="#" class="btn btn-danger"><i class="fas fa-trash"></i></a>
</td>
</tr>
<tr>
<td>
02
</td>
<td style="max-width:300px">
<h6>Dummy Title 02</h6>
<em class="text-muted">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique facere necessitatibus quo laboriosam consequuntur
</em>
</td>
<td>
Some Data
</td>
<td>
<a href="#" class="btn btn-warning"><i class="fas fa-edit"></i></a> |
<a href="#" class="btn btn-danger"><i class="fas fa-trash"></i></a>
</td>
</tr>
<tr>
<td>
03
</td>
<td style="max-width:300px">
<h6>Another Title</h6>
<em class="text-muted">
This is some long text or discription about Another Title or else about.
</em>
</td>
<td>
This is some data
</td>
<td>
<a href="#" class="btn btn-warning"><i class="fas fa-edit"></i></a> |
<a href="#" class="btn btn-danger"><i class="fas fa-trash"></i></a>
</td>
</tr>
<tr>
<td>
04
</td>
<td style="max-width:300px">
<h6>Yet Another Title</h6>
<em class="text-muted">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi aliquam placeat odit quasi autem distinctio veritatis ex numquam nihil nulla tempora a dolorem omnis beatae facilis perspiciatis doloribus
</em>
</td>
<td>
Data goes here
</td>
<td>
<a href="#" class="btn btn-warning"><i class="fas fa-edit"></i></a> |
<a href="#" class="btn btn-danger"><i class="fas fa-trash"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>