www.gusucode.com > 深度梦想整站系统(asp) 1.14.02源码程序 > admin/siteConfig/siteConfig_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 language="javascript"> function form1_onsubmit() { if (document.form1.siteName.value=="") { window.alert("请输入站点名称"); return false; } if (document.form1.siteUrl.value=="") { window.alert("请输入站点url地址"); return false; } if (document.form1.siteTitle.value=="") { window.alert("请输入网站标题"); return false; } if (document.form1.copyright.value=="") { window.alert("请输入网站版权信息"); return false; } } </script> </head> <body id="bodyBg1"> <br /> <a href="siteConfig_Info.asp">站点信息</a> | <a href="SiteConfig_Update.asp">信息修改</a> <hr class="Nav-hr" /> <br /> <dl class="manageContent"> <dt>网站基本信息管理</dt> <dd> <br /> <% if (Request.Form("siteName") <> "") then Set rsSiteConfigUpdate=Server.CreateObject("Adodb.Recordset") sql="select * from deep_SiteConfig " rsSiteConfigUpdate.open sql,conn,3,2 rsSiteConfigUpdate("fsiteName")=Request.Form("siteName") rsSiteConfigUpdate("fsiteUrl")=Request.Form("siteUrl") rsSiteConfigUpdate("flogoUrl")=Request.Form("logoUrl") rsSiteConfigUpdate("fsiteTitle")=Request.Form("siteTitle") rsSiteConfigUpdate("fmetaKeywords")=Request.Form("metaKeywords") rsSiteConfigUpdate("fmetaDescription")=Request.Form("metaDescription") rsSiteConfigUpdate("fcopyright")=Request.Form("copyright") rsSiteConfigUpdate("fICP")=Request.Form("ICP") rsSiteConfigUpdate("fwebmasterName")=Request.Form("webmasterName") rsSiteConfigUpdate("fEmail")=Request.Form("Email") rsSiteConfigUpdate("fQQ")=Request.Form("QQ") rsSiteConfigUpdate("fMSN")=Request.Form("MSN") rsSiteConfigUpdate("fphone")=Request.Form("phone") rsSiteConfigUpdate("ftheme")=Request.Form("theme") rsSiteConfigUpdate("fupFilesDir")=Request.Form("upFilesDir") rsSiteConfigUpdate("fhiddenArea")=Request.Form("hiddenArea") rsSiteConfigUpdate("fisHTML")=Request.Form("isHTML") rsSiteConfigUpdate("isOffline")=Request.Form("isOffline") rsSiteConfigUpdate.update rsSiteConfigUpdate.close Set rsSiteConfigUpdate=Nothing Response.Write("<p align='center'>["& site_siteName &"]网站配置修改成功</p>") else %> <form id="form1" name="form1" method="post" action="SiteConfig_Update.asp" onsubmit="return form1_onsubmit()"> <table width="98%" border="0" align="center" class="tableBoderForm"> <tr> <td width="180">网站名称:</td> <td><input name="siteName" type="text" value="<%=site_siteName%>" size="50"/></td> </tr> <tr> <td>网站网址:</td> <td><input name="siteUrl" type="text" value="<%=site_siteUrl%>" size="50"/> * 输入 http:// </td> </tr> <tr> <td>Logo地址:</td> <td><input name="logoUrl" type="text" value="<%=site_logoUrl%>" size="50" /> <iframe ID="UploadFiles" frameborder=0 scrolling=no width="600" height="23" src="../include/upload_form.asp?SavePath=<%=projectRootPath & site_upFilesDir%>config/&parentBackValue=form1.logoUrl&MaxSize=500&FileType=png&saveName=Logo_deepStudy.png"></iframe> <!-- SavePath 上传文件的保存路径 parentBackValue 返回值所放入的form表单名 MaxSize 上传文件的最大尺寸 FileType 上传文件的文件类型 'saveName 0:自动取无重复的服务器时间字符串为文件名 '1:自动取源文件名 '字符串:自定义的文件名,如"mypic.jpg" --> <br /> 上传图片尺寸视网站效果自定,图片必须是png格式 </td> </tr> <tr> <td>网站标题:</td> <td><textarea name="siteTitle" cols="70" rows="3"><%=site_siteTitle%></textarea></td> </tr> <tr> <td>meta关键字</td> <td><textarea name="metaKeywords" cols="70" rows="3"><%=site_metaKeywords%></textarea></td> </tr> <tr> <td>meta说明:</td> <td><textarea name="metaDescription" cols="70" rows="3"><%=site_metaDescription%></textarea></td> </tr> <tr> <td>版权信息:</td> <td><textarea name="copyright" cols="70" rows="6"><%=site_copyright%></textarea></td> </tr> <tr> <td>ICP备案:</td> <td><input name="ICP" type="text" value="<%=site_ICP%>" maxlength="20" /></td> </tr> <tr> <td>站长姓名:</td> <td><input name="webmasterName" type="text" value="<%=site_webmasterName%>" /></td> </tr> <tr> <td>站长信箱:</td> <td><input name="Email" type="text" value="<%=site_Email%>" size="50" /></td> </tr> <tr> <td>联系QQ:</td> <td><input name="QQ" type="text" value="<%=site_QQ%>" size="50" /></td> </tr> <tr> <td>联系MSN:</td> <td><input name="MSN" type="text" value="<%=site_MSN%>" size="50" /></td> </tr> <tr> <td>联系电话:</td> <td><input name="phone" type="text" value="<%=site_phone%>" /></td> </tr> <tr> <td>上传文件目录:</td> <td ><input name="upFilesDir" type="text" value="<%=site_upFilesDir%>" /></td> </tr> <tr> <td>网站默认皮肤设置:</td> <td><input name="theme" type="text" value="<%=site_theme%>" id="theme" /> <select name="theme_select" id="select" onchange="themeSelect(this.value)"> <option value="<%=site_theme%>" ><%=site_theme%></option> <option value="deepteach" <%if (site_theme="default") then%>selected="selected"<% end if %> >深度空间风格(默认)</option> <option value="itstudy" <%if (site_theme="itstudy") then%>selected="selected"<% end if %> >IT学习网风格</option> </select> <script type="text/javascript"> function themeSelect(value){ oTheme=document.getElementById("theme"); oTheme.value=value; } </script> </td> </tr> <tr> <td>网站隐藏区域:</td> <td><textarea name="hiddenArea" cols="60" rows="5" id="hiddenArea"><%=site_hiddenArea%></textarea></td> </tr> <tr> <td>是否html静态:</td> <td> <input name="isHTML" type="radio" value="1" <%if site_isHTML=1 then%>checked="checked"<%end if%> />开启 <input name="isHTML" type="radio" value="0" <%if site_isHTML=0 then%>checked="checked"<%end if%> />禁止 </td> </tr> <tr> <td>是否关闭网站:</td> <td> <input name="isOffline" type="radio" value="1" <%if site_isOffline=1 then%>checked="checked"<%end if%> />开启 <input name="isOffline" type="radio" value="0" <%if site_isOffline=0 then%>checked="checked"<%end if%> />禁止 </td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="修改" /> <input type="reset" name="Reset" value="重置" /></td> </tr> </table> </form> <br /> </dd> </dl> <p align="center">* 内容为空前台不会显示</p> <% end if Call CloseConnDB() %> </body> </html>