www.gusucode.com > 深度梦想整站系统(asp) 1.14.02源码程序 > admin/product/productClass_Add.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 fclassName=request.Form("fclassName") ftip=request.Form("ftip") fOrderID=request.Form("fOrderID") fisView=request.Form("fisView") sql="insert into deep_ProductClass(fclassName,ftip,fOrderID,fisView)values('"&fclassName&"','"&ftip&"',"&fOrderID&","&fisView&") " conn.execute(sql) response.Write("分类" &fclassName&"添加成功!!<br />") 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" size="60" /></td> </tr> <tr> <td>分类简介:</td> <td><textarea name="ftip" cols="60" rows="6" id="ftip"></textarea></td> </tr> <tr> <td>排序ID:</td> <td><input name="fOrderID" type="text" id="fOrderID" value="0" /></td> </tr> <tr> <td>是否显示:</td> <td><input name="fisView" type="radio" id="radio" value="1" checked="checked" />显示 <input type="radio" name="fisView" id="radio2" value="0" />不显示</td> </tr> <tr> <td> </td> <td><input type="submit" name="button" id="button" value="提交" /> <input type="reset" name="button2" id="button2" value="重置" /></td> </tr> </table> </form> <% end if %> <br /> </dd> </dl> <br /> </body> </html> <% call closeConnDB() %>