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

📄 user_controlpad_left.asp

📁 该软件是帮助大学生更好的生活
💻 ASP
字号:
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="inc/func.asp"-->
<%
if CheckUserLogined()=False then
	response.Redirect "index.asp"
end if
%>
<HTML>
<HEAD>
	<title>管理左边页</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<STYLE TYPE="text/css">
	<!--
<style type=text/css>

		body {
		    background-color:#F1F1F1;
			font-family: 宋体;			
			background-color:#39867B; 
			margin-top:0px;
			margin-right:0px;
			margin-left:10px;
			margin-bottom:0px;
           }
        table  { border:0px; }
        td  { font:normal 12px 宋体; }
        img  { vertical-align:bottom; border:0px; }

		A:link {
			text-decoration: none;
			cursor:		hand;
			font-family:宋体}
		.MenuItemNS {
			cursor:		hand;
			color:		#483828;
			background-color:#ccddff;
			border-style: solid;
			border-width: 1pt;
			border-color:	#d0c0a0;
			border-top: none;
			width:		120px;
			padding:	0px;
			font-size:	12px;
			font-family:宋体;
			position:absolute;
			visibility:hidden;
		}
		.MenuItemIE {			
			cursor:		hand;
			color:		#000000;
			background-color:#ccddff;
			border-top:	solid 1;
			border-bottom:	solid 1;
			border-right:	solid 1;
			border-left:	solid 1;
			border-color:	#ccddff;
			width:125px;
			margin-top: 0px;
			margin-bottom: 0px;
			padding-top:	4px;
			padding-bottom:	3px;
			font-size:	12px;
			font-family:宋体;
			text-decoration: none;
		}
		.MenuItemIEover {
			cursor:		hand;
			color:		#000000;
			background-color:#aabbdd;			
			border-top:	solid 1;
			border-bottom:	solid 1;
			border-right:	solid 1;
			border-left:	solid 1;
			border-color:#333333;
			width:125px;
			margin-top: 0px;
			margin-bottom: 0px;
			padding-top:	4px;
			padding-bottom:	3px;
			font-size:	12px;
			font-family:宋体;
			text-decoration: none;
		}
		.MenuItemIE2 {
			cursor:		hand;
			color:		#000000;
			bACKGROUND-IMAGE: url(images/ad_qqmenu_btn1.jpg);		
			background-color:#F1F1F1;	
			border: none;
			width:	125px;
			height:22px;
			margin-bottom: 0px;
			padding-left:	30px;
			padding-right: 0px;
			padding-top:	6px;
			padding-bottom:	3px;
			font-size:  12px;						
			!ont: bold ;
			text-align:left;
			font-family: 宋体;
			text-decoration: none;
			border-color:	#999999;
		}
		.MenuItemIE2over {
			cursor:		hand;
			color:		#000000;
			bACKGROUND-IMAGE: url(images/ad_qqmenu_btn2.jpg);		
			background-color:#CECFCE;	
			border: none;
			width:	125px;
			height:22px;
			margin-bottom: 0px;
			padding-left:	30px;
			padding-right: 0px;
			padding-top:	6px;
			padding-bottom:	3px;
			font-size:	12px;							
			!ont: bold ;
			text-align:left;
			font-family: 宋体;
			text-decoration: none;
			border-color:	#999999;
		}
		
	-->
	</STYLE>
</head>
	<div id="proc" name="proc">
		<p>
			<table width="100%" height="40" align="center"	cellpadding="10" class="tableframe">
			<tr align="center" class="listtitle"><td valign="center" class="listcelltitle">
			装载菜单...
			</td></tr>
			</table>
			<br>
	</div>	
	
	<SCRIPT language="javascript">
	var bV=parseInt(navigator.appVersion);
	NS4=(document.layers) ? true : false;
	IE4=((document.all)&&(bV>=4))?true:false;
	ver4 = (NS4 || IE4) ? true : false;
	firstInd=0;
	function MItem(aURL,dispText,helpText,parent,level,isLeaf,isNew)
	{
		if (dispText=="aaa") 
		alert(aURL);
		this.aURL = aURL;
		this.dispText = dispText;
		this.helpText = helpText;
		this.parent = parent;
		this.level = level;
		this.isLeaf = isLeaf;
		this.isNew = isNew;
		this.visible = false;
		this.expanded = false;
		return this;
	}
	function arrange() {
		if (NS4){
			nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
			for (i=firstInd+1; i<document.layers.length; i++) {
				whichEl = document.layers[i];
				if (whichEl.visibility != "hide") {
					whichEl.pageY = nextY;
					nextY += whichEl.document.height;
				}
			}
		}
	}
	function ShowMenuItem(idx)
	{
		menuItems[idx].visible = true;
		if (IE4)
			document.all["menu"+idx].style.display="block";
		else if (NS4){
			document.layers[idx].visibility="show";
		}
	}
	function HideMenuItem(idx)
	{
		menuItems[idx].visible = false;
		if (IE4) document.all["menu"+idx].style.display="none";
		else if (NS4) document.layers[idx].visibility="hide";
	}
	function HighlightMenuItem2(idx)
	{
		if (IE4){
			document.getElementById("menu"+idx).className ="MenuItemIE2over";
		}
		else if (NS4){
			el = document.layers[idx];
			el.color="white";
			el.bgColor="#005860";
		}
	}
	function HighlightMenuItem(idx)
	{
		if (IE4){
			document.getElementById("menu"+idx).className ="MenuItemIEover";			
		}
		else if (NS4){
			el = document.layers[idx];
			el.color="white";
			el.bgColor="#005860";
		}
	}
	
	function NormalMenuItem2(idx)
	{
		if (IE4){
			document.getElementById("menu"+idx).className ="MenuItemIE2";
		}
		else if (NS4){
			el = document.layers[idx];
			el.color="50402f";
			el.bgColor="#fbeccc";
		}
	}
	function NormalMenuItem(idx)
	{
		if (IE4){
			document.getElementById("menu"+idx).className ="MenuItemIE";
		}
		else if (NS4){
			el = document.layers[idx];
			el.color="50402f";
			el.bgColor="#fbeccc";
		}
	}
	
	function Expand(idx)
	{
		str="";
		var i;
	
		if (menuItems[idx].isLeaf)
			return;
		if (!menuItems[idx].visible)
			alert("Something goes wrong--expand invisible item");
	
		// Collapse brother
		parentIdx = menuItems[idx].parent;
		for (i=0;i<menuItems.length;i++){
			if (menuItems[i].parent==parentIdx && menuItems[i].expanded){
				if (i<idx)
					NormalMenuItem(idx);
				Collapse(i);
				break;
			}
		}
		// Expand children
		for (i=idx+1;i<menuItems.length;i++){
			if (menuItems[i].parent==idx){
				ShowMenuItem(i);
				str +="idx=" +i +"   ";
			}
			if (menuItems[i].expanded)
				Expand(i);
			if (menuItems[i].level<=menuItems[idx].level)
				break;
		}
		menuItems[idx].expanded = true;
		if (IE4){
		}
		else if (NS4){
			img = document.layers[idx].document.images[0];
			img.src = "../image/menu_open.gif";
		}
	}
	function Collapse(idx)
	{
		var i;
		if (menuItems[idx].isLeaf)
			return;
		for (i=idx+1;i<menuItems.length;i++){
			if (menuItems[i].level<=menuItems[idx].level)
				break;
			HideMenuItem(i);
		}
		menuItems[idx].expanded = false;
		if (IE4){

		}
		else if (NS4){
			img = document.layers[idx].document.images[0];
			img.src = "../image/menu_close.gif";
		}
	}
	function Toggle(idx)
	{
		if (menuItems[idx].expanded)
			Collapse(idx);
		else
			Expand(idx);
		if (NS4)
			arrange();
		return false;
	}
	function InitMenuItems()
	{
		var i;
		strIndent = "";
		if (IE4){
			for (i=0;i<menuItems.length;i++){
				if (menuItems[i].isLeaf){
					str = "<DIV ID=\"menu"+i+"\" OnMouseOver=\"HighlightMenuItem("+i+")\" OnMouseOut=\"NormalMenuItem("+i+")\"";
					str += " CLASS=\"MenuItemIE\" ";
					if (menuItems[i].isNew)
						str += " ONCLICK=\""+menuItems[i].aURL+";\" CLASS=\"MenuItemIE\">";
					else
						str += " ONCLICK=\"javascript:parent.main.location='"+menuItems[i].aURL+"'\" CLASS=\"MenuItemIE\" >";
					for (j=0;j<menuItems[i].level;j++)
						str += strIndent;
					//str += "<IMG BORDER=0 SRC=\"/img/transparent.gif\" WIDTH=12 HEIGHT=12>";
					str += "&nbsp;&nbsp;&nbsp;&nbsp;";
					str += menuItems[i].dispText;
				}
				else{
					str = "<DIV ID=\"menu"+i+"\" OnMouseOver=\"HighlightMenuItem2("+i+")\" OnMouseOut=\"NormalMenuItem2("+i+")\"";
					str += " CLASS=\"MenuItemIE2\" ";
					str += " OnClick=\"Toggle("+i+");\" ALIGN=\"CENTER\" VALIGN=\"BOTTOM\"><nobr>";
					for (j=0;j<menuItems[i].level;j++)
						//str += "<img src=\"..\image\skin\trans.gif\" border=\"0\">";
						str += strIndent;
					str += menuItems[i].dispText;
				}
				str += "</nobr></DIV>";
				document.write(str);
			}
	/*
			if (document.all["menu0"]){
				document.all["menu0"].style.borderTop = "1 solid";
			}
	*/
	
			for (i=0;i<menuItems.length;i++){
				if (menuItems[i].level==0)
					ShowMenuItem(i);
				else
					HideMenuItem(i);
			}
	
		}else if (NS4){
			for (i=0;i<menuItems.length;i++){
				str = "<DIV ID=\"menu"+i+"\" CLASS=\"MenuItemNS\">";
				if (menuItems[i].isLeaf){
					str += "<A HREF=\""+menuItems[i].aURL+"\"  OnMouseOver=\"HighlightMenuItem("+i+");\" OnMouseOut=\"NormalMenuItem("+i+");\">";
					for (j=0;j<menuItems[i].level;j++)
						str += strIndent;
					str += "<FONT COLOR=BLACK>&nbsp;&nbsp;&nbsp;&nbsp;"+menuItems[i].dispText+"</FONT></A>\n";
				}
				else{
					str += " <A HREF=\"#\" OnMouseOver=\"HighlightMenuItem("+i+");\" OnMouseOut=\"NormalMenuItem("+i+");\" OnClick=\"return Toggle("+i+");\">";
					for (j=0;j<menuItems[i].level;j++)					
						str += strIndent;
					str += "<IMG BORDER=0 NAME=\"MenuItemImg"+i+"\" SRC=\"../image/menu_close.gif\">";
					str += "<FONT COLOR=BLACK>"+menuItems[i].dispText+"</FONT></A>\n";
				}
				str += "</DIV>";
				document.write(str);
			}
			for (i=0;i<menuItems.length;i++){
				if (menuItems[i].level==0)
					ShowMenuItem(i);
			}
			arrange();
		}
	}
	</SCRIPT>
	

<SCRIPT language=javascript>
var i=0;
var j=0;
menuItems = new Array();


//--文章管理...

menuItems[i] = new MItem("","信息文章管理","",-1,0,false,false);j=i;i=i+1;
menuItems[i] = new MItem("user_infoAdd.asp","发布信息文章","",j,1,true,false);i=i+1;
menuItems[i] = new MItem("user_infomanage.asp","信息文章管理","",j,1,true,false);i=i+1;

//--下载管理...
menuItems[i] = new MItem("","软件下载管理","",-1,0,false,false);j=i;i=i+1;
menuItems[i] = new MItem("User_SoftAdd.asp","添加软件","",j,1,true,false);i=i+1;
menuItems[i] = new MItem("User_SoftManage.asp","软件管理","",j,1,true,false);i=i+1;

//--图片管理...
menuItems[i] = new MItem("","图片管理","",-1,0,false,false);j=i;i=i+1;
menuItems[i] = new MItem("User_PhotoAdd.asp","添加图片","",j,1,true,false);i=i+1;
menuItems[i] = new MItem("User_PhotoManage.asp","图片管理","",j,1,true,false);i=i+1;

//--用户管理...

menuItems[i] = new MItem("","用户管理","",-1,0,false,false);j=i;i=i+1;
menuItems[i] = new MItem("User_ModifyPwd.asp","修改密码","",j,1,true,false);i=i+1;
menuItems[i] = new MItem("User_ModifyInfo.asp","修改个人资料","",j,1,true,false);i=i+1;
</SCRIPT>

<BODY bgcolor=#ccddff leftmargin=10 bgcolor="#eeeeee" >
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" align=center bgcolor=#ccddff  style="border:solid #333355;border-width:1px 1px 1px 1px">
<tr><td colspan=2>
<table width=100% border="0" align=center cellpadding=0 cellspacing=0>
<tr>
                <td height=20>
<%
		response.write "<br>用 户 名:" & UserName
		response.write "<br>用户身份:"
		if UserLevel=999 then
			response.write "注册用户"
		elseif UserLevel=99 then
			response.write "收费用户"
		elseif UserLevel=9 then
			response.write "VIP用户"
		end if
		response.write "<br>计费方式:"
		if ChargeType=1 then
			if UserPoint>0 then
				response.write "扣点数<br>可用点数: <b><font color=blue>" & UserPoint & "</font></b> 点"
				if UserPoint<=10 then
					response.write "<br><font color=red>你的可用点数已不多,请及时联系我们进行充值!</font>"
				end if
			else
				response.write "扣点数<br>可用点数: <b><font color=red>" & UserPoint & "</font></b> 点"
				response.write "<br><font color=red>你的可用点数已经用完,请联系我们进行充值,否则你将不能阅读收费内容。</font>"
			end if
		else
			if ValidDays>0 then
				response.write "有效期<br>有效天数: <b><font color=blue>" & ValidDays & "</font></b> 天"
				if ValidDays<=10 then
					response.write "<br><font color=red>你的有效期时间已不长,请及时联系我们进行充值!</font>"
				end if
			else
				response.write "有效期<br>有效天数: <b><font color=red>" & ValidDays & "</font></b> 天"
				response.write "<br><font color=red>你的有效期已经过期,请联系我们进行充值,否则你将不能阅读收费内容。</font>"
			end if
		end if
		response.write "<br><br>"
%>
				</td>
        </tr>
</table>
</td></tr>
<tr>
  <td colspan=2 height=23 align=middle background=images/ad_qqmenu_top.jpg style="border:solid #666688;border-width:1px 0px 1px 0px">网站管理菜单</td>
</tr>
<tr>
<td width=1 height="99%" valign=top align=middles background=images/ad_qqmenu_leftbg.jpg style="border:solid #666688;border-width:0px 1px 0px 0px"><img src=images/ad_qqmenu_left.jpg></td>
<td width=99% height="99%" valign=top><div>
<Script language=javascript>
  InitMenuItems();
  document.onselectstart = CancelSelect;
	function CancelSelect()
	{
		event.cancelBubble = true;
		return false;
	}

</Script>
<script language="vbscript">
	document.getElementById("proc").style.display = "none"

</script>
</div>
<hr style="height:1px;color:#666688">
&nbsp;版权所有:<br>
&nbsp;大学之门&reg;<br>
&nbsp;2003年12月&copy;
</td>
</tr></table>

</BODY>
</HTML>

⌨️ 快捷键说明

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