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

📄 cuanhaoadd.asp

📁 下了就能用 不信你看一下 一定能用的
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<%
if (trim(request("cuanhao"))<>"") then
set rs=conn.execute("select * from ht_Serial where serialnumber='"&trim(request("cuanhao"))&"'")
if rs.eof then

%>
<script language="javascript">
var oOption = window.opener.document.createElement("OPTION");
	oOption.text='<%=trim(request("cuanhao"))%>';
	oOption.value='<%=trim(request("cuanhao"))%>';
	if (window.opener.document.all.cuanhao.value=="")
	{
	  result=false;
	}
	else
	{
		coll=window.opener.document.all.selectcuan;
		ccount=window.opener.document.all.selectcuan.value;
		if(coll.length>0)
		{
			for(i=0;i<coll.options.length;i++)
			{
				if(coll.options(i).value!='<%=trim(request("cuanhao"))%>')
				{
					result=true;
				}
				else
				{
					result=false;
					break;
				}
			}
		}
		else
		{
			result=true;
		}
		}
		
		if(result)
		{
			coll.add(oOption);
			window.opener.document.all.cuanhao.value='';
		}

</script>
<%
rs.close()
response.write"<script>window.close();</script>"
else
rs.close()
response.write "<script>alert('对不起,此串号已存在');window.close();</script>"
response.End()
end if 
else
response.write "<script>alert('对不起,你的参数不正确');window.close();</script>"
response.End()
end if 
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -