-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathviewvehicleservicerequest.php
83 lines (75 loc) · 2.27 KB
/
viewvehicleservicerequest.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
<?php
include("header.php");
include("sidebar.php");
include("dbconnection.php");
$result= mysql_query("select * from service where custid='$_SESSION[custid]' AND status='Pending'");
$result1= mysql_query("select * from service where custid='$_SESSION[custid]' AND status='Completed'");
?>
<div id="main">
<a name="TemplateInfo"></a>
<h1>View Vehicle Service</h1>
<h3>
Pending Request:
</h3>
<form id="form1" name="form1" method="post" action="">
<table width="686" border="1">
<tr>
<th width="169" scope="col">Vehicle info</th>
<th scope="col">Date</th>
<th scope="col">Address</th>
<th scope="col">City</th>
<th scope="col">Status</th>
</tr>
<?php
while($arrrec= mysql_fetch_array($result))
{
echo" <tr>
<td>
Vehicle name: $arrrec[vehiclename]<br>
Vehicle No. $arrrec[vehicleno]</td>
<td> $arrrec[date]</td>
<td> $arrrec[address]</td>
<td> $arrrec[city]</td>
<td> $arrrec[status]</td>
</tr>";
}
?>
</table>
<br /><br>
<h3>
Completed Request:
</h3>
<table width="686" border="1">
<tr>
<th width="169" scope="col">Vehicle info</th>
<th width="103" scope="col">Date</th>
<th width="134" scope="col">Address</th>
<th width="104" scope="col">Status</th>
<th width="64" scope="col">Bill</th>
</tr>
<?php
while($arrrec= mysql_fetch_array($result1))
{
echo" <tr>
<td>
Vehicle name: $arrrec[vehiclename]<br>
Vehicle No. $arrrec[vehicleno]</td>
<td> $arrrec[date]</td>
<td> $arrrec[address]
<br>
City : $arrrec[city]</td>
<td> $arrrec[status]</td>
<td> <a href='vehicleservicebilling.php?serviceid=$arrrec[serviecid]'>View</a></td>
</tr>";
}
?>
</table>
</form>
<p> </p>
<br />
</div>
<!-- wrap ends here -->
</div>
<?php
include("footer.php");
?>