addhw.asp
来自「国内第一数字点卡销售程序。功能强大。 完整无错!数据文件经MD5加密!经严格测」· ASP 代码 · 共 165 行
ASP
165 行
<!--#include file="conn.asp"-->
<head>
<%
if session("admin_rank")<>1 and session("admin_rank")<>4 then
response.write("<script>alert('您无权查看本页,SORRY!');window.location=('login.asp')</script>")
response.end
end if
%>
<%dim count
set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_Nclass order by Nclassidorder ",conn,1,1%>
<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("Nclass"))%>","<%= rs("anclassid")%>","<%= rs("Nclassid")%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.myform.Nclassid.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{ //这句不是很理解
document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body style="background-color: #F0FBF1">
<div align="center">
<table border="0" width="780" cellspacing="1">
<tr>
<td width="100%" style="padding-left: 10px">
<form method="POST" action="add_save.asp" name="myform" enctype="multipart/form-data">
<div align="center">
<table border="1" width="780" cellspacing="0" height="513" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellpadding="0" bordercolor="#FFFFFF">
<tr>
<td width="100%" style="padding-left: 10px" height="46"><%
rs.open "select * from shop_anclass order by anclassidorder",conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
response.end
else
%>
大类
<select name="anclassid" size="1" id="anclassid" onChange="changelocation(document.myform.anclassid.options[document.myform.anclassid.selectedIndex].value)" class="wenbenkuang">
<option selected value="<%=rs("anclassid")%>"><%=trim(rs("anclass"))%></option>
<% dim selclass
selclass=rs("anclassid")
rs.movenext
do while not rs.eof
%>
<option value="<%=rs("anclassid")%>"><%=trim(rs("anclass"))%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
小类
<select name="Nclassid" class="wenbenkuang">
<%rs.open "select * from shop_Nclass where anclassid="&selclass ,conn,1,1
if not(rs.eof and rs.bof) then
%>
<option selected value="<%=rs("NclassID")%>"><%=rs("Nclass")%></option>
<% rs.movenext
do while not rs.eof%>
<option value="<%=rs("NclassID")%>"><%=rs("Nclass")%></option>
<% rs.movenext
loop
end if
rs.close
set rs = nothing
%>
</select> </td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="46">商品名称: <input type="text" name="hw_name" size="20" class=input>
<font color="#FF0000">*</font> 是否为充值商品: <select size="1" name="hw_cz">
<option value="0">非充值商品</option>
<option value="1">充值商品</option>
</select> (非充值商品指有卡号和密码的商品)</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="46">进价:<input type="text" name="hw_jj" size="10" class=input"> <font color="#FF0000">*</font>
市场价:
<input type="text" name="hw_cash" size="9" class=input>
<font color="#FF0000">* 会员价:</font>
<input type="text" name="hw_cash1" size="9" class=input>
<font color="#FF0000">* VIP会员价:</font><input type="text" name="hw_cash2" size="9" class=input>
<font color="#FF0000">* 经销商价:</font><input type="text" name="hw_cash3" size="9" class=input>
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="31">商品介绍:</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="136">
<textarea rows="9" name="hw_content" cols="77" class=input></textarea>
(支持HTML)</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="46">
<input type=checkbox name="hw_xp" value="1">新品上市
<input type=checkbox name="hw_jp" value="1">精品推荐
<input type=checkbox name="hw_rx" value="1">热销产品
<input type=checkbox name="hw_rm" value="1">热门产品
(此项为可选项,非必填项)</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="47">官方网址:<input type="text" name="hw_hostweb" size="34" class=input>
注:前面加"http://"</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="47">下载网址:<input type="text" name="hw_downweb" size="34" class=input>
注:前面加"http://"</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="47">在线客服:<input type="text" name="hw_service" size="34" class=input> </td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="47">商品图片:
<INPUT type="file" class="f11" name="file" size="33"title=上传产品图片资料不能大于200K。(要求:250×250像素)>
<font color="#FF0000">* (选择要上传的商品图片)</font></td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="47">注:打“<font color="#FF0000">*</font>”号的为必填项。</td>
</tr>
</table>
</div>
<p> <input type="submit" value="提交" name="B1" class=input>
<input type="reset" value="重写" name="B2" class=input></p>
</form>
</td>
</tr>
</table>
</div>
<%
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?