-
Notifications
You must be signed in to change notification settings - Fork 1
/
verifications.php
executable file
·50 lines (47 loc) · 1.25 KB
/
verifications.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
<?php
require_once './include/page.php';
$page = new Page("verifications");
if($page->hasPermission("verifications", "EDIT")) {
if(isset($_POST["id"])) {
$st = $page->conn->prepare("DELETE FROM negativity_verifications WHERE id = ?");
$st->execute(array($_POST['id']));
$st->closeCursor();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php $page->print_common_head(); ?>
</head>
<body>
<?php
$page->show_topbar();
?>
<div class="page-wrapper">
<?php
$page->show_header();
?>
<div class="content-wrapper">
<div class="container">
<div class="table">
<table>
<?php
$rows = $page->run_query();
if(count($rows) == 0) {
$page->print_no_row();
} else {
foreach ($rows as $row) {
$page->print_row($row);
}
$page->show_page_mover();
}
?>
</table>
</div>
</div>
<?php $page->show_footer(); ?>
</div>
</div>
</body>
</html>