<div id="header">
    	<div id="top">
			<tpl>if $_SESSION['member_id'] == ''</tpl>
			<div id="loginBox">
            	<form name="login_from" method="post" action="<tpl>WEB_HOST</tpl>/index.php?ctl=member&act=front_member_login">
                	<tpl>$common_header_member_name</tpl><!--用户名-->：
                	  <input type="text" name="username" id="username" class="textInput" />
                    <tpl>$common_header_member_pw</tpl><!--密码-->：
                    <input type="password" name="password" id="password" class="textInput" />
					<tpl>if LOGIN_CODE=='1'</tpl>
					<tpl>$common_header_member_code</tpl><!--验证码-->：
					<input name="login_code" id="login_code" type="text" style="text-transform:uppercase; width:40px" class="textInput" />&nbsp;<tpl>$login_code</tpl>
					<tpl>/if</tpl>
                    &nbsp;&nbsp;<input type="submit" name="button" id="button" class="btnInput" value="<tpl>$common_header_member_login</tpl>" />
                    &nbsp;&nbsp;<input type="button" class="btnInput" onclick="location.href='<tpl>WEB_HOST</tpl>/index.php?ctl=member&act=front_member_register'" value="<tpl>$common_header_member_reg</tpl>" />
            	</form>
			</div><!-- end of loginBox -->
			<tpl>else</tpl>
			<div id="alreadyLogin">
            	<span id="whois"><strong><tpl>$_SESSION['member_name']</tpl></strong><tpl>$common_header_member_welcome</tpl></span>
				|<span><img src="<tpl>WEB_HOST</tpl>/templates/default/images/house.png" /><a href="index.php?ctl=home&act=front_home"><tpl>$common_header_member_home</tpl></a></span>
				|<span><a href="index.php?ctl=member&act=front_member_out"><tpl>$common_header_member_out</tpl></a></span>
            </div><!-- end of alreadyLogin -->
			<tpl>/if</tpl>
            <div id="miniSearch">
            	<form action="index.php" method="get">
							<input type="hidden" name="ctl" value="search" />
							<input type="hidden" name="act" value="front_all_search" />
                    <input type="text" name="keywords" id="keywords" class="textInput" />
                    <input type="submit" name="button3" id="button3" class="btnInput" value="<tpl>$common_header_member_search</tpl>" />
            	</form>
            </div><!-- end of miniSearch -->
        </div><!-- end of top -->
        <div id="topMiddle">
        	<div id="logo">
            	<h1><a href="<tpl>WEB_HOST</tpl>"><tpl>WEB_NAME</tpl></a></h1>
            </div><!-- end of logo -->
            <ul id="miniLinks">
            	<li><a href="index.php?ctl=home&act=front_home"><tpl>$common_header_member_home</tpl></a></li>
            	<li><a href="index.php?ctl=guestbook"><tpl>$common_header_member_guest_book</tpl></a></li>
            	<li class="rss-icon"><a href="index.php?ctl=rss&act=front_rss" target="_blank">RSS</a></li>
            </ul><!-- end of miniLinks -->
        </div><!-- end of topMiddle -->
        <div id="topBottom">
        	<ul id="mainNav">
            	<li <tpl>if $show_menu == 'index'</tpl>class="current"<tpl>/if</tpl>><span><a href="<tpl>WEB_HOST</tpl>"><tpl>$common_index</tpl></a></span></li>
            	<tpl>foreach $top_menu as $v</tpl>
            	<tpl>if RWRITE=='1'</tpl>
				<li <tpl>if $_GET['class_id']==$v['class_id'] </tpl>class="current"<tpl>/if</tpl>><span><a href="<tpl>WEB_HOST</tpl><tpl>CLASSURL</tpl><tpl>$v['class_id']</tpl>.html" ><tpl>$v['class_name']</tpl></a></span></li>
				<tpl>else</tpl>
				<li <tpl>if $_GET['class_id']==$v['class_id'] </tpl>class="current"<tpl>/if</tpl>><span><a href="<tpl>WEB_HOST</tpl>/index.php?ctl=class&act=front_class&class_id=<tpl>$v['class_id']</tpl>" ><tpl>$v['class_name']</tpl></a></span></li>
				<tpl>/if</tpl>
				<tpl>/foreach</tpl>
				<tpl>if RWRITE=='1'</tpl>
				<li <tpl>if $show_menu == 'guestbook'</tpl>class="current"<tpl>/if</tpl>><span><a href="<tpl>WEB_HOST</tpl>/guestbook.html"><tpl>$common_header_member_guestbook</tpl></a></span></li>
            	<tpl>else</tpl>
            	<li <tpl>if $show_menu == 'guestbook'</tpl>class="current"<tpl>/if</tpl>><span><a href="<tpl>WEB_HOST</tpl>/index.php?ctl=guestbook"><tpl>$common_header_member_guestbook</tpl></a></span></li>
            	<tpl>/if</tpl>
			</ul><!-- enf of mainNav -->
        </div><!-- end of topBottom -->
    </div>