<!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="robots" content="noindex, nofollow" />
<meta   http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>个人中心 - <jcms:site.name/></title>
<script type="text/javascript" src="../../_data/json/_systemcount.js"></script>
<script type="text/javascript" src="../_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="../_data/jcmsV4.x.js"></script>
<link   type="text/css" rel="stylesheet" href="../_data/jcmsV4.x.css" />
<style type="text/css">
@import url(../style/member/style.css);
</style>
<script type="text/javascript">
(function(){
	$(document).ready(function() {
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		"../ajax/user.aspx?oper=ajaxUserInfo",
			error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
			success:	function(data){
				//数据绑定
				$(".index_name").html(data.username+"（"+data.groupname+"）");
				$(".u_points").text(data.points);
				$("#u_myface").attr("src","../_data/avatar/"+data.userid+"_l.jpg?" + (new Date().getTime()));
				$(".u_email").text(data.email);
				if(data.sex=="2")
					$(".u_sex").text("女");
				if(data.sex=="0")
					$(".u_sex").text("保密");
				if(data.isvip=="1")
					$(".u_vipdate").text("VIP有效期："+data.vipdate);
			}
		});
		//数据统计
		for (i=0;i < ___JSON_SystemCount.table.length;i++) {
			$("#content_" + ___JSON_SystemCount.table[i].channelid+"_" + ___JSON_SystemCount.table[i].classid).html(___JSON_SystemCount.table[i].contentcount);
		}  
		ajaxTopFriendList();
	});
})();
function ajaxTopFriendList()
{
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"page=1&pagesize=6&time="+(new Date().getTime()),
		url:		"../user/friendlist_ajax.aspx?oper=ajaxGetList",
		success:	function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxTopFriendList").setTemplateElement("tplRightMenu", null, {filter_data: false});
				$("#ajaxTopFriendList").processTemplate(d);
				break;
			}
		}
	});
}
</script>
</head>
<body>
<iframe frameborder="0" scrolling="no" src="../user/index_default.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="wrap">
	<div id="main">
		<div id="app_sidebar">
			<ul class="app_list" id="default_userapp">
				<li><img src="../style/member/ico_home.gif"><a href="../user/index_default.aspx">个人中心首页</a></li>
				<li class="hr"></li>
				<li id="customer" class="bold currently"><img src="../style/member/member.gif"><a href="index_default.aspx?mod=customer">我是会员</a><em></em></li>
				<li class="small"><a href="consume_default.aspx?mod=customer">支出明细</a></li>
				<li class="small"><a href="applylist_default.aspx?mod=customer">过往申请</a></li>
				<li class="small"><a href="buypoints_default.aspx?mod=customer">账户充值</a></li>
				<li class="small"><a href="activepointscard_default.aspx?mod=customer">激活点卡</a></li>
				<li class="small"><a href="vipapply_default.aspx?mod=customer">我要包年</a></li>
			</ul>
		</div>
		<div id="mainarea">
			<div id="content">
				<div class="composer_header">
					<div style="float:left;width:137px;">
						<div class="ar_r_t">
							<div class="ar_l_t">
								<div class="ar_r_b">
									<div class="ar_l_b"><img id="u_myface" src="../_data/avatar/0_l.jpg" onerror="this.src='../_data/avatar/0_l.jpg'" width="120" height="120" /></div>
								</div>
							</div>
						</div>
					</div>
					<div class="composer" style="float:left">
						<h3 class="index_name">username</h3>
						<p>绑定邮箱：<span class="u_email"></span></p>
						<p>当前账户 <span class="u_points">0</span> 点</p>
						<p><span class="u_vipdate" style="color:red;"></span></p>
					</div>
				</div>
				<div class="clear"></div>
				<div class="nav_two">
					<ul>
						<li><a>用户等级说明</a></li>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="inportant_remind">
					<ul>
						<li><span class="b">游客：</span><span>可浏览下载本站无点数的内容。</span></li>
						<li><span class="b">普通用户：</span><span>除拥有游客权限外，根据每篇内容的提示的应扣点数下载资料（注：重复下载不会重复扣分）。可通过<a href="buypoints_default.aspx?mod=customer" target="_top">账户充值</a>获得相应点数。</span></li>
						<li><span class="b">VIP用户：</span><span>在VIP有效期内，可浏览下载本站所有内容。普通用户可通过<a href="vipapply_default.aspx?mod=customer" target="_top">我要包年</a>升级到VIP用户。</span></li>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
			<!--/content-->
			<div id="sidebar">
 				<div class="sidebox">
					<h2 class="title">
						<p class="r_option"> <a href="../user/friendlist_default.aspx">全部</a> </p>
						我的好友 </h2>
                    <textarea id="tplRightMenu" style="display:none">{#foreach $T.table as record}
<li>
	<div class="avatar48"><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.frienduserid});" title="{$T.record.friendusername}"><img src="../_data/avatar/{$T.record.frienduserid}_m.jpg" onerror="this.src='../_data/avatar/0_m.jpg'" alt="{$T.record.friendusername}" width="48" height="48" /></a></div>
	<p><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.frienduserid});" title="{$T.record.friendusername}">{$T.record.friendusername}</a></p>
</li>
{#/for}</textarea>
					<ul class="avatar_list" id="ajaxTopFriendList">
					</ul>
				</div>
			</div>
		</div>
		<div id="bottom"></div>
	</div>
	<div id="footer" title=""> </div>
</div>
<iframe frameborder="0" scrolling="no" src="../user/index_default.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>