-
Notifications
You must be signed in to change notification settings - Fork 0
/
matchidsearc.php
211 lines (183 loc) · 7.1 KB
/
matchidsearc.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
<?php
include 'connection/connection.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Team #6459 | Scout App</title>
<!-- Favicon -->
<link rel="shortcut icon" href="./img/svg/logo.svg" type="image/x-icon">
<!-- Custom styles -->
<link rel="stylesheet" href="./css/style.min.css">
</head>
<body>
<div class="layer"></div>
<!-- ! Body -->
<a class="skip-link sr-only" href="#skip-target">Skip to content</a>
<div class="page-flex">
<!-- ! Sidebar -->
<aside class="sidebar">
<div class="sidebar-start">
<div class="sidebar-head">
<a href="index.html" class="logo-wrapper" title="Home">
<span class="sr-only">Home</span>
<span class="icon logo" aria-hidden="true"></span>
<div class="logo-text">
<span class="logo-title">Team #6459</span>
<span class="logo-subtitle">Scout App</span>
</div>
</a>
<button class="sidebar-toggle transparent-btn" title="Menu" type="button">
<span class="sr-only">Toggle menu</span>
<span class="icon menu-toggle" aria-hidden="true"></span>
</button>
</div>
<div class="sidebar-body">
<ul class="sidebar-body-menu">
<li>
<a class="active" href="index.html"><span class="icon home" aria-hidden="true"></span>Dashboard</a>
</li>
<li>
<a class="show-cat-btn" href="##">
<span class="icon document" aria-hidden="true"></span>Raporlar
<span class="category__btn transparent-btn" title="Open list">
<span class="sr-only">Open list</span>
<span class="icon arrow-down" aria-hidden="true"></span>
</span>
</a>
<ul class="cat-sub-menu">
<li>
<a href="search.php">Yeni Takım Ara</a>
</li>
<li>
<a href="Rapor.php">Yeni Rapor</a>
</li>
<li>
<a href="cameraphoto.php">Robot Fotoğrafı Çek</a>
</li>
</ul>
</div>
</div>
</aside>
<div class="main-wrapper">
<!-- ! Main nav -->
<nav class="main-nav--bg">
<div class="container main-nav">
<div class="main-nav-end">
<button class="sidebar-toggle transparent-btn" title="Menu" type="button">
<span class="sr-only">Toggle menu</span>
<span class="icon menu-toggle--gray" aria-hidden="true"></span>
</button>
<button class="theme-switcher gray-circle-btn" type="button" title="Switch theme">
<span class="sr-only">Switch theme</span>
<i class="sun-icon" data-feather="sun" aria-hidden="true"></i>
<i class="moon-icon" data-feather="moon" aria-hidden="true"></i>
</button>
</div>
</div>
</nav>
<!-- ! Main -->
<main class="main users chart-page" id="skip-target">
<div class="container">
<h2 class="main-title"> <?php echo $_POST["matchid"]; ?> maçın sonuçları</h2>
<?php
$matchid = $_POST["matchid"];
$sql = "SELECT * FROM data where matchid = '$matchid' ";
$result = $conn->query($sql);
$total = 0;
$count = 0;
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
$count = $count + 1;
$total = $total + $row["highauto"];
?>
<li>
<div class="row">
<div class="col-lg-3">
<article class="white-block">
<div class="top-cat-title">
<h3>Team <?php echo $row["teamid"] ?></h3>
</div>
<ul class="top-cat-list">
<a href="details.php?id=<?php echo $row["id"]; ?>">
<div class="top-cat-list__title">
Toplam Puan <span><?php echo $row["totalpoint"] ?></span>
</div><br>
<div class="top-cat-list__subtitle">
Low Auto <span class="warning"><?php echo $row["lowauto"]; ?></span>
</div><br>
<div class="top-cat-list__subtitle">
Low Teleop <span class="warning"><?php echo $row["lowteleop"]; ?></span>
</div><br>
<div class="top-cat-list__subtitle">
High Auto <span class="warning"><?php echo $row["highauto"]; ?></span>
</div><br>
<div class="top-cat-list__subtitle">
High Teleop <span class="warning"><?php echo $row["highteleop"]; ?></span>
</div><br>
<?php
$Hangar = "";
$Hangar = $row["hangartype"];
if($Hangar == 0){
$Hangar = "Tırmanma Yok";
}
if($Hangar == 1){
$Hangar = "LOW RUNG";
}
if($Hangar == 2){
$Hangar = "MID RUNG";
}
if($Hangar == 3){
$Hangar = "HIGH RUNG";
}
if($Hangar == 4){
$Hangar = "TRAVERSAL RUNG";
}
?>
<div class="top-cat-list__subtitle">
Hangar Type <span class="success"><?php echo $Hangar; ?></span>
</div><br>
<div class="top-cat-list__subtitle">
Penalties <span class="success"><?php echo $row["penalties"]; ?></span>
</div>
<div class="top-cat-list__subtitle">
Notes <span class="success"><?php echo $row["notes"]; ?></span>
</div>
<div class="top-cat-list__subtitle">
Match ID <span class="success"><?php echo $row["matchid"]; ?></span>
</div>
</a>
</ul>
</article>
</div>
</li>
<?php
}
}
?>
</div>
<input type="button" name="" onclick="history.back()" style="background-color: red" class="form-btn primary-default-btn transparent-btn" value="Geri Dön">
</main>
<!-- ! Footer -->
<footer class="footer">
<div class="container footer--flex">
<div class="footer-start">
<p>-Team6459-<a href="##" target="_blank"
rel="noopener noreferrer">#Team 6459</a></p>
</div>
</div>
</footer>
</div>
</div>
<!-- Chart library -->
<script src="./plugins/chart.min.js"></script>
<!-- Icons library -->
<script src="plugins/feather.min.js"></script>
<!-- Custom scripts -->
<script src="js/script.js"></script>
</body>
</html>