diff --git a/sai/modules/saimod_sys_log/saimod_sys_log.php b/sai/modules/saimod_sys_log/saimod_sys_log.php index ec2e7e3..290dca0 100644 --- a/sai/modules/saimod_sys_log/saimod_sys_log.php +++ b/sai/modules/saimod_sys_log/saimod_sys_log.php @@ -306,11 +306,10 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule { } $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\DBD\system_text::TAG_SAI_LOG); $vars['count'] = $count['count']; + $vars['error_filter'] = self::generate_error_filters($filter_); + $vars['active'] = ($filter == '%' ? 'active' : ''); $vars['table'] = $table; - return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl'), - array( 'table' => \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_log/tpl/saimod_sys_log_table.tpl'), $vars), - 'error_filter' => self::generate_error_filters($filter_), - 'active' => $filter == '%' ? 'active' : '')); + return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl'),$vars); } private static function time_elapsed_string($ptime){ diff --git a/sai/modules/saimod_sys_log/tpl/saimod_sys_log_error.tpl b/sai/modules/saimod_sys_log/tpl/saimod_sys_log_error.tpl index c000c34..fe38888 100644 --- a/sai/modules/saimod_sys_log/tpl/saimod_sys_log_error.tpl +++ b/sai/modules/saimod_sys_log/tpl/saimod_sys_log_error.tpl @@ -1,23 +1,23 @@ -

Error ${ID}

+

${basic_error} ${ID}

- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
PropertyValue
ID${ID}
class${class}
code${code}
file${file}
line${line}
trace${trace}
ip${ip}
querytime${querytime}
time${time}
server_name${server_name}
server_port${server_port}
request_uri${request_uri}
url${server_name}:${server_port}${request_uri}
post${post}
http_referer${http_referer}
http_user_agent${http_user_agent}
user${username}
thrown${thrown}
message${message}
${table_property}${table_value}
${table_id}${ID}
${table_class}${class}
${table_code}${code}
${table_file}${file}
${table_line}${line}
${table_trace}${trace}
${table_ip}${ip}
${table_querytime}${querytime}
${table_time}${time}
${table_server_name}${server_name}
${table_server_port}${server_port}
${table_request_uri}${request_uri}
${table_url}${server_name}:${server_port}${request_uri}
${table_post}${post}
${table_http_referer}${http_referer}
${table_http_user_agent}${http_user_agent}
${table_user}${username}
${table_thrown}${thrown}
${table_message}${message}
\ No newline at end of file diff --git a/sai/modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl b/sai/modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl index 205f080..c2654d0 100644 --- a/sai/modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl +++ b/sai/modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl @@ -1,5 +1,21 @@ -
${table}
\ No newline at end of file +
+ ${basic_rows}: ${count} + + + + + + + + + + + + + ${table} +
${time_ago}${table_class}${table_message}${table_file}${table_line}${table_ip}${table_url}${table_user}${table_querytime}
+
\ No newline at end of file diff --git a/sai/modules/saimod_sys_log/tpl/saimod_sys_log_table.tpl b/sai/modules/saimod_sys_log/tpl/saimod_sys_log_table.tpl index 5c7a35e..e69de29 100644 --- a/sai/modules/saimod_sys_log/tpl/saimod_sys_log_table.tpl +++ b/sai/modules/saimod_sys_log/tpl/saimod_sys_log_table.tpl @@ -1,15 +0,0 @@ -Rows: ${count} - - - - - - - - - - - - - ${table} -
time agoclassmessagefilelineipurluserquerytime
\ No newline at end of file