<?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 {
?>
<article id="COIN">
<form name="Money" method="post" action="./notice.php?acode=coin&bo_table=<?php echo $bo_table; ?>">
<section class="Table">
<div class="Line">
<textarea id="notice" name="notice" class="" maxlength="65536"><?php echo ${$bo_table}['notice']; ?></textarea>
</div>
<div class="Button"><input type="submit" value="공 지 입 력"></div>
</section>
</form>
</article>
<?php } ?>
<style type="text/css">
/* 공지 */
body { background:#252525; }
#COIN .Table .Line textarea { width:100%; height:600px; line-height:2vw; background:#000; border:1px solid #333; color:#d1d1d1; font-size:1em; padding:1vw 3vw; }
#COIN .Table .Button { text-align:center; }
#COIN .Table .Button input { background:#000; border:1px solid #000; color:#fff; font-size:1.05em; font-family:'Noto Sans KR', sans-serif; margin:1vw; padding:1vw 3vw; }
#COIN .Table .Button input:hover { background:#393939; border:1px solid #393939; color:#fff; }
</style>