forked from AquaFlameCMS/AquaFlameCMS_Trinity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_c.php
315 lines (314 loc) · 13 KB
/
search_c.php
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?php
require_once("configs.php");
require("functions/armory_func.php");
$page_cat = "services";
?>
<!DOCTYPE html>
<html lang="en-gb">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<title><?php echo $Ind['Ind2']; ?> - <?php echo $website['title']; ?></title>
<meta content="false" http-equiv="imagetoolbar" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta name="description" content="<?php echo $website['description']; ?>">
<meta name="keywords" content="<?php echo $website['keywords']; ?>">
<link rel="shortcut icon" href="wow/static/local-common/images/favicons/wow.png" type="image/x-icon" />
<link rel="stylesheet" href="wow/static/local-common/css/common.css" />
<link title="World of Warcraft - News" href="feed/newshtml.html" type="application/atom+xml" rel="alternate"/>
<link rel="stylesheet" href="wow/static/css/wow.css" />
<link rel="stylesheet" href="wow/static/local-common/css/cms/search.css" />
<link rel="stylesheet" href="wow/static/css/search.css" />
<script src="wow/static/local-common/js/third-party/jquery-1.4.4.min.js"></script>
<script src="wow/static/local-common/js/core.js"></script>
<script src="wow/static/local-common/js/tooltip.js"></script>
<!--[if IE 6]> <script type="text/javascript">
//<![CDATA[
try { document.execCommand('BackgroundImageCache', false, true) } catch(e) {}
//]]>
</script>
<![endif]-->
</head>
<body class="en-gb search-win">
<div id="wrapper">
<?php include("header.php");
include("functions/search/char.php");
?>
<div id="content">
<div class="content-top">
<div class="content-trail">
<ol class="ui-breadcrumb">
<li>
<a href="index.php" rel="np"><?php echo $website['title']; ?></a>
<span class="breadcrumb-arrow"></span>
</li>
<li>
<a href="community" rel="np"><?php echo $Community['Community'];?></a>
<span class="breadcrumb-arrow"></span>
</li>
<li class="last">
<a href="search" rel="np"><?php echo $Ind['Ind2']; ?></a>
</li>
</ol>
</div>
<div class="content-bot">
<div class="search">
<div class="search-left">
<div class="search-header">
<h2 class="header "><?php echo $Ind['Ind2']; ?></h2>
</div>
<?php
if (!$error){
echo '<ul class="dynamic-menu" id="menu-search">
<li class=""><a href="search.php?search='.$term.'"><span class="arrow">'.$search['summ'].'</span></a></li>';
if ($num_char>0){ echo '<li class="item-active"><a href="search_c.php?search='.$term.'"><span class="arrow">'.$status['chars'].' ('.$num_char.')'.'<span></span></span></a></li>';}
if ($num_guild>0){ echo '<li><a href="search_g.php?search='.$term.'"><span class="arrow">'.$guild['Guilds'].' ('.$num_guild.')'.'<span></span></span></a></li>';}
if ($num_arena>0){ echo '<li><a href="search_a.php?search='.$term.'"><span class="arrow">'.$arena['Teams'].' ('.$num_arena.')'.'<span></span></span></a></li>';}
if ($num_forum>0){ echo '<li><a href="search_f.php?search='.$term.'"><span class="arrow">'.$Forums['Forums'].' ('.$num_forum.')'.'<span></span></span></a></li>';}
echo '</ul>';} ?>
</div>
<div class="search-right">
<div class="search-header">
<form action="<?php echo 'search.php?search='.$term ?>" method="get" class="search-form">
<div>
<input id="search-page-field" type="text" name="search" maxlength="200" tabindex="2" value="" />
<button class="ui-button button1" type="submit"><span><span><?php echo $Ind['Ind2']; ?></span></span></button>
</div>
</form>
</div>
<?php if ($error){echo $no_results; } ?>
<div class="helpers">
<h3 class="subheader ">
<?php if (!$error){echo $search['charResults'].'<span>'.$term.'</span>';} ?>
</h3>
</div>
<!-- Here goes the pagination code. -->
<div class="data-options ">
<div class="option">
<ul class="ui-pagination">
<?php
if (!$error){
pagination($page,$num_pages,$term,'search_c.php',$ChatB['ChatB5'],$search['prev']);}
?>
</ul>
</div>
<?php
if (!$error){
echo $search['Show'].'<strong class="results-start"> '.($start+1).' </strong>-<strong class="results-end"> '.($start+$num_result).'</strong> '.$search['Of'].' <strong class="results-total"> '.($num_char).' </strong>'.$search['Results']; }?>
<span class="clear"><!-- --></span>
</div>
<!-- And here it ends. -->
<?php if (!$error){ echo'
<div class="view-table">
<div class="table ">
<table>
<thead>
<tr>
<th width="15%" class=" first-child"><a href="" class="sort-link" ><span class="arrow">'.$search['Name'].'</span></a></th>
<th width="6%"><a href="" class="sort-link" ><span class="arrow">'.$search['Level'].'</span></a></th>
<th width="6%"><a href="" class="sort-link" ><span class="arrow">'.$search['Race'].'</span></a></th>
<th width="6%"><a href="" class="sort-link" ><span class="arrow">'.$search['Class'].'</span></a></th>
<th width="6%"><a href="" class="sort-link" ><span class="arrow">'.$search['Faction'].'</span></a></th>
<th width="15%"><a href="" class="sort-link" ><span class="arrow">'.$search['Guild'].'</span></a></th>
<th><a href="" class="sort-link" ><span class="arrow">'.$search['Realm'].'</span></a></th>
<th class=" last-child"><a href="" class="sort-link" ><span class="arrow">'.$search['Battlegroup'].'</span></a></th>
</tr>
</thead>
<!-- Here start the list of characters. -->'; //Echo first row of table
if ($num_char>0){
echo '<tbody>';
while ($row = mysql_fetch_array($result)) { //Echo list of characters
echo '<tr class="row1">
<td><a href="" class="item-link color-c9"><span class="icon-frame frame-18"><img src="images/postavatar.jpg" alt="" width="18" height="18" /></span><strong><a href="advanced.php?name='.$row["name"].'">'.$row["name"].'</a></strong></a></td>
<td class="align-center">'.$row["level"].'</td>
<td class="align-center"><span class="icon-frame frame-14 " data-tooltip="'.$row['race'].'"><img src="wow/static/images/icons/race/'.$row['race'].'-'.$row['gender'].'.gif" alt="" width="14" height="14" /></span></td>
<td class="align-center"><span class="icon-frame frame-14 " data-tooltip=""><img src="wow/static/images/icons/class/'.$row["class"].'.gif" alt="" width="14" height="14" /></span></td>
<td class="align-center"><span class="icon-frame frame-14 " data-tooltip=""><img src="wow/static/images/icons/faction/'.translate($row["race"]).'" alt="" width="14" height="14" /></span></td>
<td></td>
<td>'.$name_realm1['realm'].'</td>
<td align="center">-</td>
</tr>';
}
echo '</tbody>';
}
echo'
<!-- Here ends the found character list. -->
</table>
</div>
</div>'; //Close table, that's big echo is for hide everything when no results found
}
?>
<!-- Here goes the pagination code. -->
<div class="data-options ">
<div class="option">
<ul class="ui-pagination">
<?php
if (!$error){
pagination($page,$num_pages,$term,'search_c.php',$ChatB['ChatB5'],$search['prev']);}
?>
</ul>
</div>
<?php
if (!$error){
echo $search['Show'].'<strong class="results-start"> '.($start+1).' </strong>-<strong class="results-end"> '.($start+$num_result).'</strong> '.$search['Of'].' <strong class="results-total"> '.($num_char).' </strong>'.$search['Results'];} ?>
<span class="clear"><!-- --></span>
</div>
<!-- And here it ends. -->
</div>
<span class="clear"><!-- --></span>
</div>
</div>
</div>
</div>
<?php include("footer.php"); ?>
</div>
<script type="text/javascript">
//<![CDATA[
var xsToken = '';
var Msg = {
support: {
ticketNew: 'Ticket {0} was created.',
ticketStatus: 'Ticket {0}’s status changed to {1}.',
ticketOpen: 'Open',
ticketAnswered: 'Answered',
ticketResolved: 'Resolved',
ticketCanceled: 'Cancelled',
ticketArchived: 'Archived',
ticketInfo: 'Need Info',
ticketAll: 'View All Tickets'
},
cms: {
requestError: 'Your request cannot be completed.',
ignoreNot: 'Not ignoring this user',
ignoreAlready: 'Already ignoring this user',
stickyRequested: 'Sticky requested',
stickyHasBeenRequested: 'You have already sent a sticky request for this topic.',
postAdded: 'Post added to tracker',
postRemoved: 'Post removed from tracker',
userAdded: 'User added to tracker',
userRemoved: 'User removed from tracker',
validationError: 'A required field is incomplete',
characterExceed: 'The post body exceeds XXXXXX characters.',
searchFor: "Search for",
searchTags: "Articles tagged:",
characterAjaxError: "You may have become logged out. Please refresh the page and try again.",
ilvl: "Level {0}",
shortQuery: "Search requests must be at least three characters long."
},
bml: {
bold: 'Bold',
italics: 'Italics',
underline: 'Underline',
list: 'Unordered List',
listItem: 'List Item',
quote: 'Quote',
quoteBy: 'Posted by {0}',
unformat: 'Remove Formating',
cleanup: 'Fix Linebreaks',
code: 'Code Blocks',
item: 'WoW Item',
itemPrompt: 'Item ID:',
url: 'URL',
urlPrompt: 'URL Address:'
},
ui: {
submit: 'Submit',
cancel: 'Cancel',
reset: 'Reset',
viewInGallery: 'View in gallery',
loading: 'Loading…',
unexpectedError: 'An error has occurred',
fansiteFind: 'Find this on…',
fansiteFindType: 'Find {0} on…',
fansiteNone: 'No fansites available.'
},
grammar: {
colon: '{0}:',
first: 'First',
last: 'Last'
},
fansite: {
achievement: 'achievement',
character: 'character',
faction: 'faction',
'class': 'class',
object: 'object',
talentcalc: 'talents',
skill: 'profession',
quest: 'quest',
spell: 'spell',
event: 'event',
title: 'title',
arena: 'arena team',
guild: 'guild',
zone: 'zone',
item: 'item',
race: 'race',
npc: 'NPC',
pet: 'pet'
},
search: {
kb: 'Support',
post: 'Forums',
article: 'Blog Articles',
static: 'General Content',
wowcharacter: 'Characters',
wowitem: 'Items',
wowguild: 'Guilds',
wowarenateam: 'Arena Teams',
other: 'Other'
}
};
//]]>
</script>
<script src="wow/static/local-common/js/menu.js"></script>
<script src="wow/static/js/wow.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function(){
Menu.initialize('/data/menu.json');
Search.initialize('/ta/lookup');
});
//]]>
</script>
<script src="wow/static/local-common/js/utility/dynamic-menu.js"></script>
<script src="wow/static/js/character/guild-tabard.js"></script>
<script src="wow/static/js/character/arena-flag.js"></script>
<script type="text/javascript">
//<![CDATA[
Core.load("wow/static/local-common/js/third-party/jquery-ui-1.8.6.custom.min.js");
Core.load("wow/static/local-common/js/search.js");
Core.load("wow/static/local-common/js/login.js", false, function() {
if (typeof Login !== 'undefined') {
Login.embeddedUrl = '<?php echo $website['root'];?>loginframe.php';
}
});
//]]>
</script>
<!--[if lt IE 8]> <script type="text/javascript" src="/wow/static/local-common/js/third-party/jquery.pngFix.pack.js"></script>
<script type="text/javascript">
//<![CDATA[
$('.png-fix').pngFix(); //]]>
</script>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
(function() {
var ga = document.createElement('script');
var src = "../../../ssl.google-analytics.com/ga.js";
if ('http:' == document.location.protocol) {
src = "../../../www.google-analytics.com/ga.js";
}
ga.type = 'text/javascript';
ga.setAttribute('async', 'true');
ga.src = src;
var s = document.getElementsByTagName('script');
s = s[s.length-1];
s.parentNode.insertBefore(ga, s.nextSibling);
})();
//]]>
</script>
</body>
</html>