<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>登陆会员中心 - <?php echo C('ftx_site_name');?></title>
<meta name="keywords" content="<?php echo ($page_seo["keywords"]); ?>" />
<meta name="description" content="<?php echo ($page_seo["description"]); ?>" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/ftxia/style.css" />
<script type="text/javascript" src="__STATIC__/js/jquery/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/ftxia/item.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/ftxia/loginreg.css" />
</head>
<body>

<div id="toolbar">
	<div class="toolbar juan_content">

		<ul class="juan_login">
		 <?php if(!empty($visitor)): ?><li><a href="<?php echo U('user/index');?>"><b><?php echo ($visitor["username"]); ?></b></a> <?php echo L('welcome');?>,</li><li><a href="<?php echo U('score/index');?>" class="set"><?php echo L('my_gift');?></a></li><li><a href="<?php echo U('user/logout');?>"><?php echo L('logout');?></a></li>
		 <?php else: ?>
		 <li><?php echo L('please');?><a href="<?php echo U('user/login');?>" id="jky_top_login"><b><?php echo L('login');?></b></a></li><li><a href="<?php echo U('user/register');?>"><?php echo L('register');?></a></li><?php endif; ?>
		</ul>
		<ul class="juan_menu">
			<?php $tag_nav_class = new navTag;$data = $tag_nav_class->lists(array('type'=>'lists','style'=>'top','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
				<a href="<?php echo ($val["link"]); ?>" <?php if($val["target"] == 1): ?>target="_blank"<?php endif; ?>><?php echo ($val["name"]); ?></a>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			<li class="barmenu collect">
				<div class="menu-hd collect_to">
					<a href="javascript:;">收藏<?php echo C('ftx_site_name');?></a><b></b>
				</div>
				<div class="menu-client collect_client">
					<dl>
						<dd>
							<div class="add_col">
								<a href="javascript:;"><i></i>添加到收藏夹</a> <span>或者(Ctrl+D)</span>
							</div>
						</dd>
						<dd>
							<div class="add_desktop">
								<a target="_blank" href="<?php echo U('index/shortcut');?>"><i></i>桌面快捷方式</a>
							</div>
						</dd>
						<dd><div class="add_qq"><a href="javascript:;"><i></i>添加到QQ书签</a></div></dd>
					</dl>
				</div>
			</li>
			<li class="barmenu share">
				<div class="menu-hd share_to">
					<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
					<span class="bds_more">分享到</span><b></b>
					</div>
					<script type="text/javascript" id="bdshare_js" data="type=tools&amp;mini=1&amp;uid=662237" ></script>
					<script type="text/javascript" id="bdshell_js"></script>
					<script type="text/javascript">
					document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
					</script>
				</div>
			</li>
		</ul>
	</div>
</div>


<div class="header">
	<div class="header_in">
		<div class="header_top">
			<div class="logo"><h1><a title="<?php echo C('ftx_site_name');?>" href="__ROOT__"><img src="__STATIC__/css/ftxia/image/logo.png"></a></h1></div>
			<div class="search">
				<form method="get" action="__ROOT__/index.php" name="searchform" id="searchform">
				<input type="hidden" name="m" value="index">
				<input type="hidden" name="a" value="so">
				<input type="text" class="text"  value="输入您想要的9.9宝贝" def-val="输入您想要的9.9宝贝" id="key" name="k"/>
				<input type="submit" class="button" value="搜 索" />
				</form>
			</div>
		</div>
	</div>
</div>
<div class="header_bt">
	<div class="main">
		<div class="main_in">
			<ul class="navigation">
				<li class="entrance"><a href="<?php echo C('ftx_kefu_html');?>" target="_blank">在线客服</a></li>
				<li class="entrance"><a class="minor hezuo" href="<?php echo U('goods/goods_add');?>" >商家合作</a></li>
				<li class="entrance"><a class="minor chaxun" href="javascript:" >报名查询</a></li>
				<li <?php if($nav_curr == 'index'): ?>class="current"<?php endif; ?>><a href="__ROOT__/index.htm"><?php echo L('index_page');?></a></li>
				<?php $tag_nav_class = new navTag;$data = $tag_nav_class->lists(array('type'=>'lists','style'=>'main','cache'=>'0','return'=>'data',)); if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li class="split <?php if($nav_curr == $val['alias']): ?>current<?php endif; ?>"><a href="<?php echo ($val["link"]); ?>" <?php if($val["target"] == 1): ?>target="_blank"<?php endif; ?>><?php echo ($val["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
</div>
<div class="mains">
	<div class="white_top">
		<div class="white_top_left"></div>
		<div class="white_top_middle"></div>
		<div class="white_top_right"></div>
	</div>
	<div class="white_bg wrap">
		<div class="wrap_left  w_login">
			<h1><?php echo L('login_title');?></h1>
			<form id="J_login_form" action="<?php echo U('user/login');?>" method="post">
				<ul>
					<li>
						<span><?php echo L('username');?>：</span>
						<input type="text" height="20" name="username" class="usergray" id="J_name" value="用户名/邮箱" onfocus="if (this.value=='用户名/邮箱') {this.value=''; this.style.color='#000';}" size="25" tabindex="1">
						<span style="display: none;" id="err_name" class="err_name">请输入登录名</span>
					</li>
					<li>
						<span><?php echo L('password');?>：</span>
						<input type="password" height="20" name="password" class="usergray" id="J_pass" size="25" maxlength="32" tabindex="2">
						<span style="display: none;" id="err_pass" class="err_pass">请输入密码</span>
					</li>
					<li class="fs12">
                        <input type="checkbox" value="1" name="remember" class="checkbox" checked="checked">
                        <span><?php echo L('rememberme');?></span>
					</li>
					<li>
						<input type="submit" name="imageField" id="submits" value="登　录" class="smt">
						<input type="hidden" name="action" id="login" value="login" />
						<font class="forget1"> <a href="<?php echo U('forget/index');?>"><?php echo L('forget_password');?></a></font>
					</li>
				</ul>
			</form>
		</div>
		<div class="wrap_right">
			<p>还没有账号？赶紧注册吧</p>
			<p><a href="<?php echo U('user/register');?>">注 册</a></p>
			<p>您也可以用站外账号登录：</p>
			<div class="union">

			<?php if(is_array($oauth_list)): $i = 0; $__LIST__ = $oauth_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a class="<?php echo ($val["code"]); ?>" href="<?php echo U('oauth/index', array('mod'=>$val['code']));?>"></a><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
		</div>
	</div>

	<div class="white_bottom">
		<div class="white_bottom_left"></div>
		<div class="white_bottom_middle"></div>
		<div class="white_bottom_right"></div>
	</div>
</div>

<div class="footer">
	<div class="footer_in">
		<?php echo R('advert/index', array(1), 'Widget');?>
		<?php echo R('advert/index', array(2), 'Widget');?>
		<a href="http://www.miaoshanet.com/"><img src="__STATIC__/css/ftxia/image/foot_89.gif" style=" float:left; margin:30px 40px 0 50px;" /></a>
		<?php echo R('advert/index', array(3), 'Widget');?>
		<?php echo R('advert/index', array(4), 'Widget');?>
	</div>
	<p class="f_miibeian">Copyright @ 2010-2013 <?php echo C('ftx_site_url');?> all Rights Reserved <a href="<?php echo C('ftx_site_url');?>" target="_blank"><?php echo C('ftx_site_name');?></a> (<a href="http://www.miibeian.gov.cn" class="tdu clr6" target="_blank"><?php echo C('ftx_site_icp');?></a>) <?php echo C('ftx_statistics_code');?>  </p> 
</div>
<div style="" id="goTopBtn"><a class="b_img" title="回到顶部"></a></div>
<script>
var FTXIAER = {
    root: "__ROOT__",
    uid: "<?php echo $visitor['id'];?>", 
	chaxunurl: "<?php echo U('ajax/check_item');?>",
    url: {}
};
var lang = {};
<?php $_result=L('js_lang');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>lang.<?php echo ($key); ?> = "<?php echo ($val); ?>";<?php endforeach; endif; else: echo "" ;endif; ?>
</script>
<?php $tag_load_class = new loadTag;$data = $tag_load_class->js(array('type'=>'js','href'=>'__STATIC__/js/jquery/plugins/jquery.tools.min.js,__STATIC__/js/jquery/plugins/jquery.masonry.js,__STATIC__/js/jquery/plugins/formvalidator.js,__STATIC__/js/fileuploader.js,__STATIC__/js/ftxia.js,__STATIC__/js/front.js,__STATIC__/js/dialog.js,__STATIC__/js/item.js,__STATIC__/js/user.js,__STATIC__/js/comm.js','cache'=>'0','return'=>'data',));?>

<!-- 淘点金 BEGIN -->
<script type="text/javascript">
(function(win,doc){
var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0];
if (!win.alimamatk_show) {
s.charset = "gbk";
s.async = true;
s.src = "http://a.alimama.cn/tkapi.js";
h.insertBefore(s, h.firstChild);
}
var o = {
pid: "<?php echo C('ftx_header_html');?>",
appkey: "",
unid: ""
}
win.alimamatk_onload = win.alimamatk_onload || [];
win.alimamatk_onload.push(o);
})(window,document);
</script>
<!-- 淘点金 END -->

<script>
$(function(){
    $.ftxia.user.login_validate($('#J_login_form')); //登陆验证
});
</script>
</body>
</html>