<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=yes" />
<base href="<?php echo get_setting('base_url');?>/<?php if (get_setting('url_rewrite_enable') != 'Y') { ?><?php echo GET_INDEX_SCRIPT; ?><?php } ?>" />
<?php if (is_array($this->_import_css_files)) { ?>
<?php foreach ($this->_import_css_files AS $import_css) { ?>
<link href="<?php echo $import_css; ?>?v=<?php echo GET_VERSION_BUILD; ?>" rel="stylesheet" type="text/css" />
<?php } ?>
<?php } ?>
<?php if (is_array($this->_import_js_files)) { ?>
<?php foreach ($this->_import_js_files AS $import_js) { ?>
<script src="<?php echo $import_js; ?>?v=<?php echo GET_VERSION_BUILD; ?>" type="text/javascript"></script>
<?php } ?>
<?php } ?>
<title><?php echo $this->page_title; ?></title>
<script type="text/javascript">
	var GET_INDEX_SCRIPT = '<?php if (get_setting('url_rewrite_enable') != 'Y') { ?><?php echo GET_INDEX_SCRIPT; ?><?php } ?>';
	var GET_SITE_NAME = '<?php echo addcslashes(get_setting('site_name'), "'"); ?>';
	var GET_BASE_URL = '<?php echo get_setting('base_url'); ?><?php if (get_setting('url_rewrite_enable') != 'Y') { ?>/<?php echo rtrim(GET_INDEX_SCRIPT, '/'); ?><?php } ?>';
	var GET_STATIC_URL = '<?php echo GET_STATIC_URL; ?>';
	var GET_UPLOAD_URL = '<?php echo get_setting('upload_url'); ?>';
	var GET_USER_ID = <?php echo $this->user_id; ?>;
	var GET_USER_NAME = '<?php echo addcslashes($this->user_info['user_name'], "'"); ?>';
</script>
</head>

<body>
<div class="login">
	<div class="halft">
		<div class="logo"></div>
		<div style=" width:80%;"><?php echo get_setting('description'); ?></div>
	</div>
	
	<div class="halfb">
		<div class="up" style=" "></div>
		
		<div class="wrong" id="tip_error_message" style="display:none"></div>
		
		<form id="login_form" method="post" onsubmit="return false" action="account/ajax/login_process/is_mobile-TRUE">
			<input type="hidden" name="return_url" value="<?php echo $this->return_url; ?>" />
			<input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" />
			
			<div style="  ">
				<div style="padding-right:20px;">
					<input  type="text"  value="Please enter the Email or Username"  onfocus="if(value=='Please enter the Email or Username'){value=''}" onblur="if (value ==''){value='Please enter the Email or Username'}" name="user_name" />
					<input  type="password"  value="Enter the password"  onfocus="if(value=='Enter the password'){value=''}" onblur="if (value ==''){value='Enter the password'}" name="password" onkeydown="if (event.keyCode == 13) { $('#login_submit').click(); }" />
				</div>
				
				<a href="#" id="login_submit" onclick="mobile_ajax_post($('#login_form'), _mobile_tips_form_processer); return false;"><div class="sub">Login</div></a>
				<?php if (get_setting('guest_explorer') == 'Y') { ?>
				<a href="mobile/explore/"><div class="name"> Visitor</div></a>
				<?php } ?>
			</div>
		</form>
	</div>
</div>

<?php TPL::output('mobile/footer.tpl.htm'); ?>