-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_customer.php
87 lines (76 loc) · 2.1 KB
/
admin_customer.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
<?php
mysql_connect("localhost","root",'');
mysql_select_db('furnitures_mkm');
$sql="SELECT * FROM customer";
$records=mysql_query($sql);
error_reporting(0);
include("design.css");
?>
<html>
<head>
<title>MKM Customer</title>
</head>
<body>
<div class="container">
<header>
<h1 style="font-size:75px">MKM Furniture</h1>
<h1 style="font-size:50px">Customers</h1>
</header>
<div class="topnav">
<a href="adminhome.php">Home</a>
<a href="admin_furniture.php">Furniture</a>
<a href="admin_showroom.php">Showroom</a>
<a href="admin_customer.php">Customers</a>
<a href="admin_delivery.php">Delivery</a>
<a href="admin_order.php">Order</a>
<a href="user.php">Users</a>
<a href="admin_stock_check.php">Stock</a>
<a href="admin_manu_order.php">Manufacture Orders</a>
<a href="home.php">Log Out</a>
</div class="topnav">
</header>
<h2 style ="text-align:center">Customer Details</h2>
<style type="text/css">
table, td, tr {
/* border: solid 1px #D5D5FF;*/
border-collapse: collapse;
}
td {font-size:16px;
text-align:center;
background-color: #F4F4FF;
}
td ,tr {
padding: 5px;
}
tr:nth-child(even) td {
background-color: #fff;
font-size:16px;
text-align:center;
}
</style>
<center>
<table width=70% border="1" cellpadding="1" cellspacing="1">
<tr>
<th>Customer ID</th>
<th>Customer Name</th>
<th>Phone Number</th>
<th>Address</th>
</tr>
</center>
<?php
while($cus=mysql_fetch_assoc($records)){
echo "<tr>";
echo "<td >".$cus["cu_id"]."</td>";
echo "<td >".$cus["cu_name"]."</td>";
echo "<td>".$cus["phone_number"]."</td>";
echo "<td>".$cus["address"]."</td>";
echo "</tr>";
}
echo "<table>";
mysql_close();
?>
<div class="topnav">
<footer>..Group 33..</footer>
</div>
</body>
</html>