Skip to content

Commit dac2c39

Browse files
committed
only admin can transfer all customer
1 parent 9e3dfbb commit dac2c39

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

View/customer/info.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<?php
4747
if ($customer['avatar'] == 'guest.jpg') {
4848
?>
49-
<img src="assets/images/customer/guest.jpg ?>" alt="user-image" class="rounded-circle" width="80" height='80' id="avatar">
49+
<img src="assets/images/customer/guest.jpg" alt="user-image" class="rounded-circle" width="80" height='80' id="avatar">
5050
<?php
5151
}else{
5252
?>

View/customer/side-bar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<?php
55
if ($customer['avatar'] == 'guest.jpg') {
66
?>
7-
<img src="assets/images/customer/guest.jpg ?>" alt="user-image" class="rounded-circle" style="width: 50px; height: 50px;" id='load_ava'>
7+
<img src="assets/images/customer/guest.jpg" alt="user-image" class="rounded-circle" style="width: 50px; height: 50px;" id='load_ava'>
88
<?php
99
}else{
1010
?>

admin/View/CustomerCare/detail_customer_care.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<div class="card-box">
22
<div class="row">
3+
<?php if ($_SESSION['role']==1 || isset($_GET['user'])){ ?>
34
<div class="col-7">
5+
<?php } else { ?>
6+
<div class="col-12">
7+
<?php } ?>
48
<form>
59
<fieldset class="form-group">
610
<label for="formGroupExampleInput">Care Content</label>
@@ -38,7 +42,7 @@
3842
</table>
3943
</div>
4044
</div> <!--end col-7-->
41-
45+
<?php if ($_SESSION['role']==1 || isset($_GET['user'])){ ?>
4246
<div class="col-5">
4347
<form>
4448
<div class="form-group">
@@ -84,6 +88,7 @@
8488
?>
8589
</div>
8690
</div> <!--end col-5-->
91+
<?php } ?>
8792
</div> <!--end row-->
8893
</div>
8994

admin/View/CustomerCare/list_customer_care.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<td class="text-center"><?= $valueCustomerCare['create_at'] ?></td>
5353

5454
<td class="text-center">
55-
<a href="dashboard.php?page=detail_customer_care&id=<?= $valueCustomerCare['id']; ?>">
55+
<a href="dashboard.php?page=detail_customer_care&user=1&id=<?= $valueCustomerCare['id']; ?>">
5656
<button class="btn btn-info btn-icon waves-effect waves-light" title="Detail"><span><i class="mdi mdi-pencil"></i></span></button>
5757
</a>
5858

0 commit comments

Comments
 (0)