www.gusucode.com > 艺帆全站DIV+CSS体育用品公司网站源码 1.7.5源码程序 > i5808/admin_xtsz.asp
<!--#include file="../Conn.asp" --> <!--#include file="seeion.asp"--> <% set config=server.createobject("adodb.recordset") exec="select * from config " config.open exec,conn,1,1 %> <!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>网站基本设置</title> <SCRIPT language=JavaScript src="../js/digital.js" type=text/javascript ></SCRIPT> <link rel="stylesheet" type="text/css" id="css" href="images/style.css"> </head> <body> <form name="add" method="post" action="admin_xtsz.asp?wzsz=ok"> <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" > <tr> <td height="30" background="images/bg_list.gif"><div style="padding-left:10px; font-weight:bold; color:#0075a9">网站基本设置</div></td> </tr> <tr> <td bgcolor="#FFFFFF"><%if session("qx")>1 then%><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" > <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8" > <td width="22%" height="30" align="right" class="td">网站名称:</td> <td width="78" colspan="2" class="td"><input name="title" type="text" value="<%=config("title")%>" size="50" /> <input name="id" type="hidden" value="<%=config("id")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td width="22%" height="30" align="right" class="td">网站域名:</td> <td colspan="2" class="td"><input name="url" type="text" value="<%=config("url")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td width="22%" height="30" align="right" class="td">网站LOGO:</td> <td class="td"><input name=img type=text id="img" value="<%=config("logo")%>" size=40></td> <td class="td"><iframe style="top:2px" id="UploadFiles" src="upload_Photo.asp?PhotoUrlID=0" frameborder="0" scrolling="No" width="320" height="25"></iframe></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td width="22%" height="30" align="right" class="td">LOGO尺寸:</td> <td colspan="2" class="td"><input name="logoiwidth" type="text" value="<%=config("logoiwidth")%>" size="10" onKeyPress="event.returnValue=IsDigit();"/> × <input name="logoheight" type="text" value="<%=config("logoheight")%>" size="10" onKeyPress="event.returnValue=IsDigit();" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td width="22%" height="30" align="right" bgcolor="#F1F5F8" class="td">QQ客服:</td> <td colspan="2" bgcolor="#F1F5F8" class="td">浮动开启: <select name="qqkg"> <option value="1" <%if config("qqkg")=1 then%>selected<%end if%>>开启</option> <option value="0" <%if config("qqkg")=0 then%>selected<%end if%>>关闭</option> </select> QQ1: <input name="qq1" type="text" value="<%=config("qq1")%>" size="20" /> 旺旺号:<input name="qq2" type="text" value="<%=config("qq2")%>" size="20" /> 多个Q号或旺旺号用,隔开</td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td width="22%" height="30" align="right" bgcolor="#FFFFFF" class="td">联系人:</td> <td colspan="2" bgcolor="#FFFFFF" class="td"><input name="name" type="text" value="<%=config("name")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" bgcolor="#F1F5F8" class="td">公司邮箱:</td> <td colspan="2" bgcolor="#F1F5F8" class="td"><input name="mail" type="text" value="<%=config("mail")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">公司电话:</td> <td colspan="2" class="td"><input name="tel" type="text" value="<%=config("tel")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td">公司传真:</td> <td colspan="2" class="td"><input name="fax" type="text" value="<%=config("fax")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">公司地址:</td> <td colspan="2" class="td"><input name="dz" type="text" id="textfield8" value="<%=config("dz")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td">ICP备案编号:</td> <td colspan="2" class="td"><input name="beian" type="text" value="<%=config("beian")%>" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">网站访问量:</td> <td colspan="2" class="td"><input name="js" type="text" value="<%=config("js")%>" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td">网页关键字:</td> <td colspan="2" class="td"><input name="keywords" type="text" value="<%=config("keywords")%>" size="50" /></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">网站描述:</td> <td colspan="2" class="td"><input name="description" type="text" value="<%=config("description")%>" size="50"/></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td"><p>底部版权信息:</p> <p>[支持HTML]</p></td> <td colspan="2" class="td"><textarea name="copyright" cols="50" rows="4"><%=config("copyright")%></textarea></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">是否关闭网站:</td> <td colspan="2" class="td"><input type="radio" name="on" value="0" <%if config("on")=0 then%>checked<%end if%> /> 开放网站 <input type="radio" name="on" value="1" <%if config("on")=1 then%>checked<%end if%> /> 关闭网站</td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td">关闭说明:</td> <td colspan="2" class="td"><textarea name="off_sm" cols="50" rows="4"><%=config("off_sm")%></textarea></td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">是否开放注册:</td> <td colspan="2" class="td"><input type="radio" name="userzc" value="0" <%if config("userzc")=0 then%>checked<%end if%> /> 开放注册 <input type="radio" name="userzc" value="1" <%if config("userzc")=1 then%>checked<%end if%> /> 关闭注册 </td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td">会员注册是否审核:</td> <td colspan="2" class="td"><input type="radio" name="usersh" value="1" <%if config("usersh")=1 then%>checked<%end if%> /> 无需审核 <input type="radio" name="usersh" value="0" <%if config("usersh")=0 then%>checked<%end if%> /> 需要审核</td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td height="30" align="right" class="td">留言是否审核:</td> <td colspan="2" class="td"><input type="radio" name="booksh" value="1" <%if config("booksh")=1 then%>checked<%end if%> /> 无需审核 <input type="radio" name="booksh" value="0" <%if config("booksh")=0 then%>checked<%end if%> /> 需要审核</td> </tr> <tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#F1F5F8'" bgcolor="#F1F5F8"> <td height="30" align="right" class="td"> </td> <td colspan="2" class="td"><label> <input type="submit" name="button" id="button" value="保存配置" class="btn" /> </label></td> </tr> </table> <%else%> <div style=" padding:20px;font-size:14px; color:#990000; font-weight:bold; text-align:center">您没有权限操作!</div> <%response.end end if%> </td> </tr> </table></form> </body> </html> <% if Request.QueryString("wzsz")="ok" then id=request("id") sql="select * from config where id="&id set rs=server.CreateObject("adodb.recordset") rs.open sql,conn,1,3 rs("title")=request.form("title") rs("url")=request.form("url") rs("logo")=request.form("img") rs("logoiwidth")=request.form("logoiwidth") rs("logoheight")=request.form("logoheight") rs("name")=request.form("name") rs("mail")=request.form("mail") rs("tel")=request.form("tel") rs("fax")=request.form("fax") rs("dz")=request.form("dz") rs("copyright")=request.form("copyright") rs("beian")=request.form("beian") rs("js")=request.form("js") rs("keywords")=request.form("keywords") rs("description")=request.form("description") rs("userzc")=request.form("userzc") rs("zcxy")=request.form("zcxy") rs("on")=request.form("on") rs("qq1")=request.form("qq1") rs("qq2")=request.form("qq2") rs("qqkg")=request.form("qqkg") rs("off_sm")=request.form("off_sm") rs("usersh")=request.form("usersh") rs("booksh")=request.form("booksh") rs.update rs.close response.write "<script>alert('网站设置成功!');window.location.href='admin_xtsz.asp';</script>" end if %>