feat: GBLS 리브랜딩 + 매뉴얼 보강 + 워크스페이스/코드관리 UX 개선
리브랜딩 - 서비스명 "종량제 시스템" → "GBLS", 헤더 로고에 풀네임(Garbage Bag Logistics System) 병기 (gov-portal·공통 브랜드·로그인/welcome 셸·타이틀·푸터 전반) 매뉴얼 - 신규 페이지 [로그인·회원가입·계정](01_account.md): 가입 항목·관리자 승인·2차 인증 흐름 - [화면 구성·워크스페이스·단축키]에 계정 전환 시 탭 초기화 안내 추가 워크스페이스(탭) - 탭 전환 시 좌측 사이드바 강조 동기화(메뉴 없는 화면은 강조 해제, 경로 폴백 매칭) - 소메뉴 좌측 아이콘(▸/·) 전부 제거 — 활성 메뉴는 배경 강조로만 구분 - 탭을 사용자(mb_idx)별로 격리: 다른 아이디 로그인 시 이전 탭 복원 안 함 - 사이드바 FAQ 링크 제거(자주 묻는 질문은 매뉴얼에 통합) 기본 코드관리 화면 - 업무현황 카드 스타일로 재디자인(가벼운 표·상태/범위 pill·단일 구분선) - render()에 $bare 옵션 추가 → 이미 카드형인 화면은 바깥 래퍼 생략 기타 - .claude/settings.local.json(개인 권한 설정) .gitignore 추가 - e2e: 워크스페이스(동기화·계정격리) + 매뉴얼(계정·단축키·검색) 케이스 보강 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,7 @@ $navPartial = [
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title><?= esc($title ?? '관리자') ?> - 종량제 시스템</title>
|
||||
<title><?= esc($title ?? '관리자') ?> - GBLS</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
@@ -142,7 +142,7 @@ tailwind.config = {
|
||||
</div>
|
||||
|
||||
<footer class="portal-footer">
|
||||
<span>종량제 시스템 관리자</span>
|
||||
<span>GBLS 관리자</span>
|
||||
<span><?= date('Y.m.d (D) H:i') ?></span>
|
||||
</footer>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ $subtitle = $subtitle ?? '종량제 쓰레기봉투 물류시스템';
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title><?= esc($pageTitle ?? '종량제 시스템') ?></title>
|
||||
<title><?= esc($pageTitle ?? 'GBLS') ?></title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
@@ -39,11 +39,14 @@ if (window.top !== window.self) { try { window.top.location.href = <?= json_enco
|
||||
</script>
|
||||
<body class="bg-portal-bg text-gray-700 flex flex-col min-h-screen font-sans antialiased">
|
||||
<header class="bg-navy text-white h-12 flex items-center justify-between px-4 shrink-0 shadow">
|
||||
<a href="<?= base_url() ?>" class="flex items-center gap-2 shrink-0 text-base font-bold tracking-tight hover:opacity-90" title="종량제 시스템">
|
||||
<a href="<?= base_url() ?>" class="flex items-center gap-2 shrink-0 tracking-tight hover:opacity-90" title="GBLS (Garbage Bag Logistics System)">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 text-white shrink-0" aria-hidden="true" focusable="false">
|
||||
<path fill="currentColor" d="M9 3a1 1 0 00-1 1v1H5.75a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H16V4a1 1 0 00-1-1H9zm9 4H6v11a2 2 0 002 2h8a2 2 0 002-2V7zM10 9a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0110 9zm4 0a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0114 9z"/>
|
||||
</svg>
|
||||
<span class="whitespace-nowrap">종량제 시스템</span>
|
||||
<span class="leading-none flex flex-col">
|
||||
<strong class="text-base font-extrabold tracking-wide">GBLS</strong>
|
||||
<span class="text-[0.56rem] font-medium text-white/65 tracking-tight whitespace-nowrap">Garbage Bag Logistics System</span>
|
||||
</span>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -12,32 +12,40 @@ $showKindActions = $canManageKinds;
|
||||
$selectedKindId = (int) ($selectedKind->ck_idx ?? 0);
|
||||
$colCount = 6 + ($showKindActions ? 1 : 0);
|
||||
$detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
||||
|
||||
/** 상태 배지 (업무현황 스타일의 가벼운 pill) */
|
||||
$stateBadge = static function (int $state): string {
|
||||
return $state === 1
|
||||
? '<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-50 text-emerald-700">사용</span>'
|
||||
: '<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500">미사용</span>';
|
||||
};
|
||||
?>
|
||||
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4">
|
||||
<section>
|
||||
<div class="flex flex-wrap items-center justify-between gap-2 mb-2 border-b pb-1">
|
||||
<h3 class="text-base font-bold text-gray-700">기본코드 종류</h3>
|
||||
<div class="flex flex-wrap items-center gap-2 text-xs sm:text-sm">
|
||||
<?php if ($canManageKinds): ?>
|
||||
<a href="<?= base_url('admin/code-kinds/create') ?>" class="inline-flex items-center rounded bg-[#243a5e] px-3 py-1.5 text-white shadow hover:opacity-90">기본코드 등록</a>
|
||||
<?php else: ?>
|
||||
<span class="text-gray-500">코드 종류 등록·수정은 super admin·본부 관리자만 가능합니다.</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- 기본코드 종류 -->
|
||||
<section class="rounded-xl bg-white border border-gray-200 p-4 shadow-sm">
|
||||
<div class="flex flex-wrap items-center justify-between gap-2 mb-3">
|
||||
<h2 class="text-sm font-bold text-gray-900"><i class="fa-solid fa-layer-group text-blue-600 mr-1"></i>기본코드 종류</h2>
|
||||
<?php if ($canManageKinds): ?>
|
||||
<a href="<?= base_url('admin/code-kinds/create') ?>" class="inline-flex items-center rounded-lg bg-[#243a5e] px-3 py-1.5 text-white text-xs font-semibold shadow-sm hover:opacity-90">기본코드 등록</a>
|
||||
<?php else: ?>
|
||||
<span class="text-gray-400 text-[11px]">코드 종류 등록·수정은 super admin·본부 관리자만 가능합니다.</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="border border-gray-300 overflow-auto">
|
||||
<table class="data-table w-full">
|
||||
<thead><tr>
|
||||
<th class="w-14">번호</th>
|
||||
<th class="w-24">코드</th>
|
||||
<th>코드명</th>
|
||||
<th class="w-24">세부코드</th>
|
||||
<th class="w-20">상태</th>
|
||||
<th class="w-40">등록일</th>
|
||||
<?php if ($showKindActions): ?>
|
||||
<th class="w-36">작업</th>
|
||||
<?php endif; ?>
|
||||
</tr></thead>
|
||||
<div class="overflow-auto">
|
||||
<table class="w-full text-[13px]">
|
||||
<thead>
|
||||
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||
<th class="py-2.5 px-2 w-12 text-center">번호</th>
|
||||
<th class="py-2.5 px-2 w-20">코드</th>
|
||||
<th class="py-2.5 px-2">코드명</th>
|
||||
<th class="py-2.5 px-2 w-20 text-center">세부코드</th>
|
||||
<th class="py-2.5 px-2 w-16 text-center">상태</th>
|
||||
<th class="py-2.5 px-2 w-32">등록일</th>
|
||||
<?php if ($showKindActions): ?>
|
||||
<th class="py-2.5 px-2 w-28 text-center">작업</th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (! empty($codeKinds)): ?>
|
||||
<?php $i = 0; foreach ($codeKinds as $row): $i++; ?>
|
||||
@@ -45,16 +53,16 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
||||
$isSelected = (int) $row->ck_idx === $selectedKindId;
|
||||
$detailUrl = base_url('bag/code-kinds?ck_idx=' . (int) $row->ck_idx);
|
||||
?>
|
||||
<tr class="<?= $isSelected ? 'bg-blue-50' : '' ?> cursor-pointer hover:bg-blue-50"
|
||||
<tr class="border-b border-gray-200 last:border-0 cursor-pointer hover:bg-blue-50/60 <?= $isSelected ? 'bg-blue-50' : '' ?>"
|
||||
onclick="window.location.href='<?= esc($detailUrl, 'attr') ?>'">
|
||||
<td class="text-center"><?= (string) $i ?></td>
|
||||
<td class="text-center font-mono"><?= esc($row->ck_code) ?></td>
|
||||
<td><?= esc($row->ck_name) ?></td>
|
||||
<td class="text-center"><?= (int) ($countMap[$row->ck_idx] ?? 0) ?>개</td>
|
||||
<td class="text-center"><?= (int) ($row->ck_state ?? 0) === 1 ? '사용' : '미사용' ?></td>
|
||||
<td class="text-left"><?= esc($row->ck_regdate ?? '') ?></td>
|
||||
<td class="py-2.5 px-2 text-center text-gray-500"><?= (string) $i ?></td>
|
||||
<td class="py-2.5 px-2 text-center font-mono text-gray-700"><?= esc($row->ck_code) ?></td>
|
||||
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->ck_name) ?></td>
|
||||
<td class="py-2.5 px-2 text-center text-gray-600"><?= (int) ($countMap[$row->ck_idx] ?? 0) ?>개</td>
|
||||
<td class="py-2.5 px-2 text-center"><?= $stateBadge((int) ($row->ck_state ?? 0)) ?></td>
|
||||
<td class="py-2.5 px-2 text-gray-500 text-[12px]"><?= esc($row->ck_regdate ?? '') ?></td>
|
||||
<?php if ($showKindActions): ?>
|
||||
<td class="text-center text-sm" onclick="event.stopPropagation()">
|
||||
<td class="py-2.5 px-2 text-center text-xs" onclick="event.stopPropagation()">
|
||||
<a href="<?= base_url('admin/code-kinds/edit/' . (int) $row->ck_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
||||
<form action="<?= base_url('admin/code-kinds/delete/' . (int) $row->ck_idx) ?>" method="POST" class="inline" onsubmit="return confirm('이 코드 종류를 삭제하시겠습니까?');">
|
||||
<?= csrf_field() ?>
|
||||
@@ -65,42 +73,43 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="<?= (string) $colCount ?>" class="text-center text-gray-400 py-4">등록된 코드 종류가 없습니다.</td></tr>
|
||||
<tr><td colspan="<?= (string) $colCount ?>" class="text-center text-gray-400 py-6">등록된 코드 종류가 없습니다.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<div class="flex flex-wrap items-center justify-between gap-2 mb-2 border-b pb-1">
|
||||
<h3 class="text-base font-bold text-gray-700">
|
||||
세부코드
|
||||
<!-- 세부코드 -->
|
||||
<section class="rounded-xl bg-white border border-gray-200 p-4 shadow-sm">
|
||||
<div class="flex flex-wrap items-center justify-between gap-2 mb-3">
|
||||
<h2 class="text-sm font-bold text-gray-900">
|
||||
<i class="fa-solid fa-list-ul text-emerald-600 mr-1"></i>세부코드
|
||||
<?php if ($selectedKind !== null): ?>
|
||||
— <?= esc($selectedKind->ck_name) ?> (<?= esc($selectedKind->ck_code) ?>)
|
||||
<span class="font-medium text-gray-400">— <?= esc($selectedKind->ck_name) ?> (<?= esc($selectedKind->ck_code) ?>)</span>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
</h2>
|
||||
<?php if ($canManageDetails && $selectedKind !== null): ?>
|
||||
<a href="<?= base_url('admin/code-details/' . (int) $selectedKind->ck_idx . '/create') ?>" class="inline-flex items-center rounded bg-[#243a5e] px-3 py-1.5 text-white shadow hover:opacity-90 text-sm">세부코드 등록</a>
|
||||
<a href="<?= base_url('admin/code-details/' . (int) $selectedKind->ck_idx . '/create') ?>" class="inline-flex items-center rounded-lg bg-[#243a5e] px-3 py-1.5 text-white text-xs font-semibold shadow-sm hover:opacity-90">세부코드 등록</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($selectedKind === null): ?>
|
||||
<div class="border border-gray-300 rounded p-6 text-center text-gray-500">왼쪽에서 코드 종류를 선택해 주세요.</div>
|
||||
<div class="py-10 text-center text-sm text-gray-400">왼쪽에서 코드 종류를 선택해 주세요.</div>
|
||||
<?php else: ?>
|
||||
<div class="border border-gray-300 overflow-auto">
|
||||
<table class="data-table w-full">
|
||||
<div class="overflow-auto">
|
||||
<table class="w-full text-[13px]">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-16">번호</th>
|
||||
<th class="w-24">코드</th>
|
||||
<th>코드명</th>
|
||||
<th class="w-24">범위</th>
|
||||
<th class="w-20">정렬</th>
|
||||
<th class="w-20">상태</th>
|
||||
<th class="w-40">등록일</th>
|
||||
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||
<th class="py-2.5 px-2 w-12 text-center">번호</th>
|
||||
<th class="py-2.5 px-2 w-20">코드</th>
|
||||
<th class="py-2.5 px-2">코드명</th>
|
||||
<th class="py-2.5 px-2 w-16 text-center">범위</th>
|
||||
<th class="py-2.5 px-2 w-14 text-center">정렬</th>
|
||||
<th class="py-2.5 px-2 w-16 text-center">상태</th>
|
||||
<th class="py-2.5 px-2 w-32">등록일</th>
|
||||
<?php if ($canManageDetails): ?>
|
||||
<th class="w-28">작업</th>
|
||||
<th class="py-2.5 px-2 w-24 text-center">작업</th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -111,16 +120,18 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
||||
$isPlatform = (($row->cd_source ?? 'platform') === 'platform' && (int) ($row->cd_lg_idx ?? 0) === 0);
|
||||
$scopeLabel = $isPlatform ? '공통' : '지자체';
|
||||
?>
|
||||
<tr>
|
||||
<td class="text-center"><?= (string) $dNo ?></td>
|
||||
<td class="text-center font-mono"><?= esc($row->cd_code) ?></td>
|
||||
<td><?= esc($row->cd_name) ?></td>
|
||||
<td class="text-center text-xs"><?= esc($scopeLabel) ?></td>
|
||||
<td class="text-center"><?= (int) ($row->cd_sort ?? 0) ?></td>
|
||||
<td class="text-center"><?= (int) ($row->cd_state ?? 0) === 1 ? '사용' : '미사용' ?></td>
|
||||
<td class="text-left"><?= esc($row->cd_regdate ?? '') ?></td>
|
||||
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||
<td class="py-2.5 px-2 text-center text-gray-500"><?= (string) $dNo ?></td>
|
||||
<td class="py-2.5 px-2 text-center font-mono text-gray-700"><?= esc($row->cd_code) ?></td>
|
||||
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->cd_name) ?></td>
|
||||
<td class="py-2.5 px-2 text-center">
|
||||
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium <?= $isPlatform ? 'bg-blue-50 text-blue-700' : 'bg-amber-50 text-amber-700' ?>"><?= esc($scopeLabel) ?></span>
|
||||
</td>
|
||||
<td class="py-2.5 px-2 text-center text-gray-600"><?= (int) ($row->cd_sort ?? 0) ?></td>
|
||||
<td class="py-2.5 px-2 text-center"><?= $stateBadge((int) ($row->cd_state ?? 0)) ?></td>
|
||||
<td class="py-2.5 px-2 text-gray-500 text-[12px]"><?= esc($row->cd_regdate ?? '') ?></td>
|
||||
<?php if ($canManageDetails): ?>
|
||||
<td class="text-center text-sm">
|
||||
<td class="py-2.5 px-2 text-center text-xs">
|
||||
<?php if (! empty($rowCanEdit[$row->cd_idx])): ?>
|
||||
<a href="<?= base_url('admin/code-details/edit/' . (int) $row->cd_idx) ?>" class="text-blue-600 hover:underline">수정</a>
|
||||
<form action="<?= base_url('admin/code-details/delete/' . (int) $row->cd_idx) ?>" method="POST" class="ml-1 inline" onsubmit="return confirm('이 세부코드를 삭제하시겠습니까?');">
|
||||
@@ -135,7 +146,7 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="<?= (string) $detailColCount ?>" class="text-center text-gray-400 py-4">등록된 세부코드가 없습니다.</td></tr>
|
||||
<tr><td colspan="<?= (string) $detailColCount ?>" class="text-center text-gray-400 py-6">등록된 세부코드가 없습니다.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -14,7 +14,7 @@ $userNav = session_user_nav_display();
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title>종량제 시스템</title>
|
||||
<title>GBLS</title>
|
||||
<!-- Tailwind CSS v3 with Plugins -->
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<section>
|
||||
<h3 class="font-bold text-gray-700 mb-1">시스템 개요</h3>
|
||||
<p>종량제 시스템은 지자체 종량제 쓰레기봉투의 발주, 입고, 재고, 판매, 불출 등 전체 물류 프로세스를 관리합니다.</p>
|
||||
<p><strong>GBLS</strong>(Garbage Bag Logistics System)는 지자체 종량제 쓰레기봉투의 발주, 입고, 재고, 판매, 불출 등 전체 물류 프로세스를 관리합니다.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
@@ -17,7 +17,7 @@ $helpUrl = function_exists('manual_help_url_for_path') ? manual_help_url_for_pat
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title><?= esc($title ?? '종량제 시스템') ?></title>
|
||||
<title><?= esc($title ?? 'GBLS') ?></title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
|
||||
@@ -19,7 +19,7 @@ $userNav = session_user_nav_display();
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title><?= esc($title ?? '종량제 시스템') ?></title>
|
||||
<title><?= esc($title ?? 'GBLS') ?></title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap" rel="stylesheet"/>
|
||||
<script>
|
||||
@@ -139,7 +139,7 @@ body { overflow: hidden; }
|
||||
<?= $content ?>
|
||||
</main>
|
||||
<footer class="bg-gray-200 border-t border-gray-300 px-4 py-1 text-xs text-gray-600 flex items-center justify-between shrink-0">
|
||||
<span>종량제 시스템</span>
|
||||
<span>GBLS</span>
|
||||
<span><?= date('Y.m.d (D) g:i:sA') ?></span>
|
||||
</footer>
|
||||
<script>
|
||||
|
||||
@@ -42,7 +42,7 @@ $helpUrl = function_exists('manual_help_url_for_path') ? manual_help_url_for_pat
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title><?= esc($title ?? '종량제 시스템') ?></title>
|
||||
<title><?= esc($title ?? 'GBLS') ?></title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
@@ -143,7 +143,7 @@ tailwind.config = {
|
||||
</div>
|
||||
|
||||
<footer class="portal-footer">
|
||||
<span>종량제 시스템</span>
|
||||
<span>GBLS</span>
|
||||
<span><?= date('Y.m.d (D) H:i') ?></span>
|
||||
</footer>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ if ($effectiveLgIdx) {
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title>워크스페이스 · 종량제 시스템</title>
|
||||
<title>워크스페이스 · GBLS</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||
<style>
|
||||
@@ -106,9 +106,11 @@ if ($effectiveLgIdx) {
|
||||
}
|
||||
|
||||
var STORE_KEY = 'jrj_ws_tabs';
|
||||
var WS_OWNER = '<?= (string) (session()->get('mb_idx') ?? '') ?>'; // 탭 저장 소유자(로그인 사용자) 식별
|
||||
function persist() {
|
||||
try {
|
||||
var data = {
|
||||
owner: WS_OWNER,
|
||||
tabs: order.map(function (id) { return { url: tabs[id].url, title: tabs[id].title }; }),
|
||||
active: activeId
|
||||
};
|
||||
@@ -242,6 +244,11 @@ if ($effectiveLgIdx) {
|
||||
(function restore() {
|
||||
var saved = null;
|
||||
try { saved = JSON.parse(sessionStorage.getItem(STORE_KEY) || 'null'); } catch (e) {}
|
||||
// 저장된 탭의 소유자가 현재 로그인 사용자와 다르면(같은 브라우저 탭에서 계정 전환 등) 복원하지 않고 초기화
|
||||
if (saved && saved.owner !== WS_OWNER) {
|
||||
try { sessionStorage.removeItem(STORE_KEY); } catch (e) {}
|
||||
saved = null;
|
||||
}
|
||||
if (saved && saved.tabs && saved.tabs.length) {
|
||||
saved.tabs.forEach(function (t) { if (t && t.url) openTab(t.url, t.title); });
|
||||
if (saved.active && tabs[saved.active]) activate(saved.active);
|
||||
|
||||
@@ -13,7 +13,7 @@ $mbName = session()->get('mb_name') ?? '담당자';
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>종량제 시스템 — 업무 현황</title>
|
||||
<title>GBLS — 업무 현황</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
|
||||
@@ -18,7 +18,7 @@ $dashBlend = base_url('dashboard/blend');
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>종량제 시스템 — 통계·그래프 현황</title>
|
||||
<title>GBLS — 통계·그래프 현황</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
|
||||
@@ -73,7 +73,7 @@ $notices = [
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>종량제 시스템 — 종합 현황 (정보집약)</title>
|
||||
<title>GBLS — 종합 현황 (정보집약)</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
|
||||
@@ -18,7 +18,7 @@ $dashBlend = base_url('dashboard/blend');
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>종량제 시스템 — 업무 현황 (모던)</title>
|
||||
<title>GBLS — 업무 현황 (모던)</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||
|
||||
@@ -178,7 +178,7 @@ $lowStock = [
|
||||
<i class="fa-solid fa-building-columns"></i>
|
||||
</div>
|
||||
<div class="min-w-0">
|
||||
<p class="text-xs font-semibold text-gray-900 group-hover:text-blue-800">종량제 시스템 · 포털</p>
|
||||
<p class="text-xs font-semibold text-gray-900 group-hover:text-blue-800">GBLS · 포털</p>
|
||||
<p class="text-[11px] text-gray-500 truncate">기본 · 변형(strip) 시안</p>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>종량제 시스템 — 봉투 수불 현황</title>
|
||||
<title>GBLS — 봉투 수불 현황</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
|
||||
|
||||
@@ -6,9 +6,12 @@ $href = $href ?? base_url();
|
||||
/** @var string $linkClass Anchor + inner flex typography */
|
||||
$linkClass = $linkClass ?? 'app-brand flex items-center gap-2 shrink-0 text-base font-semibold text-gray-800 tracking-tight hover:text-blue-600';
|
||||
?>
|
||||
<a href="<?= esc($href) ?>" class="<?= esc($linkClass, 'attr') ?>" title="종량제 시스템">
|
||||
<a href="<?= esc($href) ?>" class="<?= esc($linkClass, 'attr') ?>" title="GBLS (Garbage Bag Logistics System)">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 text-blue-900 translate-y-[1px] shrink-0" aria-hidden="true" focusable="false">
|
||||
<path fill="currentColor" d="M9 3a1 1 0 00-1 1v1H5.75a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H16V4a1 1 0 00-1-1H9zm9 4H6v11a2 2 0 002 2h8a2 2 0 002-2V7zM10 9a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0110 9zm4 0a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0114 9z"/>
|
||||
</svg>
|
||||
<span class="whitespace-nowrap">종량제 시스템</span>
|
||||
<span class="leading-none flex flex-col">
|
||||
<strong class="font-extrabold tracking-wide">GBLS</strong>
|
||||
<span class="text-[0.56rem] font-medium text-gray-400 tracking-tight whitespace-nowrap">Garbage Bag Logistics System</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* 종량제 시스템 — 미니멀 에코 마크 (링 + 잎)
|
||||
* GBLS — 미니멀 에코 마크 (링 + 잎)
|
||||
*
|
||||
* @var string $svgClass Tailwind classes for the SVG root
|
||||
*/
|
||||
|
||||
@@ -11,5 +11,8 @@ $brandHref = $brandHref ?? base_url('dashboard/gov-portal');
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false">
|
||||
<path fill="currentColor" d="M9 3a1 1 0 00-1 1v1H5.75a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H16V4a1 1 0 00-1-1H9zm9 4H6v11a2 2 0 002 2h8a2 2 0 002-2V7zM10 9a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0110 9zm4 0a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0114 9z"/>
|
||||
</svg>
|
||||
<span>종량제 시스템</span>
|
||||
<span style="display:inline-flex;flex-direction:column;line-height:1.02;">
|
||||
<strong style="font-size:1.02rem;font-weight:800;letter-spacing:.5px;">GBLS</strong>
|
||||
<span style="font-size:.56rem;font-weight:500;opacity:.72;letter-spacing:.1px;white-space:nowrap;">Garbage Bag Logistics System</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>종량제 시스템</title>
|
||||
<title>GBLS</title>
|
||||
|
||||
@@ -30,10 +30,9 @@
|
||||
var chHref = (child.href || '').toLowerCase().replace(/^\//, '');
|
||||
var on = activeHref ? (chHref === activeHref) : (hasOverride ? false : ci === 0);
|
||||
if (child.href) {
|
||||
li.innerHTML = '<a href="' + child.url + '" class="' + (on ? 'active' : '') + '">' +
|
||||
'<span class="menu-ico">' + (on ? '▸' : '·') + '</span>' + child.name + '</a>';
|
||||
li.innerHTML = '<a href="' + child.url + '" class="' + (on ? 'active' : '') + '">' + child.name + '</a>';
|
||||
} else {
|
||||
li.innerHTML = '<span class="menu-sub" style="opacity:.65;"><span class="menu-ico">+</span>' + child.name + '</span>';
|
||||
li.innerHTML = '<span class="menu-sub" style="opacity:.65;">' + child.name + '</span>';
|
||||
}
|
||||
listEl.appendChild(li);
|
||||
});
|
||||
@@ -67,21 +66,42 @@
|
||||
try { var a = new URL(u, location.origin); return (a.pathname + a.search).toLowerCase(); }
|
||||
catch (e) { return (u || '').toLowerCase(); }
|
||||
}
|
||||
function pathOnly(u) {
|
||||
try { return new URL(u, location.origin).pathname.toLowerCase().replace(/\/$/, ''); }
|
||||
catch (e) { return (u || '').toLowerCase(); }
|
||||
}
|
||||
// 현재 사이드바의 모든 소메뉴에서 강조(active)를 해제 — 메뉴에 없는 화면(대시보드 등)에서 사용
|
||||
function clearSidebarActive() {
|
||||
listEl.querySelectorAll('a').forEach(function (a) {
|
||||
a.classList.remove('active');
|
||||
});
|
||||
}
|
||||
window.govPortalNav = {
|
||||
// URL 로 소속 대메뉴/소메뉴를 찾아 사이드바 강조를 갱신. 일치 없으면 false.
|
||||
// URL 로 소속 대메뉴/소메뉴를 찾아 사이드바 강조를 갱신. 일치 없으면(대시보드 등) 강조 해제.
|
||||
syncByUrl: function (url) {
|
||||
var target = pathOf(url);
|
||||
var target = pathOf(url), targetPath = pathOnly(url), fb = null;
|
||||
for (var p = 0; p < navData.length; p++) {
|
||||
var par = navData[p];
|
||||
var kids = (par.children && par.children.length) ? par.children : (par.href ? [par] : []);
|
||||
for (var i = 0; i < kids.length; i++) {
|
||||
if (kids[i].url && pathOf(kids[i].url) === target) {
|
||||
if (!kids[i].url) continue;
|
||||
if (pathOf(kids[i].url) === target) { // 정확 일치(경로+쿼리)
|
||||
setActiveTrigger(p);
|
||||
renderSidebar(p, (kids[i].href || '').toLowerCase().replace(/^\//, ''));
|
||||
return true;
|
||||
}
|
||||
if (!fb && pathOnly(kids[i].url) === targetPath) { // 경로만 일치(쿼리 무시) 폴백
|
||||
fb = { p: p, href: (kids[i].href || '').toLowerCase().replace(/^\//, '') };
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fb) {
|
||||
setActiveTrigger(fb.p);
|
||||
renderSidebar(fb.p, fb.href);
|
||||
return true;
|
||||
}
|
||||
// 어느 메뉴와도 일치하지 않으면(예: 업무 현황 대시보드) 화살표 강조 해제
|
||||
clearSidebarActive();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -22,12 +22,11 @@ $activeChildHref = strtolower(ltrim((string) ($govActiveChildHref ?? ''), '/'));
|
||||
<li>
|
||||
<?php if ($child['href'] !== ''): ?>
|
||||
<a href="<?= esc($child['url']) ?>" class="<?= $isChildActive ? 'active' : '' ?>">
|
||||
<span class="menu-ico"><?= $isChildActive ? '▸' : '·' ?></span>
|
||||
<?= esc($child['name']) ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="menu-sub" style="opacity:.65;cursor:default;">
|
||||
<span class="menu-ico">·</span><?= esc($child['name']) ?>
|
||||
<?= esc($child['name']) ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
@@ -35,7 +34,7 @@ $activeChildHref = strtolower(ltrim((string) ($govActiveChildHref ?? ''), '/'));
|
||||
<?php elseif ($activeParent['href'] !== ''): ?>
|
||||
<li>
|
||||
<a href="<?= esc($activeParent['url']) ?>" class="active">
|
||||
<span class="menu-ico">▸</span><?= esc($activeParent['name']) ?>
|
||||
<?= esc($activeParent['name']) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
@@ -51,9 +50,7 @@ $activeChildHref = strtolower(ltrim((string) ($govActiveChildHref ?? ''), '/'));
|
||||
<a href="<?= base_url('admin/select-local-government') ?>" style="color:#fff;text-decoration:underline;">지자체 선택</a>
|
||||
</div>
|
||||
<div class="sb-links">
|
||||
<a href="<?= base_url('bag/help') ?>">나의 할일</a>
|
||||
<a href="<?= base_url('bag/manual') ?>">사용자 매뉴얼</a>
|
||||
<a href="<?= base_url('bag/help') ?>">FAQ</a>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title>홈 - 종량제 시스템</title>
|
||||
<title>홈 - GBLS</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<style data-purpose="global-font-scale">html{font-size:18px}.app-brand,.app-brand *{font-size:16px}</style>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap" rel="stylesheet"/>
|
||||
@@ -45,6 +45,6 @@ tailwind.config = {
|
||||
<a href="<?= base_url('logout') ?>" class="inline-block bg-btn-exit text-white px-4 py-2 rounded-sm text-sm shadow hover:bg-red-700 transition">로그아웃</a>
|
||||
</section>
|
||||
</main>
|
||||
<footer class="bg-gray-200 border-t border-gray-300 px-4 py-1 text-xs text-gray-600 shrink-0">종량제 시스템</footer>
|
||||
<footer class="bg-gray-200 border-t border-gray-300 px-4 py-1 text-xs text-gray-600 shrink-0">GBLS</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -26,11 +26,14 @@ tailwind.config = {
|
||||
</head>
|
||||
<body class="bg-portal-bg text-gray-700 flex flex-col h-screen font-sans antialiased">
|
||||
<header class="bg-navy text-white h-12 flex items-center justify-between px-4 shrink-0 shadow">
|
||||
<a href="<?= base_url() ?>" class="flex items-center gap-2 text-base font-bold tracking-tight hover:opacity-90">
|
||||
<a href="<?= base_url() ?>" class="flex items-center gap-2 tracking-tight hover:opacity-90" title="GBLS (Garbage Bag Logistics System)">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 text-white shrink-0" aria-hidden="true" focusable="false">
|
||||
<path fill="currentColor" d="M9 3a1 1 0 00-1 1v1H5.75a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H16V4a1 1 0 00-1-1H9zm9 4H6v11a2 2 0 002 2h8a2 2 0 002-2V7zM10 9a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0110 9zm4 0a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0114 9z"/>
|
||||
</svg>
|
||||
<span class="whitespace-nowrap">종량제 시스템</span>
|
||||
<span class="leading-none flex flex-col">
|
||||
<strong class="text-base font-extrabold tracking-wide">GBLS</strong>
|
||||
<span class="text-[0.56rem] font-medium text-white/65 tracking-tight whitespace-nowrap">Garbage Bag Logistics System</span>
|
||||
</span>
|
||||
</a>
|
||||
<nav class="flex gap-3 text-sm font-medium">
|
||||
<a class="px-3 py-1 rounded hover:bg-white/10" href="<?= base_url('login') ?>">로그인</a>
|
||||
|
||||
Reference in New Issue
Block a user