<!--<?php
include_once PrintEot('m_header');
print <<<EOT
-->
<div class="bgA cc">
<div class="wrapB cc">
<div class="f14 p10 gray">
	目前為止已經有{$totalmember}位用戶
</div>
<div class="c"></div>
<div id="content" class="contentA">
	<div class="mainban">
		<a href=""><img src="$pwModeImg/ban_main.jpg" /></a>
	</div>
	<div class="c"></div>
	<div style="margin:.4em 0 .8em; width:698px; float:left" class="boxB bgA pr">
		<div class="cc"  style="padding-top:10px">
			<h3 class="h3A pdD">{hot_user_index}</h3>
			<div class="p10 cc">
			<pw id="hot_user_index" name="活躍會員" stamp="user" num="6"/>
			<loop>
				<dl class="member100">
					<dd>
						<a href="{url}"><img src="{image}" class="portrait-m"/></a>
					</dd>
					<dt>
						<a href="{url}" class="u-name">{title}</a>
					</dt>
				</dl>
			</loop>
				
			</div>
		</div>
		<div class="c"></div>
		<span class="cirA1"></span>
		<span class="cirA2"></span>
		<span class="cirA3"></span>
		<span class="cirA4"></span>
	</div>
	<div class="c"></div>
	<div class="cc">
		<div class="contentA-left fr cc">
			<div class="boxB pr cc">
				<span class="cirA1"></span>
				<span class="cirA2"></span>
				<span class="cirA3" style="_margin-bottom:-1px;"></span>
				<span class="cirA4" style="_margin-bottom:-1px;"></span>
				<div>
<style>
.pwSlide {padding:5px;background:#fff;position:relative;width:260px;height:225px;margin:auto;overflow:hidden;text-align:left;}
.pwSlide a:hover{text-decoration:none;}
.pwSlide h4{background:#fff;position:absolute;z-index:3;bottom:-10px;display:block;width:245px;overflow:hidden;}
.pwSlide ul {z-index:2;position:absolute;right:5px;bottom:35px;}
.pwSlide ul li {float:left;width:18px;height:13px;line-height:15px;text-align:center;margin-left:1px;background: url($imgpath/focus1.gif) no-repeat;}
.pwSlide ul li a {display:block;width:18px;height:13px;font-size:10px;font-family:Tahoma;color:#FFFFFF;}
.pwSlide ul li a:hover, .pwSlide ul li a.sel {color:#fff;text-decoration:none;background: url($imgpath/focus2.gif) no-repeat;}
</style>

				<div id="pwSlidePlayer" class="pwSlide cc" onmouseover="pwSlidePlayer('pause');" onmouseout="pwSlidePlayer('goon');">
					<pw id="o_index_flash" name="圈子首頁flash" stamp="push" num="7"/>
					<loop>
<!--#$tmpCount++;#-->
					<div id="Switch_$key" style="display:none;">
						<a href="{url}"><img src="{image,260,200}" title="{title}" /></a>
                        <h4 class="tac h4A f14"><a href="{url}">{title,35}</a></h4>
					</div>
					</loop>
<!--#
if(empty($tmpCount)){
$tmpCount = 1;
#-->
					<div id="Switch_0">
						<img src="$pwModeImg/flash-no.gif" style="width:260px;padding-top:20px;" />
					</div>
<!--#}#-->
					<ul id="SwitchNav"></ul>
				</div>
				<div class="c"></div>
				<script type="text/javascript" src="js/picplayer.js"></script>
				<script language="JavaScript">pwSlidePlayer('play',1,$tmpCount);</script>
			</div></div>
			<div class="cc">
				<h3 class="h3A">最新照片...</h3>
				<div class="piclistA">
<!--#
foreach($smphoto as $value){
#-->
					<a href="{$basename}q=photos&a=view&pid=$value[pid]"><img src="$value[path]" width="75" height="75" /></a>
<!--#
}
#-->
				</div>
			</div>
		</div>
		<div class="contentA-right boxB pr cc fl" style="padding-top:10px">
			<span class="cirA1"></span>
			<span class="cirA2"></span>
			<span class="cirA3"></span>
			<span class="cirA4"></span>
			<h3 class="h3A">新近熱門的文章</h3>
			<div class="c">
			</div>
			<div class="u-postlist-s">
				<ul>
				<pw id="new_title_index" name="新近熱門的文章" stamp="subject" num="15"/>
				<loop>
					<li>
						<span class="fl"><a href="{$basename}q=user&u={authorid}" class="black">{author}</a>
						&nbsp;<a href="{url}" class="blue">{title,30}</a></span>
						<span class="fr">{replies}個回復</span>
					</li>
				</loop>
				</ul>
			</div>
		</div>
	</div>
</div>
<div id="sidebar" class="sidebarA">
	<div class="boxB pr cc" id="loginbox">
		<span class="cirB1"></span>
		<span class="cirB2"></span>
		<span class="cirB3"></span>
		<span class="cirB4"></span>
		<div class="p10 cc"><span class="fl">登錄</span><a href="$regurl" class="fr s3">免費注冊&raquo;</a></div>
		<div style="padding:0 0 1em 1em" id="loginbar" class="cc">
			<form action="login.php" name="login_FORM" method="post">
				<input type="hidden" name="step" value="2" />
				<input type="hidden" name="cktime" value="31536000" />
				<input type="hidden" name="jumpurl" value="{$basename}" />
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="f14" style="width:50px">
							<select name="lgt">
<!--
EOT;
$arr_logintypename = array('用戶名','UID','Email');
if(count($arr_logintype)==1){
$value = current($arr_logintype);
print <<<EOT
-->
								<option value="$value" selected>$arr_logintypename[$value]</option>
<!--
EOT;
}elseif(count($arr_logintype)>1){
$i=1;
foreach($arr_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
-->
						</td>
						<td class="tal">
							<input class="ip" style="width:140px" name="pwuser" tabindex="1" />
						</td>
					</tr>
					<tr>
						<td class="f14">
							密 碼
						</td>
						<td>
							<input class="ip" type="password" name="pwpwd" style="width:140px;" tabindex="2" />
						</td>
					</tr>
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
							<tr>
								<td class="f14">認證碼</td>
								<td>
									<input class="ip" onfocus="showCK();" type="text" name="gdcode" size="5" tabindex="3"  />
									<img id="ckcode" style="cursor:pointer;display:none" onclick="this.src='ck.php?nowtime='+new Date().getTime();" alt="看不清楚，換一張" />
								</td>
							</tr>
<!--
EOT;
}if($db_ifsafecv){print <<<EOT
-->
							<tr>
								<td class="f14">安全問題</td>
								<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" name="customquest" class="ip" size="10" tabindex="5" />
								</td>
							</tr>
							<tr>
								<td class="f14">您的答案</td>
								<td><input name="answer" class="ip" style="width:140px;" tabindex="6" /></td>
							</tr>
<!--
EOT;
}if($qcheck){print <<<EOT
-->
							<tr>
								<td class="f14">驗證問答</td>
								<td>問題︰{$db_question[$qkey]}<br />
									<input class="ip" name="qanswer" style="width:140px;" tabindex="7" /><br />&nbsp;正確答案︰{$db_answer[$qkey]}
									<input type="hidden" name="qkey" value="$qkey" />
								</td>
							</tr>
<!--
EOT;
}print <<<EOT
-->
					<tr>
						<td>
						</td>
						<td>
							<input type="submit" value=" 登錄 " class="bt" />&nbsp;<a href="sendpwd.php" style="margin:.5em 0 0 1em;">忘記密碼</a>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
<script language="JavaScript">
function showcustomquest(qid){
	getObj('customquest').style.display = qid==-1 ? '' : 'none';
}
</script>

	<div class="boxB pr bgA cc" style="padding-top:10px">
		<h3 class="h3A">{hot_forum_index}</h3>
		<div class="c">
		</div>
		<div class="listTable">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody id="info_forum_tpost">
				<pw stamp="forum" name="今日版塊排行" id="hot_forum_index" />
				<loop>
					<tr>
						<td class="forum-name">
							<div>
								<a href="{url}">
									{title}
								</a>
							</div>
						</td>
						<td class="forum-count">
							{value}
						</td>
					</tr>
				</loop>
				</tbody>
			</table></div>
			<span class="cirA1"></span>
			<span class="cirA2"></span>
			<span class="cirA3"></span>
			<span class="cirA4"></span>
	</div>
	<div class="c"></div>
</div>
</div>
</div><div class="c"></div>
</div>
<!--
EOT;
?>-->
