feat: OIDC 로그인 연동 및 DB 스키마 업데이트
This commit is contained in:
@@ -76,6 +76,9 @@ $isCompanyAdmin = in_array($auth, ['BS100100', 'BS100200', 'BS100300', 'BS100400
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
window.IS_LOGIN = <?= isset($_SESSION['login']) ? 'true' : 'false' ?>;
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<!-- header -->
|
||||
|
||||
@@ -79,6 +79,31 @@
|
||||
<i class="arrow-r" aria-hidden="true"></i>
|
||||
</a>
|
||||
</div>
|
||||
<style>
|
||||
.btn-oidc {
|
||||
background-color: #000; /* IDP 브랜드 컬러에 맞춰 조정 가능 */
|
||||
color: #fff;
|
||||
border: none;
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
border-radius: 4px;
|
||||
margin-top: 10px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.btn-oidc:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
</style>
|
||||
<div class="btn-wrap">
|
||||
<button type="button" class="btn-oidc" id="btn_oidc_login">
|
||||
OIDC 통합 로그인
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
?>
|
||||
<?php foreach($posts as $row): ?>
|
||||
<?php
|
||||
$isNotice = ($row['category'] === 'notice');
|
||||
$isNotice = ($row['category'] === '공지사항');
|
||||
$rowNumber = $totalIndex - $idx; // 연속 번호 재계산
|
||||
?>
|
||||
<?php $isNotice = ($row['category'] === 'notice'); ?>
|
||||
@@ -156,7 +156,7 @@
|
||||
<td><?= htmlspecialchars($row['display_name']) ?></td>
|
||||
<!-- 제목 -->
|
||||
<td class="left">
|
||||
<?php if (!empty($row['is_secret'])): ?>
|
||||
<?php if (($row['is_secret'] ?? 'N') === 'Y'): ?>
|
||||
<small style="color:#999">[비밀글]</small>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
<td><?= htmlspecialchars(substr($row['created_at'],0,10)) ?></td>
|
||||
<!-- 상태 -->
|
||||
<td>
|
||||
<?php if ($row['category'] === 'notice'): ?>
|
||||
<?php if ($row['category'] === '공지사항'): ?>
|
||||
<!-- 공지사항이면 상태값 안 보여줌 -->
|
||||
<span></span>
|
||||
<?php else: ?>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
<strong class="form-tit">비밀글</strong>
|
||||
<label>
|
||||
<input type="checkbox" name="secret" value="1"
|
||||
<?= !empty($post['is_secret']) ? 'checked':'' ?>>
|
||||
<?= ($isEdit && ($post['is_secret'] ?? 'N') === 'Y') ? 'checked' : '' ?>>
|
||||
비밀글로 등록
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user