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

📄 add.asp

📁 asp+access开发的网上购物程序
💻 ASP
字号:
<%@ codepage ="936" %>
<%
if id=session("id") then
session("pageid")="cpadd"
response.redirect "../../login/login1.asp"
else
id=session("id")
%>
<!--#include file="../../conn/dbconn2.asp"-->
<!--#include file="../../inc/config.asp"-->
<!--#include file="../../inc/hylb.asp"-->
<script LANGUAGE="JavaScript">
function check()
{
if (document.Form1.cpmc.value=="")
{
alert("产品名称不能为空")
document.Form1.cpmc.focus()
document.Form1.cpmc.select() 
return
}
if (document.Form1.cpbh.value=="")
{
alert("产品编号不能为空")
document.Form1.cpbh.focus()
document.Form1.cpbh.select()
return
}
if (document.Form1.cpsb.value=="")
{
alert("产品商标不能为空")
document.Form1.cpsb.focus()
document.Form1.cpsb.select()
return
}
if (document.Form1.cpcd.value=="")
{
alert("产品产地不能为空")
document.Form1.cpcd.focus()
document.Form1.cpcd.select() 
return
}
if ((document.Form1.cpjg.value=="") || isNaN(document.Form1.cpjg.value)) 
{
alert("请认真输入参考价格(输入数字)!");
document.Form1.cpjg.focus();
document.Form1.cpjg.select();
return false;
}
if (document.Form1.bighy.value=="")
{
alert("行业类别不能为空")
document.Form1.bighy.focus()
return
}
if (document.Form1.lithy.value=="")
{
alert("行业子类别为能为空!")
document.Form1.lithy.focus()
return
}
if (document.Form1.file.value=="")
{
alert("请上传不能大于200k的产品图片")
document.Form1.file.focus()
document.Form1.file.select()
return
}
if (document.Form1.cpgg.value=="")
{
alert("产品规格不能为空")
document.Form1.cpgg.focus()
document.Form1.cpgg.select()
return
}
if (document.Form1.jysm.value=="")
{
alert("简要说明不能为空!")
document.Form1.jysm.focus()
document.Form1.jysm.select() 
return
}
if (document.Form1.xxsm.value=="")
{
alert("详细说明不能为空!")
document.Form1.xxsm.focus()
document.Form1.xxsm.select() 
return
}
if (document.Form1.lxr.value=="")
{
alert("联系人不能为空")
document.Form1.lxr.focus()
document.Form1.lxr.select() 
return
}
if (document.Form1.sccj.value=="")
{
alert("公司名称不能为空")
document.Form1.sccj.focus()
document.Form1.sccj.select() 
return
} 
if (document.Form1.address.value=="")
{
alert("联系地址不能为空")
document.Form1.address.focus()
document.Form1.address.select() 
return
}
if (document.Form1.sf.value=="")
{
alert("所在区域不能为空")
document.Form1.sf.focus()
document.Form1.sf.select() 
return
}
if (document.Form1.city.value=="")
{
alert("所在城市不能为空")
document.Form1.city.focus()
document.Form1.city.select() 
return
} 
if (document.Form1.phone.value=="")
{
alert("联系电话不能为空")
document.Form1.phone.focus()
document.Form1.phone.select() 
return
}
if (document.Form1.email.value=="")
{
alert("电子邮件不能为空")
document.Form1.email.focus()
document.Form1.email.select() 
return
} 
document.Form1.submit() 
}
</SCRIPT>
<SCRIPT language=javascript 
src="../images/zyok.JS"></SCRIPT>
<script language="javascript">
function show_sader(mylink)
{
window.open(mylink,'','top=140,left=200,width=480,height=200,scrollbars=yes')
}
</script>
<head>
<STYLE type=text/css>
TD {
COLOR: #000; FONT-FAMILY: 宋体; FONT-SIZE: 12px
}
.GR {
COLOR: #666
}
</STYLE>
</head>
<BODY text=#000000 leftMargin=0 topMargin=0 
marginheight="0" marginwidth="0" bgcolor="#F7FBFF">
<div align="center">
<center>
<TABLE cellSpacing=0 cellPadding=0 width="99%" bgColor=#ffffff border=0 style="border-collapse: collapse" bordercolor="#111111">
<TBODY>
<tr>
<TD align=middle>
<CENTER>
<TABLE border=0 cellSpacing=0 width="100%" style="border-collapse: collapse" height="505" cellpadding="0">
<TR><TD width="100%" height="34" bgcolor="#EEF7FF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr> 
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="22">
<tr>
<TD width="770" height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="558" id="AutoNumber1" height="22">
<tr>
<td width="1" valign="bottom">
</td>
<td width="116" background="../images/b4.gif" height="22">&nbsp;<img border="0" src="../images/cl1.gif">
<span style="letter-spacing: 1">
<font color="#FFFFFF" style="font-size: 10pt"><b>产品发布</b></font></span></td>
<td width="441">
<p align="right"><font color="#FF0000">注:请不要发布重复产品,谢谢合作&nbsp;&nbsp;&nbsp; 
</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor=999999></td>
</tr>
</table></TD>
</tr>
</table>
</td>
</tr>
</table></TD>
</TR>
<form method="POST" action="zs_save_add.asp" name="Form1" enctype="multipart/form-data">
<input type="hidden" name="filepath" value="<%=newspic%>">
<TR><TD height="17" bgcolor="#EEF7FF" width="100%">
<table border="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" height="481">
<tr>
<TD colspan="4" height="20" bgcolor="#EEF7FF" width="772">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<TD height="17" bgcolor="#EEF7FF" width="770">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="84%"><span style="font-size: 10.5pt"><b>&nbsp;<img border="0" src="../images/bul_arrowGrnSm1.gif"> 
产品信息</b></span></td>
<td width="16%">
<p align="left"><font color="#FF6600">&nbsp;*</font><font color="#000080">为必填项 </font>
</td>
</tr>
</table>
</TD>
</tr>
</table>
</TD>
</tr>
<tr>
<TD align=right width=148 height="27" bgcolor="#CEDBFF">产品名称<SPAN class=word9>:</SPAN></td>
<TD width="621" height="27" bgcolor="#CEDBFF" colspan="3">
&nbsp;<input class="f11" name="cpmc" size="31">&nbsp;<font color="#FF6600">*</font></td>
</tr>
<tr>
<TD align="right" width="148" height="23" bgcolor="#EEF7FF">产品编号:</TD>
<TD width=218 height="23" bgcolor="#EEF7FF">
&nbsp;<input class="f11" name="cpbh" size="15" title=输入产品编号,如LH-002,编号不要重复,便于网上订购。>&nbsp;<font color="#FF6600">*</font></td>
<TD align="center" width=126 height="23" bgcolor="#EEF7FF">
<p align="right">产品商标<SPAN class=word9>:</SPAN></td>
<TD width=277 height="23" bgcolor="#EEF7FF">
&nbsp;<INPUT class="f11" name="cpsb" size="15" title=例如:桑塔纳、海尔、e点科技 >&nbsp;<font color="#FF6600">*</font></TD>
</tr>
<tr>
<TD align="right" width="148" height="27" bgcolor="#CEDBFF">产品产地:</TD>
<TD width=218 height="27" bgcolor="#CEDBFF">
&nbsp;<input class="f11" name="cpcd" size="15" title=输入产品编号,如LH-002></td>
<TD align="center" width=126 height="27" bgcolor="#CEDBFF">
<p align="right">
参考价格<span class="word9">:</span></td>
<TD width=277 height="27" bgcolor="#CEDBFF">
&nbsp;<INPUT class="f11" name="cpjg" size="10" title=只能输入数字,填0为价优。> 元<font color="#FF6600">*</font>(填0表示价优)</TD>
</tr>
<tr>
<TD align="right" width="148" height="28" bgcolor="#EEF7FF">产品规格:</TD>
<TD width=621 height="28" bgcolor="#EEF7FF" colspan="3">
&nbsp;<input class="f11" name="cpgg" size="31" title=输入产品规格、型号。 >&nbsp;<font color="#FF6600">*</font></td>
</tr>
<tr>
<TD align="right" width=148 height="25" bgcolor="#CEDBFF">行业频道:</td>
<TD width=218 height="25" bgcolor="#CEDBFF">
&nbsp;<select class=f11 name="bighy" onChange="MenuChange(this)" size="1">
<option>==选择分类==</option> 
<option value="1">农业</option> 
<option value="2">服饰</option> 
<option value="3">安全、防护</option> 
<option value="4">食品、饮料</option> 
<option value="5">电子电工</option> 
<option value="6">印刷、出版</option> 
<option value="7">纺织</option> 
<option value="8">环保</option> 
<option value="9">玩具</option> 
<option value="10">能源</option> 
<option value="11">建材、房地产</option> 
<option value="12">通讯</option> 
<option value="13">交通运输</option> 
<option value="14">工业用品</option> 
<option value="15">商业服务</option> 
<option value="16">家居用品</option> 
<option value="17">化工</option> 
<option value="18">包装、纸</option> 
<option value="19">家用电器</option> 
<option value="20">医药、保养</option> 
<option value="21">汽车摩托及配件</option> 
<option value="22">电脑、软件</option> 
<option value="23">礼品、工艺品</option> 
<option value="24">库存积压产品</option> 
<option value="25">运动、休闲</option> 
<option value="26">冶金矿产</option> 
<option value="27">办公、文教</option> 
</select> <font color="#FF6600">*</font></td>
<TD align="center" width=126 height="25" bgcolor="#CEDBFF">
<p align="right">行业类别:</td>
<TD width=277 height="25" bgcolor="#CEDBFF">&nbsp;<select class=f11 name="lithy" size="1"> 
<option>==选择子类==</option></select> <font color="#FF6600">
*</font></TD>
</tr>
<tr>
<TD align="right" width="148" height="26" bgcolor="#EEF7FF">产品图片:</td>
<TD colspan="3" width="623" height="26" bgcolor="#EEF7FF">
&nbsp;<INPUT type="file" class="f11" name="file" size="33"title=上传产品图片资料不能大于200K。(要求:250×250像素)><FONT color="#FF6600">&nbsp;*</FONT></TD>
</tr>
<tr>
<TD align="right" width="148" height="52" bgcolor="#CEDBFF" valign="middle">
简要说明:<br>
&nbsp;(最多100字)</TD>
<TD colspan="3" align="left" width="623" height="52" bgcolor="#CEDBFF">
&nbsp;<TEXTAREA class="f11" rows="3" name="jysm" cols="51" style="font-family: 宋体" title=简要说明最多只能100个字></TEXTAREA><FONT color="#FF6600">&nbsp;*</FONT></TD>
</tr>
<tr>
<TD align="right" width="148" height="57" bgcolor="#CEDBFF">&nbsp;&nbsp;产品描述:<br>
&nbsp;(最多500字)</TD>
<TD colspan="3" align="left" width="623" height="57" bgcolor="#CEDBFF">
&nbsp;<TEXTAREA class="f11" rows="4" name="xxsm" cols="51" style="font-family: 宋体" title=产品描述最多只能500个字></TEXTAREA><FONT color="#FF6600">&nbsp;*</FONT></TD>
</tr>
<tr>
<TD colspan="4" align="center" width="772" height="26" bgcolor="#EEF7FF"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
<tr>
<td width="84%"><span style="font-size: 10.5pt"><b>&nbsp;<img border="0" src="../images/bul_arrowGrnSm1.gif"> 
联系方式</b></span></td>
</tr>
</table>
</TD>
</tr>
<tr>
<TD align="right" width="148" height="28" bgcolor="#CEDBFF">
<span style="letter-spacing: 3">联系人:</span></TD>
<TD width=218 height="28" bgcolor="#CEDBFF">
&nbsp;<input class="f11" size="20" name="lxr" value=<%=session("name")%>> <font color="#FF6600">
*</font></td>
<TD align="right" width=126 height="28" bgcolor="#CEDBFF">公司名称:</td>
<TD width=277 height="28" bgcolor="#CEDBFF">
&nbsp;<input class="f11" name="sccj" size="20" value=<%=session("qymc")%>> <font color="#FF6600">
*</font></TD>
</tr>
<tr>
<TD align="right" width=148 height="19" bgcolor="#EEF7FF">联系地址:</td>
<TD width=218 height="19" bgcolor="#EEF7FF">
&nbsp;<input class="f11" size="20" name="address" value=<%=session("address")%>> <font color="#FF6600">
*</font></td>
<TD align="right" width=126 height="19" bgcolor="#EEF7FF">邮政编码:</td>
<TD width=277 height="19" bgcolor="#EEF7FF">
&nbsp;<input class="f11" size="20" name="postcode" value=<%=session("post")%>></TD>
</tr>
<tr>
<TD align="right" width=148 height="21" bgcolor="#CEDBFF"> 
<p align="right">所在区域:</td>
<TD width=218 height="21" bgcolor="#CEDBFF">
&nbsp;<input class="f11" size="20" name="sf" value=<%=session("sf")%>> <font color="#FF6600">
*</font></td>
<TD align="right" width=126 height="21" bgcolor="#CEDBFF">所在城镇:</td>
<TD width=277 height="21" bgcolor="#CEDBFF">
&nbsp;<input class="f11" size="20" name="city" value=<%=session("city")%>> <font color="#FF6600">
*</font></TD>
</tr>
<tr>
<TD align="right" width=148 height="19" bgcolor="#EEF7FF">联系电话:</td>
<TD width=218 height="19" bgcolor="#EEF7FF">
&nbsp;<input class="f11" size="20" name="phone" value=<%=session("phone")%>> <font color="#FF6600">
*</font></td>
<TD align="right" width=126 height="19" bgcolor="#EEF7FF">传真号码:</td>
<TD width=277 height="19" bgcolor="#EEF7FF">
&nbsp;<input class="f11" size="20" name="fax" value=<%=session("fax")%>></TD>
</tr>
<tr>
<TD align="right" width=148 height="23" bgcolor="#CEDBFF">电子邮件:</td>
<TD width=218 height="23" bgcolor="#CEDBFF">
&nbsp;<input class="f11" size="20" name="email" value=<%=session("email")%>> <font color="#FF6600">
*</font></td>
<TD align="right" width=126 height="23" bgcolor="#CEDBFF">公司网址:</td>
<TD width=277 height="23" bgcolor="#CEDBFF">
&nbsp;<input class="f11" size="20" name="web" value=<%=session("web")%>></TD>
</tr>
<tr>
<TD colspan="4" align="center" width="772" height="12" bgcolor="#EEF7FF">
<input type="hidden" class="smallinput" name="jptj" type='checkbox' value="yes" checked>
</TD>
</tr>
<tr>
<TD colspan="4" align="center" width="772" height="21" bgcolor="#CEDBFF">
<INPUT class="f11" type="button" value="确 定" onclick="check()">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT class="f11" type="button" value="返 回">
</TD>
</tr>
<tr>
<TD colspan="4" align="center" width="772" height="12" bgcolor="#EEF7FF"></TD>
</tr>
</table>
</TD></TR>
</FORM>
</TABLE>
</CENTER></TD>
</tr>
</TBODY></TABLE>
</center>
</div> 
<%end if%>

⌨️ 快捷键说明

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