?? contact.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">
</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> -> 聯系方式</td>
</tr>
</table>
<%
if UCase(Request.Form("Oper")) = "CONTACT" then
Dim rdsUpdateContact
set rdsUpdateContact = Server.CreateObject("ADODB.Recordset")
rdsUpdateContact.Open "Dat_Company",Conn,3,3
rdsUpdateContact("CompanyName") = Request.Form("CompanyName")
rdsUpdateContact("ContactMan") = Request.Form("ContactMan")
rdsUpdateContact("Tel") = Request.Form("Tel")
rdsUpdateContact("Fax") = Request.Form("Fax")
rdsUpdateContact("Email") = Request.Form("Email")
rdsUpdateContact("QQ") = Request.Form("QQ")
rdsUpdateContact("MSN") = Request.Form("MSN")
rdsUpdateContact("Mobile") = Request.Form("Mobile")
rdsUpdateContact("Add") = Request.Form("Add")
rdsUpdateContact("Postalcode") = Request.Form("Postalcode")
rdsUpdateContact("Homepage") = Request.Form("Homepage")
rdsUpdateContact("UpdateTime") = now()
rdsUpdateContact.Update
rdsUpdateContact.Close
set rdsUpdateContact = nothing
strMsgTitle = "公司聯系方式更新"
strError = False
strMsg = "公司聯系方式更新成功..."
strGoFile = "Contact.asp"
Call ShowMessage()
else
Dim rdsContact
Dim sqlCompany
set rdsContact = Server.CreateObject("ADODB.Recordset")
sqlCompany = "Select * From Dat_Company"
rdsContact.Open sqlCompany,Conn,1,1
if not rdsContact.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="" name="ContactForm">
<input type="hidden" name="Oper" value="Contact">
<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"> <input type="text" name="CompanyName" size="40" class="face" value="<% = rdsContact("CompanyName")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">聯系人:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="ContactMan" size="40" class="face" value="<% = rdsContact("ContactMan")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">電話:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Tel" size="40" class="face" value="<% = rdsContact("Tel")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">傳真:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Fax" size="40" class="face" value="<% = rdsContact("Fax")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">E-Mail:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Email" size="40" class="face" value="<% = rdsContact("Email")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">QQ:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="QQ" size="40" class="face" value="<% = rdsContact("QQ")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">MSN:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="MSN" size="40" class="face" value="<% = rdsContact("MSN")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">Mobile:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Mobile" size="40" class="face" value="<% = rdsContact("Mobile")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">地址:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Add" size="40" class="face" value="<% = rdsContact("Add")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">郵編:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Postalcode" size="40" class="face" value="<% = rdsContact("Postalcode")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">網站:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Homepage" size="40" class="face" value="<% = rdsContact("Homepage")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right">更新時間:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="UpdateTime" size="40" class="face" value="<% = rdsContact("UpdateTime")%>" readonly="ture"> (上次系統更新時間)</td>
</tr>
<tr>
<td width="20%" height="25" class="banma1" align="right"></td>
<td width="80%" 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
rdsContact.Close
set rdsContact = 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 + -