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

📄 aboutus.asp

📁 个人网站系统,本人基于第三方源码进行更改!
💻 ASP
字号:
<!--#Include file="../Common/Inc_DatConn.asp"-->
<!--#Include file="Common/Inc_Config.asp"-->
<!--#Include file="Common/Inc_Function.asp"-->
<%
'┌─  风云ASP在线  ────────────────────────┐
'│                                                                 │
'│  作者:赵振波.	http://www.fyasp.com	    				    │
'│                                                                 │
'│   Q Q:176189168  										   	    │
'│                                                                 │
'│ Email:fy96@163.com                                             │
'│                                                                 │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│                                                                 │
'│【版权声明】                                                     │
'│                                                                 │
'│     本程序版权归坐看风云所有,未经授权擅自修改、复制或散布本程序│
'│                                                                 │
'│的部分或全部,将承受严厉的民事和刑事处罚,对已知的违反者将给予法 │
'│                                                                 │
'│律范围内的全面制裁。对非法使用此程序所造成的一切后果本人概不负责!│
'│                                                                 │
'└───────────────────  http://www.fyasp.com ──┘
%>
<%if IsTimeOut(Session("strAccount"),Session("strPassWord")) then Response.Redirect "index.asp"%>
<html>
<head>
<title><% = strSiteName%> - 网站后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Common/Site.css" type="text/css">
<script language="javascript">
//检验表单的合法性
function FeedBack() {
	if (document.AddForm.Company.value == "") {
		alert("\公司简介不能为空!");
		document.AddForm.Company.focus();
	}
	else {
        return true;
    }
    return false;
}
</script>
<script language="javascript">
function AddPhoto() {
	popupWin = window.open('Oper.asp?Oper=AddPhoto','','width=300,height=150,scrollbars=no')
}
</script>
</head>

<body leftMargin="0" topMargin="2">
<!--#Include file="Common/inc_Top.asp"-->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="105" valign="top" style="border-left: 1px solid rgb(0,0,0); border-right: 1px solid rgb(0,0,0)" class="bottom"><br>
	<!--#Include file="Common/Inc_Button.asp"-->
    </td>
    <td valign="top" style="border-right: 1px solid rgb(0,0,0)" align="center" class="banma2">
        <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height="50">当前位置:<a href="Main.asp">管理首页</a> -&gt; 公司简介</td>
          </tr>
        </table>
<%
if UCase(Request.Form("Oper")) = "ABOUTUS" then
	Dim rdsUpdateCompany
	Dim strFileName
	
	strFileName = Request.Form("FileName")
	if strFileName <> Request.Form("PhotoName") then
		Dim fso
		
		set fso = CreateObject("Scripting.FileSystemObject")
		fso.DeleteFile Server.MapPath(strUploadNewsPhotoUrl & strFileName)
		set fso = nothing
	end if
	
	set rdsUpdateCompany = Server.CreateObject("ADODB.Recordset")
	rdsUpdateCompany.Open "Dat_Company",Conn,3,3
	
	rdsUpdateCompany("Company") = Request.Form("Company")
	rdsUpdateCompany("PhotoName") = Request.Form("PhotoName")
	rdsUpdateCompany("strFormat") = Request.Form("strFormat")
	rdsUpdateCompany("CreateTime") = now()
	rdsUpdateCompany.Update
	rdsUpdateCompany.Close
	set rdsUpdateCompany = nothing
	
	strMsgTitle = "公司简介更新"
	strError = False
	strMsg	= "公司简介更新成功..."
	strGoFile = "AboutUs.asp"
	Call ShowMessage()	
else
	Dim rdsCompany
	Dim sqlCompany

	set rdsCompany = Server.CreateObject("ADODB.Recordset")
	sqlCompany = "Select * From Dat_Company"
	rdsCompany.Open sqlCompany,Conn,1,1
	if not rdsCompany.EOF then
%>        
	    <table border="0" width="96%" cellspacing="0" cellpadding="0" align="center">
	      <tr>
	        <td width="100%" class="booktable">
			<table border="0" width="100%" cellspacing="1" cellpadding="2">
			  <form method="post" action="AboutUs.asp" name="AddForm" OnSubmit="return FeedBack()">
			  <input type="hidden" name="Oper" value="AboutUs">
			  <input type="hidden" name="FileName" value="<% = rdsCompany("PhotoName")%>">
			  <tr>
			    <td width="100%" height="30" class="bottom" colspan="2" align="center">公 司 简 介</td>
			  </tr>
			  <tr>
			    <td width="20%" height="25" class="banma1" align="right">公司简介:</td>
			    <td width="80%" height="25" class="banma2" align="center" valign="top">
				<table border="0" width="97%" cellspacing="0" cellpadding="0">
				  <tr>
				    <td width="100%"><textarea rows="10" name="Company" cols="72" class="face"><% = rdsCompany("Company")%></textarea></td>
				  </tr>
				</table>			    
			    </td>
			  </tr>
			  <tr>
			    <td height="25" class="banma1" align="right">相关图片:</td>
			    <td height="25" class="banma2">&nbsp;<input type="text" name="PhotoName" size="25" class="face" value="<% = rdsCompany("PhotoName")%>" readonly="ture"> <a href="javascript:AddPhoto()"><img border="0" src="<% = strImageUrl%>addpic.gif" align="absmiddle"><font color="#FF0000">添加</font></a>&nbsp;&nbsp;(只允许上传.gif、.jpg格式)</td>
			  </tr>
			  <tr>
			    <td height="25" align="right" class="banma1">内容格式:</td>
			    <td height="25" class="banma2">&nbsp;<input type="radio" value="NOHTML" name="strFormat" <%if rdsCompany("strFormat") = "NOHTML" then Response.Write "checked"%>> 纯文本&nbsp;&nbsp;&nbsp;<input type="radio" value="HTML" name="strFormat" <%if rdsCompany("strFormat") = "HTML" then Response.Write "checked"%>> HTML代码</td>
			  </tr>
			  <tr>
			    <td height="25" class="banma1" align="right">更新时间:</td>
			    <td height="25" class="banma2">&nbsp;<input type="text" name="CreateTime" size="25" class="face" value="<% = rdsCompany("CreateTime")%>" readonly="ture"> (上次系统更新时间)</td>
			  </tr>
			  <tr>
			    <td height="25" class="banma1" align="right"></td>
			    <td height="25" class="banma2">&nbsp;<input type="submit" value="更 新" name="submit" class="button">&nbsp;&nbsp;&nbsp;<input type="reset" value="重 置" name="reset" class="button"></td>
			  </tr>
			  </form>
			</table>			
	      </td>
		</tr>
	  </table>
<%
	end if
	rdsCompany.Close
	set rdsCompany  = nothing
end if
%>	  
      <br>
    </td>
  </tr>
</table>
<!--#Include file="Common/Inc_Bottom.asp"-->
</body>
</html>

⌨️ 快捷键说明

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