www.gusucode.com > 深度梦想整站系统(asp) 1.14.02源码程序 > admin/product/productClass_Update.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% projectRootPath = "../../" '相对当前应用程序根的位置 %> <!-- #include file="../web.config.asp"--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="robots" content="noindex,nofollow" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>管理</title> <link href="../themes/<%=theme_Path%>/main.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function check(){ if(document.form1.fclassName.value==""){ alert("分类名称不能为空!!!"); document.form1.fclassName.focus(); return false; } if(document.form1.ftip.value==""){ alert("分类简介不能为空!!!"); document.form1.ftip.focus(); return false; } if(document.form1.fOrderID.value==""){ alert("排序ID不能为空!!!"); document.form1.fOrderID.focus(); return false; } } </script> </head> <body id="bodyBg1"> <br /> <a href="productClass_Manage.asp">产品分类管理</a> | <a href="productClass_Add.asp">添加分类</a> <hr color="#0099FF" size="1" /> <br /> <dl class="manageContent"> <dt>产品分类管理</dt> <dd> <br /> <% if (request.Form("fclassName")<>"") then fclass_id=request.Form("fclass_id") fclassName=request.Form("fclassName") ftip=request.Form("ftip") fOrderID=request.Form("fOrderID") fisView=request.Form("fisView") sql_u="update deep_ProductClass set fclassName='"&fclassName&"',ftip='"&ftip&"',fOrderID="&fOrderID&",fisView="&fisView&" where fclass_id= " & fclass_id conn.execute(sql_u) response.Write("分类" &fclassName&"修改成功!!<br />") else if(Request.QueryString("id")<>"")then id=Request.QueryString("id") sql="select * from deep_ProductClass where fclass_id=" & id set rsProductClass=conn.execute(sql) if(rsProductClass.eof and rsProductClass.bof)then Response.Write("没有记录") else %> <form id="form1" name="form1" method="post" action="" onsubmit="return check()"> <table width="95%" class="tableBoderForm"> <tr> <td>分类名称:</td> <td><input name="fclassName" type="text" id="fclassName" value="<%=rsProductClass("fclassName")%>" size="60" /></td> </tr> <tr> <td>分类简介:</td> <td><textarea name="ftip" cols="60" rows="6" id="ftip"><%=rsProductClass("ftip")%></textarea></td> </tr> <tr> <td>排序ID:</td> <td><input name="fOrderID" type="text" id="fOrderID" value="<%=rsProductClass("fOrderID")%>" /></td> </tr> <tr> <td>是否显示:</td> <td><input name="fisView" type="radio" id="radio" value="1" <%if(rsProductClass("fisView")=1)then%>checked="checked"<%end if%> />显示 <input type="radio" name="fisView" id="radio2" value="0" <%if(rsProductClass("fisView")=0)then%>checked="checked"<%end if%> />不显示</td> </tr> <tr> <td> <input name="fclass_id" type="hidden" value="<%=id%>" /></td> <td><input type="submit" name="button" id="button" value="修改" /> <input type="reset" name="button2" id="button2" value="重置" /></td> </tr> </table> </form> <% end if rsProductClass.close set rsProductClass=nothing end if end if %> <br /> </dd> </dl> <br /> </body> </html> <% call closeConnDB() %>