📄 product_add.asp
字号:
<!--#include file="conn.asp"-->
<%
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
'★ ★
'☆ 56770网络商城V2.3多语言版 ☆
'★ ★
'☆ 版权所有: 56770.com ☆
'★ ★
'☆ 程序制作: 56770网络 小寒 MoGui ☆
'★ email:admin@56770.com ★
'☆ QQ:88464758 ☆
'★ ★
'☆ [主页地址]http://www.56770.com ☆
'★ [支持论坛]http://bbs.56770.com/ ★
'☆ ☆
'★ 其他产品: ★
'☆ [56770MM写真系统] [56770行业信息网] ☆
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
%>
<%
if session("admin_name")="" then
response.redirect "default.asp"
end if
%>
<script language="JavaScript">
function JM_wu(ob){
ob.style.display="none";
}
function JM_you(ob){
ob.style.display="";
}
function CheckForm()
{
if(document.addproduct.product_name.value.length == 0)
{
alert("请输入商品名.");
document.addproduct.product_name.focus();
return false;
}
if(document.addproduct.price.value.length == 0)
{
alert("请输入商品的价格.");
document.addproduct.price.focus();
return false;
}
if(document.addproduct.sprice.value.length == 0)
{
alert("请输入商品的市场价格.");
document.addproduct.sprice.focus();
return false;
}
return true;
}
</script>
<%
'开始添加商品
if request("action")="add" then
Response.Write("<script>alert("" 很抱歉,程序版本为试用版 \n\n 您无法对数据库进行操作,如您需要请您购买商业版本 \n\n *****感谢您对我们的支持,我们会继续努力***** \n\n QQ:88464758 联系电话:0451-89575990 \n\n为中国电子商务发展助力!-- 56770.com"");history.back();</script>")
Response.end
end if
%>
<%
sort_name=request("sort_name")
csort_name=request("csort_name")
cxsort_name=request("cxsort_name")
xnumber=request("xnumber")
bianhao=xnumber&date()
if sort_name="" or csort_name="" then
response.write"<SCRIPT language=JavaScript>alert('对不起,请选择您要操作的商品分类项!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
%>
<html>
<head>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" vspace="0" hspace="0" height="28">
<tr>
<td height="26" background="images/admin_bg_1.gif">.:: 您可以在这里进行商品相关操作</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<form action="product_add.asp" method="post" name="addproduct" onSubmit="return CheckForm();">
<tr bgcolor="#B0CBE6">
<td width="15%" height="25">添加商品名</td>
<td width="35%" height="25"><input type="checkbox" name="cx"> 特价 <input type="checkbox" name="stj"> 首页推荐 <input type="checkbox" name="ytj">分类推荐</td>
<td width="15%" height="25">四级分类:</td>
<td width="35%" height="25"> <select name="cysort_name"><option value="">请选择四级分类</option>
<%
sql="select * from 56770_cysort where sort_name="&sort_name&" and csort_name="&csort_name&" and cxsort_name="&cxsort_name&" order by cysort_id desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof
%><option value="<%=rs("cysort_id")%>"><%=rs("cysort_name")%></option>
<%rs.movenext
wend
rs.Close()
set rs=nothing%>
</select>
</td>
</tr>
<tr bgcolor="#B0CBE6">
<td width="15%" height="25"> 简体中文</td>
<td width="35%" height="25"> <input type="text" name="product_name" size="36"></td>
<td width="15%" height="25"> 繁体中文</td>
<td width="35%" height="25"> <input type="text" name="product_fname" size="35"></td></tr>
<tr bgcolor="#B0CBE6">
<td width="15%" height="25">英文</td>
<td width="35%" height="25"> <input type="text" name="product_ename" size="36"></td>
</td>
<td width="15%" height="25">商品规格</td>
<td width="35%" height="25"> <input type="text" name="cinfo" size="20"></td>
</tr>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<tr bgcolor="#B0CBE6">
<td width="25%" height="25">
市场价格: <input type="text" name="sprice" size="8" maxlength="45" ></td>
<td width="25%" height="25">
会员价格: <input type="text" name="price" size="8" maxlength="45"></td>
<td width="25%" height="25">
VIP价格 <input type="text" name="vprice" size="8" maxlength="45" value="1"></td>
<td width="25%" height="25">
促销特价:<input type="text" name="cprice" size="8" maxlength="45" value="1">
</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<tr>
<td height="30" valign="top" bgcolor="#BBD1E8" width="20">商品介绍</td>
<td colspan="6" bgcolor="#BBD1E8" align="center">
简体中文<br>
<textarea name="info" rows="10" cols="32"></textarea>
</td>
<td colspan="6" bgcolor="#BBD1E8" align="center">
繁体中文<br>
<textarea name="info_fname" rows="10" cols="32"></textarea>
</td>
<td colspan="6" bgcolor="#BBD1E8" align="center">
英文<br>
<textarea name="info_ename" rows="10" cols="32"></textarea>
</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<tr bgcolor="#BBD1E8">
<td width="10%">包装:</td>
<td width="30%">
简体 <input type="text" name="bzhuang" size="25">
</td>
<td width="30%">
繁体 <input type="text" name="bzhuang_fname" size="25">
</td>
<td width="30%">
英文 <input type="text" name="bzhuang_ename" size="25">
</td>
</tr>
<tr bgcolor="#BBD1E8">
<td width="10%">出品公司:</td>
<td width="30%">
简体 <input type="text" name="company" size="25" value="不详">
</td>
<td width="30%">
繁体 <input type="text" name="company_fname" size="25" value="不详">
</td>
<td width="30%">
英文 <input type="text" name="company_ename" size="25" value="不详">
</td>
</tr>
<tr bgcolor="#BBD1E8">
<td width="10%">品牌:</td>
<td width="30%">
简体 <input type="text" name="brand" size="25" value="不详">
</td>
<td width="30%">
繁体 <input type="text" name="brand_fname" size="25" value="不详">
</td>
<td width="30%">
英文 <input type="text" name="brand_ename" size="25" value="不详">
</td>
</tr>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<tr>
<td bgcolor="#BBD1E8" width="15%"> 商品小图片:</td>
<td bgcolor="#BBD1E8" width="35%">
<input type="text" name="pic" size="25" value="noimages.gif">
</td>
<td bgcolor="#BBD1E8" width="15%">商品大图片:</td>
<td bgcolor="#BBD1E8" width="35%">
<input type="text" name="cpic" size="25" value="nonegif.gif">
</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<TR>
<td bgcolor="#BBD1E8" width="10%">更多图片
<SCRIPT LANGUAGE="JavaScript">
function createForm(textN,number) {
data = "";
inter = "'";
if (number < 6 && number > -1) {
for (i=1; i <= number; i++) {
if (i < 5) spaces=" ";
else spaces=" ";
data =data + " <input name="+textN+i+" type=text value='' size='30' maxlength='100'><br>";
}
if (document.layers) {
document.layers.cust.document.write(data);
document.layers.cust.document.close();
}
else {
if (document.all) {
cust.innerHTML = data;
}
}
}
else {
window.alert("请不要超过5张图片.");
}
}
</script>
</td><td bgcolor="#BBD1E8"><INPUT TYPE="radio" NAME="jia" checked value=0 onclick=JM_wu(s1)>无 <INPUT TYPE="radio" NAME="jia" value=1 onclick=JM_you(s1)>有<span id=s1 style="display:none"><input name="Hug" type=text value='1' size='5' maxlength='1'> <input type=button value="张其它图片" onClick="createForm('Hug',document.addproduct.Hug.value);"><br>
<span id=cust style="position:relative;"></span>
</TD>
</TR>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#6699CC">
<tr bgcolor="#6699CC">
<td bgcolor="#BBD1E8" height="25">图片上传程序接口 → 图片上传后把图片名粘贴到需要的地方即可</td>
</tr>
<tr bgcolor="#6699CC">
<td bgcolor="#BBD1E8"><iframe name="Upload" frameborder="0" width="100%" height="120" scrolling="yes" src="../pic/upfiletofile.asp"></iframe>
</td>
</tr>
<tr bgcolor="#D6DFF7">
<td height="30" colspan="6">
<div align="center">
<input type="submit" name="Submit" value="添加" class="Submit">
<input type="reset" name="Submit" value="重填" class="Submit">
<input type="hidden" name="action" value="add">
<input type="hidden" name="sort_name" value="<%=sort_name%>">
<input type="hidden" name="csort_name" value="<%=csort_name%>">
<input type="hidden" name="cxsort_name" value="<%=cxsort_name%>">
<input type="hidden" name="bianhao" value="<%=bianhao%>">
</div>
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -