File manager - Edit - /home/webapp69.cm.in.th/u69319090028/Shop/views/auth/register.php
Back
<div class="auth-card p-3 p-sm-4 my-2"> <!-- 1. Logo (Fixed Compact Container) --> <div class="logo-container"> <a href="<?= url('/') ?>" class="d-block" title="CARGOO Online Shopping"> <img src="<?= asset('/assets/images/brand/logo1-blue.png') ?>" alt="CARGOO Online Shopping"> </a> </div> <!-- 2. Title --> <div class="text-center mb-1"> <h1 class="auth-title mb-0"><?= __('create_account') ?></h1> </div> <!-- 3. Description --> <div class="text-center mb-3"> <p class="auth-subtitle mb-0"><?= __('register_subtitle') ?></p> </div> <!-- 4. Form --> <form action="<?= url('/register') ?>" method="POST" autocomplete="on"> <?= Security::csrfField() ?> <div class="row g-2 mb-2.5"> <div class="col-6"> <label for="first_name" class="form-label small fw-semibold mb-1"><?= __('first_name') ?> <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-text bg-light border-end-0 text-muted px-2"><i class="bi bi-person"></i></span> <input type="text" class="form-control border-start-0 ps-1" id="first_name" name="first_name" value="<?= e(Session::getOldInput('first_name')) ?>" required autofocus placeholder="สมชาย"> </div> </div> <div class="col-6"> <label for="last_name" class="form-label small fw-semibold mb-1"><?= __('last_name') ?> <span class="text-muted small fw-normal">(<?= __('optional') ?>)</span></label> <div class="input-group"> <span class="input-group-text bg-light border-end-0 text-muted px-2"><i class="bi bi-person"></i></span> <input type="text" class="form-control border-start-0 ps-1" id="last_name" name="last_name" value="<?= e(Session::getOldInput('last_name')) ?>" placeholder="ใจดี (ไม่บังคับ)"> </div> </div> </div> <div class="row g-2 mb-2.5"> <div class="col-6"> <label for="username" class="form-label small fw-semibold mb-1"><?= __('username') ?> <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-text bg-light border-end-0 text-muted px-2">@</span> <input type="text" class="form-control border-start-0 ps-1" id="username" name="username" value="<?= e(Session::getOldInput('username')) ?>" required placeholder="somchai_99" pattern="^[a-zA-Z0-9_]{3,30}$"> </div> </div> <div class="col-6"> <label for="phone" class="form-label small fw-semibold mb-1"><?= __('phone') ?> <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-text bg-light border-end-0 text-muted px-2"><i class="bi bi-telephone"></i></span> <input type="tel" class="form-control border-start-0 ps-1" id="phone" name="phone" value="<?= e(Session::getOldInput('phone')) ?>" required placeholder="0812345678" maxlength="10" pattern="^0[0-9]{9}$"> </div> </div> </div> <div class="mb-2.5"> <label for="email" class="form-label small fw-semibold mb-1"><?= __('email') ?> <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-text bg-light border-end-0 text-muted px-2"><i class="bi bi-envelope"></i></span> <input type="email" class="form-control border-start-0 ps-1" id="email" name="email" value="<?= e(Session::getOldInput('email')) ?>" required placeholder="somchai@example.com"> </div> </div> <div class="mb-2.5"> <label for="regPassword" class="form-label small fw-semibold mb-1"><?= __('password') ?> <span class="text-danger">*</span></label> <div class="input-group input-group-password"> <span class="input-group-text bg-light border-end-0 text-muted px-2"><i class="bi bi-lock"></i></span> <input type="password" class="form-control border-start-0 border-end-0 ps-1" id="regPassword" name="password" required minlength="8" placeholder="อย่างน้อย 8 ตัวอักษร"> <button class="btn btn-outline-secondary btn-toggle-password px-2" type="button" data-target="regPassword" title="<?= __('show_password') ?>" aria-label="<?= __('show_password') ?>"> <i class="bi bi-eye"></i> </button> </div> </div> <div class="mb-3"> <label for="confirmPassword" class="form-label small fw-semibold mb-1"><?= __('confirm_password') ?> <span class="text-danger">*</span></label> <div class="input-group input-group-password"> <span class="input-group-text bg-light border-end-0 text-muted px-2"><i class="bi bi-shield-check"></i></span> <input type="password" class="form-control border-start-0 border-end-0 ps-1" id="confirmPassword" name="confirm_password" required minlength="8" placeholder="พิมพ์รหัสผ่านอีกครั้ง"> <button class="btn btn-outline-secondary btn-toggle-password px-2" type="button" data-target="confirmPassword" title="<?= __('show_password') ?>" aria-label="<?= __('show_password') ?>"> <i class="bi bi-eye"></i> </button> </div> </div> <div class="mb-3"> <div class="form-check"> <input class="form-check-input" type="checkbox" id="termsAccepted" name="terms_accepted" value="1" required> <label class="form-check-label small text-muted user-select-none" for="termsAccepted"> <?= __('agree_terms') ?> <a href="#" data-bs-toggle="modal" data-bs-target="#termsModal" class="text-primary fw-medium text-decoration-none"> <?= __('terms_and_conditions') ?> </a> และ <a href="#" data-bs-toggle="modal" data-bs-target="#termsModal" class="text-primary fw-medium text-decoration-none"><?= __('privacy_policy') ?></a> </label> </div> </div> <!-- 5. Primary Button --> <button type="submit" class="btn btn-cargoo-primary w-100 py-2 fs-6 shadow-sm mb-0"> <i class="bi bi-person-plus me-1"></i> <?= __('register_btn') ?> </button> </form> <!-- 6. Secondary Link --> <div class="text-center mt-3 pt-3 border-top"> <p class="text-muted small mb-0"> <?= __('already_have_account') ?> <a href="<?= url('/login') ?>" class="text-primary fw-bold text-decoration-none ms-1"><?= __('login') ?></a> </p> </div> </div> <!-- Terms & Conditions Modal --> <div class="modal fade" id="termsModal" tabindex="-1" aria-labelledby="termsModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-scrollable modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title fw-bold" id="termsModalLabel"> <i class="bi bi-file-earmark-text text-primary me-2"></i> <?= e($agreement['title'] ?? 'ข้อกำหนดและเงื่อนไขการใช้งาน CARGOO Marketplace') ?> </h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <?php if (!empty($agreement['content'])): ?> <?= nl2br(e($agreement['content'])) ?> <?php else: ?> <h6>1. การยอมรับข้อกำหนด</h6> <p>ยินดีต้อนรับสู่ CARGOO Marketplace การเข้าใช้งานหรือสมัครสมาชิกถือว่าท่านได้อ่าน ทำความเข้าใจ และตกลงที่จะปฏิบัติตามข้อกำหนดและเงื่อนไขทั้งหมด</p> <h6>2. ความปลอดภัยของบัญชีผู้ใช้</h6> <p>ผู้ใช้บริการมีหน้าที่เก็บรักษารหัสผ่านและข้อมูลบัญชีของตนเองเป็นความลับ ห้ามเปิดเผยหรือส่งมอบให้ผู้อื่นใช้งาน</p> <h6>3. การคุ้มครองข้อมูลส่วนบุคคล</h6> <p>CARGOO เคารพความเป็นส่วนตัวและคุ้มครองข้อมูลของท่านตามมาตรฐานความปลอดภัยทางคอมพิวเตอร์และกฎหมาย PDPA</p> <?php endif; ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-cargoo-primary px-4" data-bs-dismiss="modal">รับทราบและเข้าใจแล้ว</button> </div> </div> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings