<?php TPL::output('global/header_landing_blank.tpl.htm'); ?>

<div id="wrapper">
  <div class="login_basic">
    <h1> <img src="<?php echo GET_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/img/login2.png" title="<?php echo get_setting('site_name'); ?>" alt="<?php echo get_setting('site_name'); ?>"/>
      <p class="tny-cl_04"><?php echo get_setting('description'); ?></p>
    </h1>
    <p class="login_state tny-white" id="login_explain">
    	Welcome to <?php echo get_setting('site_name'); ?>, <br />Do you want to know everything, and perhaps answers are all here.<br/>
        <span class="tny-cl_05">Come on in.!</span>
    </p>
    <!--Landing module START-->
    	<div class="login_mod" id="user_login">
        	<h3 class="login_title tny-white"><span class="login_c tny-small tny-line"></span>Login<?php if (get_setting('invite_reg_only') == 'N') { ?><a href="account/register/" class="login_reg tny-white">Sign up</a><?php } ?></h3>
        	<form id="login_form" method="post" onsubmit="return false" action="account/ajax/login_process/">
        	<input type="hidden" name="return_url" value="<?php echo $this->return_url; ?>" />
			<input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" />
            <ul class="loging login_bg_02">
            	<li class="tny-lcol_01 tny-white_bg"><label for="login_userName" class="login_lb tny-small un tny-left"></label><input tabindex="1" type="text" class="login_txt" id="login_userName" title="Email/Username" name="user_name" value="<?php echo $this->r_uname; ?>" /></li>
                <li class="tny-lcol_01 tny-white_bg"><label for="login_password" class="login_lb tny-small pw tny-left"></label><input tabindex="2" type="text" class="login_txt" id="login_password_txt" title="Password" value="Password"/><input type="password" class="login_txt tny-hide" id="login_password" title="Password" name="password" /></li>
                <li id="global_err" class="tny-hide"><p class="global-err tny-small tny-err_bg"><em class="e"></em><span id="glo_Err"></span></p></li>
                <li><a href="javascript:;" class="login_sub tny-cl_06 tny-fb_14 tny-right" tabindex="3" id="login_submit" onClick="$.login.loginSubmit(ajax_post($('#login_form'), _login_form_processer));">Login</a><input type="checkbox" name="net_auto_login" value="1" id="login_radio" checked="true"/><label for="login_radio" class="tny-cl_02" title="Remember login">Remember me</label>&nbsp;&nbsp;<a class="tny-cl_02" href="account/find_password/" title="Passwords do not remember? Click quickly retrieved>> "> Forget?</a></li>
            </ul>
        	</form>
            <div class="loginEnt login_bg_01 ">
            	<?php if ($this->user_info['permission']['visit_explore']){ ?><a href="home/explore/" class="tri tny-small tny-right" title="Back to home">Back to home</a><?php } ?>
            </div>
        </div>
    <!--Landing module START-->
    
    <!--Transparent layer-->  
    <div class="login_alp alpha_login tny-black_bg"></div>
  </div>
</div>

<script type="text/javascript" src="<?php echo GET_STATIC_URL; ?>/js/app/login.js"></script>

<?php TPL::output('global/footer_blank.tpl.htm'); ?>