-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfound_user.php
67 lines (50 loc) · 1.89 KB
/
found_user.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
<?php
include 'header.php'
?>
<div class="container">
<?php
include_once("Config.php");
$res = $pro->findOne(array('Customer.U_name' => $_SESSION['S_U_name']));
?>
<center>
<form action=search_U_name.php method="post">
<label>Enter User Name of Customer :
<input type="text" name="search" >
<input class="btn btn-info btn-lg" type="submit" value="Search"></label>
<label>(To Display all Customer search by 'all')</label>
</form>
<form action="register.php">
<label style="color:red; size:45px">Click here to Add New Customer Account <b>:-></b>
<input class="btn btn-info btn-lg" type="submit" name="add_customer" value="Add new Daily Customer"></label>
</form>
</center>
<div class="main">
<h1 style="color:BLUE"><center>Our Daily Customers</center></h1>
<table class="table" border="3px">
<thead>
<tr style="color:GREEN">
<th>Name</th>
<th>User Name</th>
<th>Mobile Number</th>
<th>Email</th>
<th>Address</th>
<th>Pending Amount</th>
<th>Update Customer Details</th>
<th> To Delete Customer</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $res['Customer']['F_name']." ".$res['Customer']['L_name'] ?></td>
<td><?php echo $res['Customer']['U_name']; ?></td>
<td><?php echo $res['Customer']['M_number']; ?></td>
<td><?php echo $res['Customer']['email']; ?></td>
<td><?php echo $res['Customer']['address']; ?></td>
<td><?php echo "Rs.: ".$res['Customer']['P_amt']; ?></td>
<td> <a class="btn btn-info btn-lg" href="update_customer.php?username=<?php echo $res['Customer']['U_name'];?>&from=admin" > update </a></td>
<td><a class="btn btn-info btn-lg" href="delete_customer.php?username=<?php echo $res['Customer']['U_name']; ?>&from=admin" > delete </a></td>
</tr>
</tbody>
</table>
</div>
</div>