<!--#include file="_header.html"-->
<link rel="stylesheet" href="templates/<%=CurrentTemplateName%>/scripts/thickbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/jquery.js"></script>
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/thickbox.js"></script>
<script type="text/javascript" language="javascript" src="templates/scripts/dvajax.js"></script>
<script type="text/javascript" language="Javascript">

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
//extra height in px to add to iframe in FireFox 1.0+ browsers
var FFextraHeight=getFFVersion>=0.1? 16 : 0 

function dyniframesize(iframename)
{
	var pTar = null;
	if (document.getElementById)
	{
		pTar = document.getElementById(iframename);
	}
	else
	{
		eval('pTar = ' + iframename + ';');
	}
	if (pTar && !window.opera)
	{
		//begin resizing iframe
		pTar.style.display="block"

		if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight)
		{
			//ns6 syntax
			pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; 
		}
		else if(pTar.Document && pTar.Document.body.scrollHeight)
		{
			//ie5+ syntax
			pTar.height = pTar.Document.body.scrollHeight;
		}
	}
}

function chkPost()
{
	var ajax = new DvAjax();
	ajax.SubmitForm(PostMessage, function (xmlHttp){
		var resp_text = xmlHttp.responseText;
		if ('0' === resp_text)
		{
			alert("留言成功！");
			location.reload();
		}
		else
		{
			alert(resp_text);
		}
	});
	return false;
}
function verifyaccpwd(ishowdo, albumid)
{
	if(ishowdo == 2)
	{
		var t = prompt('请输入相册访问密码', '');
		if(t == '' || t == null)
		{
			alert("没有输入相册访问密码！");
			return false;
		}
		else
		{
			window.location='album_show.aspx?albumid=' + albumid.toString() + '&accpwd=' + t.toString();
		}
	}
	else
	{
		window.location='album_show.aspx?albumid=' + albumid.toString();				
	}	
}

function showVerify(obj)
{
	var l = getOffsetLeft(obj);
	var t = getOffsetTop(obj) - 80;	
	$("verifyCode").innerHTML= "<img src='<%=Fetch.ValidateCodeFileName%>?time="+ new Date()+"' alt='看不清图片请点空白处' border='1' style='cursor:hand; margin-top:-1px'>";
	$("verifyCode").style.left = l + "px";
	$("verifyCode").style.top = t + "px";
	$("verifyCode").style.display = 'block';
}
function hiddenVerify()
{	
	$("verifyCode").innerHTML="";
}
function loadDefaultData(filename,distarget)
{
			var ajax = new DvAjax();		
			$(distarget).innerHTML = '加载中...';
			ajax.Request('get', filename, '', function (xmlHttp) 
			{
				try
				{
					$(distarget).innerHTML = xmlHttp.responseText;
				}
				finally
				{
					xmlHttp.abort();
				}
			}, true);
}
function ajaxpage(obj, innerdiv){
		var ajax = new DvAjax();
			var temurl = obj.href;//"&nocache="+Math.random();
			if(temurl.indexOf('?') == -1){
				temurl += "?nocache="+Math.random();
			}else{
				temurl += "&nocache="+Math.random();
			}
			document.getElementById(innerdiv).innerHTML = '加载中...';
			ajax.Request('get', temurl, '', function (xmlHttp){
			try
			{
				document.getElementById(innerdiv).innerHTML = xmlHttp.responseText;
			}
			finally
			{
				xmlHttp.abort();
			}
		}, true);
		return false;
}

</script>
<div class="mainbox">
	<div class="notice">
		<span> <!--#include file="_nav.html"--></span>
	</div>
	<div style="clear:both"></div>
	<div class="notice font14"><span>
		<a href="user_edit.aspx?tabindex=4">我的帖子</a> | <a href="album_self.aspx">我的相册</a>
		| <a href="user_info.aspx?name=<%=Server.UrlEncode(user.Name)%>#mymsg">留言板</a></span>&nbsp;
	</div>
	<!---##########################右边样式部分##########################--->
	<div class="page_right">
		<ul>
			<h3 class="titlebig">
				<em><a href="album_list.aspx?userid=<%=userid.ToString()%>">更多</a></em><%=_name%>的相册
			</h3>
			<div class="padding">
				<!--{if(arr.Length > 0)}-->
				<!--{for(int i = 0; i < arr.Length && i < 4; i++)}-->
				<div class="photoroom60">
					<a onclick="verifyaccpwd(<%=arr[i].ishowdo%>, <%=arr[i].id.ToString()%>)" title="<%=Text.StripHtml(arr[i].albumtitle)%>"><img src="<%=arr[i].TopZoomFile%>"　onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/album/empty_bk.gif')" style="padding-top:10px;cursor:hand;width:70px;height:80px;" /></a>
					<br />
					<a href="album_show.aspx?albumid=<%=arr[i].id.ToString()%>" title="<%=Text.StripHtml(arr[i].albumtitle)%>">
						<%=Text.Left(Text.StripHtml(arr[i].albumtitle), 7, false)%>
					</a>(<%=arr[i].photonum%>)<br />
				</div>
				<!--{endfor}-->
				<!--{else}-->
				<div>
					还未添加相册
				</div>
				<!--{endif}-->
			</div>
			<div style="clear:both"></div>
			<br />
		</ul>
		<ul>
			<h3 class="titlebig"><%=_name%>的圈子</h3>
			<div>
				<!--{if(groups.Length==0)}-->
				<div>
					没有加入任何圈子
				</div>
				<!--{else}-->
				<div class="nav_group">
					<ul>
						<!--{foreach (userGroup g in groups)}-->
						<li>
							<div>
								<img src="templates/<%=CurrentTemplateName%>/images/group.gif" width="50" height="50" />
							</div>
							<a href="my_group_index.aspx?GroupId=<%=g.ID.ToString()%>" title="<%=Server.HtmlEncode(g.GroupName)%>">
								<%=Text.Left(Text.StripHtml(g.GroupName), 10, true)%>
							</a>
							<br />
							话题：<small>(
								<%=g.PostNum.ToString()%>
								)</small><br />
							成员：<small>(
								<%=g.UserNum.ToString()%>
								)</small>
						</li>
						<br />
						<!--{endforeach}-->
					</ul>
				</div>
				<!--{endif}-->
			</div>
			<div style="clear:both"></div>
			<br />
		</ul>
	</div>
	<!---########################## end 右边样式部分##########################--->
	<!---##########################左边样式部分##########################--->
	<div class="page_left border padding">
		<table width="99%">
			<tr>
				<td width="160" valign="top" align="center">
					<!--{if(face==string.Empty)}-->
					<img src="files/uploadfaces/noface.gif" style="margin:8px 0px;" /> 
					<!--{else}-->
					<img src="<%=Server.UrlDecode(face)%>" onerror="ImageOnError(this,'files/uploadfaces/userface/noface.gif')" style="margin:8px 0px;width:100px;height:100px;" />
					<!--{endif}-->
					<br />
					<span>
						<a onclick="AddFrend('<%=addfriendurl.Substring(0,addfriendurl.IndexOf("?"))%>','<%=addfriendurl.Substring(addfriendurl.IndexOf("?")+1)%>')" style="cursor:hand"><img src="<%=CurrentSkinPath%>images/freund.gif" alt="" />
							加为好友 </a><img src="<%=CurrentSkinPath%>images/mail.gif" /><%=message%>  
					</span>
				</td>
				<td valign="top">
					<!--用户资料-->
					<table class="tableborder" style="font-size:12px;text-align: left; border:0px; " width="100%"
						border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td class="green" width="15%">用户名</td>
							<td width="35%">
								<b>
									<%=_name%>
								</b>
							</td>
							<td class="green" width="15%">状态</td>
							<td width="35%">
								<%=status%>
							</td>
						</tr>
						<tr>
							<td class="green">论坛等级</td>
							<td>
								<%=role%>
							</td>
							<td class="green">真实姓名</td>
							<td>
								<%=truename%>
							</td>
						</tr>
						<tr>
							<td class="green">注册时间</td>
							<td>
								<%=jointime%>
							</td>
							<td class="green">上次登录时间</td>
							<td>
								<%=lasttime%>
							</td>
						</tr>
						<tr>
							<td class="green">发表主题</td>
							<td>
								<%=topics%>
							</td>
							<td class="green">发表回帖</td>
							<td>
								<%=replies%>
							</td>
						</tr>
						<tr>
							<td class="green">论坛积分</td>
							<td>
								<%=int.Parse(experience)<0?"0":experience%>
							</td>
							<td class="green">论坛金钱</td>
							<td>
								<%=money%>
							</td>
						</tr>
						<tr>
							<td class="green">手机号码</td>
							<td>
								<%=mobile%>
							</td>
							<td class="green">MSN</td>
							<td>
								<%=msn%>
							</td>
						</tr>
						<tr>
							<td class="green">QQ号码</td>
							<td>
								<%=qq%>
							</td>
							<td class="green">联系电话</td>
							<td>
								<%=telephone%>
							</td>
						</tr>
						<tr>
							<td class="green">个人主页</td>
							<td colspan="3">
								<%=homepage%>
							</td>
						</tr>
						<tr>
							<td class="green">联系地址</td>
							<td colspan="3">
								<%=address%>
							</td>
						</tr>
						<tr>
							<td class="green" valign="top" style="font-family:宋体;font-size:9pt">个性签名
							</td>
							<td colspan="3">
								<!--{if(userSign=="")}-->
								这个人很懒，还没有写签名... 
								<!--{else}--><%=userSign%>
								<!--{endif}-->
							</td>
						</tr>
						<!--{if(UserExexp.GetVisibleExexp(_name)!=null)}-->
						<!--{foreach(ExexpInfo expinfo in UserExexp.GetVisibleExexp(_name))}-->
						     <tr>
							<td class="green"><%=expinfo.Name%></td>
							<td colspan="3">
								<%=expinfo.Value%>&nbsp;<%=expinfo.Unit%>
							</td>
						</tr>
						  <!--{endfor}-->
						<!--{endif}-->
					</table>
					<!--end用户资料-->
				</td>
			</tr>
		</table>
		<br />
	</div>
	<br />
	<div class="page_left border">
		<h3 class="titlebig"><%=_name%>发表的话题</h3>
		<div id="msgdlg4" name="msgdlg4" style="padding:0px;">&nbsp;正在加载...</div>
		<br />
		<script type="text/javascript" language="javascript">
		    var filename = 'topic_mine.aspx?keyword=<%=_name%>&isPostBack=1&posttype=1&boardid=0&keywordin=author';		
			loadDefaultData(filename,'msgdlg4');
		</script>
	</div>
	<br />
	<div class="page_left border">
		<h3 class="titlebig"><%=_name%>参与的话题</h3>
		<div id="msgdlg5" name="msgdlg5" style="padding:0px;">&nbsp;正在加载...</div>
		<br />
		<script type="text/javascript" language="javascript">
		    var filename = 'topic_injion.aspx?keyword=<%=_name%>&isPostBack=1&posttype=0&boardid=0&keywordin=author';
			loadDefaultData(filename,'msgdlg5');
		</script>
	</div>
	<br />
	<div class="page_left border">
		<h3 class="titlebig"><em><a name="#mymsg"></a></em><%=_name%>的留言板</h3>
		<!--------- 用户留言 ------------>
		<div style="width:98%">
			<!--{if(Msgs.Length==0)}-->
			<div class="nav_group">
				<ul>
					<li>
						暂无留言
					</li>
				</ul>
			</div>
			<!--{else}-->
			<!--{for(int i=0;i<Msgs.Length;i++)}-->
			<div class="msg_column">
				<ul>
					<li>
						<div id="guestbook" style="float:left">
							<a href="user_info.aspx?userid=<%=Msgs[i].UserId%>" target="_parent"><img src="<%=Msgs[i].Face%>" onerror="ImageOnError(this,'files/uploadfaces/userface/noface.gif')" width="40px" height="40px" alt="浏览该用户个人信息" title="浏览该用户个人信息"/><br>
								<%=Msgs[i].UserName%>
							</a>
						</div>
						<div style="float:left"></div>
						<div style="float:left;padding:0px 10px 5px 10px;word-break:break-all;word-wrap : break-word ;">
							<small id="msg_date">发表于:<%=Msgs[i].Dateandtime%>
								&nbsp;&nbsp; 
								<!--{if(user.UserID != Msgs[i].UserId)}-->
								<a title="发送短消息" id="sendmsg" class="thickbox" href="message_send.aspx?recipient=<%=Msgs[i].UserName%>	&uid=<%=Msgs[i].UserId%>&TB_iframe=true&height=335&width=530" >
									发送短信</a>&nbsp;&nbsp; 
								<!--{endif}-->
								<!--{if(user.Power == 1 || user.Power==2 || user.UserID == Msgs[i].UserId || user.UserID==userid)}-->
								<!--{if(!Msgs[i].IsDel)}-->
								<a href="usermsg_manage.aspx?id=<%=Msgs[i].ID%>&uid=<%=user.UserID%>&oweruserid=<%=Msgs[i].UserId%>&option=remsg&TB_iframe=true&height=280&width=530" id="regmsg" class="thickbox" title="留言管理">
									回复</a>&nbsp;&nbsp; 
								<!--{endif}-->
								<a href="usermsg_manage.aspx?id=<%=Msgs[i].ID%>&uid=<%=user.UserID%>&oweruserid=<%=Msgs[i].UserId%>&IsDel=<%=Msgs[i].IsDel%>&option=delmsg&TB_iframe=true&height=280&width=530" id="delmsg" class="thickbox" title="留言管理">
									删除或屏蔽</a> 
								<!--{endif}-->
							</small>
							<br />
							<!--{if(Msgs[i].IsDel)}-->
							<!--{if(user.Power == 1 || user.Power==2 || user.UserID == Msgs[i].UserId ||user.UserID==userid)}-->
							<%=ubb.FilterXSS(Msgs[i].DelReson)%>
							<br />
							<%=ubb.FilterXSS(Msgs[i].Content)%>
							<!--{else}-->
							<%=ubb.FilterXSS(Msgs[i].DelReson)%>
							<!--{endif}-->
							<!--{else}-->
							<%=ubb.FilterXSS(Msgs[i].Content)%>
							<!--{endif}-->
						</div>
						<div style="clear:both;"></div>
					</li>
				</ul>
			</div>
			<!--{endfor}-->
			<div style="clear:both"></div>
			<hr />
			<div style="margin-bottom:15px;">
				<!--#include file="_temppager.htm"--><br />
			</div>
			<!--{endif}-->
			<!--以下部分为发表留言-->
			<div style="clear:both"></div>
			<hr />
			<!--{if(user.UserID!=userid)}-->
			<div class="nav_group">
				<form name="PostMessage" method="post" action="user_info.aspx?oweruserid=<%=userid%>&option=Add" id="PostMessage" onsubmit="chkPost();return false;">
					<table ID="MsgData" class="user_nav_topic" style="font-size:12px;padding-right:5px;padding-top: 5px; text-align: left; "
						width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td colspan="2">
								<textarea name="content" cols="60" rows="6" id="content" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"></textarea>
							</td>
						</tr>
						<!--{if(isCheckVerifyCode)}-->
						<tr>
							<td>验证码：<input name="verification" id="verification" type="text" tabindex="7" size="10" maxlength="6"
									autocomplete="Off" onFocus="IEvent('focus',this);showVerify(this);" onBlur="IEvent('blur',this);hiddenVerify();"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
								<div id="verifyCode" style="display:none;position:absolute;"></div>
							</td>
						</tr>
						<!--{endif}-->
					</table>
					<br />
					<input type="submit" class="button_off" id="addmsg" onMousemove="this.className='button_on';"
						onMouseout="this.className='button_off'" name="addmsg" value="我要留言" />
				</form>
			</div>
			<!--{endif}-->
			<!--end 发表留言-->
			<br />
		</div>
		<!--------- end 用户留言 ------------>
	</div>
	<div style="clear:both"></div>
	<!--快捷管理-->
	<br />
	<!--{if(user.IsMaster)}-->
	<div class="page_left border">
		<h3 class="titlebig">
			快捷管理选项
		</h3>
		<table cellspacing="1" cellpadding="3" style="width:96%" ID="Table1">
			<tr>
				<td height="25" colspan="2">用户管理选项：『 <a href="topicother.aspx?action_type=locck_1&name=<%=_name%>" title=锁定该用户不允许登陆和发言  target="_blank">
						锁定</a> | <a href="topicother.aspx?action_type=locck_2&name=<%=_name%>" title=屏蔽该用户在论坛的发言 target="_blank">
						屏蔽</a> | <a href="topicother.aspx?action_type=locck_3&name=<%=_name%>" title=解除该用户在论坛的锁定和屏蔽 target="_blank">
						解除</a> | <a href="topicother.aspx?action_type=power&name=<%=_name%>" title=对用户进行分值奖励 target="_blank">
						奖励</a> 』
				</td>
			</tr>
			<tr>
				<form method="post" action="topicother.aspx?action_type=DelTopic" target="_blank" ID="Form1">
					<td valign="middle">帖子管理选项：删除该用户&nbsp; <input name="SetUserID" type="hidden" value="<%=userid%>" ID="Hidden1"/>
						<input name="name" type="hidden" value="<%=_name%>" ID="Hidden2"/>
						<select name="delTopicDate" size="1" ID="Select1">
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
							<option value="9">9</option>
							<option value="10">10</option>
						</select>
						&nbsp;天内的主题&nbsp; <input name="submit" type="submit" value="执行" style="margin-bottom:2px" ID="Submit1" class="button_off"
							onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
					</td>
				</form>
				<form method="post" action="topicother.aspx?action_type=DelUserReply" target="_blank"
					ID="Form2">
					<td>删除该用户&nbsp; <input name="SetUserID" type="hidden" value="<%=userid%>" ID="Hidden3"/>
						<input name="name" type="hidden" value="<%=_name%>" ID="Hidden4"/>
						<select name="delTopicDate" size="1" ID="Select2">
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
							<option value="9">9</option>
							<option value="10">10</option>
						</select>
						&nbsp;天内的回复在
						<select size="1" name="delbbs" ID="Select3">
							<!--{if(0 == GetPostTables().Rows.Count)}-->
							<option>没有找到论坛的帖子表</option>
							<!--{else}-->
							<!--{foreach (System.Data.DataRow dr in GetPostTables().Rows)} -->
							<option value="<%=dr["TableName"]%>"><%=dr["TableType"]%></option>
							<!--{endforeach}-->
							<!--{endif}-->
						</select>
						中&nbsp; <input name="submit" type="submit" value="执行" onMousemove="this.className='button_on';"
							onMouseout="this.className='button_off'" class="button_off" ID="Submit2" />
					</td>
				</form>
			</tr>
			<tr>
				<td valign="middle" height="25" colspan="2">用户最后来访IP：
					<%=UserLastIP%>
					<a href="topicother.aspx?action_type=setlockip&ip=<%=UserLastIP%>" target="_blank"><img src="templates/<%=CurrentTemplateName%>/images/ip.gif"/></a>&nbsp;&nbsp;&nbsp;点击IP图标查看用户来源及操作
				</td>
			</tr>
		</table>
		<div style="clear:both"></div>
	</div>
	<!--{endif}-->
	<br />
	<!--end快捷管理-->
</div>
<!--#include file="_footer.html"-->