-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocked_sites.php
More file actions
31 lines (25 loc) · 854 Bytes
/
blocked_sites.php
File metadata and controls
31 lines (25 loc) · 854 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
<div id='tbl_menu'>
<a class='button' onclick="sites_add()">Добавить</a>
<a class='button' onclick="sites_apply()">Применить</a>
</div><br>
<?php
include "connect.php";
$table = "<table class='generic' align='center' width='600px'>";
$table.="<thead><tr class='header'>";
$table.="<th>Сайт</th>";
$table.="<th> </th>";
$table.="</tr></thead><tbody>";
$result = mysqli_query($sql_link, "SELECT * FROM blocked_sites ORDER BY `site`");
while ( $sites_array = mysqli_fetch_array($result) )
{
$table.="<tr class='not_header'>";
$table.="<td>".$sites_array['site']."</td>";
$table.="<td align='center'><input type='button' onClick=\"sites_del('".$sites_array['site']."')\" value='Delete'></td>";
$table.="</tr>";
}
$table.="</tbody></table>";
echo "<div id='users_tbl'>";
echo $table;
echo "</div>";
mysqli_close($sql_link);
?>