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

📄 addbook.asp

📁 商业网站开发有源代码可以运行
💻 ASP
📖 第 1 页 / 共 2 页
字号:
                                      <input name="bookchuban" type="text" id="bookchuban" size="10" >
                                      <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from danwei order by danweiorder ",conn,1,1
%>
                                      <select name="select" onchange="(document.myform.bookchuban.value=this.options[this.selectedIndex].value)">
                                        <option selected>请选择单位</option>
                                        <%
while not rs_s.eof
%>
                                        <option value="<%=rs_s("danweiname")%>"><%=rs_s("danweiname")%></option>
                                        <%
rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
                                      </select>
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td width="8%">&nbsp;</td>
                                    <td width="13%"> 
                                      <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=5 ",conn,1,1
%>
                                      <input type="text" name="jg" size="12" value="<%=rs_s("ziduanname")%>">
                                      <%
rs_s.close
set rs_s=nothing
%>
                                    </td>
                                    <td colspan="2">市场价<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'))">
                                      元,会员价<input name="huiyuanjia" type="text" id="huiyuanjia" 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'))">
                                      元,VIP价<input name="vipjia" type="text" id="vipjia" 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'))">
                                      元</td>
                                  </tr>
                                  <tr> 
                                    <td width="8%">&nbsp;</td>
                                    <td width="13%"> 
                                      <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=6 ",conn,1,1
%>
                                      <input type="text" name="zl" size="12" value="<%=rs_s("ziduanname")%>">
                                      <%
rs_s.close
set rs_s=nothing
%>
                                    </td>
                                    <td colspan="2">库存: 
                                      <input name="kucun" type="text" id="kucun" value="0" 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'))" >
                                      已销售: 
                                      <input name="chengjiaocount" type="text" id="chengjiaocount" value="0" 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'))" readonly>
                                      积分: 
                                      <input name="yeshu" type="text" id="yeshu" value="0" size="6" 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'))" >
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td height="18" width="8%">&nbsp;</td>
                                    <td height="18" width="13%"> 
                                      <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=7 ",conn,1,1
%>
                                      <input type="text" name="tp" size="12" value="<%=rs_s("ziduanname")%>">
                                      <%
rs_s.close
set rs_s=nothing
%>
                                    </td>
                                    <td height="18" colspan="2"> 
                                      <input name="bookpic" type="text" id="bookpic" size="30">
                                      &nbsp;
                                      <input type="button" name="Submit2" value="上传小图片" onClick="window.open('../upload_flash.asp?formname=myform&editname=bookpic&uppath=bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td height="18" width="8%">&nbsp;</td>
                                    <td height="18" width="13%">&nbsp; </td>
                                    <td height="18" colspan="2"> 
                                      <input name="zhuang" type="text" id="zhuang" size="30">
                                      &nbsp;
                                      <input type="button" name="Submit2" value="上传大图片" onClick="window.open('../upload_flash.asp?formname=myform&editname=zhuang&uppath=bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td valign="top" width="8%">&nbsp;</td>
                                    <td valign="top" width="13%"> 
                                      <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=8 ",conn,1,1
%>
                                      <input type="text" name="nr" size="12" value="<%=rs_s("ziduanname")%>">
                                      <%
rs_s.close
set rs_s=nothing
%>
                                    </td>
                                    <td colspan="2"> 
                                      <textarea name="bookcontent" cols="46" rows="8" id="bookcontent"></textarea>
                                    </td>
                                  </tr>
                                  <!--<tr> 
                                    <td valign="top">&nbsp;</td>
                                    <td valign="top"> 
                                      <%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=1 ",conn,1,1
%>
                                      <input type="text" name="ml" size="12" value="<%=rs_s("ziduanname")%>">
                                      <%
rs_s.close
set rs_s=nothing
        conn.Close
        set conn = nothing
%>
                                    </td>
                                    <td colspan="2"> 
                                      <textarea name="bookmulu" cols="46" rows="8" id="bookmulu"></textarea>
                                    </td>
                                  </tr>-->
                                  <tr> 
                                    <td height="32" width="8%"> 
                                      <div align="center"> </div>
                                    </td>
                                    <td height="32" colspan="2"> 
                                      <div align="center">
                                        <input name="newsbook" type="checkbox" id="bestbook" value="1">
                                        新品 <input name="bestbook" type="checkbox" id="bestbook" value="1">
                                        推荐 <input name="tejiabook" type="checkbox" id="bestbook" value="1">
                                        特价</div>
                                    </td>
                                    <td width="24%" align="center"> 
                                      <input type="submit" name="Submit" value="添 加">
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </form>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<!--#include file="copyright.asp"-->
</body>
</html>

<SCRIPT LANGUAGE="JavaScript">
<!--
function checkkk()
{
     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;
  }
     if(checkspace(document.myform.vipjia.value)) {
	document.myform.vipjia.focus();
    alert("请输入VIP会员价格!");
	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 + -