📄 goods_edit.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="admin_pass.asp" -->
<html>
<head>
<title>添加</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body topmargin="0">
<SCRIPT language=JavaScript>
function formCheck(document)
{
if(document.name.value == "")
{
alert("您忘了填写商品名称了!");
return false;
}
if(document.content.value == "")
{
alert("您忘了填写商品简介了!");
return false;
}
if(document.scprice.value == "")
{
alert("您忘了填写市场价格了!");
return false;
}
if(document.hyprice.value == "")
{
alert("您忘了填写会员价格了!");
return false;
}
}
</SCRIPT>
<br>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from newgoods where goodid="&request("goodid")
rs.open sql,conn,1,1
%>
<form name="form1" method="post" action="goods_ok.asp?action=mdf" onSubmit="return formCheck(this)" >
<table width="400" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td colspan="2" class="12h"><strong>商品添加</strong></td>
</tr>
<tr>
<td width="115">商品名称:</td>
<td width="277"><input name="name" type="text" id="name" value="<%=rs("name")%>" size="18"></td>
</tr>
<tr>
<td>商品类别:</td>
<td><%
sql = "select * from bigclass"
set rs1= conn.Execute(sql)
if rs1.eof and rs1.bof then
response.write "请先添加类别。"
else
%>
<select name="bigclass" class="12h" >
<option selected value="<%=request("bigclass")%>"><%=request("bigclass")%></option>
<option value="<%=trim(rs1("bigclass"))%>"><%=trim(rs1("bigclass"))%></option>
<%
rs1.movenext
do while not rs1.eof
%>
<option value="<%=trim(rs1("bigclass"))%>" selected><%=trim(rs1("bigclass"))%></option>
<%
rs1.movenext
loop
end if
rs1.close
%>
</select> </td>
</tr>
<tr>
<td>市场价格:</td>
<td><input name="scprice" type="text" id="scprice" value="<%=rs("scprice")%>" size="10" >
元</td>
</tr>
<tr>
<td>会员价格:</td>
<td><input name="hyprice" type="text" id="hyprice" value="<%=rs("hyprice")%>" size="10" >
元</td>
</tr>
<tr>
<td>上传图片:
<input name="addtime" type="hidden" id="addtime">
<input name="pic" type="hidden" id="pic"></td>
<td><iframe name="I1" frameborder=0 width="100%" height=30 scrolling=no src=upload.asp></iframe></td>
</tr>
<tr>
<td>商品介绍:</td>
<td> </td>
</tr>
<tr>
<td colspan="2"><textarea name="content" cols="50" rows="8" id="content"><%=rs("content")%></textarea></td>
</tr>
<tr align="center">
<td colspan="2">
<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 + -