?? add_info_ok.asp
字號:
<%@ language="vbscript"%>
<%response.Expires = 0%>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sqltext="select * from borecorder"
rs.open sqltext,conn,3,3
'添加一條記錄到數(shù)據(jù)庫
rs.addnew
rs("bo_name")=request.form("p_name")
rs("bo_total")=request.form("p_number")
rs("bo_dep")=request.form("p_dev")
rs("bo_owner")=request.form("p_owner")
rs("bo_time")=request.form("p_time")
rs("bo_retime")=request.form("p_retime")
if request.form("p_remark")="" then
rs("bo_remark")="空"
else
rs("bo_remark")=request.form("p_remark")
end if
rs.update
%>
<html>
<head>
<title>圖書借閱登記成功</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>.main {
FONT-SIZE: 12px
}
.main1 {
FONT-SIZE: 14px
}
.main2 {
FONT-SIZE: 16px
}
.main3 {
FONT-SIZE: 7px
}
.main4 {
FONT-SIZE: 10px
}
A:link {
COLOR: #ffffff; TEXT-DECORATION: none
}
A:visited {
COLOR: #ffffff; TEXT-DECORATION: none
}
A:active {
COLOR: #ff0000; TEXT-DECORATION: none
}
A:hover {
COLOR: #aa0000; TEXT-DECORATION: underline
}
</STYLE>
</head>
<body text="#000000">
<p align="center"><br>
<br>
</p>
<div align="center">
<center>
<TABLE cellSpacing=1 cellPadding=4 width=429 bgColor=#416327 height="144">
<TBODY>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="415" height="10" bgcolor="#1f60a0"></TD></TR>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="415" height="32"><font color="#FF0000">借閱圖書登記成功--</font></TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">圖書名稱:</font></SPAN></TD>
<TD class=main1 width=301 height=25><%=request.form("p_name")%></TD></TR>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">借閱數(shù)量:</font></SPAN></TD>
<TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><%=request.form("p_number")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">借閱種類:</font></SPAN></TD>
<TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><%=request.form("p_dev")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">借閱人:</font></SPAN></TD>
<TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><%=request.form("p_owner")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">借閱時(shí)間:</font></SPAN></TD>
<TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><%=request.form("p_time")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">歸還時(shí)間:</font></SPAN></TD>
<TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><%=request.form("p_retime")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">備注:</font></SPAN></TD>
<TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><%=request.form("p_remark")%></TD>
</tr>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="415" height="15"></TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="415" height="27">
<p align="center">
<INPUT type="button" class=main size=3 value='繼續(xù)登記' name=Submit2 onclick="window.location.href='add_Info.asp';">
<INPUT type="button" class=main size=3 value='查看記錄' name=Submit2 onclick="window.location.href='default.asp';">
</TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="415" height="4" bgcolor="#1f60a0"></TD></TR></TBODY></TABLE>
</center>
</div>
</body>
</html>
<%
rs.close
conn.close
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -