?? modify_info.asp
字號:
<%
if request.cookies("adminok")="" then
response.redirect "login.htm"
end if
%>
<html>
<head>
<title>借閱登記信息修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=javascript id=clientEventHandlersJS>
//函數(shù)名:fucCheckNUM
//功能介紹:檢查是否為數(shù)字
//參數(shù)說明:要檢查的數(shù)字
//返回值:1為是數(shù)字,0為不是數(shù)字
function fucCheckNUM(NUM)
{
var i,j,strTemp;
strTemp="0123456789.";
if ( NUM.length== 0)
return 0
for (i=0;i<NUM.length;i++)
{
j=strTemp.indexOf(NUM.charAt(i));
if (j==-1)
{
//說明有字符不是數(shù)字
return 0;
}
}
//說明是數(shù)字
return 1;
}
</SCRIPT>
<SCRIPT language=javascript id=clientEventHandlersJS>
<!--
function form1_onsubmit()
{
if(document.FORM1.p_name.value.length<1)
{
alert("您必須輸入借閱圖書名稱!");
document.FORM1.p_name.focus();
return false;
}
if(document.FORM1.p_number.value.length<1)
{
alert("您必須輸入借閱圖書數(shù)量!");
document.FORM1.p_number.focus();
return false;
}
if(document.FORM1.p_owner.value.length<1)
{
alert("請輸入借閱人姓名!");
document.FORM1.p_owner.focus();
return false;
}
if(document.FORM1.p_time.value.length<1)
{
alert("請輸入借閱時間!");
document.FORM1.p_time.focus();
return false;
}
if(document.FORM1.p_retime.value.length<1)
{
alert("請輸入歸還時間!");
document.FORM1.p_retime.focus();
return false;
}
if ((fucCheckNUM(document.FORM1.p_number.value)==0) )
{ alert ("借閱數(shù)量有非法字符,請?zhí)顚懻_借閱數(shù)量。");
document.FORM1.p_number.focus();
return false;
}
}
//-->
</SCRIPT>
<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>
<!--#include file="conn.asp"-->
<%
id=request("id")
page=request("page")
set rs=server.createobject("adodb.recordset")
sqltext="select * from borecorder where bo_id=" & id
rs.open sqltext,conn,1,1
%>
<body text="#000000">
<FORM language=javascript name=FORM1 onsubmit="return form1_onsubmit()"
action=modify_info_ok.asp method=post>
<INPUT type=hidden value=<%=rs("bo_id")%> name="bo_id">
<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="#0000FF">圖書借閱登記信息修改--</font></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"><input type="text" name="p_name" size="31" value="<%=rs("bo_name")%>" style="font-family: 新細明體, 宋體, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></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 width=301 height=25 bgcolor="#e1f0ff"><input type="text" name="p_number" size="10" value="<%=rs("bo_total")%>" style="font-family: 新細明體, 宋體, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">借閱種類:</font></SPAN></TD>
<TD width=301 height=25 bgcolor="#e1f0ff"><select size="1" name="p_dev" style="font-family: 新細明體, 宋體, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
<option selected value="外國小說">外國小說</option>
<option value="中國古典小說">中國古典小說</option>
<option value="計算機">計算機</option>
<option value="經(jīng)濟">經(jīng)濟</option>
<option value="法律">法律</option>
</select></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"><input type="text" name="p_owner" size="20" value="<%=rs("bo_owner")%>" style="font-family: 新細明體, 宋體, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></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"><input type="text" name="p_time" size="20" value="<%=rs("bo_time")%>" style="font-family: 新細明體, 宋體, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
如:2002-6-28</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"><input type="text" name="p_retime" size="20" value="<%=rs("bo_retime")%>" style="font-family: 新細明體, 宋體, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></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"><textarea rows="4" name="p_remark" cols="40" style="font-family: 新細明體, 宋體, Arial; font-size: 14px;background-color:#f3f3f3;border:1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"><%=rs("bo_remark")%></textarea></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 class=main type=submit size=3 value=' 修改 ' name=Submit2>
<input class=main type=reset value="重寫" name="B4" size=3>
</TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="415" height="4" bgcolor="#1f60a0"></TD></TR></TBODY></TABLE>
</center>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -