⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.asp

📁 一个不错的代码 一个不错的代码 一个不错的代码
💻 ASP
字号:
<!--#include file=conn.asp -->
<%
IF Session("KEY")<>"super"THEN
response.redirect "index_face.asp"
response.end
END IF
response.buffer=true
Response.Expires=0

Set rs9 = Server.CreateObject("ADODB.Recordset")
sql9 ="SELECT * From system Order By id DESC"
RS9.open sql9,Conn,1,1
%>

<html>
<head>
<title>系统更改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {  font-size: 9pt}
table {  font-size: 9pt}
-->
</style>
</head>

<body bgcolor="#FFFFFF">
<form method="post" action="systemsave.asp" name="system">
  <br>
  <table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" bordercolorlight="#CCCCFF" bordercolordark="#FFFFFF" bgcolor="#000000">
    <tr bgcolor="#abb8d6"> 
      <td colspan="3" height="44"> 
        <div align="center">系 统 设 置</div>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">*主页名称:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="name" size="50" value="<%=rs9("name")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">*主页地址:</td>
      <td height="24" colspan="2" align="left"> http:// 
        <input type="text" name="xpurl" size="40" value="<%=rs9("xpurl")%>">
        / </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">*主页信箱:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="email" size="50" value="<%=rs9("email")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">版权说明:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="copyright" size="50" value="<%=rs9("Copyright")%>">
        <font color="#666666"> </font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">版本信息:</td>
      <td height="24" colspan="2" align="left"> <font color="#000000"><b> &nbsp; 
        惠信新闻系统&nbsp; 
        <% if rs9("Version") <> "" then Response.Write("[ " & rs9("Version") & " ]") else Response.Write("[Couldn't read version info..]") %>
        </b></font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">LOGO图片:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="logo" size="50" value="<%=rs9("logo")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">广告图片:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="banner" size="50" value="<%=rs9("banner")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">广告条链接:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="bannerurl" size="50" value="<%=rs9("bannerurl")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="3" height="24" align="center">显示条数设置</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">新闻显示条数:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="top_news" size="50" value="<%=rs9("top_news")%>" maxlength="2">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">专题显示条数:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="top_sp" size="50" value="<%=rs9("top_sp")%>" maxlength="2">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">文字排行条数:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="top_txt" size="50" value="<%=rs9("top_txt")%>" maxlength="2">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">图片排行条数:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="top_img" size="50" value="<%=rs9("top_img")%>" maxlength="2">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="3" height="24" align="center">版 面 设 计 </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">背景图片:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="bgimg" size="50" value="<%=rs9("bgimg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">背景色:</td>
      <td width="100" height="24" align="center"> 
        <input type="text" name="bgcolor" size="10" value="<%=rs9("bgcolor")%>">
      </td>
      <td rowspan="14" width="50%" bgcolor="<%=rs9("bgcolor")%>" align="center"> 
        <table width="90%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=RS9("border")%>" align="center">
          <tr> 
            <td bgcolor="<%=RS9("t_bg")%>" align="center" height="30"> 
              <p> 上 </p>
            </td>
          </tr>
        </table>
        <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td bgcolor="<%=RS9("border")%>" width="1"></td>
            <td bgcolor="<%=RS9("t_m_bg")%>" align="center">隔栏</td>
            <td bgcolor="<%=RS9("border")%>" width="1"></td>
          </tr>
        </table>
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td bgcolor="<%=RS9("border")%>" height="1"></td>
          </tr>
        </table>
        <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="<%=RS9("border")%>">
          <tr> 
            <td bgcolor="<%=RS9("border")%>" width="1" height="232"></td>
            <td bgcolor="<%=RS9("l_bg")%>" width="20%" height="232" valign="top" align="center"> 
              <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=RS9("l_top")%>">
                <tr> 
                  <td align="center">表头</td>
                </tr>
                <tr> 
                  <td bgcolor="<%=RS9("l_main")%>" align="center"> 
                    <p>&nbsp;</p>
                    <p>左</p>
                    <p>&nbsp;</p>
                  </td>
                </tr>
              </table>
              <p>&nbsp;</p>
              <p>底</p>
            </td>
            <td bgcolor="<%=RS9("border")%>" width="1" height="232" valign="top"></td>
            <td bgcolor="<%=RS9("m_bg")%>" width="60%" height="285" valign="top" align="center"> 
              <table width="95%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=RS9("m_top")%>" align="center">
                <tr> 
                  <td align="center">表头</td>
                </tr>
                <tr> 
                  <td bgcolor="<%=RS9("m_main")%>" align="center"> 
                    <p>&nbsp;</p>
                    <p>中表底</p>
                    <p>&nbsp;</p>
                  </td>
                </tr>
              </table>
              <p>&nbsp;</p>
              <p>中栏底</p>
            </td>
            <td bgcolor="<%=RS9("border")%>" width="1" height="232" valign="top"></td>
            <td bgcolor="<%=RS9("r_bg")%>" height="232" valign="top" align="center"> 
              <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=RS9("r_top")%>">
                <tr> 
                  <td align="center">表头</td>
                </tr>
                <tr> 
                  <td bgcolor="<%=RS9("r_main")%>" align="center"> 
                    <p>&nbsp;</p>
                    <p>右</p>
                    <p>&nbsp;</p>
                  </td>
                </tr>
              </table>
              <p>&nbsp;</p>
              <p>底</p>
            </td>
            <td bgcolor="<%=RS9("border")%>" width="1" height="232"></td>
          </tr>
        </table>
        <table width="90%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=RS9("border")%>" align="center">
          <tr> 
            <td bgcolor="<%=RS9("b_bg")%>" height="30" align="center"> 
              <p> 下 </p>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">上栏底色:</td>
      <td width="100" height="24" bgcolor="#FFFFFF" align="center"> 
        <input type="text" name="t_bg" size="10" value="<%=rs9("t_bg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">下栏底色:</td>
      <td width="100" height="24" bgcolor="#FFFFFF" align="center"> 
        <input type="text" name="b_bg" size="10" value="<%=rs9("b_bg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">上隔栏底色:</td>
      <td width="100" height="24" align="center"> 
        <input type="text" name="t_m_bg" size="10" value="<%=rs9("t_m_bg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24" bgcolor="#FFFF99">左栏底色:</td>
      <td width="100" height="24" align="center" bgcolor="#FFFF99"> 
        <input type="text" name="l_bg" size="10" value="<%=rs9("l_bg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24" bgcolor="#FFFF99">左栏表头底色:</td>
      <td width="100" height="24" align="center" bgcolor="#FFFF99"> 
        <input type="text" name="l_top" size="10" value="<%=rs9("l_top")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24" bgcolor="#FFFF99">左栏表格底色:</td>
      <td width="100" height="24" align="center" bgcolor="#FFFF99"> 
        <input type="text" name="l_main" size="10" value="<%=rs9("l_main")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">中栏底色:</td>
      <td width="100" height="24" align="center"> 
        <input type="text" name="m_bg" size="10" value="<%=rs9("m_bg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">中栏表头底色:</td>
      <td width="100" height="24" align="center"> 
        <input type="text" name="m_top" size="10" value="<%=rs9("m_top")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">中栏表格底色:</td>
      <td width="100" height="24" align="center"> 
        <input type="text" name="m_main" size="10" value="<%=rs9("m_main")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24" bgcolor="#CCFFFF">右栏底色:</td>
      <td width="100" height="24" align="center" bgcolor="#CCFFFF"> 
        <input type="text" name="r_bg" size="10" value="<%=rs9("r_bg")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24" bgcolor="#CCFFFF">右栏表头底色:</td>
      <td width="100" height="24" align="center" bgcolor="#CCFFFF"> 
        <input type="text" name="r_top" size="10" value="<%=rs9("r_top")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24" bgcolor="#CCFFFF">右栏表格底色:</td>
      <td width="100" height="24" align="center" bgcolor="#CCFFFF"> 
        <input type="text" name="r_main" size="10" value="<%=rs9("r_main")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">边框颜色:</td>
      <td width="100" height="24" align="center"> 
        <input type="text" name="border" size="10" value="<%=rs9("border")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="center" bgcolor="#FFFFFF"> 
        <p align="right">*本站公告:</p>
        <p> <font color="#666666">限制200字,否 <br>
          则破坏页面效果</font></p>
      </td>
      <td colspan="2" align="left"> 
        <textarea name="gg" cols="50" rows="4"><%gg=replace(rs9("gg"),"<br>",chr(13))
            gg=replace(gg,"&nbsp;"," ")
                        response.write gg%></textarea>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="3" height="24" align="center">预 留 字 段 (目前不可用,为以后增加功能用)</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容1:</td>
      <td height="24" colspan="2" align="left"> 
        <input type="text" name="xp1" size="50" value="<%=rs9("xp1")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容2:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp2" size="50" value="<%=rs9("xp2")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容3:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp3" size="50" value="<%=rs9("xp3")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容4:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp4" size="50" value="<%=rs9("xp4")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容5:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp5" size="50" value="<%=rs9("xp5")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容6:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp6" size="50" value="<%=rs9("xp6")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容7:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp7" size="50" value="<%=rs9("xp7")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="128" align="right" height="24">自定义内容8:</td>
      <td height="24" colspan="2" align="left" bgcolor="#FFFFFF"> 
        <input type="text" name="xp8" size="50" value="<%=rs9("xp8")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="3" height="60"> 
        <div align="center"> 
          <input type="submit" name="Submit" value="提交">
          <input type="reset" name="Submit2" value="重设">
        </div>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
<%rs9.close%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -