-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
70 lines (59 loc) · 1.7 KB
/
profile.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
<?php
session_start();
// cek apakah cust sudah login
if (!isset($_SESSION['customer_id'])) {
header("Location: ./login.php");
exit();
}
require_once('data/customer.php');
// AMBIL DATA CUST
$customer = find_customer_with_id($_SESSION['customer_id']);
$title = 'Profil Saya';
require('layouts/header.php');
?>
<!-- css customs -->
<link rel="stylesheet" href="./assets/css/profile.css">
<!-- content -->
<main>
<!-- profile -->
<div class="profile container">
<div class="profile__header">
<h1>Profil Saya</h1>
</div>
<div class="profile__body">
<div class="profile__left">
<!-- FOTO CUST -->
<img src="./assets/img/default-profile.jpg" alt="<?= $customer['customer_name'] ?>" />
</div>
<div class="profile__right">
<div class="profile__form">
<div>
<!-- NAMA -->
<div class="input-label">Nama:</div>
<div class="input-label"><?= $customer['customer_name'] ?></div>
</div>
<div>
<!-- EMAIL -->
<div class="input-label">Email:</div>
<div class="input-label"><?= $customer['customer_email'] ?></div>
</div>
<div>
<!-- NO TELEPHONE -->
<div class="input-label">Telepon:</div>
<div class="input-label"><?= $customer['customer_phone'] ?></div>
</div>
<!-- TOMBOL UBAH DATA (ubahprofil) -->
<form action="./editprofile.php" method="get">
<button type="submit" class="profile__button">Ubah Data</button>
</form>
</div>
</div>
</div>
</div>
<!-- end profile -->
</main>
<!-- end content -->
<?php
// FOOTER
require('layouts/footer.php');
?>