Files
sam-api/public/tenant/inc/header.php
2025-08-11 20:49:15 +09:00

90 lines
3.5 KiB
PHP

<?php include '../inc/config.php'; ?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SAM::테넌트페이지</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
<style>
html, body { height: 100%; }
body {
background-color: #fefefe;
min-height: 100vh;
position: relative;
padding-bottom: 80px; /* 푸터 높이만큼 */
}
header, footer {
background-color: #2c4a85;
color: white;
padding: 1rem;
text-align: center;
}
.container { max-width: 1280px; margin: auto; }
.card {
margin-bottom: 1rem;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(44,74,133,0.07);
border: 1.5px solid #e3eaf3;
}
nav.container { max-width: 1280px; margin: 0 auto; }
nav a { color: white; margin-right: 1rem; }
nav a:hover { text-decoration: underline; }
/* 푸터 하단 고정 */
footer {
position: fixed;
left: 0; bottom: 0;
width: 100%; height: 60px;
z-index: 100;
}
/* 2단 메뉴(서브드롭다운) 오른쪽에 뜨게 */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
top: 0; left: 100%;
margin-top: -1px;
margin-left: 0;
border-radius: 0.5rem;
}
/* SAM Toolbar: title left, actions right (항상 1줄 유지) */
.sam-toolbar {
display:flex; align-items:center; justify-content:space-between;
gap:12px; padding:.5rem 1rem; border-bottom:1px solid #e9ecef; background:#fff;
}
.sam-title { font-weight:600; font-size:1rem; }
.sam-actions {
display:flex; align-items:center; gap:8px; flex-wrap:nowrap; /* 줄바꿈 금지 */
}
.sam-actions .form-select,
.sam-actions .form-control { height:32px; padding:.25rem .5rem; }
.sam-actions .form-select { width:120px; min-width:110px; }
.sam-actions .form-control { width:200px; min-width:180px; }
.sam-actions .btn { white-space:nowrap; }
/* 아주 좁은 화면에서만(<=420px) 2줄 허용 */
@media (max-width: 420px){
.sam-toolbar { row-gap:8px; flex-wrap:wrap; }
.sam-actions { flex:1 1 100%; justify-content:flex-end; flex-wrap:wrap; }
}
/* 공용 테이블 톤앤매너 */
.table-sam.table > :not(caption) > * > * {
vertical-align: middle;
text-align: center;
padding: .55rem .6rem;
}
.table-sam thead th { white-space: nowrap; }
.table-sam tbody tr:hover { background: #f7f9ff; }
.table-sam thead { background: #f0f4fb; }
</style>
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<!-- FullCalendar CSS/JS -->
<link href="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.11/index.global.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.11/index.global.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.11/locales-all.global.min.js"></script>
</head>
<body>
<header>
<h1>SAM (Smart Automation Management)</h1>
<nav class="container">
<?php include '../inc/navi.php'; ?>
</nav>
</header>