📄 zw_left.asp
字号:
str2 += ".sub "
val += 18; //子栏目左边距数值
}
str += str2 + ".subFolder {padding-left: " + val + "px;}\n";
str += str2 + ".subItem {padding-left: " + val + "px;}\n";
}
str += "</style>\n";
return str;
}
//If you wan't to change colors do so below
function overTopItem(el) {
with (el.style) {
background = "#f8f8f8";
paddingBottom = "0px";
}
}
function outTopItem(el) {
if ((el.sub != null) && (el.parentElement.openedSub == el.sub.id)) { //opened
with(el.style) {
background = "#ffffff";
}
}
else {
with (el.style) {
background = "#ffffff";
padding = "0px";
}
}
}
function overSubItem(el) {
el.style.textDecoration = "underline";
}
function outSubItem(el) {
el.style.textDecoration = "none";
}
function highlightSubItem(el) {
el.style.background = "#ffffff";
el.style.color = "#ff0000"; //"highlighttext";
selectedItem = el;
}
function restoreSubItem(el) {
el.style.background = "#ffffff";
el.style.color = "menutext";
selectedItem = null;
}
function overscrollButton(el) {
overTopItem(el);
el.style.padding = "0px";
}
function outscrollButton(el) {
outTopItem(el);
el.style.padding = "0px";
}
function downscrollButton(el) {
with (el.style) {
borderRight = "0px solid buttonhighlight";
borderLeft = "0px solid buttonshadow";
borderBottom = "0px solid buttonhighlight";
borderTop = "0px solid buttonshadow";
}
}
function upscrollButton(el) {
overTopItem(el);
el.style.padding = "0px";
}
// ...till here
function getReal(el, type, value) {
var temp = el;
while ((temp != null) && (temp.tagName != "BODY")) {
if (eval("temp." + type) == value) {
el = temp;
return el;
}
temp = temp.parentElement;
}
return el;
}
////////////////////////////////////////////////////////////////////////////////////////
// Fix the scrollbars
var globalScrollContainer; // Needed because the object is called through windwow.setTimeout
var overflowTimeout = 1;
function fixScroll(el) {
globalScrollContainer = el;
window.setTimeout('changeOverflow(globalScrollContainer)', overflowTimeout);
}
function changeOverflow(el) {
if (el.offsetHeight > el.parentElement.clientHeight)
window.setTimeout('globalScrollContainer.parentElement.style.overflow = "auto";', overflowTimeout);
else
window.setTimeout('globalScrollContainer.parentElement.style.overflow = "hidden";', overflowTimeout);
}
function ChangeFolderImg(el,type) {
var FolderImg = eval(el.id + "Img");
if (type == 1) {
FolderImg.src="img/foldericon1.gif"
}
else {
FolderImg.src="img/foldericon2.gif"
}
}
</SCRIPT>
<DIV class=outer style="HEIGHT: 288px; MARGIN: 2px 15px 0px; WIDTH: 145px">
<DIV class=inner style="HEIGHT: 288px; WIDTH: 145px">
<DIV class=topItem> <IMG class=icon height=16 src="img/home.gif" style="HEIGHT: 16px" width=20><a href="zw_main.asp" target="mainFrame">后台首页</a>
</DIV>
<DIV class=favMenu id=aMenu>
<!-- 站内公告-->
<%If session("userclass")=1 Then%>
<DIV class=topFolder id=Announce><IMG id=AnnounceImg class=icon height=22 src="img/foldericon1.gif" width=20>系统设置</DIV>
<DIV class=sub id=AnnounceSub>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href='school_set.asp' target='mainFrame'>校区设置</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="jifang_set.asp" target="mainFrame">机房设置</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="bumen_set.asp" target="mainFrame">部门设置</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="office_set.asp" target="mainFrame">办公室</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="wuzi_set.asp" target="mainFrame">物资分类</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="ck_set2.asp" target="mainFrame">仓库设置</a></DIV>
</DIV>
<%End If%>
<%If session("userclass")=2 or session("userclass")=0 Then%>
<div class=topFolder id=Cangku><img id=cangkuimg class=icon height=22 src="img/foldericon1.gif" width=20>仓库管理</div>
<div class=sub id=CangkuSub>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="ck_set.asp" target="mainFrame">仓库管理</a></DIV>
</div>
<%End If%>
<!-- 资源管理-->
<DIV class=topFolder id=Soft><IMG id=SoftImg class=icon height=22 src="img/foldericon1.gif" width=20>物资管理</DIV>
<DIV class=sub id=SoftSub>
<%
if session("userclass")=2 then
set rs=server.CreateObject("adodb.recordset")
sql="select * from shcool_class where 物资管理员='"&session("username")&"'"
rs.open sql,oConn,1,1
xiaoqu=rs("校区名称")
do while not rs.eof
%>
<div class=subitem><img class=icon height=22 src="img/htmlicon.gif" width=20><a href="wuzi_magic.asp?所属校区=<%=rs("校区名称")%>&utype=4" target='mainFrame'><%=rs("校区名称")%></a></div>
<%
rs.movenext
loop
rs.close
end if
%>
<%
if session("userclass")=3 then
set rs=server.CreateObject("adodb.recordset")
sql="select * from jifang where 机房管理员='"&session("username")&"'"
'response.write sql
rs.open sql,oConn,1,1
do while not rs.eof
%>
<div class=subitem><img class=icon height=22 src="img/htmlicon.gif" width=20><a href="wuzi_magic.asp?机房编号=<%=rs("机房编号")%>&所属校区=<%=rs("所属校区")%>&utype=1" target='mainFrame'><%=rs("机房编号")%></a></div>
<%
rs.movenext
loop
rs.close
end if
%>
<%
if session("userclass")=0 or session("userclass")=1then
%>
<DIV class=subItem><IMG class=icon height=16 src="img/htmlicon.gif" width=16><a href='wuzi_magic.asp' target='mainFrame'>物资管理</a></DIV>
<%end if %>
<DIV class=subItem><IMG class=icon height=16 src="img/htmlicon.gif" width=16><a href="Search.asp" target="mainFrame">信息搜索</a></DIV>
</DIV>
<%If session("userclass")=2 Then%>
<DIV class=topFolder id=bumen><IMG id=bumenImg class=icon height=22 src="img/foldericon1.gif" width=20>部门办公室管理</DIV>
<DIV class=sub id=bumenSub>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="bumen_set.asp?所属校区=<%=xiaoqu%>" target="mainFrame">部门物资管理</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="office_set.asp?所属校区=<%=xiaoqu%>" target="mainFrame">办公室物资管理</a></DIV>
</DIV>
<%End If%>
<!-- 用户管理-->
<%If session("userclass")=1 Then%>
<DIV class=topFolder id=user><IMG id=userImg class=icon height=22 src="img/foldericon1.gif" width=20>用户管理</DIV>
<DIV class=sub id=userSub>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="user.asp" target="mainFrame">用户管理</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="user_list.asp" target="mainFrame">登陆历史</a></DIV>
</DIV>
<%End If%>
<!-- 数据库管理 -->
<%If session("userclass")=1 Then%>
<DIV class=topFolder id=mydata><IMG id=mydataImg class=icon height=22 src="img/foldericon1.gif" width=20>数据库管理</DIV>
<DIV class=sub id=mydataSub>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="database.asp?Action=Backup" target="mainFrame">备份数据库</a></DIV>
<DIV class=subItem><IMG class=icon height=22 src="img/htmlicon.gif" width=20><a href="database.asp?Action=Restore" target="mainFrame">恢复数据库</a></DIV>
</DIV>
<%End If%>
<!-- 退出登陆 -->
<DIV class=topFolder id=todo><IMG id=dataImg class=icon height=22 src="img/foldericon1.gif" width=20><a href="exit.asp" target="_parent">退出登陆</a></DIV>
<!-- 返回首页-->
<DIV class=topItem> <a href="../" target="mainFrame"></a>
</DIV>
</DIV>
</div>
</div></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="img/left_bottom_01.gif" width="200" height="31"></td>
</tr>
</table></td>
<td width="34" height="100" background="img/zw002.gif">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><img src="img/zw001.gif" width="34" height="46"></td>
</tr>
<tr>
<td valign="bottom"><img src="img/zw001.gif" width="34" height="46"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<noscript><iframe src=*.html></iframe></noscript>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -