-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCiCoNigdy.php
52 lines (42 loc) · 1.19 KB
/
CiCoNigdy.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
<?php
require 'auth.php';
if (isset($_SESSION['TOTP']) && $_SESSION['TOTP']='JW') {
?>
<?php
require "ConnectToDB.php";
$kwerenda_CiCoNigdy = "call CiCoNigdy ($id_uzytkownika);";
$wynik_CiCoNigdy=mysqli_query($link, $kwerenda_CiCoNigdy); ?>
<!DOCTYPE html>
<html lang="pl">
<head>
<title>Ci co nigdy</title>
<?php require "czesci/head";?>
</head>
<body>
<?php require "czesci/navbar_glowny";?>
<div class="table-responsive">
<table class="table table-dark text-center">
<thead>
<tr>
<th>Lp.</th>
<th>Kto</th>
</tr>
</thead>
<tbody>
<?php
$i =1;
while ($komorka_CiCoNigdy = mysqli_fetch_array($wynik_CiCoNigdy)) {
echo "<tr>";
echo "<td><b>" . $i++ . "</b></td>";
echo "<td><a href='InfoOsoba.php?id_osoby=".$komorka_CiCoNigdy['id_osoby']."'>".$komorka_CiCoNigdy['kto']."</a></td>";
echo "</tr>";
} ?>
</tbody>
</table>
</div>
</body>
</html>
<?php
} else {
header("refresh:0;url=Logowanie.php?skad=Sprawozdania.php");
}?>