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

📄 admin_config.asp

📁 基于asp的博客系统+论文(代码齐全)经过调试
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="Admin_Check.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>blog</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="Style.css" rel="stylesheet" type="text/css">
<% 
if request("action") = "save" then
	call creaters(rs,"select * from Title where username='" & request.Cookies("user")("username") & "'")
		rs("Description") = request.Form("Title")
		rs("LogoSite") = request.Form("LogoSite")
		rs.update
	call closers(rs)
	
	call creaters(rs,"select * from Affiche where username='" & request.Cookies("user")("username") & "'")
		rs("Content") = request.Form("Content")
		rs.update
	call closers(rs)
	
	%>
	<script language="javascript">
		alert("设置成功!");
		window.top.location = "Admin_Main.asp?user=<%= request.Cookies("user")("username") %>";
		//window.parent.refersh;
		//window.parent.frameMain.src = "Admin_Config.asp";
		//history.back(1);
	</script>
	<%
end if

Dim Title
Dim Affiche
Dim LogoSite
call creaters(rs,"select * from Title where username='" & request.Cookies("user")("username") & "'")
	Title = rs("Description")
	LogoSite = rs("LogoSite")
call closers(rs)

call creaters(rs,"select * from Affiche where username='" & request.Cookies("user")("username") & "'")
	Affiche = rs("Content")
call closers(rs)
 %>
</head>

<body>

<table width="613" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="613" height="29" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="613" height="29" align="center" valign="middle"><div align="center"><strong>基本设置</strong></div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="164" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="29" height="8"></td>
          <td width="543"></td>
          <td width="41"></td>
        </tr>
        <tr>
          <td height="156"></td>
          <td valign="top">
		    <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#C0E096">
              <!--DWLayoutTable-->
		      <form name="frmUnit" action="Admin_Config.asp?action=save" method="post">
                <tr valign="middle" bgcolor="#F3F9EC">
                  <td width="27%" height="22"><div align="left"><strong>博客标题:</strong></div></td>
                  <td width="73%"><input name="Title" type="text" class="InputBox" id="Title" size="50" value="<%= Title %>"></td>
                </tr>
                <tr valign="middle" bgcolor="#F3F9EC">
                  <td height="22"><strong>LOGO地址:</strong></td>
                  <td><input name="LogoSite" type="text" class="InputBox" id="LogoSite" size="50" value="<%= LogoSite %>"></td>
                </tr>
                <tr valign="middle" bgcolor="#FFFFFF">
                  <td height="23"><div align="left"><strong>公告内容:</strong></div></td>
                  <td height="23"><textarea name="Content" cols="50" rows="6" class="InputBox" id="Content"><%= Affiche %></textarea></td>
                </tr>
                <tr valign="middle" bgcolor="#F3F9EC">
                  <td height="23" colspan="2">
                    <div align="center">
                      <input name="btnSubmit" type="button" class="InputBox" id="btnSubmit" value="提交">
                      <input name="Submit2" type="reset" class="InputBox" value="重置"> 
                      <input name="btnBack" type="button" class="InputBox" value="返回" onClick="history.back(1);">               
                      </div></td>
                </tr>
	          </form>
          </table></td>
          <td></td>
        </tr>
        </table></td>
  </tr>
  <tr>
    <td height="12"></td>
  </tr>
</table>
</body>
</html>
<script language="vbscript">
	sub btnSubmit_onclick()
		if frmUnit.Title.value = "" then
			Msgbox "博客标题不允许为空。",VbCritical,"博客标题"
			exit sub
		end if
		
		if frmUnit.Content.value = "" then
			Msgbox "公告内容不允许为空。",VbCritical,"公告内容"
			exit sub
		end if
		frmUnit.submit
	end sub
</script>

⌨️ 快捷键说明

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