?? aboutus.asp
字號(hào):
<!--#Include file="../Common/Inc_DatConn.asp"-->
<!--#Include file="Common/Inc_Config.asp"-->
<!--#Include file="Common/Inc_Function.asp"-->
<%
'┌─ 風(fēng)云ASP在線 ────────────────────────┐
'│ │
'│ 作者:趙振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系統(tǒng)開發(fā),網(wǎng)站制作,提供高質(zhì)量的網(wǎng)絡(luò)產(chǎn)品、技術(shù)和服務(wù)!│
'│ │
'│【版權(quán)聲明】 │
'│ │
'│ 本程序版權(quán)歸坐看風(fēng)云所有,未經(jīng)授權(quán)擅自修改、復(fù)制或散布本程序│
'│ │
'│的部分或全部,將承受嚴(yán)厲的民事和刑事處罰,對(duì)已知的違反者將給予法 │
'│ │
'│律范圍內(nèi)的全面制裁。對(duì)非法使用此程序所造成的一切后果本人概不負(fù)責(zé)!│
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<%if IsTimeOut(Session("strAccount"),Session("strPassWord")) then Response.Redirect "index.asp"%>
<html>
<head>
<title><% = strSiteName%> - 網(wǎng)站后臺(tái)管理系統(tǒng)</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Common/Site.css" type="text/css">
<script language="javascript">
//檢驗(yàn)表單的合法性
function FeedBack() {
if (document.AddForm.Company.value == "") {
alert("\公司簡(jiǎn)介不能為空!");
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">當(dāng)前位置:<a href="Main.asp">管理首頁(yè)</a> -> 公司簡(jiǎn)介</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 = "公司簡(jiǎn)介更新"
strError = False
strMsg = "公司簡(jiǎn)介更新成功..."
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">公 司 簡(jiǎn) 介</td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">公司簡(jiǎn)介:</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">相關(guān)圖片:</td>
<td height="25" class="banma2"> <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> (只允許上傳.gif、.jpg格式)</td>
</tr>
<tr>
<td height="25" align="right" class="banma1">內(nèi)容格式:</td>
<td height="25" class="banma2"> <input type="radio" value="NOHTML" name="strFormat" <%if rdsCompany("strFormat") = "NOHTML" then Response.Write "checked"%>> 純文本 <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">更新時(shí)間:</td>
<td height="25" class="banma2"> <input type="text" name="CreateTime" size="25" class="face" value="<% = rdsCompany("CreateTime")%>" readonly="ture"> (上次系統(tǒng)更新時(shí)間)</td>
</tr>
<tr>
<td height="25" class="banma1" align="right"></td>
<td height="25" class="banma2"> <input type="submit" value="更 新" name="submit" class="button"> <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>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -