This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
ie6.html.in
232 lines (218 loc) · 8.46 KB
/
ie6.html.in
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!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=<?php echo $oe; ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="googlebot" content="index,noarchive,nofollow,noodp" />
<meta name="robots" content="index,nofollow,noarchive,noodp" />
<title>虎踞龙蟠搜索<?php if ($q) echo ' | ' . strip_tags($q); ?></title>
<style type="text/css">
/* global */
img { border:none; }
body { font-size: 14px; font-family: tahoma; color: #444; line-height: 140%; }
a { color: #04c; text-decoration: none; }
a:hover { text-decoration: underline; }
.outer { width: 880px; margin: 0 auto; }
#header h1 { font-size: 24px; margin: 0 0 10px 0; }
#header a, #header a:hover { text-decoration: none; color: #444; }
#footer { font-size: 12px; margin-top: 20px; border-top: 1px solid #46a; padding-top: 10px; color: #666; }
#footer a { color: #666; text-decoration: underline; }
/* form */
form#q-form { margin: 0; }
#q-input { overflow: hidden; zoom: 1; clear: both; }
#q-input .text {
float: left; width: 333px;
padding: 0 3px; line-height: 26px;
-moz-border-bottom-colors: none;
-moz-border-image: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: #9A9A9A #CDCDCD #CDCDCD #9A9A9A;
border-style: solid; border-width: 1px;
font: 16px arial; height: 22px;
padding: 4px 7px; vertical-align: top;
background: url("/search/back.png") no-repeat scroll 0 0 transparent;
}
#q-input .button {
float: left; font-size: 14px; margin-left: 10px;
background: url("/search/back.png") repeat scroll 0 -35px #DDDDDD;
border: 0 none; cursor: pointer; height: 32px; padding: 0; width: 95px;
}
#q-input .tips { color: #aaa; font-size: 12px; }
/* result */
.res_div2 { overflow: hidden; zoom: 1; clear: both; margin-top: 10px; }
.res_div2 h4 { font-size: 16px; font-weight: bold; float: left; margin: 0; padding: 0; }
.res_div2 ul { float: left; margin: 0; padding: 0; }
.res_div2 li { float: left; margin: 0 0 0 0; padding: 0; list-style: none; }
#hot-search h4 { margin: 10px 0; float: none; }
#hot-search li { margin-right: 10px; }
#hot-search li small { font-size: 80%; color: #aaa; }
#res-neck { margin-top: 10px; border-bottom: 1px solid #46a; background: #def; font-size: 12px; padding: 5px; }
#res-error { margin: 20px 0; color: red; }
#res-error strong { font-weight: bold; font-size: 120%; }
#res-fixed h4 { font-size: 14px; font-weight: normal; font-style: italic; }
#res-fixed li { margin: 0 5px; }
#res-fixed li a { color: #a00; }
#res-empty { margin-top: 10px; }
#res-pager a { margin: 0 5px; }
#res-pager strong { margin: 0 5px; }
#res-related { padding: 10px; background: #eee; }
#res-related h4 { font-size: 14px; }
#res-related ul { margin-left: 20px; width: 600px; }
#res-related li { width: 120px; padding: 0 5px; }
#res-related li a { text-decoration: underline; font-size: 12px; }
.res-doc { margin-top: 15px; }
.res-doc em { font-style: normal; color: red; }
.res-doc h2 { font-size: 16px; margin: 0; font-weight: normal; }
.res-doc h2 small { font-size: 12px; color: #aaa; }
.res-doc p { font-size: 12px; color: #666; margin: 4px 0; }
.res-doc ul { overflow: hidden; zoom: 1; margin: 0; padding: 0; }
.res-doc li { list-style: none; padding: 0; margin: 0 20px 0 0; float: left; font-size: 12px; color: #666; }
.res-doc li span { border-bottom: 1px dotted #aaa; font-family: arial; color: #444; }
.ui-autocomplete li.ui-menu-item { font-size: 12px; }
</style>
</head>
<!-- search.tpl Sbbs 搜索模板 -->
<body>
<div class="outer">
<!-- page header -->
<div id="header">
<a href="/s"><img src="/search/logo_s.png" alt="虎踞龙蟠搜索" /></a>
</div>
<!-- search form -->
<form id="q-form" method="get">
<div id="q-input">
<input class="text" type="text" name="q" size="40" title="输入任意关键词皆可搜索" value="<?php echo htmlspecialchars($q); ?>" />
<input class="button" type="submit" value=" 搜索! " />
</div>
</form>
<!-- hot search -->
<?php if (count($hot) > 0): ?>
<div id="hot-search" class="res_div2">
<h4>热门搜索</h4>
<ul>
<?php foreach($hot as $word => $freq): ?>
<li><a href="<?php echo $_SERVER['SCRIPT_NAME'] . '?q=' . urlencode($word); ?>"><?php echo $word; ?></a><small>(<?php echo $freq; ?>)</small></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<!-- begin search result -->
<?php if (!empty($q)): ?>
<!-- neck bar -->
<div id="res-neck">
大约有 <strong><?php echo number_format($count); ?></strong> 项符合查询结果,
库内数据总量为 <strong><?php echo number_format($total); ?></strong> 项。
(搜索耗时:<?php printf('%.4f', $search_cost); ?>秒)
</div>
<!-- error -->
<?php if (!empty($error)): ?>
<div id="res-error"><strong>错误:</strong><?php echo $error; ?></div>
<?php endif; ?>
<!-- fixed query -->
<?php if (count($corrected) > 0): ?>
<div id="res-fixed" class="res_div2">
<h4>您是不是要找:</h4>
<ul>
<?php foreach ($corrected as $word): ?>
<li><a href="<?php echo $_SERVER['SCRIPT_NAME'] . '?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<!-- empty result -->
<?php if ($count === 0 && empty($error)): ?>
<div id="res-empty">
<p>找不到和 <strong><?php echo htmlspecialchars($q); ?></strong> 相符的内容或信息。建议您:</p>
<ul>
<li>请检查输入字词有无错误。</li>
<li>请换用另外的查询字词。</li>
<li>请改用较短、较为常见的字词。</li>
</ul>
</div>
<?php endif; ?>
<!-- result doc list -->
<div id="res-list">
<?php foreach ($docs as $doc): ?>
<div class="res-doc">
<h2>
<?php $title = trim($doc->title) ? $search->highlight(htmlentities($doc->title, ENT_COMPAT, GB2312)) : '无标题'; ?>
<?php if ($doc->good): ?>
<a href="/bbsanc.php?path=<?php echo urlencode($doc->path); ?>"><?php echo $title ?></a>
<?php else: ?>
<a href="/bbscon.php?board=<?php echo $doc->board; ?>&id=<?php echo $doc->id; ?>"><?php echo $title ?></a>
<?php endif; ?>
</h2>
<?php try { ?>
<p><?php echo $search->highlight(htmlentities($doc->content, ENT_COMPAT, 'GB2312')); ?></p>
<?php } catch (Exception $e) { ?>
<p><?php echo '索引中有无效文章内容,请报告技术站务'; ?></p>
<?php } ?>
<ul>
<li>日期 <span><?php echo format_time($doc->time); ?></span></li>
<li>版面 <span><a href="/bbsdoc.php?board=<?php echo $doc->board; ?>"><?php echo $doc->board; ?></a></span></li>
<li>作者 <span><?php echo $doc->author; ?></span></li>
</ul>
</div>
<?php endforeach; ?>
</div>
<!-- pager -->
<?php if (!empty($pager)): ?>
<div id="res-pager" class="res_div2">
<?php echo $pager; ?>
</div>
<?php endif; ?>
<!-- related query -->
<?php if (count($related) > 0): ?>
<div id="res-related" class="res_div2">
<h4>相关搜索</h4>
<ul>
<?php foreach ($related as $word): ?>
<li><a href="<?php echo $_SERVER['SCRIPT_NAME'] . '?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<!-- end search result -->
<?php endif; ?>
<!-- footer -->
<div id="footer">
(C)opyright 2011 - 虎踞龙蟠BBS - 页面处理总时间:<?php printf('%.4f', $total_cost); ?>秒 <br />
Powered by <a href="http://www.xunsearch.com" target="_blank"><?php echo PACKAGE_NAME . '/' . PACKAGE_VERSION; ?></a>
</div>
</div><!-- outer -->
<script type="text/javascript" src="/search/js/libs.js"></script>
<!-- ready script -->
<script language="javascript">
$(function(){
// input tips
$('.text').focus(function(){
if ($(this).val() == $(this).attr('title')) {
$(this).val('').removeClass('tips');
}
}).blur(function(){
if ($(this).val() == '' || $(this).val() == $(this).attr('title')) {
$(this).addClass('tips').val($(this).attr('title'));
}
}).blur().autocomplete('/search/suggest.php', {
width: 458,
selectFirst: false,
scroll: false
}).result(function(event, item) {
$('.text').val(item);
$('#q-form').submit();
});
// submit check
$('#q-form').submit(function(){
var $input = $('.text');
if ($input.val() == $input.attr('title')) {
alert('请先输入关键词');
$input.focus();
return false;
}
});
});
</script>
</body>
</html>