<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<title>管理员面板</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link href="{$admin_template_data}css/custom/custom.css" media="screen" rel="stylesheet" type="text/css" />
<link href="{$admin_template_data}css/custom/template.css" media="screen" rel="stylesheet" type="text/css" />
{include file="$root_path/templates/admin/default/html/jstemplate.html"}
</head>
<body>
<div class="header">
	<div class="container">
		<h1 class="pagelogo"><a href="/" class="marketplace" title="{$domain}">{$domain}</a></h1>
		{if check_login_bool()}
		<div class="account-wrapper">
			<ul id="user-account-nav">
				<li>
					<a><span id="user_username">{$smarty.session.user.username}</span>, <span class="user_balance">{$currency.symbol}{$smarty.session.user.total|string_format:"%.2f"}</span></a>
					<div>
						<ul>
							<li class="profile"><a href="/{$languageURL}user/{$smarty.session.user.username}/">个人资料</a></li>
							<li class="settings"><a href="/{$languageURL}edit/">我的设置</a></li>
							<li class="downloads"><a href="/{$languageURL}download/">下载</a></li>
							<li class="bookmarks"><a href="/{$languageURL}user/bookmarks/">书签</a></li>
							<li class="deposit"><a href="/{$languageURL}deposit/">充值</a></li>
						    <li class="statement"><a href="/{$languageURL}statement/">统计</a></li>
						    <li class="withdrawal"><a href="/{$languageURL}withdrawal/">提现</a></li>
							{if $smarty.session.user.quiz == 'true'}
							<li class="author_dashboard"><a href="/{$languageURL}author_dashboard/">作者控制面板</a></li>
							{if $smarty.session.user.items != '0'} 
							<li class="portfolio"><a href="/{$languageURL}user/portfolio/{$smarty.session.user.username}/">作品集</a></li>
							{/if}
							<li class="upload"><a href="/{$languageURL}upload/index/">上传作品</a></li>
							{else}
							<li class="become_author"><a href="/{$languageURL}make_money/become_an_author/">成为作者</a></li>
							{/if}
							{if $smarty.session.user.access}
							<li class="admin_dashboard"><a href="/{$languageURL}admin/">管理员控制面板</a></li>
							<li class="settings"><a href="/{$languageURL}">返回前台</a></li>
							{/if}
						</ul>
					</div>
				</li>
				<li>
					<form action="/{$languageURL}users/logout/" class="sign-out-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="" /><input name="authenticity_token" type="hidden" value="" /></div>
					<button type="submit" class="auto-width no-margin" id="sign-out-button">注销</button>
					</form>       
				</li>
			</ul>
		</div>
		{else}
		<div class="account-wrapper">
			<ul id="user-account-nav">
				<li><a href="/{$languageURL}users/registration/"><span>创建账号</span></a></li>
				<li><a href="/{$languageURL}users/login/" rel="nofollow">登录</a></li>
			</ul>
		</div>
		{/if}
		<ul class="info-nav">
			<li>
			<a class="nobora" href="/">返回前台</a>
			</li>
		</ul>
	</div>
</div>
{include file=$content_template}
{include file="$template_path/html/footer.html"}
</body>
</html>