<?php
print <<<EOT
<!doctype html>
<html>
<head>
<meta charset="$db_charset" />
<title>{$webPageTitle}提示信息 - Powered by phpwind</title>
<meta name="generator" content="phpwind $wind_version" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<base id="headbase" href="$db_bbsurl/" />
<link rel="stylesheet" href="$imgpath/pw_core.css?{$GLOBALS['wind_repair']}" />
EOT;
@include Pcv($css_path);
print <<<EOT
-->
<link rel="stylesheet" href="$imgpath/register/register.css?{$GLOBALS['wind_repair']}" />
<style type="text/css">
p,ul,li{padding:0;margin:0;}
li{list-style:none}
.cp { cursor: pointer;}
</style>
<script type="text/javascript" src="js/core/core.js"></script>
<script type="text/javascript" src="js/pw_ajax.js"></script>
</head>
<body onKeyDown="try{keyCodes(event);}catch(e){}">
<div class="wrap">
	<div id="header">
		<div class="head_top"></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">
			<div id="pw_content">
				<div class="p20">
					<div class="regTitle cc">
						<h5 class="s6"><b>提示信息</b></h5>
					</div>
					<div class="cc">
EOT;
if($showlogin){print <<<EOT
						<div class="regForm-wrap">
							<div class="regForm">
<script>
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
</script>
								<div class="regIgnore" style="padding-bottom:20px;">
									<div class="f14 mb5">您没有登录或者您没有权限访问此页面，可能有如下几个原因</div>
									<ol>
										<li>1、{$msg_info}</li>
										<li>2、您还不是站点会员,请先登录站点</li>
									</ol>
								</div>
<form action="login.php?" method="post" name="login">
								<div style="padding-left:15px;">
									<dl>
										<dt style="height:26px;">
EOT;
$arr_logintypename = array('用户名','UID','电子邮箱');
$value = 0;
if(count($_LoginInfo['logintype'])==1){
	$value = current($_LoginInfo['logintype']);print <<<EOT

				<input type="hidden" name="lgt" value="$value"/>$arr_logintypename[$value]

EOT;
}elseif(count($_LoginInfo['logintype'])>1){print <<<EOT

				<select name="lgt" onchange="document.login.pwuser.focus();" class="f14">

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="hidden" name="lgt" value="$value" />用户名

EOT;
}print <<<EOT
										</dt>
										<dd class="ip"><div class=""><input class="input" type="text" tabindex="11" name="pwuser" /></div></dd>
									</dl>
									<dl class="cc">
										<dt>密　码</dt>
										<dd class="ip"><div><input class="input" type="password" tabindex="12" name="pwpwd" /></div></dd>
										<dd><div class="p5"><a href="sendpwd.php#breadCrumb" class="s4" target="_blank" rel="nofollow">找回密码</a></div></dd>
									</dl>
EOT;
if($db_ifsafecv){print <<<EOT

									<dl class="cc">
										<dt>安全问题</dt>
										<dd class="ip"><select name="question" class="f14" style="width:230px;margin-top:3px;" onchange="showcustomquest(this.value)" tabindex="13"><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="customquest" style="display:none">
										<dt>自定义问题</dt>
										<dd class="ip"><div><input type="text" name="customquest" class="input" tabindex="14" /></div></dd>
									</dl>
									<dl class="cc">
										<dt>您的答案</dt>
										<dd class="ip"><div><input type="text" name="answer" class="input" tabindex="15"></div></dd>
									</dl>
EOT;
}if($db_ckquestion & 2 && $db_question){
if($db_imagequestion){
	$question = '<img id="ckquestion" src="ckquestion.php?q='.$qkey.'&t='.$timestamp.'" class="fl" align="top">';
}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" tabindex="16" /></div>
					</dd><dd class="tp" style="padding-top:0;">{$question}
<!--
EOT;
list(,$showq) = explode("\t", $db_qcheck);
if($showq && $qkey>0){print <<<EOT
-->
					（答案：{$db_answer[$qkey]}）
<!--
EOT;
}print <<<EOT
-->
					<input type="hidden" name="qkey" value="$qkey"/>
					</dd>
									</dl>


EOT;
}if($db_gdcheck & 2){
$checkCode = L::loadClass('checkcode', 'site');
$checkCodeString = $checkCode->getCheckCodeTemplate();
print <<<EOT

									<dl class="cc">
										<dt>验证码</dt>
										<dd class="ip ck"><div><input class="input" type="text" name="gdcode" size="6" tabindex="17" onfocus="showgd();" alt="请输入验证码" /></div>
											<span id="ckcode" style="display:none;"></span>
											$checkCodeString
										</dd>
									</dl>
<script>
function loadjs(path, code, id, callBack) {
	id = id || '';
	if (id != '' && IsElement(id)) {
		try{callBack?callBack():0;}catch(e){}
		return false;
	}
	var header = document.getElementsByTagName("head")[0];
	var s = document.createElement("script");
	if (id) s.id = id;
	if (path) {
		if(is_webkit && path.indexOf(' ')>-1)
		{
			var reg = /src="(.+?)"/ig;
			var arr = reg.exec(path);
			if(arr){
				path = arr[1];
			}				
		}
		s.src = path;
	} else if (code) {
		s.text = code;
	}
	if (document.all) {
		s.onreadystatechange = function() {
			if (s.readyState == "loaded" || s.readyState == "complete") {
				callBack?callBack():0;
			}
		};
	} else {
		try{s.onload = callBack?callBack:null;}catch(e){callBack?callBack():0;}
	}
	header.appendChild(s);
	return true;
}
</script>

EOT;
}print <<<EOT
									<dl class="cc">
										<dt>隐身登录</dt>
										<dd class="ip">
											<label class="mr10"><input name="hideid" type="radio" value="1" />开启</label>
											<label><input name="hideid" type="radio" value="0" checked tabindex="18" />关闭</label>
										</dd>
									</dl>

									<dl class="cc">
										<dt>&nbsp;</dt>
										<dd class="ip">
											<span class="btn"><span><button type="submit" tabindex="19">登录</button></span></span><input type="hidden" name="forward" value="" /><input type="hidden" name="jumpurl" value="$jumpurl" /><input type="hidden" name="m" value="$db_mode" /><input type="hidden" name="step" value="2" /><input type="hidden" name="cktime" value="31536000" />
										</dd>
									</dl>

								</div>
</form>									
<script>
document.login.pwuser.focus();
</script>
							</div>
						</div>
							<div class="regLogin f14">
								<div style="padding-left:20px;">
									<p class="mb5">还没有帐号？</p>
									<p style="padding-bottom:30px;"><span class="bt"><span><button type="button" onClick="location.href='$db_registerfile#breadCrumb';">注册一个</button></span></span></p>
									<p class="mb5"><a href="javascript:;" class="mr20 s4" onclick="javascript:history.go(-1);return false;" tabindex="20"><u>返回继续操作</u></a></p>
									<p>或者 <a id="showindex" tabindex="20" class="s4" href="$db_bbsurl"><u>返回首页</u></a></p>
								</div>

<!--
EOT;
/* platform weibo app --start */
L::loadClass('WeiboLoginViewHelper', 'sns/weibotoplatform/viewhelper', false);
$weiboLoginService = L::loadClass('WeiboLoginService', 'sns/weibotoplatform/service');
$loginWays = $weiboLoginService->getLoginWays();
if ($loginWays) {
print <<<EOT
-->
				<link rel="stylesheet" type="text/css" href="u/images/expand/weibologin.css" media="all" />
				<div style="padding-left:20px;padding-top:30px;">
					<p class="f14 mb5">使用合作网站帐号登录：</p>
					<ul class="waysList cc">
<!--
EOT;
	foreach ($loginWays as $loginWay) {
			$windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($loginWay['type']);
print <<<EOT
-->
			<li style="float:none;width:140px;"><a class="s4" title="使用{$loginWay['accountTitle']}登录" href="javascript:;" onclick="$windowOpenScript"><img src="{$loginWay['loginLogo']}" />{$loginWay['accountTitle']}</a></li>
<!--
EOT;
	}
print <<<EOT
-->
					</ul>
				</div>
<!--
EOT;
}
/* platform weibo app --end */

print <<<EOT
-->

							</div>

EOT;
}else{print <<<EOT
						<div class="regForm-wrap" style="min-height:80px;">
							<div class="regForm">
								<div class="regIgnore">
<p class="f14 mb10">$msg_info</p>
EOT;
$dejump && $dejump!=1 && include_once PrintEot($dejump);
print <<<EOT
<p class="f14"><a onclick="var needReload = (is_ie ? history.length == 0 : history.length == 1); if(needReload){self.location.reload();}else{history.back();}return false;" class="s4 cp" tabindex="20" id="showback"><u>返回继续操作</u></a>，或者 <a id="showindex" tabindex="20" class="s4" href="$db_bbsurl"><u>返回首页</u></a></p>
								</div>
							</div>
						</div>

EOT;
}print <<<EOT

					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>
EOT;
?>