61 lines
1.6 KiB
PHP
61 lines
1.6 KiB
PHP
<?php
|
|
session_start();
|
|
if (empty($_SESSION['sess_userid']) || $_SESSION['sess_userid'] !== session_id()) {
|
|
header("Location: index.php");
|
|
exit();
|
|
}
|
|
|
|
$account = $_SESSION['account'] ?? '';
|
|
$name = $_SESSION['name'] ?? '';
|
|
$position = $_SESSION['position'] ?? '';
|
|
$ip = $_SESSION['ip'] ?? '';
|
|
$page_link = "main.php";
|
|
|
|
require_once("config/db.php");
|
|
require_once("check_client.php");
|
|
require_once("date_format.php");
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="th">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>HOSxP Web Service | หน้าหลัก</title>
|
|
<link rel="icon" type="image/png" sizes="16x16" href="favicon1.ico">
|
|
<link rel="stylesheet" href="css/styles.css" type="text/css" />
|
|
<style>
|
|
.app-layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
.main-content {
|
|
flex: 1;
|
|
padding: 0 20px 20px 20px;
|
|
overflow-y: auto;
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="app-layout">
|
|
<?php require_once("includes/sidebar.php"); ?>
|
|
|
|
<main class="main-content">
|
|
<?php require_once("includes/header.php"); ?>
|
|
|
|
<div class="content-wrapper" style="animation: slideUp 0.5s ease;">
|
|
<?php require_once("right_panel.php"); ?>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script src="js/app.js"></script>
|
|
<style>
|
|
@keyframes slideUp {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
</style>
|
|
</body>
|
|
</html>
|