⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 product_edit.asp

📁 能进行网上购物的需求
💻 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
if request("action")="modi" 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
%>
<%
id=request("id")
set rs=server.createobject("ADODB.Recordset")
sql="select * from 56770_product where id=" & id
rs.open sql, conn, 1, 1
sort_name=rs("sort_name")
csort_name=rs("csort_name")
cxsort_name=rs("cxsort_name")
%>
<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">
<tr>
<td height="27" background="images/admin_bg_1.gif">.:: 您可以在这里进行商品相关操作</td>
</tr>
</table>
 <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#6699CC">
<tr bgcolor="#B0CBE6"> 
<td colspan="6" height="25"> 一级分类:<%=sort_name%> 二级分类:<%=csort_name%> 三级分类: <input type="text" name="cxsort_name" size="10"  value="<%=cxsort_name%>">
    </tr>
</table>
<table border="0" cellspacing="1" cellpadding="3" width="100%" align="center" bgcolor="#6699CC" height="27">
<form action="product_edit.asp" method="post" name="editproduct" >
<tr bgcolor="#B0CBE6"> 
<td width="15%" height="25">商品名</td>
<td width="35%" height="25"><input type="checkbox" name="cx" <%if rs("cx")=true then%> checked <%end if%> >
特价
<input type="checkbox" name="stj" <%if rs("stj")=true then%> checked <%end if%> >
首页推荐
<input type="checkbox" name="ytj" <%if rs("ytj")=true then%> checked <%end if%> >
分类推荐</td>
<td width="15%" height="25">四级分类:</td>
<td width="35%" height="25">&nbsp; 
 <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 rscy=server.createobject("ADODB.Recordset")
rscy.open sql,conn,1,1
while not rscy.eof
%>
          <option <%if rscy("cysort_id")<>"" then%>selected<%end if%> value="<%=rscy("cysort_id")%>"><%=rscy("cysort_name")%></option>
          <%
rscy.movenext
wend
rscy.Close()
set rscy=nothing
%>
        </select>
      </td>
    </tr>
<tr bgcolor="#B0CBE6"> 
<td width="15%" height="25"> 简体中文</td>
<td width="35%" height="25">&nbsp;<input type="text" name="product_name" size="36" value="<%=rs("product_name")%>"></td>
<td width="15%" height="25"> 繁体中文</td>
<td width="35%" height="25">&nbsp;<input type="text" name="product_fname" size="35" value="<%=rs("product_fname")%>"></td></tr>
<tr bgcolor="#B0CBE6"> 
<td width="15%" height="25">英文</td>
<td width="35%" height="25">&nbsp;<input type="text" name="product_ename" size="36" value="<%=rs("product_ename")%>"></td>
</td>
<td width="15%" height="25">商品规格</td>
<td width="35%" height="25">&nbsp;<input type="text" name="cinfo" size="20" value="<%=rs("cinfo")%>"></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">
市场价格:&nbsp; <input type="text" name="sprice" size="8" maxlength="45"  value="<%=rs("sprice")%>"></td>
<td width="25%" height="25">
会员价格:&nbsp; <input type="text" name="price" size="8" maxlength="45" value="<%=rs("price")%>"></td>
<td width="25%" height="25">
VIP价格&nbsp; <input type="text" name="vprice" size="8" maxlength="45" value="1" value="<%=rs("vprice")%>"></td>
<td width="25%" height="25">
促销特价:<input type="text" name="cprice" size="8" maxlength="45"  value="1" value="<%=rs("cprice")%>">
</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"><%=rs("info")%></textarea>
</td>
<td colspan="6" bgcolor="#BBD1E8" align="center">
繁体中文<br>
<textarea name="info_fname" rows="10" cols="32"><%=rs("info_fname")%></textarea>
</td>
<td colspan="6" bgcolor="#BBD1E8" align="center">
英文<br>
<textarea name="info_ename" rows="10" cols="32"><%=rs("info_ename")%></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%">
简体&nbsp;<input type="text" name="bzhuang" size="25" value="<%=rs("bzhuang")%>">
</td>
<td width="30%">
繁体&nbsp;<input type="text" name="bzhuang_fname" size="25" value="<%=rs("bzhuang_fname")%>">
</td>
<td width="30%">
英文&nbsp;<input type="text" name="bzhuang_ename" size="25" value="<%=rs("bzhuang_ename")%>">
</td>
</tr>
<tr bgcolor="#BBD1E8">
<td  width="10%">出品公司:</td>
<td width="30%">
简体&nbsp;<input type="text" name="company" size="25"  value="<%=rs("company")%>">
</td>
<td width="30%">
繁体&nbsp;<input type="text" name="company_fname" size="25"  value="<%=rs("company_fname")%>">
</td>
<td width="30%">
英文&nbsp;<input type="text" name="company_ename" size="25"  value="<%=rs("company_ename")%>">
</td>
</tr>
<tr bgcolor="#BBD1E8">
<td width="10%">品牌:</td>
<td width="30%">
简体&nbsp;<input type="text" name="brand" size="25" value="<%=rs("brand")%>">
</td>
<td width="30%">
繁体&nbsp;<input type="text" name="brand_fname" size="25" value="<%=rs("brand_fname")%>">
</td>
<td width="30%">
英文&nbsp;<input type="text" name="brand_ename" size="25" value="<%=rs("brand_ename")%>">
</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%">&nbsp;
<input type="text" name="pic" size="25" value="<%=rs("pic")%>">
</td>
<td bgcolor="#BBD1E8" width="15%">商品大图片:</td>
<td bgcolor="#BBD1E8" width="35%">
<input type="text" name="cpic" size="25" value="<%=rs("cpic")%>">
</td>
</tr>
</table>
 <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#6699CC">
 <TR><TD bgcolor="#BBD1E8" width="20%">其它图片</TD>
<TD bgcolor="#BBD1E8"><INPUT TYPE="radio" NAME="jia" <%if rs("jia")=0 then%>checked<%end if%> value=0 onclick=JM_wu(s1)>无<br>
		    <INPUT TYPE="radio" NAME="jia" <%
			if rs("jia")=1 then
				response.write "checked value=1 onclick=JM_you(s1)>有 <span id=s1 style='display:'>"
				Set rsfile=Server.CreateObject("ADODB.Recordset")
				sql="select * from 56770_propic where bianhao='"&rs("product_name")&"'"
				rsfile.open sql,conn,1,1
				m=1
				if rsfile.eof and rsfile.bof then
					response.write "<font color=yellow><b>← 产品大图已删除,请设为'无',或者</b></font>"
					set rsfile=nothing
				else
					count=rsfile.RecordCount '已经有的大图总数
					For m=1 to count
					response.write "<br>&nbsp;&nbsp;<a href='"&rsfile("otherpic")&"' target='blank_'><font color=yellow>"&m&"</font></a>&nbsp;<input size=40 type=text name=Hug"&m&" value='"&rsfile("otherpic")&"'> <a href='product_edit.asp?action=delpropic&pic_id="&rsfile("pic_id")&"'>删除</a>"
					rsfile.movenext
					next
				end if
				response.write "&nbsp;<input type=button value='增加到' onClick=""createForm('Hug',document.editproduct.Hug.value,"&m&");"">"
				response.write "<input name='Hug' type=text value='"&m&"' size='1' maxlength='1'><br><span id=cust style=""position:relative;""><INPUT TYPE='hidden' name='m' value="&count&"></span></span>"
%>
<SCRIPT LANGUAGE="JavaScript">
				function createForm(textN,number,count) {
				data = "<INPUT TYPE='hidden' name='m' value="+count+">";    
				inter = "'";
				//number= number + count;
				if (number < 6 && number > -1) {
					for (i=count; i <= number; i++) {
						if (i < 5) spaces="      ";
						else spaces="    ";
						data =data + "&nbsp;&nbsp;<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张图片.");
				   }
				}
				//  End -->
				</script>
<%				
			else
				response.write "value=1 onclick=JM_you(s1)>有 <span id=s1 style='display:none'>"
				response.write "<input name='m' type=text value='1' size='5' maxlength='1'> <input type=button value=张其它图片 onClick=createForm('Hug',document.editproduct.m.value);><br>"			
				response.write  "<span id=cust style='position:relative;'></span></span>"
%>
<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 + "&nbsp;&nbsp;<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张图片.");
   }
}
//  End -->
</script>
<%end if%>			
</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="35" colspan="4">
<div align="center">
<input type="submit" name="Submit" value="修改" class="Submit">
&nbsp; &nbsp; 
<input type="reset" name="Submit" value="重填" class="Submit">
<input type="hidden" name="action" value="modi">
<input type="hidden" name="id" value="<%=rs("id")%>">
<input type="hidden" name="product_name1" value="<%=rs("product_name")%>">
<input type="hidden" name="cxsort_name" value="<%=rs("cxsort_name")%>">
</div>
</td>
</tr>
</form>
</table>
<%
rs.close
set rs=nothing
%>
</body>
</html>
<script language="JavaScript">
function JM_wu(ob){
ob.style.display="none";
}
function JM_you(ob){
ob.style.display="";
}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -