-
Notifications
You must be signed in to change notification settings - Fork 10
/
chooseRepair.php
247 lines (210 loc) · 7.21 KB
/
chooseRepair.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
<?php
require_once('session.php');
?>
<!DOCTYPE html>
<html ng-app="myApp" ng-app lang="en">
<head>
<title>PC Solutions - Estimates</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="Lakeside Books">
<meta name="keywords" content="books, lakeside, cork, shop, online">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="css/menu.css" />
<script src="js/modernizr.custom.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
ul>li, a{cursor: pointer;}
</style>
<style>@import url(http://fonts.googleapis.com/css?family=Raleway:400,700); </style>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body id="top" style="font-size: 62.5%;">
<!-- BEGIN Header -->
<header id="header-wrapper">
<div id="top-bar" class="clearfix">
<div id="top-bar-inner">
<!-- Search Bar by http://www.paulund.co.uk/create-a-slide-out-search-box -->
<div class="search_form">
<form action="customer-search.php" method="post">
<input type="text" name="search_box" id="search_box" placeholder="Search for a customer...">
</form>
</div>
<!-- Search Bar by http://www.paulund.co.uk/create-a-slide-out-search-box -->
<div class="topbar-right clearfix">
<ul class="clearfix">
<li class="login-user">
<a title="<?php echo $login_session; ?>" href="#">
<span class="icon"><i aria-hidden="true" class="icon-user"></i></span>
<?php echo $login_session; ?>
</a>
</li>
</ul>
<div class="log-out">
<!-- <p><a title="Sign out" href="#">Sign out</a></p> -->
<p>
<a href="logout.php" title="Sign out">
<span>Sign-out</span>
<span class="icon">
<i aria-hidden="true" class="icon-exit"></i>
</span>
</a>
</p>
</div>
</div>
</div>
</div>
<div class="full-shadow"></div>
</header>
<!-- END Header -->
<div class="main clearfix">
<!-- START OF NAVIGATION -->
<nav id="menu" class="nav">
<ul>
<li>
<a href="dashboard.php">
<span class="icon">
<i aria-hidden="true" class="icon-home"></i>
</span>
<span>Home</span>
</a>
</li>
<li>
<a href="customer.php">
<span class="icon">
<i aria-hidden="true" class="icon-users"></i>
</span>
<span>Customers</span>
</a>
</li>
<li>
<a href="repairs.php">
<span class="icon">
<i aria-hidden="true" class="icon-hammer"></i>
</span>
<span>Repairs</span>
</a>
</li>
<li class="active">
<a href="estimates.php">
<span class="icon">
<i aria-hidden="true" class="icon-sigma"></i>
</span>
<span>Estimates</span>
</a>
</li>
<li>
<a href="inventory.php">
<span class="icon">
<i aria-hidden="true" class="icon-barcode"></i>
</span>
<span>Inventory</span>
</a>
</li>
<li>
<a href="#">
<span class="icon">
<i aria-hidden="true" class="icon-user"></i>
</span>
<span>Account</span>
</a>
</li>
</ul>
</nav>
<!-- END OF NAVIGATION -->
<!--Breadcrumb -->
<div class="bread">
<div class="submenu">
<ul>
<li><a href="chooseProducts.php">Go Back</a></li>
<li id="add"><a href="chooseRepair.php">Order Now</a></li>
</ul>
</div>
<h3>Choose Products</h3>
</div>
<!--Breadcrumb -->
<div class="floats">
<div class=" full-widget">
<div ng-controller="repairsCrtl">
<div class="row">
<div class="col-md-2">PageSize:
<select ng-model="entryLimit" class="form-control">
<option>5</option>
<option>10</option>
<option>20</option>
<option>50</option>
<option>100</option>
</select>
</div>
<div class="col-md-3">Filter:
<input type="text" ng-model="search" ng-change="filter()" placeholder="Filter" class="form-control" />
</div>
<div class="col-md-4">
<br><br><p>Filtered {{ filtered.length }} of {{ totalItems}} total repairs</p>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-12" ng-show="filteredItems > 0">
<table class="table table-striped table-bordered">
<thead>
<th>ID <a ng-click="sort_by('rep_id');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Description <a ng-click="sort_by('description');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Model <a ng-click="sort_by('model');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>DateAdded <a ng-click="sort_by('repairdate');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>UpdateDate <a ng-click="sort_by('collectiondate');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Status <a ng-click="sort_by('status');"><i class="glyphicon glyphicon-sort"></i></a></th>
</thead>
<tbody>
<tr ng-repeat="data in filtered = (list | filter:search | orderBy : predicate :reverse) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit">
<td>{{data.rep_id}}</td>
<td>{{data.description}}</td>
<td>{{data.model}}</td>
<td>{{data.repairdate}}</td>
<td>{{data.collectiondate}}</td>
<td>{{data.status}}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-12" ng-show="filteredItems == 0">
<div class="col-md-12">
<h4>No repairs found</h4>
</div>
</div>
<div class="col-md-12" ng-show="filteredItems > 0">
<div pagination="" page="currentPage" on-select-page="setPage(page)" boundary-links="true" total-items="filteredItems" items-per-page="entryLimit" class="pagination-small" previous-text="«" next-text="»"></div>
</div>
</div>
</div>
<div>
<form class="form-4" method="post" action="orderNow.php">
<p>Enter Repair ID to place a new order:</p> <br>
<input type="number" name="record" placeholder="Enter ID number e.g. 1" min="1" maxlength="10" required>
<input type="submit" name="go" value="Order Now >>">
</form>
</div>
</div>
<!-- END OF FULL WIDGET-->
</div>
<!-- END OF FLOATS-->
</div>
<!-- END OF MAIN-->
<!-- SCRIPT FOR THE MENU -->
<script src="js/menu.js"></script>
<!-- SCRIPT FOR THE MENU -->
<script src="js/angular.min.repair.js"></script>
<script src="js/ui-bootstrap-tpls-0.10.0.min.repair.js"></script>
<script src="app/repair.js"></script>
<script>
$( "#products" ).click(function() {
$( "#productDiv" ).toggle( "slow", function() {
// Animation complete.
});
});
</script>
</body>
</html>