-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathempaccount.php
85 lines (78 loc) · 2.34 KB
/
empaccount.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
<?php
ob_start();
include("header.php");
include("sidebar.php");
include("dbconnection.php");
if(isset($_SESSION[custid]))
{
header("Location: account.php");
}
?>
<div id="main">
<h3>Employee Home Page</h3>
<table width="539" border="1">
<tr>
<td width="382" height="45" align="center" valign="middle"><strong>No. of customers</strong></td>
<td width="141" align="center" valign="middle">
<strong>
<?php
$sqlcount = mysql_query("select * from customer");
echo mysql_num_rows($sqlcount);
?>
</strong></td>
</tr>
<tr>
<td height="42" align="center" valign="middle"><strong>Number of vehicle service requests</strong></td>
<td align="center" valign="middle">
<strong>
<?php
$sqlcount = mysql_query("select * from service where status='Pending'");
echo mysql_num_rows($sqlcount);
?>
</strong></td>
</tr>
<tr>
<td height="40" align="center" valign="middle"><strong>Spare parts orders</strong></td>
<td align="center" valign="middle">
<strong>
<?php
$sqlcount = mysql_query("select * from sparepartsorder where deliverydate='0000-00-00'");
echo mysql_num_rows($sqlcount);
?>
</strong></td>
</tr>
<tr>
<td height="33" align="center" valign="middle"><strong>Used vehicles</strong></td>
<td align="center" valign="middle"><strong>
<?php
$sqlcount = mysql_query("select * from vehicle where status ='Pending'");
echo mysql_num_rows($sqlcount);
?>
</strong></td>
</tr>
<tr>
<td height="40" align="center" valign="middle"><strong>No. of vehices in Vehicle store</strong></td>
<td align="center" valign="middle">
<strong>
<?php
$sqlcount = mysql_query("select * from vehiclestore where status !='Sold'");
echo mysql_num_rows($sqlcount);
?>
</strong></td>
</tr>
<tr>
<td height="35" align="center" valign="middle"><strong>No. of test drive requests</strong></td>
<td align="center" valign="middle"> <strong>
<?php
$sqlcount = mysql_query("select * from testdrive where status ='Pending'");
echo mysql_num_rows($sqlcount);
?>
</strong></td>
</tr>
</table>
</div>
<!-- wrap ends here -->
</div>
<?php
include("footer.php");
?>