40 lines
1.7 KiB
PHP
40 lines
1.7 KiB
PHP
<?php
|
|
session_start();
|
|
require_once '../includes/db.php';
|
|
|
|
if (!isset($_SESSION['cid'])) {
|
|
header("Location: register.php");
|
|
exit;
|
|
}
|
|
|
|
$stmt = $pdo_bot->prepare("SELECT * FROM line_staff_register WHERE cid = ?");
|
|
$stmt->execute([$_SESSION['cid']]);
|
|
$staff = $stmt->fetch();
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="th">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>ข้อมูลส่วนตัว</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="../assets/css/style.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h2><i class="fas fa-user"></i> ข้อมูลส่วนตัว</h2>
|
|
</div>
|
|
<div class="card" style="margin: 20px;">
|
|
<p><strong>CID:</strong> <?= htmlspecialchars($staff['cid']) ?></p>
|
|
<p><strong>HN:</strong> <?= htmlspecialchars($staff['hn']) ?></p>
|
|
<p><strong>ชื่อ-นามสกุล:</strong> <?= htmlspecialchars($staff['fname'] . ' ' . $staff['lname']) ?></p>
|
|
<p><strong>เบอร์โทรศัพท์:</strong> <?= htmlspecialchars($staff['phone']) ?></p>
|
|
<p><strong>สถานะประเมิน:</strong> <?= $staff['assessment_status'] == '1' ? '<span style="color:green;">ทำแล้ว</span>' : '<span style="color:red;">ยังไม่ทำ</span>' ?></p>
|
|
<br>
|
|
<a href="index.php" class="btn-magic" style="background: #ccc; color: #333;">กลับสู่เมนูหลัก</a>
|
|
</div>
|
|
</body>
|
|
</html>
|