www.gusucode.com > 云枫工作室企业网站源代码第五版 1.0 > docc/admin/shastylemod.asp
<%@LANGUAGE="VBSCRIPT"%> <!--#include file="conn.asp"--> <!--#include file="check.asp"--> <!--#include file="include.asp"--> <% Dim MM_FindSql '查询执行语句 Dim MM_TableName '表名 Dim MM_ReturnPath '执行成功后返回的路径 Dim MM_DatabaseStr '数据库各项 Dim MM_FormStr '表单各项 Dim MM_SqlQuery '最终执行语句 MM_TableName = "shastyle" MM_FindSql = "select * from " & MM_TableName & " where sqlindex=" & request.querystring("id") set rs = conn.Execute(MM_FindSql) MM_ReturnPath = "shastyle.asp" if Request.Form("MM_update") <> "" then MM_DatabaseStr = "fstyle|value|festyle|value|fnumber|value|fdate|value|fimage|value" MM_FormStr = "sqlstyle|',none,''|sqlestyle|',none,''|sqlnumber|',none,''|sqldate|',none,''|sqlimage|',none,''" MM_SqlKey = "sqlindex" MM_SqlValue = Request.Form("fid") if Request.Form("MM_update") <> "" then MM_SqlQuery = GetUpdateSql(MM_TableName,MM_DatabaseStr,MM_FormStr,MM_SqlKey,MM_SqlValue) conn.Execute(MM_SqlQuery) response.redirect(MM_ReturnPath) end if end if %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>修改产品大类</title> <link href="style.css" rel="stylesheet" type="text/css"> <script language="javascript"> function check() { if(form1.fstyle.value == "") { alert("中文类别不能为空!") form1.fstyle.focus() return(false) } if(form1.festyle.value == "") { alert("英文类别不能为空!") form1.festyle.focus() return(false) } if(isNaN(form1.fnumber.value)) { alert("排列次序应是一个有效的数字!"); form1.fnumber.focus(); return(false); } if(form1.fdate.value == "") { alert("请正确填写发布日期!") form1.fdate.focus() return(false) } } </script> </head> <body topmargin="0" bgcolor="#799AE1"> <table width="100%" height="100%" border="0" align="center" bgcolor="#668ED4"> <tr> <td height="103" colspan="2" align="center"> <img src="images/toplogo.gif" height="60"> </td> </tr> <tr> <td height="25" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/menu_bk.gif"> <tr> <td height="23" valign="bottom" background="images/menu_bk.gif"><font color="#FFFFFF">产品大类->修改大类</font></td> <td valign="bottom" background="images/menu_bk.gif"><a href="<%=MM_ReturnPath%>">返回</a></td> </tr> </table> </td> </tr> <tr> <td colspan="2" valign="top"> <form ACTION="#" METHOD="POST" name="myform" id="myform" onSubmit="javascript:return check()"> <table width="100%" height="100" align="center" cellpadding="1" cellspacing="1" bordercolor="#ADADC9" bgcolor="#666699"> <tr bgcolor="#799AE1"> <td colspan="4">中文类名:</td> <td><input name="fstyle" type="text" id="ftitle2" size="20" value="<%=rs.Fields.Item("sqlstyle")%>"> <script language="javascript"> form1.fstyle.focus(); </script> </td> </tr> <!--<tr bgcolor="#799AE1"> <td colspan="4">英文类名:</td> <td><input name="festyle" type="text" id="festyle" size="20" value="<%=rs.Fields.Item("sqlestyle")%>"></td> </tr> <tr bgcolor="#799AE1"> <td colspan="4">图片地址:</td> <td><input name="fimage" type="text" id="fimage" size="40" value="<%=rs.fields.item("sqlimage")%>"> <input type="button" name="Submit22" value="上传图片" onClick="window.open('upload_image.asp?formname=myform&editname=fimage&uppath=userimages&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"> </td> </tr>--> <tr bgcolor="#799AE1"> <td colspan="4">排序:</td> <td><input name="fnumber" type="text" id="fnumber" size="20" value="<%=rs.Fields.Item("sqlnumber")%>"></td> </tr> <tr bgcolor="#799AE1"> <td colspan="4">日期:</td> <td width="90%"><input name="fdate" type="text" id="fdate2" size="20" value="<%=rs.fields.item("sqldate")%>"> 格式如:2005-01-01</td> </tr> <tr bgcolor="#799AE1"> <td colspan="4"><input name="MM_update" type="hidden" id="MM_update" value="form1"> <input name="fid" type="hidden" id="fshow3" value="<%=rs.Fields.Item("sqlindex")%>"> </td> <td> </td> </tr> <tr bgcolor="#648BDD"> <td colspan="4"> </td> <td> <input type="submit" name="Submit2" value=" 修 改 "> <input type="reset" name="Submit3" value=" 清 除 "></td> </tr> </table> </form> </td> </tr> <tr> <td colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="left">注意:请正确对以上内容进行修改!</div></td> </tr> </table> </td> </tr> </table> </body> </html> <% set rs = nothing %>