📄 加入图书.htm
字号:
<html>
<head>
<script language=vbscript>
sub check
if frm3.bookname.value=empty then
msgbox("书的名称不能为空")
frm3.bookname.focus()
exit sub
end if
if instr(frm3.bookname.value,"'")<>0 then
msgbox("您输入了非法字符!")
frm3.bookname.focus
exit sub
end if
if frm3.editer.value=empty then
msgbox("书的作者不能为空")
frm3.editer.focus()
exit sub
end if
if instr(frm3.editer.value,"'")<>0 then
msgbox("您输入了非法字符")
frm3.editer.focus
exit sub
end if
if frm3.cost.value=empty then
msgbox("书的单价不能为空")
frm3.cost.focus()
exit sub
end if
if instr(frm3.cost.value,"'")<>0 then
msgbox("您输入了非法字符!")
frm3.cost.focus
exit sub
end if
if not isnumeric(frm3.cost.value) then
msgbox("你输入的货币单价格式不正确")
frm3.cost.focus
exit sub
end if
if not isnumeric(frm3.bookcount.value) then
msgbox("你输入书本数量不正确")
frm3.bookcount.focus
exit sub
end if
if instr(frm3.bookcount.value,"'")<>0 then
msgbox("您输入了非法字符!")
frm3.bookcount.focus
exit sub
end if
if frm3.bookdate.value=empty then
msgbox("书的出版日期不能为空")
frm3.bookdate.focus()
exit sub
end if
if not isdate(frm3.bookdate.value) then
msgbox("书的出版日期格式不正确")
frm3.bookdate.focus()
exit sub
end if
frm3.submit
end sub
</script>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body bgcolor="#000000">
<div align="center">
<form action="addbook.asp" method=post name=frm3>
<table border="1" width="395" height="418" cellspacing="0" cellpadding="0" bordercolor="#333333">
<center>
</center>
<tr>
<td width="158" height="59">
<p align="left"><img border="0" src="images/ResizeGrip2.gif" align="left" width="32" height="17">收<font color="#FFFFFF"><b>书的类型:</b></font></td>
<center>
<td width="181" height="59">
<select size="1" name="bookkind">
<option selected>军事类</option>
<option>现代小说类</option>
<option>计算机类</option>
<option>语言文学类</option>
<option>建筑类</option>
<option>报刊杂志类</option>
<option>国外文化类</option>
<option>经济类</option>
<option>古代小说类</option>
</select></td>
</tr>
<tr>
<td width="158" height="53"> <img border="0" src="images/72000002.gif" width="32" height="32">
<b><font color="#FFFFFF">书的名称:</font></b></td>
<td width="181" height="53"><input type=text name=bookname size="20"></td>
</tr>
</center>
<tr>
<td width="158" height="57">
<img border="0" src="images/15-1.gif" width="32" height="32" align="left">
<p align="left"><b><font color="#FFFFFF"> 书的作者:</font> </b></p>
</td>
<center>
<td width="181" height="57"><input type=text name=editer size="20"></td>
</tr>
</center>
<tr>
<td width="158" height="49">
<p align="left"><font color="#FFFFFF"><b><img border="0" src="images/72000008.gif" width="32" height="32" align="left">
出版日期:</b></font></td>
<center>
<td width="181" height="49"><input type=text name="bookdate" size="20" value="请按此格式:2004-2-25"></td>
</tr>
</center>
<tr>
<td width="158" height="56">
<font color="#FFFFFF"><b><img border="0" src="images/72000008.gif" width="32" height="32" align="left">
入库数量:</b></font></td>
<td width="181" height="56"><input type=text name=bookcount size="20" value="1"></td>
</tr>
<tr>
<td width="158" height="56">
<p align="left"><font color="#FFFFFF"><b><img border="0" src="images/72000009.gif" width="32" height="32" align="left">
出版社:</b></font></td>
<center>
<td width="181" height="56"><input type=text name=bookpublish value="不详" size="20"></td>
</tr>
</center>
<tr>
<td width="158" height="36">
<p align="left"><font color="#FFFFFF"><b><img border="0" src="images/72000005.gif" width="32" height="32" align="left">
单价:</b></font></td>
<center>
<td width="181" height="36"><input type=text name=cost vlaue="请按此格式 19.50" size="20" value="请按此格式 19.50"></td>
</tr>
</center>
<tr>
<td height="46">
<p align="center">
<input type=button value="将此书入库" onclick="check()" > <td width="181" height="46">
<p align="center"><input type=button value="放弃此书" onclick="javascript:document.location='管理员页面.htm'"></td>
<center> </tr>
</table></form>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -