<!--<?php
include_once PrintEot('m_header');
print <<<EOT
-->
<div class="bgA cc">
<div class="wrapB cc">
<div class="f14 p10 gray1">
	目前為止已經有{$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="mb8 cc" style="padding-top:10px">
			<h3 class="h3A">{hot_user_index}</h3>
			<div>
			<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>
		<div class="contentA-left ">
			<div class="boxB pr cc">
				<span class="cirA1"></span>
				<span class="cirA2"></span>
				<span class="cirA3"></span>
				<span class="cirA4"></span>
<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" 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;height:225px;" />
					</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>
				<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" 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 class="gray1">
						<span class="fl"><a href="{$basename}q=user&u={authorid}" class="s0">{author}</a>
						&nbsp;<a href="{url}" class="s2">{title,30}</a></span>
						<span class="fr">{replies}個回復</span>
					</li>
				</loop>
				</ul>
			</div>
		</div>
		<div class="c"></div>
	</div>
</div>
<div id="sidebar" class="sidebarA">
	<div class="boxB pr cc" id="loginbox">
		<div class="p10 gray1"><span class="fl">登錄</span><a href="$regurl" class="fr s3">免費注冊&raquo;</a></div>
		<div style="padding:2em 1.5em 1em" id="loginbar">
			<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" size="25" tabindex="7" />
									<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 2em;">忘記密碼</a>
						</td>
					</tr>
				</table>
			</from>
		</div>
		<span class="cirB1"></span>
		<span class="cirB2" style="_right:-2px;"></span>
		<span class="cirB3" style="_right:-2px;"></span>
		<span class="cirB4"></span>
	</div>
<script language="JavaScript">
function showcustomquest(qid){
	getObj('customquest').style.display = qid==-1 ? '' : 'none';
}
</script>
	<div class="c"></div>
	<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>
<!--
EOT;
?>-->
