forked from pdinklag/MinecraftStats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview-search.php
More file actions
33 lines (32 loc) · 797 Bytes
/
view-search.php
File metadata and controls
33 lines (32 loc) · 797 Bytes
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
<?php
/**
* Viewing search results.
*
* Included by index.php when $searchResults contains more than one item.
*/
//Load HOF
if(is_file($hofFile)) {
$hof = unserialize(file_get_contents($hofFile));
} else {
$hof = [];
}
?>
<div id="header">
Pesquisa
</div>
<div id="listing-wrapper">
<div class="listing">
<div>
Sua pesquisa por <span id="searchterm"><?php echo(htmlspecialchars($search)); ?></span> achou <?php echo(count($searchResults)); ?> resultados:
</div>
<div id="searchresults-wrapper">
<div id="searchresults">
<?php foreach($searchResults as $uuid): ?>
<div class="searchresult">
<?php echo(createPlayerWidget($uuid, 16)); ?>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>