⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_site.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" ResponseEncoding="utf-8" Inherits="manage_news_class_site"  Codebehind="class_site.aspx.cs" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<script language="javascript" type="text/javascript">
if(self==top)
{self.location.href='../index.aspx';}
function setshorcutmenu(setoption)
{
   document.getElementById("channeldiv").style.display=setoption;
   
}
</script>
<title></title>
<link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath());%>/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.LableSelectItem {
	background-color:highlight;
	cursor: hand;
	color: white;
	text-decoration: none;
}
.LableItem {
	cursor: hand;
}
.SubItem {
	margin-left:2px;
	background-image: url(../../normal/s_1.gif);
}
.RootItem {
	margin-left:2px;
	}
.bodys
{
	line-height:25px;
}
.divstyle {
	overflow:hidden;
	position:absolute;
	right:3px;
	top:0px;
	background:#F3FBFB repeat-x left top;
	border:1px double #CADFE0;
	width:95%;
	margin:0px 0px 0px 3px;
	text-align:left;
	padding-left:8px;
	padding-top:8px;
	padding-bottom:12px;
	padding-right:8px;
	clip:rect(auto, auto, auto, auto);
	z-index:50;
	filter: progid:DXImageTransform.Microsoft.DropShadow(color=#F1F3F3,offX=2,offY=2,positives=true);
}
</style>
</head>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
<body ondragstart="return false;" onselectstart="return false;">
<div id="channeldiv" class="divstyle" style="text-align:left;display:none;">

            自定义频道:<br />
            <div runat="server" id="channelDivMenu"></div>

</div>
<table width="165" height="29" border="0" cellpadding="0" cellspacing="0" class="menuq">
  <tr>
    <td width="26" rowspan="2" align="center"><img src="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/admin/menu_dot.gif" width="8" height="11" border="0"  alt="展开/隐藏"  id="arrow_1"/></td>
    <td height="2"></td>
    <td width="50" rowspan="2" align="center"></td>
  </tr>
  <tr>
    <td width="101" align="left" onClick="show_hide('profile_1', 'arrow_1')" style="cursor:pointer;" class="Lion_menu_2">快捷导航</td>
  </tr>
</table>
<div id="profile_1" style="display:none;">
<div id="shortcut_id" runat="server" />
</div>
<table style="width:165px;height:29px;" border="0" cellpadding="0" cellspacing="0" class="menuq">
  <tr>
    <td style="width:26px;" rowspan="2" align="center"><img src="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/admin/menu_dot1.gif" width="8" height="11" border="0" alt="展开/隐藏" id="arrow_2" /></td>
    <td style="width:50px;" align="center"></td>
  </tr>
  <tr>
    <td style="width:101px;cursor:pointer;" align="left" onClick="show_hide('profile_2', 'arrow_2')" class="Lion_menu_2">功能导航</td>
  </tr>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td style="padding-left:0px;"><img src="../../sysImages/folder/navidot.gif" border="0" /><a href="news_list.aspx" target="sys_main" class="menulist" title="点击查看所有的新闻">全部新闻</a><img src="../../sysImages/folder/navidot.gif" border="0" /><a href="news_stat.aspx" target="sys_main" class="menulist" title="统计编辑的稿件">统筹</a>&nbsp;<label id="returnmenu" runat="server" /></td>
  </tr>
</table>
<div id="profile_2" style="width:98%;"><div style="width:100%;" id="Parent0" class="RootItem">&nbsp;&nbsp;loading...</div>
</div>

  
</body>
</html>
<script language="javascript" type="text/javascript">
var SelectClass="";
function SwitchImg(ImgObj,ParentId){
	var ImgSrc="",SubImgSrc;
	ImgSrc=ImgObj.src;
	SubImgSrc=ImgSrc.substr(ImgSrc.length-5,12);
	if (SubImgSrc=="b.gif"){
		ImgObj.src=ImgObj.src.replace(SubImgSrc,"s.gif");
		ImgObj.alt="点击收起子栏目";
		SwitchSub(ParentId,true);
	}else{
		if (SubImgSrc=="s.gif"){
			ImgObj.src=ImgObj.src.replace(SubImgSrc,"b.gif");
			ImgObj.alt="点击展开子栏目";
			SwitchSub(ParentId,false);
		}else{
			return false;
		}
	}
}
function SwitchSub(ParentId,ShowFlag)
{
	if (ShowFlag==true){
		$("Parent"+ParentId).style.display="";
		if ($("Parent"+ParentId).innerHTML=="" || $("Parent"+ParentId).innerHTML=="&nbsp;&nbsp;loading..."){
			$("Parent"+ParentId).innerHTML="&nbsp;&nbsp;loading...";
			GetSubClass(ParentId);
		}
	}else{
		$("Parent"+ParentId).style.display="none";
	}
}
function SelectLable(Obj)                                                                                                          
{
	var SelectedInfo="";
	if (SelectClass!=""){
		SelectedInfo=SelectClass.split("***");
		$(SelectedInfo[0]).className='LableItem';
	}
	Obj.className='LableSelectItem';
	SelectClass=Obj.id+"***"+Obj.innerText;
}
function GetRootClass(){
	GetSubClass("0");
}

function GetSubClass(ParentId){
	var url="class_site_ajax.aspx";
	var Action="ParentId="+ParentId;
	var myAjax = new Ajax.Request(
		url,
		{method:'get',
		parameters:Action,
		onComplete:GetSubClassOk
		}
		);
}

function GetSubClassOk(OriginalRequest){
	var ClassInfo;
	if (OriginalRequest.responseText!="" && OriginalRequest.responseText.indexOf("|||")>-1){
		ClassInfo=OriginalRequest.responseText.split("|||");
		
		if (ClassInfo[0]=="Succee"){
			$("Parent"+ClassInfo[1]).innerHTML=ClassInfo[2];
		}else{
			$("Parent"+ClassInfo[1]).innerHTML="<a class=\"list_link\" title=\"点击重试\" href=\"点击重试\" onclick=\"$('Parent"+ClassInfo[1]+"').innerHTML='栏目加载中...';GetSubClass('"+ClassInfo[1]+"');return false;\">none</a>";
		}
	}else{
		alert("读取栏目错误.\n请联系管理员.");
		return false;
	}
}



window.onload=GetRootClass;

 function show_hide(DivID,ImgID)
 {
    if (document.getElementById(DivID).style.display=='')
    {
        document.getElementById(DivID).style.display='none';
        document.getElementById(ImgID).src='../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/admin/menu_dot.gif';
    }
    else
    {
        document.getElementById(DivID).style.display='';
        document.getElementById(ImgID).src='../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/admin/menu_dot1.gif';
    }
}

function hsite(siteid)
{
    if(siteid!="")
    {
        if(document.getElementById(siteid).style.display=="none")
        {
              document.getElementById(siteid).style.display="";
        }
        else
        {
              document.getElementById(siteid).style.display="none";
         }
    }
}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -