-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckorder.php
101 lines (94 loc) · 3.98 KB
/
checkorder.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
<?php require_once ("dbconnect.php"); ?>
<?php require_once ('includes/client_header.php'); ?>
<!-- Main Menu -->
<div class="side-menu-container">
<ul class="nav navbar-nav">
<li><a href="client.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="makeorder.php"><span class="glyphicon glyphicon-shopping-cart"></span>Give Order</a></li>
<li class="active"><a href="checkorder.php"><span class="glyphicon glyphicon-saved"></span>Placed Order</a></li>
<li><a href="trackproduct.php"><span class="glyphicon glyphicon-map-marker"></span>Product Location </a></li>
<li><a href="clientsetting.php"><span class="glyphicon glyphicon-cog"></span>Profile Setting </a></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span>Logout</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
</div>
<!-- Main Content -->
<div class="container-fluid">
<br>
<div class="side-body">
<pre style="text-align:center"> <b>Placed Order List</b> </pre>
<div class="row">
<label style="margin-top:6px;" class="col-md-2 control-label" for="rolename" style="float:left;">Order Type</label>
<div class="col-md-10" style="float:left;">
<div style="text-align:center;">
<select id="order" class="form-control">
<option value="">Select Option</option>
<option value="neworder">New Order</option>
<option value="approvedorder">Approved Order</option>
<option value="recievedorder">Recieved Order</option>
</select>
</div>
</div>
</div>
<br>
<div id="tableinfo">
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var dataType = "";
var type="";
var demo="";
if(type==""){
type="currentclient";
}
$(document).ready(function() {
$("#order").change(function() {
var data = $(this).val();
dataType = "type=" + data;
$.ajax({
type: "post",
url: "get_client_order.php",
data: dataType,
cache: false,
success: function(result) {
$("#tableinfo").html(result);
}
});
});
});
$(document).ready(function (){
$(document).on('click', '#approve', function (){
var data = $(this).attr("data-id");
dataType = "type=shipment&order=" + data;
$.ajax({
type: "post",
url: "get_client_order.php",
data: dataType,
cache: false,
success: function(result) {
alert(result);
}
});
});
});
$(document).ready(function (){
$(document).on('click', '#recieve', function (){
var data = $(this).attr("data-id");
dataType = "type=recieve&order=" + data;
$.ajax({
type: "post",
url: "get_client_order.php",
data: dataType,
cache: false,
success: function(result) {
alert(result);
}
});
});
});
</script>
<?php require_once ('includes/client_footer.php'); ?>