-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabunlocking.php
executable file
·176 lines (155 loc) · 5.04 KB
/
labunlocking.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
<!DOCTYPE html>
<?php
$mainCat = "Unlocking";
include_once 'path.php';
?>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
<html dir="ltr" lang="en-US">
<meta charset="UTF-8" />
<title>fone-tech</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="favicon.ico">
<?php
include_once($path ."head.php");
?>
<style type="text/css">
.typeahead {
z-index: 1000;
}
</style>
</head>
<body >
<!-- Include Header -->
<?php
include_once($path ."unlockheader.php");
if (empty($_SESSION['user_id']))
{
/*** redirect ***/
header("Location: index.php");
exit;
}
$lbid = $_SESSION['shop_id'];
include_once 'include/global.inc.php';
$tablename="shops";
$orderby = " ORDER BY name ASC";
$where= " 1=1";
$datar = $db->select($tablename,$orderby, $where);
?>
<div class="row-fluid ">
<div class="span12">
<!-- LayerSlider Content End -->
<div class="row-fluid divider slide_divider base_color_background">
<div class="container">
</div>
</div>
<div class="container">
<div class="row-fluid distance_1" style="margin-top:30px;">
<div class="row-fluid">
<form class="form-horizontal" id="searchrform" name="searchrform" method="post" >
<div class="span12 discover">
<div class="span5">
<div class="control-group">
<label class="control-label" >Shop Name: </label>
<div class="controls">
<select name="txtshop" id="txtshop" class="input-large"/>
<option value="">--Select--</option>
<?php
foreach ($datar as $row) { ?>
<option value="<?php echo $row['id'];?>"><?php echo $row['name'];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" >Status: </label>
<div class="controls">
<select name="txtstatus" id="txtstatus" class="input-large">
<option value="">--Select--</option>
<option value="Inprogress">Inprogress</option>
<!--<option value="Pending">Pending</option>-->
<option value="Success">Success</option>
<option value="Rejected">Rejected</option>-->
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" >IMEI#: </label>
<div class="controls">
<input type="text" class="input-large" name="txtimi" id="txtimi" value="" >
</div>
</div>
</div>
<div class="span5">
<div class="control-group">
<label class="control-label" >Start Date: </label>
<div class="controls">
<div class="input-append date" name="sdate" id="sdate" data-date="" data-date-format="dd/mm/yyyy" >
<input size="10" type="text" name="txtsdate" id="txtsdate" value="" >
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" >End Date: </label>
<div class="controls">
<div class="input-append date" name="edate" id="edate" data-date="" data-date-format="dd/mm/yyyy" >
<input size="10" type="text" name="txtedate" id="txtedate" value="" >
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
</div>
</div>
<div class="control-group">
<a href="javascript:validatesForm();" class="button_bar" style="float:right;">Search</a>
</div>
</div>
</div>
</form>
<div>
<div id="labunlockinglist">
<?php
include_once($pathaj."labunlocking_list.php");
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<?php
include_once($path."footer.php");
?>
</footer>
</body>
</html>
<script>
$(document).ready(function(){
$('#sdate').datepicker();
$('#edate').datepicker();
});
$('#txtshop').typeahead({
source: function (query, process) {
return $.getJSON('shoplist.php', { query: query }, function (data) {
return process(data);
});
},
minLength : 2,
//items : 4,
property: 'name'
});
</script>
<script type="text/javascript">
function validatesForm() {
var serializedData = $('#searchrform').serialize();
$.post("labunlocking_list.php",serializedData,function(data){
$('#labunlockinglist').html(data);
});
}
</script>