-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlide.php
87 lines (83 loc) · 3.87 KB
/
lide.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
<?php
require 'start.php';
$users = $usersManager->FindAllActiveUsersOrderByLastNameAsc();
$refereeRanks = $usersManager->FindAllRefereeRanks();
?>
<!DOCTYPE html>
<html>
<head>
<?php include("UNIFIED_head_content.php"); ?>
</head>
<body>
<div class="bodywrapper">
<?php include("UNIFIED_header.php"); ?>
<?php include("UNIFIED_menu.php"); ?>
<div class="scrollable">
<!--PAGE SPECIALIZATION GOES HERE-->
<section class="content lide">
<h1>Registrovaní rozhodčí</h1>
<?php
//UPCOMING TESTING INFO
echo "\r\n";
echo '<!-- auxiliary $users rozhodci type and count for debug purposes -->';
echo "\r\n";
echo "<!-- type: ".gettype($users)." -->";
echo "\r\n";
echo "<!-- cnt: ".count($users)." -->";
echo "\r\n";
?>
<?php
if(count($users)!=0) {
?>
<div id="kraje-box" align="center">
<div id="kraje" class="lide-filter-box">
<span id="raid-all" onclick="RegionPickerChanged(this);"
class="lide-filter-button selected">VŠE</span>
<span id="raid-1" onclick="RegionPickerChanged(this);" class="lide-filter-button">OLK</span>
<span id="raid-2" onclick="RegionPickerChanged(this);" class="lide-filter-button">ZLK</span>
</div>
</div>
<div class="tridy-box" align="center">
<div id="tridy" class="lide-filter-box">
<span id="rrid-all" onclick="RefereeRankPickerChanged(this);"
class="lide-filter-button selected">VŠE</span>
<?php foreach ($refereeRanks as $refereeRank): ?>
<span id="rrid-<?= h($refereeRank->id) ?>" onclick="RefereeRankPickerChanged(this);"
class="lide-filter-button"><?= h($refereeRank->rank_name) ?></span>
<?php endforeach; ?>
</div>
</div>
<div align="center">
<input id="inputText" onkeyup="SearchBarChanged();" type="text" name="search" placeholder="Hledat...">
</div>
<div></div>
<div id="lide">
<?php foreach ($users as $user): ?>
<article class="rozhodci" onclick="location.href='clovek.php?id=<?= $user->id ?>'">
<h1 class="last_name"><?= $user->last_name ?></h1>
<h1 class="first_name"><?= $user->first_name ?></h1>
<h2 class="rrid-<?= $user->referee_rank_id ?>"><?= $usersManager->GetRefereeRank($user->referee_rank_id) ?></h2>
<span class="rrid" style="display: none;"><?= $user->referee_rank_id ?></span>
<h2 class="raid-<?= $clubsManager->GetClubAffiliationToRegion($user->affiliation_club_id) ?>"><?= $regionsManager->GetRegionNameOfClub($clubsManager->GetClubAffiliationToRegion($user->affiliation_club_id)) ?></h2>
<span class="raid"
style="display: none;"><?= $clubsManager->GetClubAffiliationToRegion($user->affiliation_club_id) ?></span>
</article>
<?php endforeach; ?>
</div>
<?php
}
else
{
echo "<p style=\"text-align:center;\">–<span style=\"border: 1px solid black;\"> 0 ROZHODČÍCH V SYSTÉMU </span>–</p>";
}
?>
<div id="nopplfound" style="display:none;">
<p style="text-align:center;">–<span style="border: 1px solid black;"> 0 ROZHODČÍCH ODPOVÍDÁ HLEDÁNÍ </span>–</p>
</div>
</section>
</div>
<!--PAGE SPECIALIZATION FIN-->
<?php include("UNIFIED_footer.php"); ?>
</div>
</body>
</html>