<?php
include_once("./_common.php");
if (!defined("_GNUBOARD_")) exit;
${$bo_table} = sql_fetch(" select * from g5_board where bo_table = '$bo_table' "); // 업비트 테이블 호출
if ($acode == "coin") {
sql_query(" update g5_board set notice = '$notice' where bo_table = '$bo_table' ");
alert("공지가 입력되었습니다.", "./notice.php?bo_table={$bo_table}");
} else {
?>
<!-- 폰트 추가 (디자인 일관성) -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Noto+Sans+KR:wght@300;500&display=swap">
<article id="COIN">
<form name="Money" method="post" action="./notice.php?acode=coin&bo_table=<?php echo $bo_table; ?>">
<section class="Table">
<!-- 제목 영역 추가 (선택사항이나 디자인 완성도를 위해 스타일링) -->
<div class="Terminal-Header">
<i class="fa-solid fa-terminal"></i> <span>SYSTEM NOTICE EDITOR</span>
</div>
<div class="Line">
<textarea id="notice" name="notice" class="" maxlength="65536" placeholder="Enter system protocols..."><?php echo ${$bo_table}['notice']; ?></textarea>
</div>
<div class="Button">
<input type="submit" value="EXECUTE UPDATE">
</div>
</section>
</form>
</article>
<?php } ?>
<style type="text/css">
/* 1, 2, 3. 모든 구조 및 코드 유지 / 디자인만 변경 */
:root {
--bg-color: #020617;
--card-bg: rgba(15, 23, 42, 0.8);
--accent-blue: #38bdf8;
--text-main: #f1f5f9;
--text-dim: #94a3b8;
--glass-border: rgba(56, 189, 248, 0.2);
}
body {
background: var(--bg-color);
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
font-family: 'Noto Sans KR', sans-serif;
}
#COIN {
width: 100%;
max-width: 800px;
padding: 20px;
animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.Terminal-Header {
background: rgba(30, 41, 59, 0.5);
padding: 12px 20px;
border-radius: 12px 12px 0 0;
border: 1px solid var(--glass-border);
border-bottom: none;
color: var(--accent-blue);
font-family: 'Orbitron', sans-serif;
font-size: 0.85rem;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 10px;
}
#COIN .Table .Line textarea {
width: 100%;
height: 500px;
line-height: 1.8;
background: var(--card-bg);
border: 1px solid var(--glass-border);
border-radius: 0 0 12px 12px;
color: #fff;
font-size: 1rem;
padding: 25px;
box-sizing: border-box;
outline: none;
resize: none;
backdrop-filter: blur(10px);
transition: 0.3s;
box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}
#COIN .Table .Line textarea:focus {
border-color: var(--accent-blue);
box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}
/* 스크롤바 커스텀 */
#COIN .Table .Line textarea::-webkit-scrollbar { width: 8px; }
#COIN .Table .Line textarea::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
#COIN .Table .Line textarea::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
#COIN .Table .Line textarea::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
#COIN .Table .Button {
text-align: center;
margin-top: 25px;
}
#COIN .Table .Button input {
background: var(--accent-blue);
border: none;
color: #020617;
font-size: 1rem;
font-family: 'Orbitron', sans-serif;
font-weight: 700;
margin: 0;
padding: 15px 50px;
border-radius: 8px;
cursor: pointer;
transition: 0.3s;
letter-spacing: 1px;
box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
#COIN .Table .Button input:hover {
background: #fff;
box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
transform: translateY(-2px);
}
#COIN .Table .Button input:active {
transform: translateY(0);
}
</style>