📄 editbook.asp
字号:
月 </td>
</tr>
<tr bgcolor="#DEE7FF">
<td rowspan="2" valign="top" style="Padding-left:6px">图书价格:</td>
<td colspan="2" style="Padding-left:6px">市场价:
<input name="shichangjia" type="text" id="shichangjia" size="6" onkeypress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))" value="<%=rs1("shichangjia")%>">
元,会员价:
<input name="huiyuanjia" type="text" id="ddd2" size="6" onkeypress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))" value="<%=rs1("huiyuanjia")%>">
元 ,团体价:
<input name="tuantijia" type="text" id="ddd1" size="6" value="<%=rs1("tuantijia")%>" onKeyPress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))">
元</td>
</tr>
<tr>
<td colspan="2" bgcolor="#DEE7FF" style="Padding-left:6px"><input name="zhekou" type="checkbox" id="zhekou" onclick="if(checked==false){dazhe.disabled=true;tuantidazhe.disabled=true;ddd1.disabled=false;ddd2.disabled=false;}else{dazhe.disabled=false;tuantidazhe.disabled=false;ddd1.disabled=true;ddd2.disabled=true;}" value="1">
按折扣比例输入:会员折扣:
<input name="dazhe" type="text" disabled id="dazhe" onkeypress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))" value="<%=formatnumber(rs1("dazhe")*10,2)%>" size="6"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))">
折,团体折扣
<input name="tuantidazhe" type="text" disabled id="tuantidazhe" onKeyPress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))" value="<%=formatnumber(rs1("tuantidazhe")*10,2)%>" size="6"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))">
折</td>
</tr>
<tr bgcolor="#DEE7FF">
<td style="Padding-left:6px">其它资料:</td>
<td colspan="2" style="Padding-left:6px">开本:
<input name="kaiben" type="text" id="kaiben" size="4" value="<%=trim(rs1("kaiben"))%>">
,版次:
<input name="banci" size="4" type="text" onkeypress = "return regInput(this, /^[0-9]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))" value="<%=cstr(rs1("banci"))%>">
次,页数:
<input name="yeshu" type="text" id="yeshu" size="4" onkeypress = "return regInput(this, /^[0-9]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))" value="<%=cstr(rs1("yeshu"))%>">
页</td>
</tr>
<tr bgcolor="#DEE7FF">
<td style="Padding-left:6px">装帧方式:</td>
<td colspan="2" style="Padding-left:6px"><select name="zhuang" id="zhuang">
<option value="简装"<%if trim(rs1("zhuang"))="简装" then
response.write " selected"
end if%>>简装</option>
<option value="精装"<%if trim(rs1("zhuang"))="精装" then
response.write " selected"
end if%>>精装</option>
<option value="特殊"<%if trim(rs1("zhuang"))="特殊" then
response.write " selected"
end if%>>特殊</option>
</select> </td>
</tr>
<tr bgcolor="#DEE7FF">
<td style="Padding-left:6px">图书ISBN:</td>
<td colspan="2" style="Padding-left:6px"><input name="isbn" type="text" id="isbn" size="30" value="<%=trim(rs1("isbn"))%>"></td>
</tr>
<tr bgcolor="#DEE7FF">
<td height="18" style="Padding-left:6px">图书图片:</td>
<td height="18" colspan="2" style="Padding-left:6px"><input name="bookpic" type="text" id="bookpic" size="30" value="<%=trim(rs1("bookpic"))%>">
<input type="button" name="Submit2" value="上 传" onClick="javascript:window.open('upfile.htm','','width=580,height=160,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no');return false;">
</td>
</tr>
<tr bgcolor="#DEE7FF">
<td valign="top" bgcolor="#DEE7FF" style="Padding-left:6px">内容简介:</td>
<td colspan="2" style="Padding-left:6px"><textarea name="bookcontent" cols="100" rows="10" id="bookcontent"><%=rs1("bookcontent")%></textarea></td>
</tr>
<tr bgcolor="#DEE7FF">
<td valign="top" style="Padding-left:6px">图书目录:</td>
<td colspan="2" style="Padding-left:6px"><textarea name="bookmulu" cols="100" rows="10" id="bookmulu"><%=rs1("bookmulu")%></textarea></td>
</tr>
<%if paihangkongzhi=1 then%>
<tr bgcolor="#DEE7FF">
<td rowspan="2" style="Padding-left:6px">人工排行:</td>
<td height="32" style="Padding-left:6px"> <input name="bestbook" type="checkbox" id="bestbook" value="1" <%if int(rs1("bestbook"))=1 then response.write "checked"%>>
列为推荐书籍</td>
<td height="32" style="Padding-left:6px"><input name="guanzhupaihang" type="checkbox" id="guanzhupaihang" value="1" <%if int(rs1("guanzhupaihang"))=1 then response.write "checked"%>>
列入关注排行</td>
</tr>
<tr>
<td bgcolor="#DEE7FF" style="Padding-left:6px"><input name="changxiao" type="checkbox" id="changxiao" value="1" <%if int(rs1("changxiao"))=1 then response.write "checked"%>>
列为畅销书籍 </td>
<td bgcolor="#DEE7FF" style="Padding-left:6px"><input name="shouyetuijian" type="checkbox" id="shouyetujian3" value="1" <%if int(rs1("shouyetuijian"))=1 then response.write "checked"%>>
首页文字推荐</td>
</tr>
<%else%>
<tr><td bgcolor="#DEE7FF"></td><td height="32" colspan="2" style="Padding-left:6px" bgcolor="#DEE7FF"><input name="bestbook" type="checkbox" id="bestbook" value="1" <%if int(rs1("Bestbook"))=1 then response.write "checked"%>>
列为推荐书籍</td></tr>
<%end if%>
<tr bgcolor="#DEE7FF">
<td height="32" style="Padding-left:6px">相关书籍关键字:</td>
<td height="32" colspan="2" style="Padding-left:6px"><input name="guanjian" type="text" id="guanjian" value=<%=trim(rs1("guanjian"))%>>
<font color="#ff6600">以便列出与此书相关书籍</font></td>
</tr>
<tr bgcolor="#DEE7FF">
<td height="32"><div align="center"> </div></td>
<td width="32%" height="32"><div align="center">
<input type="submit" name="Submit" value="修 改" onClick="return check();">
</div></td>
<td width="52%"> <%select case rs1("queshu")
case "0"%> <input name="queshu" type="radio" value="0" checked>
有书
<input type="radio" name="queshu" value="1">
缺书
<%case "1"%> <input name="queshu" type="radio" value="0">
有书
<input type="radio" name="queshu" value="1" checked>
缺书
<%end select%> <input type=hidden name=comeurl value=<%=request.ServerVariables("HTTP_REFERER")%>>
</td>
</tr>
</table>
<br>
</td>
</form>
</tr>
</table><%rs1.close
set rs1=nothing
conn.close
set conn=nothing%>
<br>
<br>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#6396D6">
<tr>
<td height="18" background="images/admin_bg.gif"><div align="center"><font color="#FFFFFF"><strong>操作注意事项及说明</strong></font></div></td>
</tr>
<tr>
<td height="38" bgcolor="#DEE7FF"><table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td height="48">·若在使用中遇到技术问题,请发邮件<a href="mailto:jhc126@126.com">jhc126@126.com</a>或QQ:120317122提出!</td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
if(checkspace(document.myform.bookname.value)) {
document.myform.bookname.focus();
alert("请输入图书名称!");
return false;
}
if(checkspace(document.myform.guanjian.value)) {
document.myform.guanjian.focus();
alert("请输入同类关键字,以便列出同类书籍!");
return false;
}
if(checkspace(document.myform.shichangjia.value)) {
document.myform.shichangjia.focus();
alert("请输入图书价格!");
return false;
}
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
<script>
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.createRange()
if (docSel.parentElement().tagName != "INPUT") return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -