<!--<?php
!$webPageTitle && $webPageTitle = $db_bbsname;
$metaVersion = $wind_version;
$wind_repair && $metaVersion .= '(' . $wind_repair . ')';
print <<<EOT
-->
<!doctype html>
<html>
<head>
<title>$webPageTitle - Powered by phpwind</title>
<meta charset="$db_charset" />
<meta name="generator" content="phpwind v{$metaVersion}" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<!--css-->
<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']}" />
<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 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="menu_tasksA_tab" style="margin-bottom:20px">
		    <ul style="padding-left:80px;">
		        <li><a style="font-size:14px; color:#333;" href="login.php?action=weibologinregister">完善帳號資料</a></li>
		        <li class="current"><a style="font-size:14px; color:#333;" href="javascript:;">已有帳號？立即綁定</a></li>
		    </ul>
		</div>
		<div class="cc">
		<form action="login.php?action=weibologinbind" method="post" name="login">
		<input type="hidden" value="2" name="step" />
		<div class="regForm-wrap">
		<div class="regForm">
			<dl>
				<dt></dt>
				<dd style="font-size:14px;">
				你將使用{$loginWay['title']}的帳號綁定本站帳號
				</dd>
			</dl>
			<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></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;
}

/* ignore
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;
}
*/

/* ignore
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" style="display:none;">
            <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" style="display:none;">
            <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>
<!--
EOT;
if($weiboAccount && $weiboAccount[url]){print <<<EOT
-->
		<dl class="cc">
			<dt>官方微博</dt>
			<dd class="mr10" style="line-height: 28px;">
				<label><input type="checkbox" name="isfollow" value="1" checked />關注本站官方微博︰</label>
				<a target="_blank" class="b s4" href="{$weiboAccount['url']}">{$weiboAccount['name']}</a>
			</dd>
			<dd class="tp"></dd>
		</dl>
<!--
EOT;
}print <<<EOT
-->
        <dl class="cc" style="margin-top:15px;">
            <dt>&nbsp;</dt>
            <dd><span class="btn"><span><button type="submit" name="submit">綁定帳號</button></span></span></dd>
        </dl>

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