<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Left.aspx.cs" Inherits="TotCms.Web.Admin.Other.Left" %>
<%@ Import Namespace="TotCms.FrameWork" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>navigation</title>
<link href="../style/global.css" rel="stylesheet" type="text/css" />
<link href="../left/style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT> 
var MSIE=0;
if(navigator.appName == 'Microsoft Internet Explorer')MSIE=1;
function MouseOver(item, type) {
	item.style.border='1px solid';
	if(type==0) {
		item.style.backgroundColor='#6699CC';
		item.style.borderLeftColor='#99CCFF';
		item.style.borderTopColor='#99CCFF';
		item.style.borderRightColor='#003366';
		item.style.borderBottomColor='#003366';
	} else if(type==1) {
		item.style.backgroundColor='#6699CC';
		item.style.borderLeftColor='#99CCFF';
		item.style.borderTopColor='#99CCFF';
		item.style.borderRightColor='#003366';
		item.style.borderBottomColor='#003366';
	}
}
 
function MouseOut(item, type) {
	item.style.border='1px solid';
	if(type==0) {
		item.style.backgroundColor='#336699';
		item.style.borderColor='#336699';
	} else if(type==1) {	
		item.style.backgroundColor='#336699';
		item.style.borderColor='#336699';
	}
}
function showHide(obj){	
	if(document.getElementById(obj).style.display=="none"){
		document.getElementById(obj).style.display="block";
	}
	else{
		document.getElementById(obj).style.display="none"
	}
}
</SCRIPT>
<body>
<form id="form1" runat="server">
<div class="divHead">
  <div align="left" class="style1" style="padding-top:5px;">
  <span id="trigFold"><a href="javascript:unfold()" class="white"><img src="../images/icon/minus.gif" alt="全部折叠" width="16" height="16" border="0" align="absmiddle"></a></span> </div>
</div>
<% if (ObjectFactory.Instance.GetAdminDao.CheckPrivilege(tot_roleid, this.tot_adminprivilege, "p09"))
   {
 %>
<!--vote-->
 
<div class="divHead" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)" onClick="showHide('d09')">
<img src="../images/icon/vote.gif" width="23" height="23" align="absmiddle"><span class="style10 style1"> 
投票管理</span>
</div>
<div class="divChild" id="d09">
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Vote_Add.aspx" target="mainFrame" class="white"> | 添加 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Votes.aspx" target="mainFrame" class="white"> | 管理 |</a></div>
</div>
<%} if (ObjectFactory.Instance.GetAdminDao.CheckPrivilege(tot_roleid, this.tot_adminprivilege, "p10"))
   {
 %>
<!--广告管理-->
 
<div class="divHead" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)" onClick="showHide('d10')">
<img src="../images/icon/ads.gif" width="18" height="18" align="absmiddle"><span class="style10 style1"> 
广告管理</span>
</div>
<div class="divChild" id="d10">
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Frame.aspx?left=Category_List.aspx&main=Ad_Add.aspx" target="mainFrame" class="white"> | 添加 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Frame.aspx?left=Category_List.aspx&main=Ads.aspx" target="mainFrame" class="white"> | 管理 |</a></div>
</div>
<%} if (ObjectFactory.Instance.GetAdminDao.CheckPrivilege(tot_roleid, this.tot_adminprivilege, "p12"))
   {
 %>
<!--评论管理-->
 
<div class="divHead" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)" onClick="showHide('d12')">
<img src="../images/icon/commen.gif" width="20" height="20" align="absmiddle"><span class="style10 style1"> 
评论管理</span>
</div>
<div class="divChild" id="d12">	
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Commens.aspx?check=-1" target="mainFrame" class="white"> | 管理 |</a></div>
</div>
<%}  if (ObjectFactory.Instance.GetAdminDao.CheckPrivilege(tot_roleid, this.tot_adminprivilege, "p15"))
   {
 %>
<div class="divHead" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)" onClick="showHide('d15')">
<img src="../images/icon/source.gif" width="20" height="20" align="absmiddle"><span class="style10 style1"> 
资源管理</span>
</div>
<div class="divChild" id="d15">	
<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Keywords.aspx" target="mainFrame" class="white"> | 关键字管理 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Sources.aspx?stype=author&title=作者" target="mainFrame" class="white"> | 作者 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Sources.aspx?stype=editor&title=编辑" target="mainFrame" class="white"> | 编辑 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Sources.aspx?stype=from&title=来源" target="mainFrame" class="white"> | 来源 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Area.aspx" target="mainFrame" class="white"> | 地区 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Industry.aspx" target="mainFrame" class="white"> | 行业 |</a></div>	
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="UpFiles.aspx" target="mainFrame" class="white"> | 附件管理 |</a></div>
</div>
<%} if (ObjectFactory.Instance.GetAdminDao.CheckPrivilege(tot_roleid, this.tot_adminprivilege, "p16"))
   {
 %>
 <div class="divHead" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)" onClick="showHide('d16')">
<img src="../images/icon/folder.gif" width="20" height="20" 
         align="absmiddle"><span class="style10 style1"> 
友情链接管理</span>
</div>
<div class="divChild" id="d16">	
  <div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Flink_Add.aspx" target="mainFrame" class="white"> | 添加友情链接 |</a></div>
	<div class="childLeft" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)"><img src="../images/icon/folder1.gif" width="18" height="18" align="absmiddle" /> <a href="../Flinks.aspx" target="mainFrame" class="white"> | 管理友情链接 |</a></div>
</div>
<%}%>
<div class="divHead" onMouseOver="javascript:MouseOver(this,1)" onMouseOut="javascript:MouseOut(this,1)">
<img src="../images/icon/help.gif" width="18" height="18" align="absmiddle"><a href="http://www.totcms.com/totnetcms/help/" target="mainFrame" class="white">
帮助</a>
</div>
<script language="javascript"> 
function showHide(obj){	
	if(document.getElementById(obj).style.display=="none"){
		document.getElementById(obj).style.display="block";
	}
	else{
		document.getElementById(obj).style.display="none";
	}
}
function exitsDiv(divid){
	var chkid=document.getElementById(divid);
	if(chkid != null){return true; }
	else {return false; }
}
function unfold(){
	for(i=0;i<38;i++){
		var s=(i<10?("0"+i):(i+""));
		if(exitsDiv("d"+s)){
			document.getElementById("d"+s).style.display="none";
		}
	}
	document.getElementById("trigFold").innerHTML='<a href="javascript:foldAll()" class="white"><img src="../images/icon/plus.gif" alt="unfold" width="16" height="16" border="0" align="absmiddle">全部展开</a>'
}
function foldAll(){
	for(i=0;i<38;i++){
		var s=(i<10?("0"+i):(i+""));
		if(exitsDiv("d"+s)){
			document.getElementById("d"+s).style.display="block";
		}
	}
	document.getElementById("trigFold").innerHTML='<a href="javascript:unfold()" class="white"><img src="../images/icon/minus.gif" alt="fold" width="16" height="16" border="0" align="absmiddle">折叠</a>'
}
</script>
</form>
</body>
</html>

