<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//-- 글제목 읽어오기
$tablename	= $g4[write_prefix] . $bo_table;
$sql	= "select wr_subject from $tablename where wr_id='$wr_id'";
$rd		= sql_fetch($sql);
?>
<style>
/* 페이지 최상단 */
#special_link		{ clear:both; text-align:center; border-bottom:1px solid #EBEBEB; background-color:#FBFBFB; height:24px; padding-top:5px; }
#password_wr_password	{ border:1px solid #B6B6B6; border-radius:3px; width:280px; height:15px; padding:10px 10px 11px 10px; color:#AAAAAA; font-weight:bold; }
.subject	{ color:#A2A2A2; font:normal 12px 나눔고딕; line-height:160%; padding:20px 0 0 0; }
input.btnok		{ border:1px solid #70A7AE; background:#70A7AE; border-radius:3px; width:300px; padding:10px 10px 11px 10px; color:#ffffff; font-weight:bold; cursor:pointer; }
input.btnok:hover	{ border:1px solid #70A7AE; background:#7EB0BE; }
a		{ cursor:pointer; }
</style>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>

<div id="special_link">
	<a href="<?=ZM_BUILDER_URL?>"><img src="<?=$member_skin_path?>/img/icon_home.gif"></a>
</div> <? //-- end special_link -- ?>

<form name="fboardpassword" method=post onsubmit="return fboardpassword_submit(this);">
<input type=hidden name=w           value="<?=$w?>">
<input type=hidden name=bo_table    value="<?=$bo_table?>">
<input type=hidden name=wr_id       value="<?=$wr_id?>">
<input type=hidden name=comment_id  value="<?=$comment_id?>">
<input type=hidden name=sfl         value="<?=$sfl?>">
<input type=hidden name=stx         value="<?=$stx?>">
<input type=hidden name=page        value="<?=$page?>">

<table width="300" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:100px;">
<tr height="50"><td style="color:#589454; font-weight:bold;" valign="bottom">비밀번호 확인</td></tr>
<tr>
	<td><div class="subject"><?=$rd[wr_subject]?></div></td>
</tr>
<tr height="150">
    <td width="200" align="center">
		<div style="padding:0 0 10px 0;"><INPUT type=text maxLength=20 size=15 name="wr_password" id="password_wr_password" value="비밀번호" itemname="비밀번호" required onkeypress="check_capslock(event, 'password_wr_password');" onclick="cngtype(this)" onKeyDown="cngtype(this)"></div>
		<div><INPUT type="submit" value="확 인" class="btnok"></div>
	</td>
</tr>
<tr align="center">
	<td height="60" colspan="2" style="color:#868686;">글 작성 시 입력한 비밀번호를 입력 해 주세요. <a onClick="history.go(-1);"><img src="<?=$member_skin_path?>/img/btn_cancel.gif" align="absmiddle"></a></td>
</tr>
</table>
</form>

<script type='text/javascript'>
document.fboardpassword.wr_password.focus();

function fboardpassword_submit(f)
{
    f.action = "<?=$action?>";
    return true;
}

function cngtype(th){
	if(th.value == "비밀번호") {
		th.value = "";
		$(th).attr("type", "password");
	}
}
</script>
