📄 addproducts.asp
字号:
<!--#include file=../common/conn.asp-->
<html>
<head>
<title>商家商品</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../images/font.css" type="text/css">
<script language="JavaScript">
function isok(theform)
{
if (theform.caption.value=="")
{
alert("商品名称不能为空!")
theform.caption.focus();
return false;
}
if (theform.company.value=="")
{
alert("厂商名称不能为空!")
theform.company.focus();
return false;
}
if (theform.Address.value=="")
{
alert("厂商位置不能为空!")
theform.Address.focus();
return false;
}
if (theform.atline.value=="")
{
alert("商城价不能为空!")
theform.atline.focus();
return false;
}
if (theform.market.value=="")
{
alert("市场价不能为空!")
theform.market.focus();
return false;
}
if (theform.content.value=="")
{
alert("商品介绍不能为空!")
theform.content.focus();
return false;
}
}
</script>
<link href="../users/.css" rel="stylesheet" type="text/css">
</head>
<body text="#B2B2F9" background="../images/bgpic.gif">
<br>
<table border="0" width="650" align=center>
<tr>
<td width="100%" class="unnamed1"><b>增加商家商品:</b></td>
</tr>
<tr>
<td width="100%" class="unnamed1">
<hr size="1"> </td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
<form action="saveproducts.asp" method="post" enctype="multipart/form-data" name="form1" onSubmit="return isok(this)">
<table width="80%" border="0" align="center">
<tr>
<td width="120" class="unnamed1"><div align="right">商品名称: </div></td>
<td width="316"><input name="caption" type="text" class="button" id="caption" size="30"></td>
</tr>
<tr>
<td class="unnamed1"><div align="right">商品分类: </div></td>
<td><select name="classid" size="1" class="button">
<%
sql="select id,classname from shopclass"
rs.open sql,conn,1,3
%>
<%if rs.bof and rs.eof then%>
<option vlaue="0">暂无任何类别</option>
<%else%>
<%do until rs.eof%>
<option value="<%=rs("classname")%>"><%=rs("classname")%></option>
<%rs.movenext%>
<%loop%>
<%end if%>
<%rs.close%>
<%set rs=nothing%>
</select></td>
</tr>
<tr>
<td class="unnamed1"><div align="right">厂商名称: </div></td>
<td><input name="company" type="text" class="button" id="company" size="30"></td>
</tr>
<tr>
<td class="unnamed1"><div align="right">厂商位置: </div></td>
<td><input name="Address" type="text" class="button" id="Address" size="30">
<span class="unnamed1">(*例:5楼C12)</span></td>
</tr>
<tr>
<td class="unnamed1"><div align="right">商 城 价: </div></td>
<td class="unnamed1">
<input name="atline" type="text" class="button" id="atline" size="30">
元</td>
</tr>
<tr>
<td class="unnamed1"><div align="right">市 场 价: </div></td>
<td class="unnamed1">
<input name="market" type="text" class="button" id="market" size="30">
元</td>
</tr>
<tr>
<td class="unnamed1"><div align="right">商品图片: </div></td>
<td><input name="newpic" type="file" class="button" id="newpic" size="30"> <input type="hidden" name="image" value="../manage/image"></td>
</tr>
<tr>
<td class="unnamed1"><div align="right">详细信息: </div></td>
<td><textarea name="content" cols="30" rows="8" class="button" id="content"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -