sql delete replaced by delete flag
log list (simple), log categories
minor bug fixes in css
This commit is contained in:
Ricsi
2016-12-30 18:00:05 +01:00
parent 664097a976
commit 5a78b09a38
39 changed files with 557 additions and 92 deletions

23
_include/include_log.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
if ($this->is_id()) {
# LOG DEATAILS
}
else {
# LOG LIST
$log_query = "SELECT * FROM log ORDER BY log_date DESC LIMIT 50;";
$log_assoc_array = $sql->assoc_array($log_query);
$log_array = array();
foreach ($log_assoc_array as $log_list_array) {
$current_log = new log();
$current_log->set_log_data_by_id($log_list_array['log_id']);
$log_array[] = $current_log;
}
$smarty->assign('log_array', $log_array);
$smarty->display('log.tpl');
}
?>