📄 main.asp
字号:
<%
if session("username")="" then
response.Redirect "login.asp"
end if
%>
<!-- #include file="conn.asp" -->
<!-- #include file="const.asp" -->
<html>
<head>
<title><%=dianming%> - 系统管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function about() {
showModalDialog('about/about.htm',window,'dialogHeight:250px;dialogWidth:360px;dialogleft:200px;help:no;status:no;scroll:no');
}
function menu(t){
var aChildren = eval("lMenu");
for(i=0; i < aChildren.length; i++) {
aChildren[i].className = t;
}
}
function tick() {
var hours, minutes, seconds;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "00:";
} else if (intHours < 10) {
hours = "0" + intHours+":";
} else {
hours = intHours + ":";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = hours+minutes+seconds;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 1000);
}
//-->
</script>
</head>
<body>
<%
sql="select * from produit"
set rs_produit=conn.execute(sql)
nowbaojin=""
do while rs_produit.eof=false
sql="select * from produit where huohao='"&rs_produit("huohao")&"'"
set rs_shulian=conn.execute(sql)
nowshulian=0
do while rs_shulian.eof=false
nowshulian=nowshulian+rs_shulian("shulian")
rs_shulian.movenext
loop
if nowshulian<rs_produit("baojin") then
nowbaojin=nowbaojin&"<tr bgcolor=#ececec onMouseOver=this.bgColor='#ffffff' onMouseOut=this.bgColor='#ececec'><td align=center height=25>"&rs_produit("title")&"</td><td>"&rs_produit("huohao")&"</td><td>"&nowshulian&"</td></tr>"
end if
rs_produit.movenext
loop
%>
<SCRIPT src="js/myjs.js" language="JavaScript"></SCRIPT>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="112" height="26"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" align="center"><font size="+1" face="Arial Black" color="#5858E6">Penny</font></td>
</tr>
</table></td>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="TableMenu">
<tr>
<td width="6" height="24" align="center"><img src="images/Menu_Line2.gif" hspace="2"></td>
<td width="80"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" name="r1" buttontype="radio" onClick="ListMenu(1);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_1.gif" width="14" height="14" hspace="2" align="absmiddle">入库管理</td>
</tr>
</table></td>
<td width="80"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" name="r1" buttontype="radio" onClick="ListMenu(2);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_2.gif" width="14" height="14" hspace="2" align="absmiddle">库存管理</td>
</tr>
</table></td>
<td width="80"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" name="r1" buttontype="radio" onClick="ListMenu(3);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_3.gif" width="14" height="14" hspace="2" align="absmiddle">出库管理</td>
</tr>
</table></td>
<td width="80"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" name="r1" buttontype="radio" onClick="ListMenu(12);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/new.gif" width="14" height="14" hspace="2" align="absmiddle">统计报表</td>
</tr>
</table></td>
<td width="80"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" name="r1" buttontype="radio" onClick="ListMenu(8);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_4.gif" width="14" height="14" hspace="2" align="absmiddle">会员管理</td>
</tr>
</table></td>
<td width="80"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" name="r1" buttontype="radio" onClick="ListMenu(5,4,9,10,11);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_5.gif" width="14" height="14" hspace="2" align="absmiddle">系统设置</td>
</tr>
</table></td>
<td width="13" height="24" align="right" background="images/Menu_Line1.gif"><img src="images/Menu_Line2.gif" hspace="2"></td>
<td width="50"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" class="coolbutton" nowrap onClick="OfficeMain.history.go(-1);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/back.gif" width="14" height="14" hspace="2" align="absmiddle">后退</td>
</tr>
</table></td>
<td width="50"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" class="coolbutton" nowrap onClick="OfficeMain.history.go(1);" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/forward.gif" width="14" height="14" hspace="2" align="absmiddle">前进</td>
</tr>
</table></td>
<td width="50"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" class="coolbutton" nowrap onClick="OfficeMain.location.reload();" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/ref.gif" width="16" height="16" hspace="2" align="absmiddle">刷新</td>
</tr>
</table></td>
<td width="13" height="24" align="right" background="images/Menu_Line1.gif"><img src="images/Menu_Line2.gif" hspace="2"></td>
<td width="20"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" class="coolbutton" onClick="OfficeMain.location.href='Desk.asp';" nowrap title="桌面" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="Images/desktop.gif" width="16" height="16" hspace="2" align="absmiddle"></td>
</tr>
</table></td>
<td width="20"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" class="coolbutton" onClick="if (this.value){menu('hidden');}else{menu('');}" id="b2" nowrap buttontype="radio" value="true" title="显示/隐藏菜单" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_6.gif" width="14" height="14" hspace="2" align="absmiddle"></td>
</tr>
</table></td>
<td width="13" height="24" align="right" background="images/Menu_Line1.gif"><img src="images/Menu_Line2.gif" hspace="2"></td>
<%if request("w")<>1 then%>
<td width="50" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" nowrap class="coolbutton" onClick="if (confirm('你确定要退出系统吗?')){window.location.href='exit.asp';}" title="退出系统" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#D6D3CE'" style="cursor:hand"><img src="images/menu_img_8.gif" width="14" height="14" hspace="2" align="absmiddle">退出</td>
</tr>
</table></td>
<%end if%>
<td width="13" height="24" align="right" background="images/Menu_Line1.gif"><img src="images/Menu_Line2.gif" hspace="2"></td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="110" id="lMenu"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" nowrap class="HollowField" id="NavMenu"></td>
</tr>
</table>
<script>ListMenu(1);</script> </td>
<td valign="top" nowrap class="HollowField" style="height:expression(document.body.offsetHeight-65)"><iframe src="Desk.asp" name="OfficeMain" width="100%" height="100%" scrolling="yes" marginwidth=0 marginheight=0 frameborder=0 vspace=0 hspace=0 ></iframe>
<%
Response.Write "<span class=""hidden""><iframe name=""getinfo""></iframe><iframe name=""getinfo1""></iframe></span>"
%> </td>
</tr>
<tr>
<td width="110" id="lMenu"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="TableMenu">
<tr>
<td height="26" align="center"><font color="#333333"> </font><span id="Clock"></span></font></td>
</tr>
</table></td>
<td height="28" align="right" valign="top" nowrap><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><table width="100%" border="0" cellspacing="0" cellpadding="1" class="TableMenu">
<tr>
<td height="26" align="center"><font color="#0000FF">欢迎您:<span id="username"><%=session("username")%></span>
<font color="#999999">您的登录时间:<%=Now%></font></font></td>
</tr>
</table></td>
<td align="right"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"> <span disabled style="font-size:9pt;">程序开发:Penny<br>
</span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -