-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_list.php
102 lines (54 loc) · 2.49 KB
/
customer_list.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
<?php require_once("top.php"); ?>
<?php require_once("connection.php"); restrict(1,9,9,1); ?>
<?php
$customer = mysqli_query($con, "SELECT * FROM counterbox ");
$row_customer = mysqli_fetch_assoc($customer);
?>
<div class="card card-header mt-3">
<div class="card card-header text-danger">
<h1>Customer List </h1>
</div>
<div class="card card-body">
<!-- if edit every things faizullah firozi -->
<?php if(isset($_GET["edit"])){ ?>
<div class="alert alert-success alert-dismissable col-lg-4 col-lg-offset-4" style="font-size:22px; color:red; text-align:center">
<button class="close " area-hidden="true" data-dismiss="alert" style="font-size:30px; color:red">X</button>
ستـاســــو تـغیرات بـریالی وو ، منـنـــــه
</div>
<?php } ?>
<?php if(isset($_GET["add"])){ ?>
<div class="alert alert-success alert-dismissable col-lg-4 col-lg-offset-4" style="font-size:22px; color:blue; text-align:center">
<button class="close " area-hidden="true" data-dismiss="alert" style="font-size:30px; color:red">X</button>
په بریالــۍ توګـــــه اضافــه شـــو
</div>
<?php } ?>
<!-- search Total rows show by faizullah firozi -->
<table class="table table-striped table-hover table-dark">
<thead class="bg-success">
<tr>
<th class="text-center" >Counter ID</th>
<th class="text-center" >Customer Name</th>
<th class="text-center" >Customer Type</th>
<th class="text-center" >Coefficient</th>
<th class="text-center" >Phase</th>
<th class="text-center" >Account No</th>
<th class="text-center" >Customer Details</th>
</tr>
</thead>
<tbody>
<?php do { ?>
<tr>
<td class="text-center" ><?php echo $row_customer["counter_id"]; ?></td>
<td class="text-center" ><?php echo $row_customer["customer_name"]; ?></td>
<td class="text-center" ><?php if($row_customer["customer_type"] == 0) { echo "Personal";} else { echo "commercial";} ?></td>
<td class="text-center" ><?php echo $row_customer["coeffecent"]; ?></td>
<td class="text-center" ><?php echo $row_customer["phase"]; ?></td>
<td class="text-center" ><?php echo $row_customer["account_no"]; ?></td>
<td class="text-center" ><a href="customer_list_details.php?counter_id=<?php echo $row_customer["counter_id"]; ?>" ><span class="glyphicon glyphicon-info-sign">All Detail</span></a></td>
</tr>
<?php } while ($row_customer = mysqli_fetch_assoc($customer)); ?>
</tbody>
</table>
</div>
</div>
<?php require_once("footer.php"); ?>