| Server IP : 104.21.73.108 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 User : paphayomho ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/paphayomho/domains/paphayomhospital.go.th/private_html/procurement/ |
Upload File : |
<?php include 'config.php'; ?>
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>ระบบประกาศข่าวสาร</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
body { background-color: #f8f9fa; font-family: 'Sarabun', sans-serif; }
.card-custom { border-radius: 10px; border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.badge-latest { background-color: #e8f5e9; color: #2e7d32; padding: 5px 12px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; }
</style>
</head>
<body>
<div class="container py-5">
<ul class="nav nav-tabs mb-4" id="myTab">
<li class="nav-item"><button class="nav-link active" data-bs-toggle="tab" data-bs-target="#procure">จัดซื้อจัดจ้าง</button></li>
<li class="nav-item"><button class="nav-link" data-bs-toggle="tab" data-bs-target="#job">รับสมัครงาน</button></li>
</ul>
<div class="tab-content">
<?php
$cats = ['procure' => 'จัดซื้อจัดจ้าง', 'job' => 'รับสมัครงาน'];
foreach($cats as $key => $name):
$res = $conn->query("SELECT * FROM posts WHERE category='$key' ORDER BY id DESC LIMIT 1");
$row = $res->fetch_assoc();
?>
<div class="tab-pane fade <?= $key=='procure'?'show active':'' ?>" id="<?= $key ?>">
<?php if($row): ?>
<div class="card card-custom p-3 d-flex flex-row align-items-center justify-content-between">
<div>
<span class="badge-latest me-2">ล่าสุด</span>
<strong><?= htmlspecialchars($row['title']) ?></strong>
</div>
<?php if($row['file_path']): ?>
<a href="uploads/<?= $row['file_path'] ?>" target="_blank" class="btn btn-sm btn-outline-primary">PDF</a>
<?php endif; ?>
</div>
<?php else: ?> <p>ไม่มีข้อมูล</p> <?php endif; ?>
</div>
<?php endforeach; ?>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>