⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit_book.asp

📁 很好的网上书店源码 适合企业个人使用 很好的网络书城
💻 ASP
📖 第 1 页 / 共 2 页
字号:
          </tr>
          <tr> 
            <td align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">图书作者:</td>
            <td colspan="2">&nbsp;<input name="bookzz" type="text" id="bookzz" size="30" value="<%=trim(rs1("bookzz"))%>"><font color="#666666"><img border="0" src="../images/bit2.gif" width="20" height="12">可以留空</font></td>
          </tr>
          <tr> 
            <td align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" height="24">出 版 社:</td>
            <td colspan="2" height="24">&nbsp;<input name="bookchuban" type="text" id="bookchuban" size="30" value="<%=trim(rs1("bookchuban"))%>"><font color="#666666"><img border="0" src="../images/bit2.gif" width="20" height="12">可以留空</font></td>
          </tr>
          <tr> 
            <td height="20" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">出版日期:</td>
            <td colspan="2">
&nbsp;<input name="bookdateyear" type="text" id="bookdateyear" size="7" value="<%=trim(rs1("bookdateyear"))%>" >
               
			<input name="bookdatemonth" type="text" id="bookdatemonth" size="7" value="<%=trim(rs1("bookdatemonth"))%>" > 月</td>
          </tr>
          <tr> 
            <td valign="top" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">图书价格:</td>
            <td colspan="2">市场价: 
              <input name="shichangjia" type="text" id="price1" 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="<%=trim(rs1("shichangjia"))%>">
              元,<input name="radio2" type="checkbox" value="auto" checked >自动模式<font color="#666666"><img border="0" src="../images/bit2.gif" width="20" height="12">填写市场价,选择&quot;折扣'点击&quot;自动计算&quot;</font><br>会员价: 
               
			<select name="hyzk" id="hyzk" size="1">
                <option value="<%=discount1%>"><%=discount_n1%></option>
                <option value="<%=discount2%>"><%=discount_n2%></option>
                <option value="<%=discount3%>"><%=discount_n3%></option>
              	<option value="<%=discount4%>"><%=discount_n4%></option>
				<option value="<%=discount5%>"><%=discount_n5%></option>
				<option value="<%=discount6%>"><%=discount_n6%></option>
				<option value="<%=discount7%>"><%=discount_n7%></option>
				<option value="<%=discount8%>"><%=discount_n8%></option>
				<option value="<%=discount9%>"><%=discount_n9%></option>
              </select><input name="huiyuanjia" type="text" id="price2" 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="<%=trim(rs1("huiyuanjia"))%>">
              元,VIP价: 
                             
			<select name="vipzk" id="vipzk" size="1">
                <option value="<%=discount1%>"><%=discount_n1%></option>
                <option value="<%=discount2%>"><%=discount_n2%></option>
                <option value="<%=discount3%>"><%=discount_n3%></option>
              	<option value="<%=discount4%>"><%=discount_n4%></option>
				<option value="<%=discount5%>"><%=discount_n5%></option>
				<option value="<%=discount6%>"><%=discount_n6%></option>
				<option value="<%=discount7%>"><%=discount_n7%></option>
				<option value="<%=discount8%>"><%=discount_n8%></option>
				<option value="<%=discount9%>"><%=discount_n9%></option>
              </select><input name="vip" type="text" id="price3" 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="<%=trim(rs1("vip"))%>">&nbsp;
			<input type='button' name='b1' value='自动计算' onClick="change(myform.radio2.value)"></td>
          </tr>
          <tr> 
            <td align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">其它资料:</td>
            <td colspan="2">&nbsp;开本: 
              <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> 
            <td align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">装帧方式:</td>
            <td colspan="2">&nbsp;<select name="zhuang" id="zhuang">
                <option value="<%=trim(rs1("zhuang"))%>"><%=trim(rs1("zhuang"))%></option>
                <option value="<%=zhuang1%>"><%=zhuang_n1%></option>
                <option value="<%=zhuang2%>"><%=zhuang_n2%></option>
                <option value="<%=zhuang3%>"><%=zhuang_n3%></option>
              </select></td>
          </tr>
          <tr>
            <td align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">图书成色:</td>
            <td colspan="2">&nbsp;<select name="cs" id="cs" size="1">
                <option value="<%=trim(rs1("cs"))%>"><%=trim(rs1("cs"))%></option>
                <option value="<%=cs1%>"><%=cs_n1%></option>
                <option value="<%=cs2%>"><%=cs_n2%></option>
                <option value="<%=cs3%>"><%=cs_n3%></option>
                <option value="<%=cs4%>"><%=cs_n4%></option>
              </select></td>
          </tr>
          <tr>
            <td align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" height="24">图书库存:</td>
            <td colspan="2" height="24">
        &nbsp;<input name="kucun" class="wenbenkuang" type="text" id="kucun" size="8" 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="<%=trim(rs1("kucun"))%>" ><font color="#666666"><img border="0" src="../images/bit2.gif" width="20" height="12">商品的状态,库存为&quot;0&quot;前台不显示</font></td>
          </tr>
          <tr> 
            <td align="center" style="border-bottom:1px solid #BCD7E0; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; ">图书ISBN:</td>
            <td colspan="2" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #BCD7E0">&nbsp;<input name="isbn" type="text" id="isbn" size="30" value="<%=trim(rs1("isbn"))%>"></td>
          </tr>
          <tr> 
            <td height="12" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">图书图片:</td>
            <td height="12" colspan="2">&nbsp;<input name="I1" type="text" size="30" value="<%=trim(rs1("bookpic"))%>"><font color="#666666"><img border="0" src="../images/bit2.gif" width="20" height="12">原始地址,再下面重新上传即可更新图片</font></td>
          </tr>
          <tr>
            <td height="19" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px"> </td>
            <td height="19" colspan="2">&nbsp;<input type="hidden" onchange="return(OnUpFile())" name="bookpic"><iframe name="I1" frameBorder="0" width="100%" scrolling="no" height="30" src="upload_pic.asp"></iframe></td>
          </tr>
          <tr>
            <td height="19" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">下载目录:</td>
            <td height="19" colspan="2">
			&nbsp;<input name="I2" type="text" size="30" value="<%=trim(rs1("bookdir"))%>"><font color="#666666"><img border="0" src="../images/bit2.gif" width="20" height="12">原始地址,再下面重新上传即可更新下载目录</font></td>
          </tr>
          <tr>
            <td height="19" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px"> </td>
            <td height="19" colspan="2">
			&nbsp;<input type="hidden" onchange="return(OnUpFile())" name="bookdir"><iframe name="I1" frameBorder="0" width="100%" scrolling="no" height="30" src="upload_dir.asp"></iframe></td>
          </tr>
          <tr> 
            <td valign="top" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-top-style:solid">内容简介:</td>
            <td colspan="2" style="border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-width: 1px">
			&nbsp;<IFRAME ID="content" SRC="../edit/ewebeditor.asp?id=bookcontent&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350" name="I1"></IFRAME>
			<br>
			<textarea name="bookcontent" cols="76" rows="2" id="bookcontent" style="display:none"><%=trim(rs1("bookcontent"))%></textarea></td>
          </tr>
          <tr>
            <td valign="top" bgcolor="#F8FCFD" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px"> </td>
            <td colspan="2" bgcolor="#F8FCFD">
			 </td>
          </tr>
          <tr> 
            <td valign="top" align="center" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-top-style:solid; border-bottom-style:solid">图书目录:</td>
            <td colspan="2" style="border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
			&nbsp;<IFRAME ID="content0" SRC="../edit/ewebeditor.asp?id=bookmulu&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350" name="I2"></IFRAME>
			<br>
			<textarea name="bookmulu" cols="76" rows="2" id="bookmulu" style="display:none"><%=trim(rs1("bookmulu"))%></textarea></td>
          </tr>
          <tr> 
            <td height="32"><div align="center"> </div></td>
            <td width="29%" height="32"><div align="center">
                <input type="submit" name="Submit" value="修 改" onClick="return check();">
              </div></td>
            <td width="52%"><input name="bestbook" type="checkbox" id="bestbook" value="1">
              精品推荐</td>
          </tr>
        </table>
      	</div>
			<table width="12" height="7" border="0" cellpadding="0" cellspacing="0" id="table1">
          <tr> 
            <td height=7></td>
          </tr>
        </table> 
			<table width="12" height="7" border="0" cellpadding="0" cellspacing="0" id="table2">
          <tr> 
            <td height=7></td>
          </tr>
        </table> 
			<table width="12" height="7" border="0" cellpadding="0" cellspacing="0" id="table3">
          <tr> 
            <td height=7></td>
          </tr>
        </table> 
      </td></form>
  </tr>
</table></div>
<%rs1.close
set rs1=nothing
conn.close
set conn=nothing%>
<!--#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.shichangjia.value)) {
	document.myform.shichangjia.focus();
    alert("请输入图书价格!");
	return false;
  }
     if(checkspace(document.myform.huiyuanjia.value)) {
	document.myform.huiyuanjia.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 + -