-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathviewservicemore.php
109 lines (103 loc) · 3.16 KB
/
viewservicemore.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
<?php
include("header.php");
include("sidebar.php");
include("dbconnection.php");
$result= mysql_query("select * from service where serviecid='$_GET[vserviceid]'");
$row1 = mysql_fetch_array($result);
?>
<div id="main">
<a name="TemplateInfo"></a>
<h1>Vehicle Service</h1>
<?php
if($ctins == 1)
{
echo "<center><b>Employees account created successfully...</b></center><br>";
echo "<center><b><a href='emplogin.php'>Click here to Login.</a></b></center>";
}
else
{
?>
<form id="form1" name="form1" method="post" action="">
<table width="494" border="1">
<tr>
<th width="58" scope="col">Sevice ID</th>
<th width="100" scope="col"> <?php echo $row1[serviecid]; ?> </th>
</tr>
<?php
$result1= mysql_query("select * from customer where custid='$row1[custid]'");
$arrrec1= mysql_fetch_array($result1);
?>
<tr>
<th scope="col">Customer ID</th>
<th scope="col"> <?php echo $arrrec1[custid]; ?> </th>
</tr>
<tr>
<th scope="col">Customer name</th>
<th scope="col"> <?php echo $arrrec1[fname]. " ". $arrrec1[lname]; ?></th>
</tr>
<tr>
<th scope="col">Vehicle name</th>
<th scope="col"> <?php echo $row1[vehiclename]; ?> </th>
</tr>
<tr>
<th scope="col">Vehicle No.</th>
<th scope="col"> <?php echo $row1[vehicleno]; ?> </th>
</tr>
<tr>
<th scope="col">Date</th>
<th scope="col"> <?php echo $row1["date"]; ?> </th>
</tr>
<tr>
<th scope="col">Address</th>
<th scope="col"> <?php echo $row1[address]; ?> </th>
</tr>
<tr>
<th scope="col">City</th>
<th scope="col"> <?php echo $row1[city]; ?> </th>
</tr>
<tr>
<th scope="col">Landmark</th>
<th scope="col"> <?php echo $row1[landmark]; ?> </th>
</tr>
<tr>
<th scope="col">ZIP Code</th>
<th scope="col"> <?php echo $row1[zipcode]; ?> </th>
</tr>
<tr>
<th scope="col">Status</th>
<th scope="col"> <?php echo $row1[status]; ?> </th>
</tr>
<tr>
<th colspan="2" scope="col"><a href="viewservice.php"><<Back</a></th>
</tr>
<?php
while($arrrec= mysql_fetch_array($result))
{
$result1= mysql_query("select * from customer where custid='$arrrec[custid]'");
$arrrec1= mysql_fetch_array($result1);
echo" <tr>
<td> $arrrec[serviecid]</td>";
echo "<td> $arrrec1[fname] $arrrec1[lname]</td>
<td> $arrrec[vehiclename]</td>
<td> $arrrec[date]</td>
<td> $arrrec[address]
<br> City: $arrrec[city]
<br> landmark: $arrrec[landmark]
<br> PIN: $arrrec[zipcode]</td>
<td> More | Billing</td>
</tr>";
}
?>
</table>
</form>
<?php
}
?>
<p> </p>
<br />
</div>
<!-- wrap ends here -->
</div>
<?php
include("footer.php");
?>