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

📄 admin_left.aspx

📁 主要实现软件的基本架构
💻 ASPX
字号:

<html>
<head>
<title>webabc</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="style/left.css">
</head>
<body>
<script type="text/javascript">
<!--
function SetStyle(win, selector, attribute, val){
	if (selector.length==0 || attribute.length==0 || val.length==0 || win.document.styleSheets.length==0 ){
		return;
	}
	selector = selector.toLowerCase();
	var ss = win.document.styleSheets[0];
	
	for(var i=0; i<ss.rules.length; i++){
		if (ss.rules[i].selectorText.toLowerCase()==selector){
			try{
				ss.rules[i].style.setAttribute(attribute,val,0);
			}catch(e){
			}
			break;
		}
	}
}

function setCookie(name, value)		//cookies设置
{
	var argv = setCookie.arguments;
	var argc = setCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	if(expires!=null)
	{
		var LargeExpDate = new Date ();
		LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*3600*24));
	}
	document.cookie = name + "=" + escape (value) + "; path=/;" +((expires == null) ? "" : (" expires=" +LargeExpDate.toGMTString()));
}

function getCookie(Name)			//cookies读取
{
	var search = Name + "="
	if(document.cookie.length > 0) 
	{
		offset = document.cookie.indexOf(search)
		if(offset != -1) 
		{
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if(end == -1) end = document.cookie.length
			return unescape(document.cookie.substring(offset, end))
		 }else return ""
	 }
}

function chg_color(col)
{
	if (col.length>0){
		setCookie("iwms_admin_color", col, 30);
		SetStyle(window, ".menu_title","backgroundColor", col );
		SetStyle(window, ".menu_title2","backgroundColor", col );
		SetStyle(top.frames[2], ".mframe td.tm","background", col);
	}else{
		setCookie("iwms_admin_color", "", -30);
	}
}

function sel_color()
{
	var arr = showModalDialog("style/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:15.5em; status:0; help:0");
	if (arr != null && arr != "")
	{
		chg_color(arr);
	}
}

SetStyle(window, ".menu_title","backgroundColor",getCookie("iwms_admin_color") );
SetStyle(window, ".menu_title2","backgroundColor",getCookie("iwms_admin_color") );

function menuChange(obj,menu)
{
	if(menu.style.display=="none")
	{
		obj.setAttribute("style","");
		obj.onmouseover=function(){this.className='menu_title2';};
		obj.onmouseout=function(){this.className='menu_title';};
		menu.style.display="";
	}else{
		obj.setAttribute("style","background-image:url(pic/admin_title_bg_hide.gif)");
		obj.onmouseover=function(){this.className='menu_title';};
		obj.onmouseout=function(){this.className='menu_title2';};
		menu.style.display="none";
	}
}

function proLoadimg()
{
	var imgs = new Array();
	for (var i=0; i<2; i++){
		imgs[i] = new Image();
	}
	imgs[0].src='pic/admin_title_bg_hide.gif';
	imgs[1].src='pic/admin_title_bg_show.gif';
}
proLoadimg();
-->
</script>
<table cellpadding="0" cellspacing="0" width="158" align="center">
  
  <tr><td style="background-image:url('pic/admin_title_bg_quit.gif')" height="25" class="quit" align="center">
  <a href="admin_login.aspx" target="_top"><strong>重登陆</strong></a>&nbsp; <a href="admin_logout.aspx" target="_top"><strong>退出登陆</strong></a>
  </td></tr>
  <tr><td height="6"></td></tr>
</table>

<div class="col_sel" align="center">
<span style="background:#d8c4f6;" onClick="chg_color(this.style.background)"></span>
<span style="background:pink;" onClick="chg_color(this.style.background)"></span>
<span style="background:#5BBAFA;" onClick="chg_color(this.style.background)"></span>
<span style="background:#CEC1B2;" onClick="chg_color(this.style.background)"></span>
<span style="background:#DBD0B4" onClick="chg_color(this.style.background)"></span>
<span style="background:#AFC79E" onClick="chg_color(this.style.background)"></span>
<span style="border:black 1px solid" onClick="sel_color()" title="自定"></span>
<a href="javascript:chg_color('');location.reload();" title="默认">×</a>
</div>


<table cellpadding="0" cellspacing="0" width="158" align="center">
  <tr style="cursor:hand;">
    <td height="25" class="menu_title" onMouseOver="this.className='menu_title2';" onMouseOut="this.className='menu_title';" onClick="menuChange(this,menuPoll);">
      <span>公告/调查</span>
    </td>
  </tr>
  <tr>
    <td>
      <div class="sec_menu" id="menuPoll">
        <table cellpadding="0" cellspacing="0" align="center" width="140">
	
 	
 	<tr><td height="20"><a href="admin_pollAdd.aspx" target="right">添加调查</a> | <a href="admin_poll.aspx" target="right">管理调查</a></td></tr>
      
       </table>
      </div>
    </td>
  </tr>
  <tr><td height="6"></td></tr>
</table>


<table cellpadding="0" cellspacing="0" width="158" align="center">
  <tr style="cursor:hand;">
    <td height="25" class="menu_title" onMouseOver="this.className='menu_title2';" onMouseOut="this.className='menu_title';" onClick="menuChange(this,menuSys);">
      <span>系统管理</span>
    </td>
  </tr>
  <tr>
    <td>
      <div class="sec_menu" id="menuSys">
        <table cellpadding="0" cellspacing="0" align="center" width="140">
	<tr><td height="20"><a href="admin_config.aspx" target="right">系统设置</a> | <a href="admin_maintain.aspx" target="right"></a></td></tr>
	
        </table>
      </div>
    </td>
  </tr>
  <tr><td height="6"></td></tr>
</table>



<table cellpadding="0" cellspacing="0" width="158" align="center">
  <tr style="cursor:hand;">
    <td height="25" class="menu_title" onMouseOver="this.className='menu_title2';" onMouseOut="this.className='menu_title';" onClick="menuChange(this,menuCopyright);">
      <span>版权信息</span>
    </td>
  </tr>
  <tr>
    <td>
      <div class="sec_menu" id="menuCopyright">
        <table cellpadding="0" cellspacing="0" align="center" width="140">
	<tr><td height="20">&nbsp;</td>
	</tr>
	<tr><td height="20">&nbsp;</td>
	</tr>
        </table>
      </div>
    </td>
  </tr>
  <tr><td height="6"></td></tr>
</table>
<br/>

</body>
</html>

⌨️ 快捷键说明

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