<!--<?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 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 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;
?>-->