pro_modi.asp
来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 284 行
ASP
284 行
<!--#include file="../inc/conn.asp"--><%'┌─ 风云ASP在线 ────────────────────────┐'│ │'│ 作者:赵振波. http://www.fyasp.com │'│ │'│ Q Q:176189168 │'│ │'│ Email:fy96@163.com │'│ │'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│'│ │'│ │'└─────────────────── http://www.fyasp.com ──┘%>
<%
if instr(session("manager"),"manager")=0 then
response.redirect "manage.asp"
response.end
end if
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body bgcolor="#666666" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../images/ht_01.gif" width=778 height=62 usemap="#Map" border="0"></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/htbj.gif">
<tr>
<td valign="top" align="left" width="145" height="395">
<!--#include file="List.asp" -->
</td>
<td height="395" align="center" valign="top"> <br> <table width="621" border="0" cellspacing="0" cellpadding="0" height="98">
<tr>
<td align="center" valign="top"> <table width="606" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="18"><img src="../images/httable_01.gif" width=606 height=17></td>
</tr>
<tr>
<td background="../images/httable_02.gif" height="34" align="center" valign="top">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <hr noshade size="1"> </td>
</tr>
</table>
<script language="javascript">
<!--
function openwin(url)
{
window.open(url,"_blank","height=320,width=500,resizable=no,scrollbars=yes,statue=no,toolbar=no,menubar=no,location=no,left=150,top=80");
}
//-->
</script> <font color="#FFCC00">网上商城产品修改</font> <table width="557" height="37" border="0" cellpadding="0" cellspacing="0">
<form name="mainForm" enctype="multipart/form-data" action="img_process.asp" method=post>
<tr>
<td width="453" height="37"> <div align="center">
<input name=mefile type=file size="35">
<input type=submit name=ok value="上传">
</div></td>
<td width="104"><a href="img_show.asp" target="_blank"><font color="#FFCC00">[查看上传的图片]</font></a></td>
</tr>
</form>
</table></td>
</tr>
<tr>
<td background="../images/httable_02.gif" height="268" align="center" valign="top"><form action="pro_modi_ok.asp" method="post" name="gq" id="gq">
<div align="center">
<center>
<%
opendataconn
id=trim(request("id"))
set ps=server.createobject("adodb.recordset")
sql2="select * from shopdetail where id="&id&""
ps.open sql2,conn,1,1
if ps.eof then
response.write "没有信息"
end if
if not ps.eof then
%>
<table width="92%" height="297" border="0" cellpadding="0" cellspacing="1">
<tr class="black">
<td colspan="2"> <font color="#FFCCFF"> <strong>
当前位置:网上商城-->产品修改</strong></font></td>
</tr>
<tr class="black">
<td> <div align="right">产品类别:</div></td>
<td width="86%"> <select name="prtype" id="prtype" >
<option value=<%=trim(ps("prtype"))%> selected><%=trim(ps("prtype"))%></option>
<%
opendataconn
set rs=server.createobject("adodb.recordset")
sql="select * from shoptype order by dateandtime desc"
rs.open sql,conn,1,1
do while not rs.eof
%>
<option value=<%=trim(rs("prtype"))%>><%=trim(rs("prtype"))%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</select> <font color="#FF0000">*</font> </td>
</tr>
<tr class="black">
<td width="14%" height="17"> <div align="right">产品小图片:</div></td>
<td> <input name="simg" type="text" id="simg" value="<%=trim(ps("simg"))%>" size="6" maxlength=10>
(请填写数字<a href="img_show.asp" target="_blank"><font color="#FF0000"><font color="#33FF00"><strong>图片大小130x100</strong></font></font></a>,如果图片已上传,请<a href="img_show.asp" target="_blank"><font color="#FF0000">[查看上传的图片]</font></a>)
<font color="#FF0000">*</font> <div align="right"></div></td>
</tr>
<tr class="black">
<td height="17"> <div align="right">产品大图片:</div></td>
<td> <input name="bimg" type="text" id="bimg" value="<%=trim(ps("bimg"))%>" size="6" maxlength=10>
(请填写数字,如果图片已上传,请<a href="img_show.asp" target="_blank"><font color="#FF0000">[查看上传的图片]</font></a>)
<font color="#FF0000">*</font> <div align="right"></div></td>
</tr>
<tr class="black">
<td width="14%"> <div align="right">产品名称:</div></td>
<td> <input name="prname" type="text" id="prname" value="<%=trim(ps("prname"))%>" size="50" maxlength=50>
<font color="#FF0000">*</font> </td>
</tr>
<tr class="black">
<td height="26"> <div align="right">产品价格:</div></td>
<td> <input name="price" type="text" id="price" value="<%=trim(ps("price"))%>" size="50" maxlength=50>
<font color="#FF0000">*</font></td>
</tr>
<tr class="black">
<td height="24"> <div align="right">产品规格:</div></td>
<td> <input name="guige" type="text" id="guige" value="<%=trim(ps("guige"))%>" size="50">
</td>
</tr>
<tr class="black">
<td width="14%"> <div align="right">产 地:</div></td>
<td> <input name="area" type="text" id="area" value="<%=trim(ps("area"))%>" size="50" maxlength=50>
</td>
</tr>
<tr class="black">
<td height="27"> <div align="right">颜 色:</div></td>
<td> <input name="color" type="text" id="color" value="<%=trim(ps("color"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="27"><div align="right">发动机:</div></td>
<td> <input name="fadongji" type="text" id="fadongji" value="<%=trim(ps("fadongji"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="28"> <div align="right">汽缸数:</div></td>
<td> <input name="qigang" type="text" id="qigang" value="<%=trim(ps("qigang"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="27"><div align="right">排气量:</div></td>
<td> <input name="paiqi" type="text" id="paiqi" value="<%=trim(ps("paiqi"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="27"><div align="right">供油方式:</div></td>
<td> <input name="gongyou" type="text" id="gongyou" value="<%=trim(ps("gongyou"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="27"><div align="right">最高车速:</div></td>
<td> <input name="speed" type="text" id="speed" value="<%=trim(ps("speed"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="27"><div align="right">变速箱:</div></td>
<td> <input name="bianshu" type="text" id="bianshu" value="<%=trim(ps("bianshu"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="27"><div align="right">可选漆种:</div></td>
<td> <input name="youqi" type="text" id="youqi" value="<%=trim(ps("youqi"))%>" size="50" maxlength=50></td>
</tr>
<tr class="black">
<td height="81" valign="middle"> <div align="right">产品简介
:</div></td>
<td valign="top"> <textarea name="prjianjie" cols="50" rows="5" id="prjianjie"><%=trim(ps("prjianjie"))%></textarea>
<font color="#FF0000">*
<input name="id" type="hidden" id="id" value="<%=trim(request("id"))%>">
<input name="oldtype" type="hidden" id="oldtype" value="<%=trim(ps("prtype"))%>">
</font></td>
</tr>
<tr class="black">
<td height="21" valign="middle"> </td>
<td valign="top"><input name="ok" type="checkbox" id="ok" value="1" class="inputblack" <%if trim(ps("ok"))="1" then response.write "checked" end if%>>
推荐产品</td>
</tr>
</table>
<%
end if
ps.close
set ps=nothing
closedataconn
%>
<SCRIPT language=VBScript>
function checklogin()
if gq.prtype.value="" then
msgbox "请选择产品类别!",0,"资料填写不完整"
gq.prtype.focus
checklogin=false
exit function
end if
if not isnumeric(gq.simg.value) then
msgbox "产品小图片编号,应该是数字的,如:12345.",0,"资料填写不完整"
gq.simg.focus
checklogin=false
exit function
end if
if not isnumeric(gq.bimg.value) then
msgbox "产品大图片编号,应该是数字的,如:12345.",0,"资料填写不完整"
gq.bimg.focus
checklogin=false
exit function
end if
if gq.prname.value="" then
msgbox "请填写产品名称!",0,"资料填写不完整"
gq.prname.focus
checklogin=false
exit function
end if
if gq.price.value="" then
msgbox "请填写产品价格!",0,"资料填写不完整"
gq.price.focus
checklogin=false
exit function
end if
if gq.prjianjie.value="" then
msgbox "请填写简介!",0,"资料填写不完整"
gq.prjianjie.focus
checklogin=false
exit function
end if
checklogin=true
end function
</SCRIPT>
<br>
<input type="submit" name="Submit" value="修改" onclick="javascript:return checklogin()">
<input type="reset" value="全部重置" name="B2">
</center>
</div>
</form></td>
</tr>
<tr>
<td><img src="../images/httable_04.gif" width=606 height=19></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/ht_04.gif" width="778" height="4"></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
<area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?