-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.asp
177 lines (167 loc) · 6.25 KB
/
contact.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!--#include file="config/config.asp"-->
<!--#include file="config/function.asp"-->
<!--#include file="config/topweb.asp"-->
<%
DBopen("record/#step.mdb")
call config()
call sendMessage()
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=valueArray(2)%></title>
<meta name="keywords" content="<%=valueArray(5)%>" />
<meta name="description" content="<%=valueArray(6)%>"/>
<link href="css/import.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/jscrollpane1.css" />
<script type="text/javascript" src="script/jquery-1.4.2.min.js"></script>
<!-- the mousewheel plugin -->
<script type="text/javascript" src="script/jquery.mousewheel.js"></script>
<!-- the jScrollPane script -->
<script type="text/javascript" src="script/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="script/scroll-startstop.events.jquery.js"></script>
<script language="javascript" type="text/javascript">
function ckmessage(){
$('.error').html(' 正在发送留言...!');
$('.error').show(300);
if ($('#m_name').val()==''){
$('#m_name').focus();
$('.error').html(' 请输入你的名字!');
return;
}
if ($('#m_contact').val()==''){
$('#m_contact').focus();
$('.error').html(' 请输入你的联系方式!');
return;
}
if ($('#m_title').val()==''){
$('#m_title').focus();
$('.error').html(' 请输入留言标题!');
return;
}
if ($('#m_content').val()==''){
$('#m_content').focus();
$('.error').html(' 请输入留言内容!');
return;
}
$.ajax({type:'POST',
url:'contact.asp?operate=send',
data:'m_name='+escape($('#m_name').val())+'&m_contact='+escape($('#m_contact').val())+'&m_title='+escape($('#m_title').val())+'&m_content='+escape($('#m_content').val()),
success:function(msg){
if(msg=='0'){alert('留言发送成功,请等待审核');window.location='contact.asp';}
else{$('.error').html(' '+msg);$('.error').show();}
}});
}
</script>
<style type="text/css">
.jp-container{
width: 678px;
height: 490px;
position: absolute;
padding: 0px;
font-family: "宋体";
color: #FFF;
margin: 0px;
left: 28px;
top: 34px;
overflow: hidden;
overflow-x:hidden;
overflow-y:auto;
}
.error {
margin: 0px;
padding: 0px;
height: 35px;
width: 100%;
font-family: "微软雅黑";
font-size: 12px;
line-height: 30px;
font-weight: bold;
color: #646C76;
}
.send a {
display: block;
font-family: "微软雅黑";
font-size: 12px;
line-height: 25px;
font-weight: bold;
color: #646C76;
text-decoration: none;
height: 25px;
width: 100%;
text-align: center;
}
.titletxt {
font-family: "宋体";
line-height: 15px;
color: #646C76;
height: 15px;
width: 130px;
border: 1px solid #646C76;
}
.contenttxt {
font-family: "宋体";
font-size: 12px;
line-height: 20px;
color: #646C76;
height: 100px;
width: 190px;
border: 1px solid #646C76;
}
</style>
</head>
<body>
<div id="layout">
<div id="topbody">网站名称:<%=valueArray(1)%> <a href="javascript:viod(0);" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<%=valueArray(4)%>');return false;">设为首页</a><strong>|</strong><a href="javascript:window.external.Addfavorite('<%=valueArray(4)%>')">加入收藏</a></div>
<!--end topbody-->
<div id="mainbody">
<div id="navd">
<div id="logo"><a href="<%=valueArray(4)%>" target="_self"><img src="<%=valueArray(3)%>" width="200" height="100" style="border:0px"/></a></div>
<div id="link"><a href="index.asp">[首页]</a> <a href="aboutme.asp" target="_self">[那些年的我]</a> <a href="mydiary.asp" target="_self">[那些年的日记]</a> <a href="myphoto.asp" target="_self">[那些年的相片]</a> <a href="myvideo.asp" target="_self">[那些年的影像]</a> <a href="contact.asp" target="_self">[联系我]</a> </div></div>
<!--end navd-->
<div id="message-me"><span id="localbg" class="localtion-nav">当前位置:首页->联系我</span>
<span class="titleimg"><img src="images/message-me.png" width="119" height="33" /></span>
<div id="jp-container" class="jp-container">
<%call messageList()%>
</div>
<script language="javascript" src="script/page-scroll.js" type="text/javascript"></script>
<!-- end jp-cntainer-->
</div>
<!-- end Nxn-me -->
<div id="contact-me">
<span class="titleimgr"><img src="images/contact-me.png" width="69" height="33" /></span>
<div id="contact-me-content">
<form action="" method="post">
<ul>
<li>联系地址:<%=valueArray(8)%></li>
<li>联系电话:<%=valueArray(9)%></li>
<li>联系邮箱:<%=valueArray(10)%></li>
<li>QQ交谈:</li>
<li><a target=blank href=tencent://message/?uin=<%=valueArray(11)%>&Site=自己&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:<%=valueArray(11)%>:1 alt="点击这里给我发消息"></a> </li>
<li> </li>
<li><strong>给我留言:</strong></li>
<li>你的姓名:<input name="m_name" type="text" class="titletxt" id="m_name" /></li>
<li>联系方式:<input name="m_contact" type="text" class="titletxt" id="m_contact" /></li>
<li>留言标题:<input name="m_title" type="text" class="titletxt" id="m_title" /></li>
<li>留言内容:</li>
<li><textarea name="m_content" class="contenttxt" id="m_content"></textarea></li>
<li><span class="send"><a href="javascript:void(0);" onclick="ckmessage();">发送留言</a></span></li>
</ul>
<div class="error"> </div>
</form>
</div>
<!--end Hygq-content-->
</div>
<!--end Hygq-->
</div>
<!--end mainbody-->
<div id="footbody">
<span class="copyright">©</span> <%=valueArray(1)%>|<%=valueArray(7)%><br/> |<a href="description.html" target="_blank">网站声明</a>|<a href="contact.asp" target="_blank">联系我</a>|
</div>
<!--end footbody-->
</div>
<!--end layout-->
</body>
</html>
<%DBclose()%>