📄 bookfix.asp
字号:
<!--#include file="base.asp"-->
<html>
<head>
<title>新 增 产 品</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function Check(myform){
if(myform.classid.value=="all"){
alert("请选择产品分类!!");
return false;
} else if(myform.bookname.value==""){
alert("请输入产品中文名称!!");
return false;
}else {return true;}
}
</script>
</head>
<% dim id,sql2,num,disk
id=request("id")
session("id")=id
sql="select * from books where id="&id
set rs=conn.execute(sql)
num=rs("class")
%>
<body bgcolor="#FFFFFF" text="#000000">
<form method="post" action="bookedit_ok.asp" onSubmit="return Check(this) " name="myform">
<h3 align="center"><font color="#0000FF">新 增 图 书</font></h3>
<table width="88%" border="1" align="center" cellpadding="0" cellspacing="0" height="192" bgcolor="#FFFFFF">
<tr bgcolor="#000000">
<td width="159" height="27" bgcolor="#FFFFFF"> <div align="center"><font color="#0000FF" size="2">图书分类</font></div></td>
<td height="27" colspan="2" bgcolor="#FFFFFF"><font color="#ffffe5">
</font> <select name="classid" size="1">
<option selected value="all">请选择图书分类</option>
<%
sql2="select * from class"
rsub.open sql2,conn,1,2
do while not rsub.eof %>
<option value="<%=rsub("id")%>" <% if rsub("id")=num then %>selected<% end if %>><%=rsub("classname")%></option>
<%
rsub.movenext
loop
rsub.close
%>
</select>
<font color="#0000FF" size="2">请选择图书分类<font color="#FF0000" size="3">*</font></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="159" height="27"> <div align="center"><font color="#0000FF" size="2">图书名称</font></div></td>
<td height="27" colspan="2"><font color="#ffffe5">
<input name="bookname" type="text" id="bookname" size="30" maxlength="30" value="<%=rs("bookname")%>">
<font color="#FF0000">*</font></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="159" height="34" align="center" ><font color="#0000FF" size="2">图书图片:</font></td>
<td width="238" height="34"> <input type="text" name="picture" size="20" value="<%=rs("picture")%>">
</td>
<td width="243" height="34"> <iframe name="ad" frameborder=0 width=300 height=40 scrolling=no src=reg_upload.asp></iframe></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="159" height="10" bgcolor="#FFFFFF" valign="middle"> <div align="center"><FONT SIZE="2" COLOR="#0000FF">图书说明:</FONT></div></td>
<td height="10" colspan="2" valign="middle" bgcolor="#FFFFFF"> <TEXTAREA NAME="intro" COLS="60" ROWS="5"> <%=rs("intro")%></TEXTAREA>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="159" height="5" bgcolor="#FFFFFF" valign="middle"> <DIV ALIGN="CENTER"><FONT SIZE="2" COLOR="#0000FF">普通价格:</FONT></DIV></td>
<td height="5" colspan="2" valign="middle" bgcolor="#FFFFFF"> <input name="price" type="text" id="price" size="12" value="<%=rs("price")%>">
<font color="#0000FF" size="2">元</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="159" height="5" bgcolor="#FFFFFF" valign="middle"> <DIV ALIGN="CENTER"><FONT SIZE="2" COLOR="#0000FF">会员价格:</FONT></DIV></td>
<td height="5" colspan="2" valign="middle" bgcolor="#FFFFFF"> <input name="memprice" type="text" id="memprice" size="12" value="<%=rs("memprice")%>">
<font color="#0000FF" size="2">元</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="159" height="14" bgcolor="#FFFFFF" valign="top"> <div align="center">
<p><font size="2" color="#0000FF">作者:</font></p>
</div></td>
<td height="14" colspan="2" valign="top" bgcolor="#FFFFFF"> <input name="author" type="text" id="author" size="14" maxlength="30" value="<%=rs("author")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="7" bgcolor="#FFFFFF" valign="top"><div align="center"><font color="#0000FF" size="2">页数:</font></div></td>
<td height="7" colspan="2" valign="top" bgcolor="#FFFFFF"><input name="pages" type="text" id="pages" size="8" value="<%=rs("pages")%>">
<font color="#0000FF" size="2">页</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="4" bgcolor="#FFFFFF" valign="top"><div align="center"><font color="#0033FF" size="2">开本:</font></div></td>
<td height="4" colspan="2" valign="top" bgcolor="#FFFFFF"><input name="kai" type="text" id="kai" size="4" value="<%=rs("kai")%>">
<font color="#0000FF" size="2">开</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="2" bgcolor="#FFFFFF" valign="top"><div align="center"><font color="#0000FF" size="2">出版社:</font></div></td>
<td height="2" colspan="2" valign="top" bgcolor="#FFFFFF"><input name="publish" type="text" id="publish" size="30" maxlength="50" value="<%=rs("publish")%>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="1" bgcolor="#FFFFFF" valign="top"><div align="center"><font color="#0000FF" size="2">是否带光盘:</font></div></td>
<td height="1" colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#0000FF" size="2">
<input name="disk" type="radio" value="true" <% if rs("disk")=true then%>checked<%end if%>>
是
<input name="disk" type="radio" value="false"<% if rs("disk")=false then%>checked<%end if%>>
否 </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24" colspan="4" align="center"><font color="#0000FF" size="2">
<input type="submit" value="送出新增" name="submit">
<input type="reset" name="cmdCancel2" value="重新输入">
</font></td>
</tr>
</table><% rs.close %>
<p> </p></form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -