-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
63 lines (57 loc) · 1.49 KB
/
profile.php
File metadata and controls
63 lines (57 loc) · 1.49 KB
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
<?php
$title = 'Hồ sơ';
include 'inc/header2.php';
$login_check = Session::get('customer_login');
if ($login_check == false) {
header('Location:dang-nhap.html');
}
?>
</div>
</div>
<?php
include 'inc/sidebar.php';
?>
<h2 class="title2">Thông tin cá nhân</h2>
<div class="row">
<form onsubmit="return false">
<table>
<?php
$id = Session::get('customer_id');
$get_customers = $cs->show_customers($id);
if ($get_customers) {
while ($result = $get_customers->fetch_assoc()) {
?>
<tr>
<td>Họ và tên</td>
<td><input type="text" readonly="readonly" class="form-input" value="<?php echo $result['name'] ?>"></td>
</tr>
<tr>
<td>Điện thoại</td>
<td><input type="number" readonly="readonly" class="form-input" value="<?php echo $result['phone'] ?>"></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" readonly="readonly" class="form-input" value="<?php echo $result['email'] ?>"></td>
</tr>
<tr>
<td>Địa chỉ</td>
<td><input type="text" readonly="readonly" class="form-input" value="<?php echo $result['address'] ?>"></td>
</tr>
<?php
}
}
?>
</table>
<div class="row">
<a href="sua-thong-tin.html"><button type="button" style="margin-right: 5px;">Sửa thông tin</button></a>
<a href="doi-mat-khau.html"><button type="button" style="margin-left: 5px;">Đổi mật khẩu</button></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>