<!--<?php print <<<EOT
-->
<style type="text/css">
.regItem { padding-bottom:2em ;}
.regItem dl { padding:.2em 0; margin:0 0 1em 0;}
.regItem dt{  margin:0;width:30%; float:left; padding-right:2em;text-align:right; font-size:12px; }
.regItem dd{ float:left;padding-right:2em; margin:0;}
</style>
<div id="breadCrumb">
		<img src="$imgpath/$stylepath/thread/home-old.gif" align="absmiddle" />&nbsp;<a href="$db_bfn" title="$db_bbsname">$db_bbsname</a> &raquo; 登錄
</div>

<form action="login.php?" method="post" name="login" onSubmit="this.submit.disabled = true;">
<input type="hidden" value="$forward" name="forward" />
<input type="hidden" value="$jumpurl" name="jumpurl" />
<input type="hidden" value="2" name="step" />
<div class="t" style="margin-top:8px;">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr><th class="h">登錄</th></tr>
<tr><td>
	<div class="cc p10 regItem">
<!--
EOT;
if($db_sitemsg['login']['0']){
print<<<EOT
-->
		<dl class="cc">
			<dt>&nbsp;</dt>
			<dd><div class="blockquote" style="margin:0;">{$db_sitemsg[login][array_rand($db_sitemsg[login])]}</div></dd>
		</dl>
<!--
EOT;
}print<<<EOT
-->	
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
							<dl class="cc">
								<dt>認證碼</dt>
								<dd>
<input class="input" type="text" name="gdcode" size="5" tabindex="3" onfocus="try{opencode('menu_gd',this)}catch(e){}" /><span style="cursor:pointer; margin-left:3px" onclick="this.previousSibling.focus();">&nbsp;點此顯示驗證碼</span>
			<div class="menu" id="menu_gd" style="visibility:hidden;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，換一張" /></div>
								</dd>
								</dl>
<!--
EOT;
}print <<<EOT
-->
							<dl class="cc">
								<dt onclick="document.login.pwuser.focus();"><!--
EOT;
$arr_logintypename = array('用戶名','UID','Email');
if(count($arr_logintype)==1){
$value = current($arr_logintype);
print <<<EOT
-->
<input type="radio" name="lgt" value="$value" checked /> $arr_logintypename[$value]
<!--
EOT;
}elseif(count($arr_logintype)>1){
$i=1;
foreach($arr_logintype as $value){
$str_checked = $i==1? 'checked':'';
$i++;
print <<<EOT
-->
<input type="radio" name="lgt" value="$value" $str_checked /> $arr_logintypename[$value]
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
}else{print <<<EOT
-->
<input type="radio" name="lgt" value="$value" checked /> 
<!--
EOT;
}print <<<EOT
--></dt>
								<dd>
<input class="input" type="text" maxLength="20" name="pwuser" size="40" tabindex="1" /> <a href="$db_registerfile">馬上注冊</a>
								</dd>
								</dl>
			<dl class="cc">
				<dt>密　碼</dt>
				<dd><input class="input" type="password" maxLength="20" name="pwpwd" size="40" tabindex="2" /> <a href="sendpwd.php" target="_blank">找回密碼</a></dd>
			</dl>
<!--
EOT;
if($db_ifsafecv){print <<<EOT
-->
			<dl class="cc">
				<dt>安全問題</dt>
				<dd>			<select name="question" onchange="showcustomquest(this.value)" tabindex="4">
<option value="0">無安全問題</option>
	<option value="1">我爸爸的出生地</option>
	<option value="2">我媽媽的出生地</option>
	<option value="3">我的小學校名</option>
	<option value="4">我的中學校名</option>
	<option value="5">我最喜歡的運動</option>
	<option value="6">我最喜歡的歌曲</option>
	<option value="7">我最喜歡的電影</option>
	<option value="8">我最喜歡的顏色</option>
	<option value="-1">自定義問題</option>
			</select>
			<input id="customquest" style="display:none" type="text" name="customquest" class="input" size="17" tabindex="5" /></dd>
			</dl>
			<dl class="cc">
				<dt>您的答案</dt>
				<dd><input type="text" name="answer" class="input" size="40" tabindex="6" /> <span class="gray">如果您設置了安全問題，需要填寫正確的答案才能登錄論壇</span></dd>
			</dl>
<!--
EOT;
}if($loginq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
			<dl class="cc">
				<dt>驗證問答</dt>
				<dd>問題︰{$db_question[$qkey]}<br /><input class="input" type="text" name="qanswer" tabindex="7" /><input type="hidden" name="qkey" value="$qkey" />  正確答案︰{$db_answer[$qkey]}</dd>
			</dl>
<!--
EOT;
}print <<<EOT
-->
			<dl class="cc">
				<dt>隱身登錄</dt>
				<dd>			<input name="hideid" type="radio" value="1" />          是
			<input name="hideid" type="radio" value="0" checked tabindex="8" />　否</dd>
			</dl>
			<dl class="cc">
				<dt>Cookie 有效期:</dt>
				<dd>			<input type="radio" name="cktime" value="31536000" checked tabindex="9" />        一年 &nbsp;
			<input type="radio" name="cktime" value="2592000" /> 一個月 &nbsp;
			<input type="radio" name="cktime" value="86400" />			一天 &nbsp;
			<input type="radio" name="cktime" value="3600" />			一小時 &nbsp;
			<input type="radio" name="cktime" value="0" />				即時 &nbsp; &nbsp;</dd>
			</dl>
			<dl class="cc">
				<dt>&nbsp;</dt>
				<dd><input class="btn" type="submit" name="submit" value="登錄" style="width:80px" tabindex="10" /></dd>
			</dl>
		</td></tr>
</table></div>
</form>
<script language="JavaScript">
document.login.pwuser.focus();
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
</script>
<!--
EOT;
?>-->