<!--<?php print <<<EOT
-->
<style type="text/css">
.t{margin-top:8px;border:4px solid $forumcolortwo;}
.t table tr td{height:40px;line-height:40px;padding-left:3em;}
.t table tr th{text-align:right;font-weight:normal;}
.t table{border:2px solid $tablecolor;}
.t .h{padding-left:1em;}
.t .input{margin-right:4px;}
/*提示*/
.angle{position:absolute;border-left:5px transparent solid;_border-left:5px $forumcolortwo solid;border-top:5px $tablecolor solid;border-right:5px transparent solid;_border-right:5px $forumcolortwo solid;border-bottom:0;display:block;width:0;height:0;overflow:hidden;bottom:-5px;right:13px;}
.p-cloes{cursor:pointer;position:absolute;top:8px;width:16px;height:16px;}
.p-sitemsg{display:block;text-indent:-2000em;height:18px;width:18px;background:url($imgpath/sitemsg.gif);cursor:pointer;margin-right:15px;}
.sitemsg{position:absolute;right:5px;_right:15px;bottom:6px;_bottom:40px;padding:5px 8px;border:1px solid $tablecolor;background:$bgcolor;line-height:16px;}
</style>
<div class="bdbA">
	<div id="breadcrumbs">
		<a class="crumbs-item gray3" href="$db_bfn" title="$db_bbsname">$db_bbsname</a><span class="crumbs-item current"><i> </i><strong>登錄</strong></span>
	</div>
</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 f_one">
<table width="100%" cellspacing="0" cellpadding="0" align="center">
	<tr><th class="h">登錄</th><th class="h">&nbsp;</th></tr>
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
	<tr>
		<th>認證碼</th>
		<td>
			<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();">點此顯示驗證碼</span>
			<div class="menu" id="menu_gd" style="visibility:hidden;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，換一張" /></div>
		</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
	<tr>
		<th width="30%" 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
--></th>
		<td><input class="input" type="text" maxLength="20" name="pwuser" size="40" tabindex="1" /> <a href="$db_registerfile">馬上注冊</a></td>
	</tr>
	<tr>
		<th>密　碼</th>
		<td><input class="input" type="password" maxLength="20" name="pwpwd" size="40" tabindex="2" /> <a href="sendpwd.php" target="_blank">找回密碼</a></td>
	</tr>
<!--
EOT;
if($db_ifsafecv){print <<<EOT
-->
	<tr>
		<th>安全問題</th>
		<td>
			<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" />
		</td>
	<tr>
		<th>您的答案</th>
		<td><input type="text" name="answer" class="input" size="40" tabindex="6" /> <span class="gray">如果您設置了安全問題，需要填寫正確的答案才能登錄論壇</span></td>
	</tr>
<!--
EOT;
}if($loginq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
	<tr>
		<th>驗證問答</th>
		<td>{$db_question[$qkey]}<br /><input class="input" type="text" name="qanswer" tabindex="7" /><input type="hidden" name="qkey" value="$qkey" /></td>
<!--
EOT;
}print <<<EOT
-->
	<tr>
		<th>隱身登錄</th>
		<td>
			<input name="hideid" type="radio" value="1" />          是
			<input name="hideid" type="radio" value="0" checked tabindex="8" />　否
		</td>
	</tr>
	<tr>
		<th>Cookie 有效期:</th>
		<td>
			<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;
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
		<div style="position:relative;">
<!--
EOT;
if($db_sitemsg['login']['0']){
print<<<EOT
-->
			<a class="fr p-sitemsg" onclick="showsitemsg();" title="提示信息">提示信息</a>
			<span id="sitemsg" class="sitemsg" style="display:none" onmouseout="showsitemsg();">
			<b class="angle"></b>{$db_sitemsg[login][array_rand($db_sitemsg[login])]}
			</span>
<script language="JavaScript">
function showsitemsg() {
	if (getObj('sitemsg').style.display == "") {
		getObj('sitemsg').style.display = "none";
	} else {
		getObj('sitemsg').style.display = "";
	}
}
setTimeout('showsitemsg();',1500);
</script>
<!--
EOT;
}print<<<EOT
-->	
		</div><input class="btn" type="submit" name="submit" value="登錄" style="width:80px" tabindex="10" /></td></tr>
</table></div>

</form>
<script language="JavaScript">
document.login.pwuser.focus();
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
</script>
<!--
EOT;
?>-->