📄 index.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/db1.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.Source = "SELECT * FROM join_table"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1_numRows = 0
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("ttt"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="loginok.asp"
MM_redirectLoginFailed="loginerror.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_db1_STRING
MM_rsUser.Source = "SELECT id, password"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM join_table WHERE id='" & Replace(MM_valUsername,"'","''") &"' AND password='" & Replace(Request.Form("textfield2"),"'","''") & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图书馆在线系统</title>
<style type="text/css">
<!--
.style18 {font-size: 12px; color: #000000; }
.style27 {font-size: 13px; color: #FFFFFF; }
body {
margin-top: 0px;
}
.style35 {font-size: 13px; color: #FFFFFF; font-family: "新宋体"; }
.style36 {color: #0000CC}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #999999;
}
a:hover {
text-decoration: underline;
color: #FF9900;
}
a:active {
text-decoration: none;
color: #FF9900;
}
.s {
font-size: 12px;
color: #000000;
text-decoration: none;
}
.s:link {
color: #000000;
text-decoration: none;
}
.s:hover {
color: #FF9900;
text-decoration: none;
}
.s:visited {
color: #999999;
text-decoration: none;
}
.style43 {font-size: 12px}
.style45 {
color: #FFFFFF;
font-weight: bold;
font-family: "楷体_GB2312";
}
.style46 {color: #000000}
.style48 {color: #005EB6}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
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 && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
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;
}
//-->
</script>
</head>
<body>
<table width="805" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="805" valign="top"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" valign="top"><img src="未标题-1%20拷贝.jpg" width="805" height="120" align="absmiddle"></td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#99CCFF"><div align="left"></div></td>
</tr>
<tr valign="middle">
<td width="84%" align="left" background="11111.jpg"><div align="center"><a href="index.asp"><img src="未标题-3.jpg" width="85" height="32" border="0"></a><a href="newbook.asp" target="_blank"><img src="menu_2.png" width="85" height="32" border="0"></a><img src="menu_3.png" width="85" height="32"><a href="tushuguan/duzhechaxun.asp" target="_blank"><img src="menu_5.png" width="85" height="32" border="0"></a><a href="tushuguan/index.asp" target="_blank"><img src="menu_10.png" width="85" height="32" border="0"></a><a href="xhbook/index.asp" target="_blank"><img src="menu_6.png" width="85" height="32" border="0"></a><a href="download.asp" target="_blank"><img src="menu_11.png" width="80" height="32" border="0"></a><a href="xhbook/index1.asp" target="_blank"><img src="menu_8.png" width="85" height="32" border="0"> </a></div></td>
<td width="16%" align="right" background="11111.jpg"><div align="center">
<script language=JavaScript>
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=#ffffff style='font-size:9pt;font-family: 宋体'> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日",
d[today.getDay()+1],
"</font>" );
</script>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="733" valign="top" bgcolor="#FFFFFF"><table width="100%" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#59A9CF" bgcolor="#FFFFFF" >
<tr align="left">
<TD width="22%" height="729" align="left" vAlign=top bordercolor="#CCCCCC" bgColor=#59A9CF>
<P align=center>
<table width="89%" border="1" cellpadding="0" cellspacing="0" bordercolor="#59A9CF">
<tr>
<td height="28" bgcolor="#59A9CF"><table width="100%" height="19" border="1" cellpadding="0" cellspacing="1" bordercolor="#59A9CF">
<tr>
<td height="15" valign="middle" bordercolor="#59A9CF" bgcolor="#59A9CF"><h4 class="style45">::图书馆公告::</h4></td>
</tr>
</table></td>
</tr>
<tr>
<td><marquee id=scrolltext onMouseOver=this.stop()
onMouseOut=this.start() scrollamount=1 scrolldelay=30
direction=up width=140 height=130
name="scrolltext">
<span class="style35"> 目前的图书馆多为手工管理,手续繁琐,耗费大量的人力,而且由于信息比较多,图书借阅信息的管理工作混乱而又复杂;一般借阅情况是记录在借书证上,图书的数目和内容记录在文件中,图书馆的工作人员和管理员也只是当时对它比较清楚,时间一长,如再要进行查询,就得在众多的资料中翻阅、查找了,造成查询费时、费力。如要对很长时间以前的图书进行更改就更加困难了。 </span>
<p class="style35"></p>
<span class="style35"> 因此,我们设计这个图书馆系统,管理读者的登记、图书的购入、借出、归还以及注销等。管理人员还可以查询某位读者、某本图书的借阅情况,对当前借阅情况给出一些统计,给出统计表格,以全面掌握图书的流通情况。同时本系统基于 WEB 页面有很好的连网功能,也便于在校教师,学生查询自己的借阅信息,在馆图书情况,可以在网上自行续借图书,大大节省了图书馆的人力资源,方便了教师、学生的借阅,查询。</span> <span class="style27"><br>
</span>
</marquee>
<p class="style27"></p></td>
</tr>
</table>
<table width="88%" border=1 cellpadding=1 cellspacing=1 bordercolor=#CCCCFF
bordercolorlight=#ccccff
bordercolordark=#ffffff>
<tbody>
<tr>
<td height="35" valign="middle" bgcolor=#59A9CF><div align="center">
<table width="189" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><span class="style45">::读 者 服 务::</span></td>
</tr>
</table>
</div></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -