<!--#include file="user_top.asp"-->
<%
'是否启用短信息提示音
Const En_SMS_Sound=1
If API_Enable Then 
	If session("turl")<>"" Then
		Dim arrturl,i,turl
		turl=Replace(session("turl"),"$","&")
		arrturl=Split(turl,"@@@")
		For i=0 To UBound(arrturl)
			If arrturl(i)="" Then Exit For
			Response.Write "<script language=JAVASCRIPT src="""&arrturl(i)&"""></script>" & vbcrlf
		Next 
		Response.Flush
		session("turl")=""
	End if
End if
Dim MainUrl,UserUrl,rs,jscmd,tarr
MainUrl=replace(Request.QueryString("url"),"$","&")
if instr(MainUrl,"user_post.asp") Then
	jscmd="go_cmdurl('发布日志','tab3')"
elseif instr(MainUrl,"user_url.asp") Then
	If InStr(MainUrl,"stitle=") > 0 Then 
		tarr = Split (MainUrl,"stitle=")
		tarr(1) = Server.UrlEncode(tarr(1))
		MainUrl = tarr(0) & "stitle=" & tarr(1)
	End if
	jscmd="go_cmdurl('添加订阅','tab3')"
elseif instr(MainUrl,"user_friends.asp") then
	jscmd="go_cmdurl('我的好友','tab3')"
elseif MainUrl="" then
	MainUrl="about:blank"
end if
If oblog.l_uNewbie=1 Then 
	MainUrl="user_template.asp?action=showconfig"
	jscmd="go_cmdurl('选择模版','tab3')"
end if
'If Instr(MainUrl,"user_index.asp")>0 Then 	MainUrl="user_index_frame1.asp"
'取个人域名
If oblog.CacheConfig(5)=1 Then
	If Left(oblog.l_udomain,8)="http://." Or Trim(oblog.l_udomain)="." Then
		UserUrl="<a href="""&oblog.l_udir&"/"&oblog.l_ufolder&"/index."&f_ext&""" target=""_blank"">我的首页</a>"
	Else
		UserUrl="<a href=""http://"&oblog.l_udomain&""" target=""_blank"">"&oblog.l_udomain&"</a>"
	End If
Else
	UserUrl="<a href="""&oblog.l_udir&"/"&oblog.l_ufolder&"/index."&f_ext&""" target=""_blank"">我的首页</a>"
End If
If true_domain=1 and oblog.l_ucustomdomain<>"" then
	UserUrl="<a href=""http://"&oblog.l_ucustomdomain&""" target=""_blank"">"&oblog.l_ucustomdomain&"</a>"
End If

%>
<link rel="stylesheet" href="oBlogStyle/UserAdmin/7/default.css" type="text/css" />
</head>
<script language="JavaScript" type="text/javascript">
<!--
if (screen.width==800) {
	document.writeln("<body style=\"width:1024px;height:550px;\">")
}
	else {
			if (screen.width==1024) {
				document.writeln("<body style=\"width:1020px;height:570px;\">")
			}
			else {
				document.writeln("<body>")
			}
		}
-->
</script>
<!-- header //-->
<dl id="header">
	<dt title="用户管理后台">用户管理后台</dt>
	<dd>
		<li><%=UserUrl%>&nbsp;|&nbsp;</li>
		<li><a href="index.asp" target="_blank">站点首页</a>&nbsp;|&nbsp;</li>
		<li id="now03"><a href="user_pmmanage.asp" onClick="go_cmdurl('短消息',this)" target="content3">短消息<span id="ob_pm"></span></a>&nbsp;|&nbsp;</li>
		<li id="now0"><a href="user_setting.asp" onClick="go_cmdurl('博客设置',this)" target="content3">设置</a>&nbsp;|&nbsp;</li>
		<li id="now1"><a href="user_help.asp"  onclick="go_cmdurl('帮助',this)" target="content3">帮助</a>&nbsp;|&nbsp;</li>
		<li><a href="user_index.asp?t=logout" class="txt_nor">退出</a>&nbsp;</li>
	</dd>
</dl>
<!-- header end //-->
<!-- contents //-->
<div id="contents">
	<!-- contents left //-->
	<div class="left">
		<ul class="bigbtu">
			<li id="now01"><a href="user_post.asp" onClick="go_cmdurl('发布日志',this);border_left('TabPage2','left_tab2');" title="发表日志" target="content3">发布日志</a></li>
			<li id="now02"><a href="user_post.asp?t=1" onClick="go_cmdurl('发布相片',this);border_left('TabPage2','left_tab3');" title="发布相片" target="content3">发布相片</a></li>
		</ul>
		<div class="menu_top"></div>
		<div class="menu" id="TabPage3">
			<ul id="TabPage2">
				<li id="left_tab1" class="Selected" onClick="javascript:border_left('TabPage2','left_tab1');" title="常用">常用</li>
				<li id="left_tab2" onClick="javascript:border_left('TabPage2','left_tab2');" title="日志">日志</li>		
				<li id="left_tab3" onClick="javascript:border_left('TabPage2','left_tab3');" title="相册">相册</li>
				<li id="left_tab7" onClick="javascript:border_left('TabPage2','left_tab7');getfeedlist();" title="订阅">订阅</li>
				<li id="left_tab4" onClick="javascript:border_left('TabPage2','left_tab4');" title="文件">文件</li>
				<li id="left_tab5" onClick="javascript:border_left('TabPage2','left_tab5');" title="模板">模板</li>
			</ul>
			<div id="left_menu_cnt">
				<ul id="dleft_tab1">
					<li id="now11" class="Selected"><a href="user_blogmanage.asp" onClick="go_cmdurl('日志管理',this);" target="content3" title="日志管理">日志管理</a></li>
					<li id="now12"><a href="user_post.asp?action=showphoto&t=1" onClick="go_cmdurl('浏览相册',this);" target="content3" title="浏览相册">浏览相册</a></li>
					<li id="now13"><a href="user_comments.asp" onClick="go_cmdurl('日志评论',this);" target="content3" title="日志评论">日志评论</a></li>
					<li id="now14"><a href="user_messages.asp" onClick="go_cmdurl('访客留言',this)" target="content3" title="访客留言">访客留言</a></li>
					<li id="now1a"><a href="user_url.asp?action=add" onClick="go_cmdurl('添加订阅',this);" target="content3" title="添加订阅">添加订阅</a></li>
					<%if oblog.CacheConfig(17)=1 then%>
					<li id="now1b"><a href="user_codes.asp" onClick="go_cmdurl('邀请码',this)" target="content3" title="可用邀请码">可用邀请码</a></li>
					<%end if%>
					<li id="now1c"><a href="user_friends.asp" onClick="go_cmdurl('我的好友',this)" target="content3" title="我的好友">我的好友</a></li>
					<li id="now1d"><a href="user_update.asp" onClick="go_cmdurl('更新数据',this)" target="content3" title="更新数据">更新数据</a></li>
					<li id="now1e"><a href="user_setting.asp" onClick="go_cmdurl('博客设置',this)" target="content3" title="博客设置">博客设置</a></li>
					<%
					Dim rstm
					Set rstm=oblog.Execute("Select top 1 userid From oblog_admin Where userid=" & oblog.l_uid)
					If Not rstm.Eof Then
					%>
					<li id="now19"><a href="<%=SYSFOLDER_MANAGER%>/m_index.asp"  target="_blank" title="进入内容管理操作界面"><font color=red>内容管理员</font></a></li>							
					<%
					Set rstm=Nothing
					End If
					%>								
				</ul>
				<ul id="dleft_tab2" style="display:none;">
					<li id="now23"><a href="user_blogmanage.asp" onClick="go_cmdurl('日志管理',this)" target="content3" title="日志管理">日志管理</a></li>
					<li id="now22"><a href="user_blogmanage.asp?usersearch=5" onClick="go_cmdurl('草稿箱',this)" target="content3" title="草稿箱">草稿箱<span id="sdraft_num"></span></a></li>
					<li id="now28"><a href="user_blogmanage.asp?usersearch=6" onClick="go_cmdurl('回收站',this)" target="content3" title="回收站">回收站<span id="del_num"></span></a></li>
					<li id="now24"><a href="user_subject.asp" onClick="go_cmdurl('日志分类',this)" target="content3" title="日志分类">日志分类</a></li>
					<li id="now25"><a href="user_blogmanage.asp?action=downlog" onClick="go_cmdurl('备份日志',this)" target="content3" title="备份日志">备份日志</a></li>
					<li id="now26"><a href="user_comments.asp" onClick="go_cmdurl('评论管理',this)" target="content3" title="评论管理">评论管理</a></li>
					<li id="now27"><a href="user_messages.asp" onClick="go_cmdurl('留言管理',this)" target="content3" title="留言管理">留言管理</a></li>
					<li id="now29"><a href="user_tb.asp" onClick="go_cmdurl('引用通告',this)" target="content3" title="引用通告">引用通告</a></li>
				</ul>
				<ul id="dleft_tab3" style="display:none;">
					<li id="now31"><a href="user_post.asp?t=1&action=showphoto" onClick="go_cmdurl('我的相册',this)" target="content3" title="浏览相册">浏览相册</a></li>
					<li id="now32"><a href="user_photo.asp" onClick="go_cmdurl('相片管理',this)" target="content3" title="相片管理">相片管理</a></li>
					<li id="now33"><a href="user_subject.asp?t=1" onClick="go_cmdurl('相册分类',this)" target="content3" title="相册分类">相册分类</a></li>
					<li id="now34"><a href="user_post.asp?t=2" onClick="go_cmdurl('大头贴',this)" target="content3" title="大头贴">大头贴</a></li>
				</ul>
				<ul id="dleft_tab4" style="display:none;">
					<li id="now41"><a href="user_files.asp" onClick="go_cmdurl('所有文件',this)" target="content3" title="所有文件">所有文件</a></li>
					<li id="now42"><a href="user_files.asp?cmd=1" onClick="go_cmdurl('图片文件',this)" target="content3" title="图片文件">图片文件</a></li>
					<li id="now43"><a href="user_files.asp?cmd=2" onClick="go_cmdurl('压缩文件',this)" target="content3" title="压缩文件">压缩文件</a></li>
					<li id="now44"><a href="user_files.asp?cmd=3" onClick="go_cmdurl('文档文件',this)" target="content3" title="文档文件">文档文件</a></li>
				</ul>
				<ul id="dleft_tab5" style="display:none;">
					<li id="now51"><a href="user_template.asp?action=showconfig" onClick="go_cmdurl('选择模板',this)" target="content3" title="选择模板">选择模板</a></li>
					<li id="now52"><a href="user_template.asp?action=modiconfig&editm=1" onClick="go_cmdurl('改主模板',this)" target="content3" title="改主模板">改主模板</a></li>
					<li id="now53"><a href="user_template.asp?action=modiviceconfig&editm=1" onClick="go_cmdurl('改副模板',this)" target="content3" title="改副模板">改副模板</a></li>
					<li id="now54"><a href="user_template.asp?action=bakskin" onClick="go_cmdurl('备份模板',this)" target="content3" title="备份模板">备份模板</a></li>
				</ul>
				<ul id="dleft_tab7" style="display:none;">
				<li><img src="images/loading.gif">正在加载...</li>	
				</ul>
			</div>
			<div class="clear"></div>
		</div>
		<div class="menu_end"></div>
	</div>
	<!-- contents left end //-->
	<!-- contents right //-->
	<div class="right">
	   <ul id="TabPage1">
			<li id="Tab1" class="Selected" onClick="javascript:switchTab('TabPage1','Tab1');" title="管理首页">管理首页</li>
			<li id="Tab2" onClick="javascript:switchTab('TabPage1','Tab2');" title="<%=P_QQ_NAME%>"><%=P_QQ_NAME%></li>
			<li id="Tab3" onClick="javascript:switchTab('TabPage1','Tab3');"><span id="dnow99" style="display:block">空白页面</span></li>
	   </ul>
		<div id="cnt">
			<div id="dTab1" class="Box">
				<iframe src="user_index_frame1.asp" name="content1" frameborder="0" scrolling="auto"></iframe>
			</div>
			<div id="dTab2" class="HackBox Box">
				<iframe src="user_team.asp" name="content2" frameborder="0" scrolling="auto"></iframe>
			</div>
			<div id="dTab3" class="HackBox Box">
				<iframe src="<%=MainUrl%>" name="content3" id="content3" frameborder="0" scrolling="auto"></iframe>
			</div>
		</div>
	</div>
	<!-- contents right end //-->
	<div class="clear"></div>
</div>
<!-- contents end //-->
</body>
</html>
<script>
//读订阅列表
function getfeedlist(){
	document.getElementById("dleft_tab7").innerHTML="<span style='margin:20px;'>正在加载...</span>";
	var Ajax = new oAjax("AjaxServer.asp",showfeedlist);
	var arrKey = new Array("action");
	var arrValue = new Array('getfeedlist');
	Ajax.Post(arrKey,arrValue);
}
function showfeedlist(arrobj){
	if (arrobj){
		document.getElementById("dleft_tab7").innerHTML=arrobj[0];
	}	
}

function su_click(obj){
	if(obj.className == 'open')
	{obj.className = 'close';}
	else{obj.className = 'open';}
	
}
//修改tab3标题
function show_title(str){
	document.getElementById("dnow99").innerHTML=str;
	//document.getElementById("dnow99").style.display='block';
}

//读短消息
function getpm(){
	//var rsslist = new Get_rsslist('AjaxServer.asp?action=getfeedlist');
	var Ajax = new oAjax("AjaxServer.asp",showpm);
	var arrKey = new Array("action","username");
	var arrValue = new Array('getpm',"<%=oblog.l_uname%>");
	Ajax.Post(arrKey,arrValue);
}
function showpm(arrobj){
	if (arrobj){
		document.getElementById("ob_pm").innerHTML=arrobj[0];	
		<%If En_SMS_Sound=1 Then%>	
		if (arrobj[0]!="(0)"){			
			document.getElementById("ob_pm").innerHTML=document.getElementById("ob_pm").innerHTML+"<EMBED SRC='oblogstyle/newsms.wav' HIDDEN=true AUTOSTART=true LOOP=false>";
		}
		<%End If%>
	}	
}

//读草稿数
function get_draft(){
	//var rsslist = new Get_rsslist('AjaxServer.asp?action=getfeedlist');
	var Ajax = new oAjax("AjaxServer.asp",show_draft);
	var arrKey = new Array("action","userid");
	var arrValue = new Array('get_draft',"<%=oblog.l_uid%>");
	Ajax.Post(arrKey,arrValue);
}
function show_draft(arrobj){
	if (arrobj){
		document.getElementById("sdraft_num").innerHTML=arrobj[0];
		document.getElementById("del_num").innerHTML=arrobj[1];
	}	
}

function go_cmdurl(title,tabid){
	show_title(title);
	switchTab('TabPage1','Tab3');
	menu(document.getElementById('Tab3')); 
	dleft_tab_active('TabPage3',tabid);
}

function u_init(){
	<%=jscmd%>
	getpm();
	get_draft();
	setInterval(getpm,<%=oblog.CacheConfig(8)%>*60000);
}
u_init();
</script>