-
Notifications
You must be signed in to change notification settings - Fork 3
/
ad_modify_log.inc.php
39 lines (37 loc) · 1.18 KB
/
ad_modify_log.inc.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
<?php /* adminova stranka - editace zavodu */
if (!defined("__HIDE_TEST__")) exit; /* zamezeni samostatneho vykonani */ ?>
<?
DrawPageTitle('Výpis změn v databázi');
?>
<CENTER>
<?
$sql_query = "SELECT * FROM ".TBL_MODLOG." ORDER BY id DESC";
$vysledek=query_db($sql_query);
if($vysledek != FALSE)
{
$data_tbl = new html_table_mc();
$col = 0;
$data_tbl->set_header_col($col++,'Id',ALIGN_CENTER,0);
$data_tbl->set_header_col($col++,'Čas',ALIGN_CENTER);
$data_tbl->set_header_col($col++,'Akce',ALIGN_CENTER);
$data_tbl->set_header_col($col++,'Tabulka',ALIGN_CENTER);
$data_tbl->set_header_col($col++,'Popis',ALIGN_CENTER);
$data_tbl->set_header_col($col++,'Autor',ALIGN_CENTER);
echo $data_tbl->get_css()."\n";
echo $data_tbl->get_header()."\n";
echo $data_tbl->get_header_row()."\n";
while ($zaznam=mysqli_fetch_array($vysledek))
{
$row = array();
$row[] = $zaznam['id'];
$row[] = TimeStamp2String($zaznam['timestamp']);
$row[] = $zaznam['action'];
$row[] = $zaznam['table'];
$row[] = $zaznam['description'];
$row[] = $zaznam['author'];
echo $data_tbl->get_new_row_arr($row)."\n";
}
echo $data_tbl->get_footer()."\n";
}
?>
</CENTER>