<?php
print <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; 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" type="text/css" href="$imgpath/wind-reset.css" />
<style type="text/css">
body{ font-size:12px;}
a{ text-decoration:none;color:$headfonttwo;}
a:hover{ text-decoration:underline;}
ol{list-style-type:decimal;margin-left:24px;color:#888;}
.mt10{margin-top:10px;}
.lh2{line-height:2;}
.tip-page{width:600px;margin:100px auto 30px;}
.tip-table{margin:0 1px;background:#ffffff;width:598px;}
.tip-top{background:url($imgpath/tip-top.png) center no-repeat;height:50px;}
.tip-bgA,.tip-bgB,.tip-bgC,.tip-bgC {background:$headfonttwo;}
.tip-bgA,.tip-bgB{height:1px;overflow:hidden;}
.tip-bgA{margin:0 2px;}
.tip-bgB{margin:0 1px;}
.tip-bgC{padding-top:1px;}
.tip-content{padding:0 0 0 67px;}
.tip-content tr td{padding:5px 10px 5px 0;line-height:25px;}

.show-back{ text-decoration:underline;display:block;padding-right:25px;line-height:22px;overflow:hidden;background:url($imgpath/tips-back.gif) right 0 no-repeat;height:20px;}
.show-back:hover{ background-position:right -20px;}

.btn{border-color:$headfonttwo;margin-right:1em;color:#fff;background:$headfonttwo;}
.btn,.bt{border-width:1px;cursor:pointer;padding:.1em 1em;*padding:0 1em;font-size:9pt; line-height:130%; overflow:visible;}
.bt{cursor:pointer;background:#f7f7f7 url($imgpath/wind/btn.png) 0 -52px repeat-x;vertical-align:middle;border-color: #e4e4e4 #cccccc #cccccc #e4e4e4;}

/*form*/
input{font:12px Arial;padding:1px 3px 0 3px;vertical-align:middle;margin-bottom:1px;}
.input{border: 1px solid; border-color: #c0c0c0 #ededed #ededed #c0c0c0;padding:2px 0px 2px 1px;font-size:1.0em;vertical-align:middle;color:#000;}
</style>
<script type="text/javascript" language="JavaScript" src="js/core/core.js"></script>
</head>
<body>
<div class="tip-page">
<div class="tip-bgA"></div>
<div class="tip-bgB"></div>
	<div class="tip-bgC">
	<div class="tip-top"></div>
	<table cellpadding="0" cellspacing="0" class="tip-table">
		<tr><td height="170">
		<div class="tip-content">
EOT;
if($showlogin){print <<<EOT
<script language="JavaScript">
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
function opencode() {
	getObj('ckcode').src = 'ck.php?nowtime=' + new Date().getTime();
}
</script>
		<div>您没有登录或者您没有权限访问此页面，可能有如下几个原因:</div>
		<div class="mt10">
			<ol><li>$msg_info</li>
				<li>您还不是站点会员,请先登录站点<br /></li></ol></div>
				<form action="login.php?" method="post" name="login">
				<table width="100%" style="margin:20px 0 0px 0;">
				<tr class="vt"><td width="60">

EOT;
$arr_logintypename = array('用户名','UID','Email');
$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();">

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

			</td>
			<td><input class="input" type="text" tabindex="11" name="pwuser" alt="请输入账户" /></td></tr>
			<tr class="vt"><td>密　码：</td>
				<td><input class="input" type="password" tabindex="12" name="pwpwd" alt="请输入密码" /></td>
			</tr>

EOT;
if($db_ifsafecv){print <<<EOT

			<tr class="vt"><td>安全问题：</td>
				<td><select name="question" 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>
				<input id="customquest" style="display:none" type="text" name="customquest" class="input" tabindex="14" />
			</td></tr>
			<tr class="vt"><td>您的答案：</td>
				<td><input type="text" name="answer" class="input" tabindex="15"></td>
			</tr>

EOT;
}if(is_numeric($qkey)){print <<<EOT

			<tr class="vt"><td>验证问答：</td>
				<td>问题:{$db_question[$qkey]}<br />
					正确答案:{$db_answer[$qkey]}
					<input type="hidden" name="qkey" value="$qkey"  alt="请输入自定义安全问题"/><br />
					<input class="input" type="text" name="qanswer" tabindex="16"  alt="请输入安全答案"/>
			</td></tr>

EOT;
}if($db_gdcheck & 2){print <<<EOT

			<tr class="vt"><td>认证码：</td>
				<td>
					<input class="input" type="text" name="gdcode" size="6" tabindex="17" alt="请输入验证码" />
					<span style="cursor:pointer; margin-left:3px" onclick="try{opencode()}catch(e){}" >点此显示验证码</span>
					<div><img src="$imgpath/loading.gif" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，换一张"  onclick="try{opencode()}catch(e){}"/></div>
<script language="JavaScript">
opencode();
</script>
			</td></tr>

EOT;
}print <<<EOT

			<tr class="vt"><td>隐身登录：</td>
				<td><input name="hideid" type="radio" value="1" /> 开启 &nbsp;
					<input name="hideid" type="radio" value="0" checked tabindex="18" /> 关闭
				</td>
			</tr>
			<tr class="vt"><td></td>
				<td><input class="btn" type="submit" value="登录" tabindex="19" alt="确定登录"/>
					&nbsp;<a href="sendpwd.php" target="_blank" alt="找回密码">找回密码</a>
					&nbsp;<a href="$regurl" target="_blank" alt="马上注册">马上注册</a>
		<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" />
				</td>
			</tr>
		</table>
				</form>
<script language="JavaScript">
document.login.pwuser.focus();
</script>
<div class="tar cc" style="padding:0 20px 20px;">
	<a href="$db_bbsurl" tabindex="20" id="showindex" class="fr">返回首页</a><span class="fr">&nbsp;&nbsp;</span><a href="javascript:;" onclick="javascript:history.go(-1);return false;" class="fr" tabindex="20">返回继续操作</a>
</div>

EOT;
}else{print <<<EOT

<div class="lh2" style="padding:0 40px 0 0;">
<span class="f14">$msg_info</span><br />
EOT;
$dejump && $dejump!=1 && include_once PrintEot($dejump);
print <<<EOT
<div class="cc" style="padding:10px 20px 20px 0;">
<a onclick="var needReload = (is_ie ? history.length == 0 : history.length == 1); if(needReload){self.location.reload();}else{history.back();}return false;" class="show-back fl" tabindex="20" id="showback" style="cursor:pointer;">返回继续操作</a>


</div><a href="$db_bbsurl" tabindex="20" id="showindex" class="fr">返回首页</a></div>

EOT;
}print <<<EOT

				</div>
			</td>
		</tr>
	</table>
	</div>
<div class="tip-bgB"></div>
</div>
</body>
</html>

EOT;
?>