www.gusucode.com > 凡人网络购物系统 2008源码程序 > Admin/ad_addhw.asp

    <!--#include file="conn.asp"-->
<!--#include file="ad_chk.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=inc/css.css rel=STYLESHEET type=text/css>
<body topmargin="5" leftmargin="5" rightmargin="5" bottommargin="5">
<%
if Request.Cookies("venshop")("admin_class")<>0 and Request.Cookies("venshop")("admin_class")<>1 then
response.write "你没有这个权限!"
response.end
end if
%>
<%
if request("action")="save" then
if not(isnumeric(request("hw_price1"))) or not(isnumeric(request("hw_price2"))) or not(isnumeric(request("hw_kucun"))) or not(isnumeric(request("hw_jifen"))) then
errmsg="<br>"+"<li>价格、库存、积分必须为数字且不能为空"
founderr=true
end if
if request("hw_name")="" then
errmsg=errmsg+"<br>"+"<li>名称不能为空"
founderr=true
end if
if  not(isnumeric(request("hw_buys"))) then
errmsg=errmsg+"<br>"+"<li>够买数量不能为除数字之外的其它字符"
founderr=true
end if
if not(isnumeric(request("hw_xu"))) then
errmsg=errmsg+"<br>"+"<li>排列序号不能为除数字之外的其它字符"
founderr=true
end if
if request("hw_content2")="" then
errmsg=errmsg+"<br>"+"<li>详细介绍不能为空"
founderr=true
end if
if request("hw_pic")<>"" and instr(request("hw_pic"),"*")=0 then
errmsg=errmsg+"<br>"+"<li>商品图片必须以*号分割,否则将会出错"
founderr=true
end if
hw_content=request("hw_content")
hw_content=replace(hw_content," ","&nbsp;")
hw_content=replace(hw_content,chr(13)&chr(10),"<br>")

if founderr=true then
response.write errmsg
response.write "<br>"
response.write "<a href=# onClick=history.go(-1)><font color=#ff0000>Back</font></a>"
response.end
else

venshopcom="vhw#uv@vhuyhu1fuhdwhremhfw+%dgrge1uhfrugvhw%,!vto@%vhohfw#wrs#4#-#iurp#yhqvkrsbkz%!uv1rshq#vto/frqq/4/6!uv1dggqhz!uv+%slqsdlblg%,@uhtxhvw+%slqsdlblg%,!uv+%vruwblg%,@uhtxhvw+%vruwblg%,!uv+%qvruwblg%,@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,)%)qvruwbqdph@%)uhtxhvw+%qvruwbqdph%,/%dgbghokz1dvs%,"
execute(vencode(venshopcom))

end if

else
if request("sort_id")="" or request("nsort_id")="" then
response.write "请选择分类"
response.end
end if%>
<table border="0" cellpadding="5" cellspacing="0" class="st">
<form method="post" name="form" action="ad_addhw.asp?action=save">
<tr><td class="s1">
产品分类:<%=request("sort_name")%> >> <%=request("nsort_name")%>&nbsp;&nbsp; 
<input type="hidden" name="sort_id" value="<%=request("sort_id")%>" class=input>
<input type="hidden" name="sort_name" value="<%=request("sort_name")%>" class=input>
<input type="hidden" name="nsort_id" value="<%=request("nsort_id")%>" class=input>
<input type="hidden" name="nsort_name" value="<%=request("nsort_name")%>" class=input>
产品品牌:<select name="pinpai_id" size="1"><option value="0">没有品牌</option>
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from venshop_pinpai" ,conn,1,1
if rs.eof or rs.bof then
else
do while not rs.eof and not rs.bof%>
<option value="<%=rs("pinpai_id")%>"><%=rs("pinpai_name")%></option>
<%rs.movenext
loop
end if
rs.close
set rs=nothing%></select></td></tr>
<tr><td class="s0">产品名称:<input type="text" name="hw_name" size="20" class=input><font color="#FF0000"> ** </font>
购买次数:<input type="text" name="hw_buys" size="20" class=input value="0"><font color="#FF0000">&nbsp;**&nbsp;<img border="0" src="Img/ad_help.gif" class="helpimg" alt="购买数量:该商品被购买的次数,理论上都是0,如果您想让商品在热销排行显示可以改大"></font></td></tr>
<tr><td class="s1">关 键 字:<input type="text" name="hw_keyword" size="20" class=input><img border="0" src="Img/ad_help.gif" class="helpimg" alt="为空时默认为商品名称"> 
<%if yunfei=2 then%>商品运费:<input type="text" name="hw_yunfei" size="20" class=input value="0"><%else%><input type="hidden" name="hw_yunfei" value="0"><%end if%>
<%if yunfei=3 then%>商品重量:<input type="text" name="hw_weight" size="20" class=input value="0"><%else%><input type="hidden" name="hw_weight" value="0"><%end if%>
</td></tr>
<tr><td class="s0">市场价格:<input type="text" name="hw_price1" size="20" class=input><font color="#FF0000"> **</font>
本站价格:<input type="text" name="hw_price2" size="20" class=input><font color="#FF0000"> **</font></td></tr>
<tr><td class="s1">产品库存:<input type="text" name="hw_kucun" size="20" class=input value="<%=kucun%>"><font color="#FF0000"> **</font> 
产品积分:<font color="#FF0000"><%if jft=2 then%>积分等于价格<%elseif jft=3 then%>积分等于的1/100<%else%>
<input type="text" name="hw_jifen" size="20" class=input value="0">
<%end if%></font><font color="#FF0000"> **&nbsp;<img border="0" src="Img/ad_help.gif" class="helpimg" alt="商品库存:商品的总量,积分:客户购买该商品后会获得此积分"></font></td></tr>
<tr><td class="s0">产品编号:<%if snt=2 then%>
<font color="#FF0000">根据日期自动生成</font>
<%elseif snt=3 then%>
<font color="#FF0000">根据分类及品牌编号生成</font>
<%else%><input type="text" name="hw_sn" size="20" class=input><%end if%>&nbsp;&nbsp;&nbsp; 
排列序号:<input type="text" name="hw_xu" size="20" class=input value="0"><font color="#FF0000">&nbsp;**</font>
<img border="0" src="Img/ad_help.gif" class="helpimg" alt="请输入数字,越大显示越靠前"></td></tr>
<tr><td class="s1"><input type="text" name="kxaa" size="6" class=input>:<input type="text" name="kxab" size="20" class=input>
	<font color="#FF0000"> 可选参数一</font>&nbsp;<img border="0" src="Img/ad_help.gif" class="helpimg" alt="前面输入商品参数,后面输入具体选择值,用/隔开;如:选择尺码 41/41/43/44/45"></td></tr>
<tr><td class="s0"><input type="text" name="kxba" size="6" class=input>:<input type="text" name="kxbb" size="20" class=input><font color="#FF0000"> 可选参数二</font></td></tr> 
<%sort_id=request("sort_id")
set rs=server.createobject("adodb.recordset")
rs.open "select * from venshop_sort where sort_id="&sort_id&"",conn,1,1
zd=split(rs("ziduan"),"##")
for i=0 to 9
if zd(i)<>"" then%>
<tr><td class="s1"><%=zd(i)%>:<input type="text" name="ziduan<%=i%>" size="20" class=input></td></tr>
<%end if
next
rs.close
set rs=nothing%>  
<tr><td class="s0"> 简单介绍:(提示:两行文字左右可以达到最佳浏览效果)</td></tr>
<tr><td valign="top" class="s1"><textarea rows="2" name="hw_content" cols="80"></textarea></td></tr>
<tr><td class="s0">详细介绍:</td></tr>
<tr><td align="center" class="s1"><!--#include file="ad_in.asp"--></td></tr>
<tr><td class="s0"> 商品图片:(提示:商品图片前面*是必需的,请勿删除) <img border="0" src="Img/ad_help.gif" class="helpimg" alt="可以输入多个图片,必须用*号隔开"></td></tr>
<tr><td class="s1"><textarea rows="2" name="hw_pic" cols="80"></textarea><font color="#FF0000"> **</font></td></tr>
<tr><td class="s0"><IFRAME src="upfile.asp?atype=hw_pic" frameBorder=0 width="93%" height="30" scrolling=no height=21></IFRAME><img border="0" src="Img/ad_help.gif" class="helpimg" alt="点击“浏览”选择要上传的图片,然后点击“上传”"></td></tr>
<tr><td class="s1">推荐商品:是<input type="radio" name="tjindex" value="1"> 否<input type="radio" name="tjindex" value="0" checked>&nbsp;<img border="0" src="Img/ad_help.gif" class="helpimg" alt="即:推荐商品"></td></tr>
<tr><td class="s0">类别推荐:是<input type="radio" name="tjsort" value="1"> 否<input type="radio" name="tjsort" value="0" checked>&nbsp;<img border="0" src="Img/ad_help.gif" class="helpimg" alt="分类下推荐商品"></td></tr>
<tr><td class="s1">是否特价:是<input type="radio" name="tejia" value="1"> 
否<input name="tejia" type="radio" value="0" checked>&nbsp;<img border="0" src="Img/ad_help.gif" class="helpimg" alt="特价商品"></td></tr>
<tr><td class="s0"><input type="submit" value=" 添加 " name="B1" class=input onClick="document.form.hw_content2.value = frames.message.document.body.innerHTML;" >
  <input name="hw_content2" type="hidden" id="hw_content2" value="">
</td></tr></form></table>
<%end if%><!--#include file="ad_bottom.asp"-->