<!--<?php
!$webPageTitle && $webPageTitle = $db_bbsname;
$metaVersion = $wind_version;
$wind_repair && $metaVersion .= '(' . $wind_repair . ')';
print <<<EOT
-->
<!doctype html>
<html>
<head>
<meta charset="$db_charset" />
<title>$webPageTitle - Powered by phpwind</title>
<meta name="generator" content="phpwind v{$metaVersion}" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<SCRIPT type="text/javascript" language="JavaScript" src="js/core/core.js"></SCRIPT>
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<!--css-->
<link rel="stylesheet" href="$imgpath/pw_core.css?101128" />
<!--
EOT;
@include Pcv($css_path);
print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$imgpath/register/register.css?110120" media="all" />
</head>
<body onKeyDown="try{keyCodes(event);}catch(e){}">
<div class="wrap">
<div id="header">
		<div style="height:24px;"></div>
		<div id="head" class="cc">
				<a href="$db_bbsurl/"><img src="$imgpath/$stylepath/logo.png" class="fl" title="phpwind" /></a>
		</div>
</div>
<div class="main-wrap">
<div id="main">
<!--
EOT;
print<<<EOT
-->
<div id="pw_content">
	<div class="p20">
		<div class="regTitle cc">
			<h5 class="s6">登录</h5>
		</div>
		<div class="cc">
		<form action="login.php?" method="post" name="login">
		<input type="hidden" value="$forward" name="forward" />
		<input type="hidden" value="$jumpurl" name="jumpurl" />
		<input type="hidden" value="2" name="step" />
		<div class="regForm-wrap">
		<div class="regForm">
<!--
EOT;
if($db_sitemsg['login']['0']){
print<<<EOT
-->
			<div class="blockquote" style="margin-top:-20px;">{$db_sitemsg[login][array_rand($db_sitemsg[login])]}</div>
<!--
EOT;
}print<<<EOT
-->
			<dl>
				<dt>
					<div style="height:26px;">
<!--
EOT;
$arr_logintypename = array('用户名','UID','电子邮箱');
if(count($_LoginInfo['logintype'])==1){
$value = current($_LoginInfo['logintype']);
print <<<EOT
-->
					$arr_logintypename[$value]
<!--
EOT;
}elseif(count($_LoginInfo['logintype'])>1){
print <<<EOT
-->
					<select name="lgt" style="padding:0;">
<!--
EOT;
$i=1;
foreach($_LoginInfo['logintype'] as $value){
$str_checked = $i==1? 'selected':'';
$i++;
print <<<EOT
-->
					<option value="$value" $str_checked>$arr_logintypename[$value]</option>
<!--
EOT;
}print <<<EOT
-->
					</select>
<!--
EOT;
}else{print <<<EOT
-->
							<input type="radio" name="lgt"  value="$value" checked />
							<span id="login_$value">用户名</span>
<!--
EOT;
}print <<<EOT
-->
					</div>
				</dt>
				<dd class="ip"><div class=""><input type="text" class="input" maxLength="60" name="pwuser" /></div></dd>
				<dd class="tp"><div id="regname_info"></div></dd>
			</dl>
			<dl class="cc">
				<dt>密　码</dt>
				<dd class="ip"><div><input class="input mr10" type="password" maxLength="20" name="pwpwd" size="40" /></div></dd>
				<dd><div class="p5"><a href="sendpwd.php#breadCrumb" class="s4" target="_blank">找回密码</a></div></dd>
			</dl>

<!--
EOT;
if($db_ifsafecv){print <<<EOT
-->
			<dl class="cc">
				<dt>安全问题</dt>
				<dd class="ip">
					<select name="question" onChange="showcustomquest(this.value)" style="width:230px;margin-top:3px;">
						<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>
				</dd>
      </dl>
			<dl class="cc" id="customquestid" style="display:none">
				<dt>自定义问题</dt>
				<dd class="ip">
        	<div><input type="text" name="customquest" /></div>
				</dd>
      </dl>
			<dl class="cc">
				<dt>您的答案</dt>
				<dd class="ip mr5"><div><input type="text" class="input" name="answer" /></div></dd>
				<dd><div class="p5 s6">如果您设置了安全问题，需要填写正确的答案才能登录站点</div></dd>
			</dl>
<!--
EOT;
}if(($db_ckquestion & 2) && $db_question){
$qkey = array_rand($db_question);
if(!$question){
	if($db_imagequestion){
		$question = '<img id="ckquestion" style="margin:0;" src="ckquestion.php?q='.$qkey.'&t='.$timestamp.'">';
	}else{
		$question = $qkey<0 ? getMachineQuestion_1() :  $db_question[$qkey];
	}
}
print <<<EOT
-->
      <dl class="cc">
				<dt>验证问答</dt>
				<dd class="ip"><div><input class="input" type="text" name="qanswer" /><input type="hidden" name="qkey" value="$qkey" /></div></dd>
				<dd class="tp"><div class="ignore">{$question}
<!--
EOT;
if($showq && $qkey>0){
print <<<EOT
-->
					<p>正确答案:{$db_answer[$qkey]}</p>
<!--
EOT;
}print <<<EOT
--></div>
				</dd>
      </dl>
<!--
EOT;
}if($db_gdcheck & 2){
$gdSize = explode("\t",$db_gdsize);
print <<<EOT
-->
			<dl class="cc">
				<dt>验证码</dt>
				<dd class="ip ck">
					<div><input id="gdcode" class="input" style="" name="gdcode" value="" /></div>
					<span id="menu_gd"></span>
<script type="text/javascript" src="js/pw_authcode.js"></script>
<script>
var flashWidth = "$gdSize[0]";
var flashHeight = "$gdSize[1]";
var gdtype = $db_gdtype;
showGdCode();
</script>
				</dd>
				<dd></dd>
			</dl>
<!--
EOT;
}print <<<EOT
-->
        <dl class="cc">
            <dt>隐身登录</dt>
            <dd style="padding-top:5px;"><label for="hideid1" class="mr20"><input id="hideid1" name="hideid" type="radio" value="1" />开启</label><label for="hideid0"><input name="hideid" id="hideid0" type="radio" value="0" checked />关闭</label></dd>
        </dl>
        <dl class="cc">
            <dt>Cookie 有效期</dt>
			<dd style="padding-top:5px;">
				<select name="cktime">
					<option value="31536000">一年</option>
					<option value="2592000">一个月</option>
					<option value="86400">一天</option>
					<option value="3600">一小时</option>
					<option value="0">即时</option>
				</select>
			</dd>
        </dl>
        <dl class="cc">
            <dt>&nbsp;</dt>
            <dd><span class="btn"><span><button type="submit" name="submit">登录</button></span></span></dd>
        </dl>
		</div>
		</div>
		<div class="regLogin">
			<div style="padding-left:20px;">
				<p class="f14 mb5">还没有帐号？</p>
				<p style="padding-bottom:50px;"><span class="bt"><span><button type="button" onClick="location.href='$db_registerfile#breadCrumb';">注册一个</button></span></span></p>
			</div>
		</div>
		</form>
		</div>
	</div>
</div>
<script language="JavaScript">
document.login.pwuser.focus();
function showcustomquest(qid){
		getObj("customquestid").style.display=qid==-1?'':'none';
	
}
</script>
</div></div><!--.main-wrap,#main End-->
</div>
</body></html>
<!--
EOT;
?>-->