<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
	<title>{lang('membercenter')}</title>
	<link href="{$base_url}/common/css/bootstrap/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<link href="{$base_url}/common/font/simple/css/font.css" rel="stylesheet" type="text/css"/>
	<link href="{$skin_user_path}/css/user.css" rel="stylesheet">
	<script src="{$base_url}/common/js/jquery/jquery.min.js"></script>
	<script src="{$base_url}/common/js/jquery/jquery-migrate.min.js"></script>
	<script src="{$skin_user_path}/js/nav.js"></script>

</head>
<body>

<div id="nav">
	<div class="container">
		<div class="row">
			<div class="logo-box">
				<a href="{$base_url}/"><img src="{get('site_logo')}" class="img-responsive" alt="{get('sitename')}" /></a>
			</div>
			<div class="nav-btn">
				<span></span><span></span><span></span>
			</div>
			<div class="nav1">

				<ul>
					<li class="oen"><a href="{$base_url}/" class="aa on">{lang('homepage')}</a></li>
					{loop answer_head_nav() $t}
					<li class="oen">
						<a href="{$t['headurl']}" {if $t['isblank']} target=" _blank" {/if} >{$t['headname']}</a>
					</li>
					{/loop}
					{if config::get('lang_open')=='1'}
					<li id="fat-menu" class="dropdown">
						<a data-toggle="modal" data-target="#myModalLang"><img src="{getlangimg(lang::getistemplate())}" width="20"> {getlangurlname(lang::getistemplate())}
							<span class="caret"></span>
						</a>

					</li>
					{/if}
					{if config::get('site_login')=='1'}
					<li id="login" class="head-loginoen dropdown oen"></li>
					{/if}
				</ul>

			</div>
		</div>
	</div>
</div>
</div>

<div class="section1 user-banner" id="section1">
	<div class="container">

		<div class="nav-btn2">
			<span></span><span></span><span></span>
		</div>

		<div class="row">
			<div class="col-md-6 col-md-push-6">
				<div class="position">

					<a>{lang('membercenter')}</a>
					<span>&gt;</span>
					<a>{lang('home')}</a>
				</div>
			</div>
			<div class="col-md-6 col-md-pull-6">
				<div class="s1-user">
					<div class="s1-user-img img-circle">
						<?php if(isset($user) && is_array($user)) { ?>
						<img src="{$user['headimage']}" alt="headimage" class="img-responsive img-circle">
						<?php } ?>
					</div>
					<div class="s1-user-text">
						<?php if(isset($user) && is_array($user)) { ?>
						<h4>{lang('welcomeyou')} , {$user.username}</h4>
						<p>{$user['e_mail']}</p>
						<p><a href="{url('user/edit/table/user')}" class="logout"><i class="icon-note"></i> {lang('edituserinfo')}</a>	|	<a href="{url('user/logout')}" class="logout">[	{lang('logout')}	]</a></p>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-9">
				<div class="s1-menu">
					<?php if(isset($user) && is_array($user)) { ?>
					<ul>
						<li class="one"><a href="{url('user/index')}" class="aa on">{lang('membercenter')}</a></li>


						<li class="one"><a class="aa toogle">{lang('my-finance')}<span class="caret"></span></a>
							<div class="subnav nav2">
								<ul>
									<?php if(count(pay::getInstance()->getrows())>1 ||
									(count(pay::getInstance()->getrows())==1 && count(pay::getInstance()->getrows('pay_code="nopay"'))==0) ){ ?>
									<li class="tow"><a class="aa" href="{url('manage/consumptionlist/manage/consumption')}">{lang('recharge_record')}</a></li>
									<li class="tow"><a class="aa" href="{url('manage/consumptionlist/manage/xfconsumption')}">{lang('consumption_details')}</a></li>
									<li class="tow"><a class="aa" href="{url('archive/consumption')}">{lang('recharge')}</a></li>
									<?php } ?>
									<li class="tow"><a class="aa" href="{url('manage/orderslist/manage/orders/type/all')}">{lang('order')}</a></li>
									<li class="tow"><a class="aa" href="{url('manage/orderslist/manage/orders/type/refund')}">{lang('refund_record')}</a></li>
									{if front::$apps['vhost']['installed']}

								{/if}

								</ul>
							</div>
						</li>


						<li>
							<a href="{url('question/questionlist/page/1/myseemid/1')}">

								我的关注
								<small>{$seemid_num}</small>
							</a>
						</li>
						<li>
							<a href="{url('question/questionlist/page/1/myanswer/1')}">

								我的问题
								<small>{$myanswer_num}</small>
							</a>
						</li>

						<li>
							<a href="{url('answer/draftanswer')}">

								草稿箱
							</a>
						</li>

						{if session::get('ver') == 'corp'}
						<li class="one"><a class="aa toogle" href="{url('manage/collectlist/manage/user')}">{lang('my-collection')}</a></li>
						{/if}



					</ul>
					<?php } ?>
				</div>
			</div>
			<div class="col-md-3">
				<div class="s1-btn">
					<a href="tencent://Message/?Uin={get('qq1')}&websiteName={get('site_url')}=&Menu=yes"><span class="icon-earphones-alt"></span>	{lang('contact_customer_service')}</a>
				</div>
			</div>
		</div>

	</div>
	<div id="section1-bg" data-svg="{$skin_user_path}/svg/section1-bg.svg" data-ie8img="{$skin_user_path}/svg/section1-bg.png" style="background-image: url(&quot;{$skin_user_path}/svg/section1-bg.svg&quot;);">
	</div>
</div>





<?php
if(hasflash()){
	$showmessage = showflash();
	//var_dump($showmessage);exit;
	if(strlen($showmessage)>200){
?>
<div id='message'><span style="color:red;float:left"><?php echo $showmessage; ?></span>
	<span style="color:blue;float:right"><a href="#" onClick="javascript:turnoff('#message');">(×)</a></span></div><div class="blank20"></div>
<?php
    }else{
?>
<link rel="stylesheet" href="{$base_url}/js/dialog.css">
<script type="text/javascript" src="{$base_url}/js/dialog.js"></script>
<script type="text/javascript">
	var d = dialog({
		title: "{lang('prompted')}",
		content: "<?php echo $showmessage; ?>",
		ok: function () {}
	});
	d.showModal();
</script>
<?php
    }
}
?>