index.asp
来自「现在的病毒是越来越多了,几乎每上一回电脑都要杀毒,所以杀毒软件是必不可少的」· ASP 代码 · 共 397 行
ASP
397 行
<!--#INCLUDE FILE="sysinc.asp" -->
<% '验证用户
if session("Username")="" then
Username=trim(request("Username"))
Password=trim(request("Password"))
sqlstr="select * from 用户表 where 用户名='"&Username&"'"
my_rs.open sqlstr,my_Conn,1,3
if my_rs.eof then
Response.Redirect ("login.asp?err=1")
else
if Password=my_rs("密码") then
session("Username")=Username
session("权限")=my_rs("权限")
my_rs("上站次数")=my_rs("上站次数")+1
my_rs.update
else
Response.Redirect ("login.asp?err=2")
end if
my_rs.close
end if
end if
%>
<html>
<head>
<title>网络办公系统</title>
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src;
x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features)
{ //v2.0
window.open(theURL,winName,features);
}
//-->
<!--
function windowslong(address,winName,features) {
windowschange=open(address,winName,features);
for (var x=1;x<=75;x++){
windowschange.resizeBy(2,0);
}
for (var x=1;x<=275;x++){
windowschange.resizeBy(0,1);
}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<STYLE type=text/css>TD {
FONT-SIZE: 9pt
}
A {
COLOR: #001e32; FONT-SIZE: 9pt; TEXT-DECORATION: none
}
A:hover {
COLOR: #0000cc; FONT-SIZE: 9pt; TEXT-DECORATION: underline
}
.td-1 {
FONT-SIZE: 9pt; LINE-HEIGHT: 24px
}
.td-2 {
LINE-HEIGHT: 20px
}
.a2 {
COLOR: #dff8ff; FONT-SIZE: 9pt; TEXT-DECORATION: none
}
</STYLE>
<SCRIPT language=JavaScript>
<!--
function loginidUp(eventObject){
if(eventObject.keyCode==13){regform.FPASSWORD.focus();}}
function pwdUp(eventObject)
{if(eventObject.keyCode==13){valid();}}
function adver()
{window.open("http://cn.stareastnet.com/memb/policy.html");}
function valid(){document.regform.submit();}//-->
</SCRIPT>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="font.css" type="text/css">
<script language="javascript">
var Temp;
var TimerId = null;
var TimerRunning = false;
Seconds = 0
Minutes = 0
Hours = 0
function showtime()
{
if(Seconds >= 59)
{
Seconds = 0
if(Minutes >= 59)
{
Minutes = 0
if(Hours >= 23)
{
Seconds = 0
Minutes = 0
Hours = 0
}
else {
++Hours
}
}
else {
++Minutes
}
}
else {
++Seconds
}
if(Seconds != 1) { var ss="s" } else { var ss="" }
if(Minutes != 1) { var ms="s" } else { var ms="" }
if(Hours != 1) { var hs="s" } else { var hs="" }
Temp = '你在此停留了 '+Hours+' 小时'+', '+Minutes+' 分'+', '+Seconds+' 秒'+''
window.status = Temp;
TimerId = setTimeout("showtime()", 1000);
TimerRunning = true;
}
var TimerId = null;
var TimerRunning = false;
function stopClock() {
if(TimerRunning)
clearTimeout(TimerId);
TimerRunning = false;
}
function startClock() {
stopClock();
showtime();
}
function stat(txt) {
window.status = txt;
setTimeout("erase()", 2000);
}
function erase() {
window.status = "";
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" onLoad="startClock()">
<div id="Layer2" style="position:absolute; left:10px; top:395px; width:761px; height:
38px; z-index:4">
<hr width="80%">
<table width="100%" border="0" cellspacing="4" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td height="10">
<div align="center"></div>
</td>
</tr>
<tr>
<td>
<div align="center">
<script language="JavaScript">
<!-- Begin
text = "制作维护:张氏工作室"; //显示的文字
color1 = "#9999CC"; //文字的颜色
color2 = "fachsia"; //转换的颜色
fontsize = "1"; //字体大小
speed = 100; //转换速度 (1000 = 1 秒)
i = 0;
if (navigator.appName == "Netscape") {
document.write("<layer id=a visibility=show></layer><br><br><br>");
}
else {
document.write("<div id=a></div>");
}
function changeCharColor() {
if (navigator.appName == "Netscape") {
document.a.document.write("<center><font face=arial size =" + fontsize + "><font color=" + color1 +
">");
for (var j = 0; j < text.length; j++) {
if(j == i) {
document.a.document.write("<font face=arial color=" + color2 + ">" + Text.charAt(i) + "</font>");
}
else {
document.a.document.write(text.charAt(j));
}
}
document.a.document.write('</font></font></center>');
document.a.document.close();
}
if (navigator.appName == "Microsoft Internet Explorer") {
str = "<center><font face=arial size=" + fontsize + "><font color=" + color1 + ">";
for (var j = 0; j < text.length; j++) {
if( j == i) {
str += "<font face=arial color=" + color2 + ">" + text.charAt(i) + "</font>";
}
else {
str += text.charAt(j);
}
}
str += "</font></font></center>";
a.innerHTML = str;
}
(i == text.length) ? i=0 : i++;
}
setInterval("changeCharColor()", speed);
// End -->
</script></div>
</td>
</tr>
</table>
</div>
<table width="97%" cellspacing="0" cellpadding="0" align="center" height="190">
<tr>
<td height="81" colspan="2"><img src="IMAGE/HEAD.gif" width="777" height="71" border="0">
</td>
</tr>
<tr>
<td height="12"> 登陆者:<%=session("Username")%> 权限:<%=session("权限")%> <a href="login.asp">注销用户</a> </td>
<td height="12"> <img src="image/home.gif" width="17" height="16"><font color="#FF00FF"><font color="#000000" class="font1"><a href="Readme.htm" target="_blank">帮助</a> <img src="image/file.gif" width="15" height="15">
<a href="#" onClick="MM_openBrWindow('file/addfile.asp','','width=280,height=110')">文件上传</a> </font><font color="#FF00FF"><font color="#000000" class="font1"><img src="image/manage.gif" width="14" height="16">
<a href="index.asp" onMouseOver="MM_showHideLayers('home','','show')" onMouseOut="MM_showHideLayers('home','','hide')" target="_blank">系统管理</a></font></font><font color="#000000" class="font1"> <img src="image/modify.gif" width="20" height="18"><a href="#" onClick="MM_openBrWindow('file/modifyuser.asp','','width=340,height=330')">修改个人信息</a></font></font> </td>
</tr>
<tr>
<td height="6" colspan="2"> </td>
</tr>
<tr>
<td height="74" width="31%"> <br>
</td>
<td height="74"> </td>
</tr>
</table>
<div id="home" style="position:absolute; left:410px; top:101px; width:66px; height:21px;
z-index:2; visibility: hidden; background-color: #FFFFFF; layer-background-color: #FFFFFF;
border: 1px none #000000" onMouseOver="MM_showHideLayers('home','','show')"
onMouseOut="MM_showHideLayers('home','','hide')">
<table border="1" cellspacing="0" cellpadding="0" class="head" width="100%"
bordercolorlight="#A7A7A7" bordercolordark="#FFFFFF">
<tr align="center">
<td onMouseOut="this.style.backgroundColor='#FFFFFF'"
onMouseOver="this.style.backgroundColor='#E7E7E7'">
<a href="#" onClick="MM_openBrWindow('FILE/information.asp','','width=520,height=300')">公告信息</a></td>
</tr>
<tr align="center">
<td onMouseOut="this.style.backgroundColor='#FFFFFF'"
onMouseOver="this.style.backgroundColor='#E7E7E7'">
<a href="#" onClick="MM_openBrWindow('FILE/userformation.asp','','width=480,height=260')">用户信息</a></td>
</tr>
<tr align="center">
<td
onMouseOver="this.style.backgroundColor='#E7E7E7'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<a href="#" onClick="MM_openBrWindow('FILE/fileinformation.asp','','width=520,height=400')">文件信息</a></td>
</tr><%if session("权限")="管理" then %>
<tr align="center">
<td
onMouseOver="this.style.backgroundColor='#E7E7E7'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<a href="#" onClick="MM_openBrWindow('file/logininfor.asp','','width=520,height=500')">系统日志</a> </td>
</tr>
<%end if%>
</table>
</div>
<div id="Layer1" style="position:absolute; left:0px; top:128px; width:238px; height:251px; z-index:3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="154">
<tr>
<td>
<table width="95%" cellspacing="1" cellpadding="0" bgcolor="#CCCCFF" height="159" align="center">
<tr>
<td height="23" bgcolor="#FFFF99"> 公告信息</td>
</tr>
<%
sqlstr="select * from 公告信息"
set my_rs=server.createobject("adodb.recordset")
my_rs.open sqlstr,my_Conn,1,1 %>
<tr>
<td bgcolor="#FFFFFF" height="120"> <marquee direction=up height=130 onMouseOut=this.start()
onMouseOver=this.stop() scrollamount=1 scrolldelay=50 width="98%">
<% i=1 '记录条数
if not my_rs.eof then
do while not my_rs.eof%>
<a href="#" onClick="MM_openBrWindow('file/ggxx-show.asp?ggbh=<%=my_rs("公告编号")%>','','scrollbars=yes,width=400,height=240')" class="linkcss">
<%=i%>.<%=my_rs("公告主题")%> </a><br>
<%i=i+1
my_rs.movenext
loop
else
response.write "对不起,暂无记录"
end if
my_rs.close
%>
</marquee> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="2"> </td>
</tr>
<tr>
<td height="46">
<table width="95%" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#CCCCFF" height="100">
<tr>
<td bgcolor="#FFFF99" height="23">
<div align="center">系统使用说明</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> 不同的权限有不同的功能,管理权限可进行读、写、修改、删等功能,写权限可进行读、写功能,读权限只能看,不能进行其他功能。而有些系统功能,则不分权限,任何系统用户都可以用。<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<%'记入日志
set my_rs=nothing
set my_rs=server.createobject("adodb.recordset")
sqlstr="select * from 系统日志信息"
my_rs.open sqlstr,my_Conn,1,3
my_rs.addnew
my_rs("使用者名称")=session("username")
my_rs("所做事件")=session("username")&"登陆到本系统"
my_rs.update
my_rs.close
%>
<br>
<br>
<script language="JavaScript">
step=0
function flash_title()
{
step++
if (step==8) {step=1}
if (step==7) {document.title='◆◇◆ 张氏工作室软件: ★'}
if (step==5) {document.title='◇◆◇ 无纸化办公系统 ☆'}
if (step==6) {document.title='◇◆◇ 无纸化办公系统 ☆'}
setTimeout("flash_title()",200);
}
flash_title()
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?