File manager - Edit - /home/webapp69.cm.in.th/u69319090039/Shop39/app/Views/profile/index.php
Back
<div class="container py-5"> <div class="row justify-content-center"> <div class="col-md-9"> <div class="card border-0 shadow-sm rounded-3"> <div class="card-body p-4 p-md-5"> <h4 class="fw-bold text-primary mb-4"><i class="bi bi-person-badge me-2"></i>จัดการข้อมูลส่วนตัว</h4> <form action="<?= APP_URL ?>/profile/update" method="POST" enctype="multipart/form-data"> <input type="hidden" name="csrf_token" value="<?= $csrf_token ?>"> <!-- Avatar Section --> <div class="d-flex align-items-center gap-4 p-3 bg-light rounded-3 mb-4"> <div class="position-relative"> <?php if (!empty($user['avatar']) && file_exists(SITE_ROOT . '/public/' . $user['avatar'])): ?> <img src="<?= APP_URL . '/public/' . $user['avatar'] ?>" alt="Profile Picture" class="rounded-circle shadow border border-3 border-white" style="width: 100px; height: 100px; object-fit: cover;"> <?php else: ?> <div class="rounded-circle bg-primary text-white d-inline-flex align-items-center justify-content-center shadow border border-3 border-white fs-1" style="width: 100px; height: 100px;"> <i class="bi bi-person-fill"></i> </div> <?php endif; ?> </div> <div class="flex-grow-1"> <label class="form-label font-semibold mb-1">รูปโปรไฟล์ (Profile Picture)</label> <input type="file" name="avatar" class="form-control form-control-sm" accept="image/*"> <div class="form-text small">รองรับไฟล์รูปภาพ JPG, PNG, WEBP หรือ GIF</div> </div> </div> <div class="row g-3 mb-3"> <div class="col-md-6"> <label class="form-label font-semibold">ชื่อผู้ใช้ (Username)</label> <input type="text" class="form-control bg-light" value="<?= Security::e($user['username']) ?>" disabled> </div> <div class="col-md-6"> <label class="form-label font-semibold">อีเมล (Email)</label> <input type="email" class="form-control bg-light" value="<?= Security::e($user['email']) ?>" disabled> </div> </div> <div class="mb-3"> <label class="form-label font-semibold">ชื่อ-นามสกุล</label> <input type="text" name="full_name" class="form-control" value="<?= Security::e($user['full_name']) ?>" required> </div> <div class="row g-3 mb-4"> <div class="col-md-6"> <label class="form-label font-semibold">เบอร์โทรศัพท์</label> <input type="text" name="phone" class="form-control" value="<?= Security::e($user['phone']) ?>"> </div> <div class="col-md-6"> <label class="form-label font-semibold">เปลี่ยนรหัสผ่านใหม่ (ว่างไว้ถ้าไม่ต้องการเปลี่ยน)</label> <input type="password" name="new_password" class="form-control" placeholder="••••••••"> </div> </div> <button type="submit" class="btn btn-primary px-4 py-2 fw-bold shadow-sm rounded-pill"><i class="bi bi-save me-2"></i>บันทึกข้อมูลส่วนตัว</button> </form> </div> </div> </div> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings