📄 webconfig.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("username")="" then
response.write "<table><tr><td>你还未登陆,或登陆已超时,请重新登陆!</td></tr>"
response.write "<tr><td><a href='login.htm' target=_parent>返回</a></td></tr></table>"
response.end
end if
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
sql="select * from Net008_webconfig"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,2
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table cellspacing=1 cellpadding=3 border=0 width="98%" align="center" class="table1">
<form action="webconfig_ok.asp" method="post" name="webconfig" enctype="multipart/form-data">
<tr class="th1">
<td colspan=2 align=center valign=top><b><font color="#006600">网站信息设置</font></b></td>
</tr>
<tr class="th2">
<td width=100 align="right">网站名称:</td>
<td><input name=webname class="input_cccccc" id="webname" value="<%=rs("webname")%>" size="40">
<input type="hidden" name="id" value="<%=rs("id")%>">
</td>
</tr>
<tr class="th2">
<td align="right" class="th2">联系电话:</td>
<td><input name=webtel class="input_cccccc" id="webtel" value="<%=rs("webtel")%>" size="40"></td>
</tr>
<tr class="th2">
<td align="right" class="th2">传真号码:</td>
<td><input name=webfax class="input_cccccc" id="webfax" value="<%=rs("webfax")%>" size="40"></td>
</tr>
<tr class="th2">
<td align="right" class="th2">手机号码:</td>
<td><input name=webphone class="input_cccccc" id="webphone" value="<%=rs("webphone")%>" size="40"></td>
</tr>
<tr class="th2">
<td align="right" class="th2">电子邮箱:</td>
<td><input name=webemail class="input_cccccc" id="webemail" value="<%=rs("webemail")%>" size="40"></td>
</tr>
<tr class="th2">
<td align="right" class="th2">在线QQ号码:</td>
<td><input name=webqq class="input_cccccc" id="webqq" value="<%=rs("webqq")%>" size="40"></td>
</tr>
<tr class="th2">
<td align="right" class="th2">上班时间:</td>
<td><input name=worktime class="input_cccccc" id="worktime" value="<%=rs("worktime")%>" size="40"></td>
</tr>
<tr class="th2">
<td align="right" class="th2">下方版权信息:</td>
<td> <textarea name="copyright" rows="6" class="input_cccccc" id="copyright" style="width:100%"><%=rs("copyright")%></textarea>
</td>
</tr>
<tr class="th2">
<td align="right">公司LOGO预览:</td>
<td><img src="show_logo.asp?id=<%=rs("id")%>" border="1" align="absmiddle"></td>
</tr>
<tr class="th2">
<td align="right">公司LOGO修改:</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="th2">
<td width="80"> <input type="file" name="img" size="15" class="input_cccccc">
</td>
<td> 是否保留原图:
<input type="radio" name="nochange" value="1" checked class="input_no">
保留
<input type="radio" name="nochange" value="0" class="input_no">
更新</td>
</tr>
</table></td>
</tr>
<tr class="th2">
<td align="right" valign="top">Banner显示方式:</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120"> <input name="displaymode" type="radio" value="2" onClick="a1.style.display='none',a2.style.display='block'" <%if rs("displaymode")=2 then response.write "checked" end if%>>
图片
<input name="displaymode" type="radio" value="1" onClick="a1.style.display='block',a2.style.display='none'" <%if rs("displaymode")=1 then response.write "checked" end if%>>
文字</td>
<td> <div id=a1 style="display:block">
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">文字内容:</td>
<td><textarea name="bannertext" cols="40" id="bannertext"><%=rs("bannertext")%></textarea>
</td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
<div id=a2 style="display:none">
<table width="96%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="80">Banner预览:</td>
<td><img src="show_banner.asp?id=<%=rs("id")%>" border="1" align="absmiddle"></td>
</tr>
<tr>
<td>BANNER修改:</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80"> <input type="file" name="img1" size="15">
</td>
<td> 是否保留原图:
<input type="radio" name="nochange1" value="1" checked>
保留
<input type="radio" name="nochange1" value="0">
更新</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr class="th2">
<td align="right">首页通栏图片:(图片标准558*100px)</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="40">预览:</td>
<td><a href="show_tong.asp?id=<%=rs("id")%>" class="LeftTypeLinkU">[查看图片]</a></td>
</tr>
<tr>
<td>修改:</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80"> <input name="img2" type="file" id="img2" size="15">
</td>
<td> 是否保留原图:
<input type="radio" name="nochange2" value="1" checked>
保留
<input type="radio" name="nochange2" value="0">
更新</td>
</tr>
</table></td>
</tr>
<tr>
<td>显示:</td>
<td><input type="radio" name="tongdisp" value="1" <%if rs("tongdisp")=1 then response.write "checked" end if%>>
显示
<input type="radio" name="tongdisp" value="2" <%if rs("tongdisp")=2 then response.write "checked" end if%>>
不显示 </td>
</tr>
</table></td>
</tr>
<tr class="th2">
<td align="right"> </td>
<td> </td>
</tr>
<tr class="th2">
<td colspan=2 align="center"> <input type=submit value=确认修改 name=button1 class="sinput">
<input type=button value=返 回 name=return onclick="javascript:history.go(-1)" class="sinput">
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -