<!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="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Description" content="{echo:$metaDesc;/},{echo:$holder_name;/}" />
<meta name="Keywords" content="{echo:$metaKeys;/},{echo:$holder_name;/}" />
<meta name="author" content="{echo:$holder_name;/}" />
<meta name="robots" content="all" />
<title>{echo:$holder_name;/}的个人主页-{echo:$siteName;/}</title>
<base href='{echo:$siteDomain;/}' />
{sta:plugin_hook('home_info_bottom,home_right_friend,home_right_guest,home_top_app_MENU');/}
<link rel="stylesheet" href="skin/default/jooyea/css/layout.css" />
<script type='text/javascript' src="skin/default/js/jy.js"></script>
<script type='text/javascript' src="servtools/imgfix.js"></script>
<script type='text/javascript' src="skin/default/js/jooyea.js"></script>
<SCRIPT type='text/javascript' src="servtools/ajax_client/ajax.js"></SCRIPT>
<script type="text/javascript" language="javascript" src="servtools/dialog/zDrag.js"></script>
<script type="text/javascript" language="javascript" src="servtools/dialog/zDialog.js"></script>
<script type="text/javascript" language="javascript" src="servtools/calendar.js"></script>
<script type='text/javascript'>
function goLogin(){
	Dialog.confirm("{echo:lp{pu_login};/}",function(){top.location="{echo:$siteDomain;/}{echo:$indexFile;/}";});
}
//取得评论内容
	function get_mod_com(type_id,mod_id,start_num,end_num){
		if(frame_content.$("max_"+type_id+"_"+mod_id)){
			var max_num=parseInt(frame_content.$("max_"+type_id+"_"+mod_id).innerHTML);
			start_num=max_num;
		}
		var ajax_get_com=new Ajax();
		ajax_get_com.getInfo("modules.php","GET","app","app=restore&mod_id="+mod_id+"&type_id="+type_id+"&start_num="+start_num+"&end_num="+end_num,function(c){get_com_callback(c,type_id,mod_id);});
	}
	//回复评论
	function restore(user_name,type_id,mod_id,user_id){
		if(parseInt({echo:$user_id;/})){
			if(frame_content.$("replycontent_"+type_id+"_"+mod_id)){
				frame_content.toggle2("reply_"+type_id+"_"+mod_id);
			}
			$('restore').value=user_id;
			frame_content.$('reply_'+type_id+'_'+mod_id+'_input').value='{echo:lp{ah_reply};/}'+user_name+":";
		}else{
			goLogin();
		}
	}
	//回复评论
	function restore_com(holder_id,type_id,mod_id){
		var r_content=frame_content.$('reply_'+type_id+'_'+mod_id+'_input').value;
		var user_id='';
		if($('restore').value!=''){
			var user_id=$('restore').value;
		}
		//var is_hidden=frame_content.document.getElementById('hidden_'+type_id+'_'+mod_id).value;
		var is_hidden=0;
		if(trim(r_content)==''){
			Dialog.alert('{echo:lp{pu_data_empty};/}');
		}else{
			var ajax_comment=new Ajax();
			ajax_comment.getInfo("do.php?act=restore_add&holder_id="+holder_id+"&type_id="+type_id+"&mod_id="+mod_id+"&is_hidden="+is_hidden+"&to_userid="+user_id,"post","app","CONTENT="+r_content,function(c){restore_com_callback(c,type_id,mod_id)});
		}
	}
	//删除评论
	function del_com(holder_id,type_id,parent_id,com_id,sendor_id){
		var ajax_del_com=new Ajax();
		ajax_del_com.getInfo("do.php","GET","app","act=restore_del&holder_id="+holder_id+"&type_id="+type_id+"&com_id="+com_id+"&sendor_id="+sendor_id+"&parent_id="+parent_id,function(c){del_com_callback(c,type_id,parent_id,com_id)});
	}
	//举报
	function report(type_id,user_id,mod_id){
		var diag = new Dialog();
		diag.Width = 300;
		diag.Height = 150;
		diag.Top="50%";
		diag.Left="50%";
		diag.Title = "{echo:lp{pu_report};/}";
		diag.InnerHtml= '<div class="report_notice">{echo:lp{pu_report_info};/}{echo:lp{pu_report_re};/}<textarea id="reason"></textarea></div>';
		diag.OKEvent = function(){act_report(type_id, user_id, mod_id);diag.close();};
		diag.show();
	}
	//确认举报
	function act_report(type_id,user_id,mod_id){
		var reason_str=$("reason").value;
		if(trim(reason_str)){
			var ajax_act_report=new Ajax();
			ajax_act_report.getInfo("do.php?act=report_add&type="+type_id+"&uid="+user_id+"&mod_id="+mod_id,"post","app","reason="+reason_str,function(c){act_report_callback(c)});
		}else{
			Dialog.alert('{echo:lp{pu_report_none};/}');
		}
	}
	//分享
	function show_share(share_type,share_content_id,s_title,s_link){
		var diag = new Dialog();
		diag.Width = 300;
		diag.Height = 180;
		diag.Top="50%";
		diag.Left="50%";
		diag.Title = "{echo:lp{s_share};/}";
		diag.InnerHtml= '<div class="share">{echo:lp{s_title};/}<input maxlength="50" type="text" ' + (share_type<5 || share_type==8 ? 'disabled="disabled"' : '') + ' id="out_title" value="'+s_title+'" />{echo:lp{ah_label};/}：<input type="text" id="tag" name="tag" value="" />{echo:lp{s_add_com};/}<textarea id="share_com"></textarea></div>';
		diag.OKEvent = function(){act_share(share_type,share_content_id,s_title,s_link);diag.close();};
		diag.show();
	}
	//确认分享
	function act_share(share_type,share_content_id,title_data,re_link){
		if(share_type==5||share_type==6||share_type==7){
			var out_title=$("out_title").value;
			var title_data=trim(out_title);
		}
		var com_str=$("share_com").value;
		var tag=$("tag").value;
		var ajax_act_share=new Ajax();
		ajax_act_share.getInfo("do.php?act=share_action&s_type="+share_type+"&share_content_id="+share_content_id,"post","app","comment="+com_str+"&title_data="+title_data+"&re_link="+re_link+"&tag="+tag,function(c){act_share_callback(c,share_type)});
	}
	//主页装扮提示
	function dress_home(dress_name){
		Dialog.confirm('{echo:lp{ah_enable_dress};/}',function(){top.location.href="do.php?act=user_dress_change&dress_name="+dress_name;},function(){top.location.href="main.php?app=user_dressup";});
	}
</script>

</head>
<body id="home">
<!--个人主页装扮!-->
{echo:get_dressup($dbo,$t_users,$holder_id,"home",$dress_name);/}

<!--head_start!-->
{inc:require($inc_header);/}
<!--head_end!-->

<!--隐私权限-start!-->
{sta:if($show_error==true)[exc]}
<div class="error_box">
  <h2>{echo:$show_info;/}</h2>
  <p>{echo:lp{ah_system_will};/}<span id="skip">5</span>{echo:lp{ah_seconds_return};/}</p>
  <p><a href="{echo:$siteDomain;/}{echo:$indexFile;/}" title="{echo:lp{ah_click_return_home};/}">{echo:lp{ah_click_return_home};/}&gt;&gt;</a></p>
</div>
{end:if/}

{sta:if($show_ques==true)[exc]}
<div class="question_box">
	<form name='acform' method="post" action="do.php?act=pr_access_login&holder_id={echo:$holder_id;/}">
	  <h2>{echo:lp{pr_ans};/}</h2>
	  <p>{echo:lp{pr_select_que};/}：{echo:pri_ques($user_info['access_questions'],$user_info['access_answers'],$holder_id);/}</p>
	  <p>{echo:lp{pr_write_ans};/}：<input name="answer" type="text" /></p>
	  <p><input class="button" name="" type="submit" value="{echo:lp{pr_button_action};/}" /></p>
	</form>
</div>
{end:if/}
<!--隐私权限-end!-->
<input type="hidden" id="restore" value="" />
{sta:if($is_visible==1)[exc]}
<!--home_start!-->
<div class="container">
<div class="home_start">
<div class="user_box">
	<div class="user_status">
        <div class="user_content">
            <h1>{echo:$user_info['user_name'];/}</h1><span title="{echo:count_level($user_info['integral']);/}">{echo:grade($user_info['integral']);/}</span>
            <span class="count">({echo:lp{ah_have};/}{echo:$user_info['guest_num'];/}{echo:lp{ah_had_seen};/})</span>
            <span class="myword">{echo:$last_mood_txt;/}</span>
            <span class="time">{echo:$last_mood_time;/}</span><span class="time">|</span>
            <span class="time"><a href="javascript:;" onclick="frame_content.location.href='modules.php?app=mood_more&user_id={echo:$holder_id;/}'">{echo:lp{ah_more_mood};/}</a></span>
        </div>
	</div>
</div>
<div class="clear"></div>
<div id="home_tabs" class="tabs">
  <ul class="menu">
	  <li class="active"><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=hstart&user_id={echo:$holder_id;/}';return false;" hidefocus="true">{echo:lp{ah_personal_homepage};/}</a></li>
	  <li><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=user_info&user_id={echo:$holder_id;/}&single=1';return false;" hidefocus="true">{echo:lp{ah_data};/}</a></li>
	  <li><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=blog_list&user_id={echo:$holder_id;/}';return false;" hidefocus="true">{echo:lp{ah_log};/}</a></li>
	  <li><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=album&user_id={echo:$holder_id;/}';return false;" hidefocus="true">{echo:lp{ah_album};/}</a></li>
	  <li><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=share_list&user_id={echo:$holder_id;/}';return false;" hidefocus="true">{echo:lp{ah_share};/}</a></li>
    <li><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=poll_mine&user_id={echo:$holder_id;/}';return false;" hidefocus="true">{echo:lp{ah_vote};/}</a></li>
    <li><a href="javascript:void(0);" onclick="frame_content.location.href='{echo:$siteDomain;/}modules.php?app=group&user_id={echo:$holder_id;/}';return false;" hidefocus="true">{echo:lp{ah_groups};/}</a></li>
  </ul>
</div>
<div class="wrapper">
  <div class="main">
    <div class="main_wrap">
        <div id="bigpart" class="bigpart">
					<div class="bigpart_wrap">
						<iframe id="refresh" name="refresh" id="refresh" src="modules.php?app=refresh" scrolling="no" frameborder="0" height="0" width="0"></iframe>
						<iframe onload="this.height=frame_content.document.body.scrollHeight" id="frame_content" name="frame_content"  src="modules.php{echo:$urlParaStr;/}" scrolling="no" frameborder="0" width="100%" allowTransparency="true"></iframe>
					</div>
        </div>
        <div id="sidebar" class="sidebar">

				<!--guest_start!-->
	    	<div class="sideitem">
	      	<div class="container">
	          <div class="sideitem_head"><h4>{echo:lp{ah_visitors};/}</h4><a href="modules.php?app=guest_more&user_id={echo:$holder_id;/}" target="frame_content">{echo:lp{ah_more};/}</a></div>
	          <div class="sideitem_body">
	            <ul class="userlist" id="current_guest">
	            </ul>
	          </div>
	        </div>
	      </div>
				<!--guest_end!-->

				<!--plugins!-->
				<div class="home_right_guest">
					{echo:isset($plugins['home_right_guest']) ? show_plugins($plugins['home_right_guest']):'';/}
				</div>
				<!--plugins!-->

				<!--friend_start!-->
				<div class="sideitem last">
					<div class="container">
					<div class="sideitem_head"><h4>{echo:lp{ah_friends_circle};/}</h4><a href="modules.php?app=friend_all&user_id={echo:$holder_id;/}" target='frame_content'>{echo:lp{ah_more};/}</a></div>
						<div class="sideitem_body">
							<ul class="userlist" id="friend_list">
							</ul>
						</div>
					</div>
				</div>
				<!--friend_end!-->

				<!--plugins!-->
				<div class="home_right_friend">
					{echo:isset($plugins['home_right_friend'])?show_plugins($plugins['home_right_friend']):'';/}
				</div>
				<!--plugins!-->

      	<div id="separator" class="switch"></div>
  		</div>
		</div>
  </div>

	<!--homeleft_start!-->
	{inc:require("uiparts/homeleft.php");/}
	<!--homeleft_end!-->

</div>

<script type='text/javascript'>
	function set_cur_guest(){
		var ajax_guest=new Ajax();
		ajax_guest.getInfo("modules.php","GET","app","app=guest&user_id={echo:$holder_id;/}",function(c){$("current_guest").innerHTML=trim(c);set_friend_list();});
	}
	function set_friend_list(){
		var ajax_friend=new Ajax();
		ajax_friend.getInfo("modules.php","GET","app","app=friend&user_id={echo:$holder_id;/}",function (c){$("friend_list").innerHTML=trim(c);});
	}
	if($("current_guest")){
		set_cur_guest();
	}
</script>
<script language=JavaScript src="servtools/ajax_client/auto_ajax.js"></script>
{end:if/}

{sta:if($is_visible==0)[exc]}
<script type='text/javascript'>
function countDown(secs,surl){
	if($('skip')){
	  $("skip").innerHTML=secs;
	  --secs > 0 ? setTimeout("countDown("+secs+",'"+surl+"')",1000):location.href=surl;
	}
}
countDown(5,'{echo:$siteDomain;/}{echo:$indexFile;/}');
</script>
{end:if/}

{inc:require("uiparts/footor.php");/}
</div>
</div>
</body>
</html>