diff --git a/sai/modules/saimod_sys_cache/qq/SYS_SAIMOD_CACHE.php b/sai/modules/saimod_sys_cache/qq/SYS_SAIMOD_CACHE.php
new file mode 100644
index 0000000..e2c6a86
--- /dev/null
+++ b/sai/modules/saimod_sys_cache/qq/SYS_SAIMOD_CACHE.php
@@ -0,0 +1,11 @@
+query('SELECT COUNT(*)as "count" FROM system.cache');
- } else {
- $res = $con->query('SELECT COUNT(*) as count FROM system_cache');
- }
-
- $r = $res->next();
-
- $result = '
System Cache
'.
- 'Entries: '.$r['count'].' showing 100'.
- ''.
- ''.'| '.'ID'.' | '.''.'CacheID'.' | '.''.'Ident'.' | '.''.'Data'.' | '.'
';
-
-
- if(\SYSTEM\system::isSystemDbInfoPG()){
- $res = $con->query('SELECT *, encode(data,\'base64\') FROM system.cache ORDER BY "ID" ASC LIMIT 100;');
- } else {
- $res = $con->query('SELECT * FROM system_cache ORDER BY ID ASC LIMIT 100;');
- }
-
- while($r = $res->next()){
- $result .= ''.'| '.$r['ID'].' | '.''.$r['CacheID'].' | '.''.$r['Ident'].' | '.''.' '.' | '.'
';}
-
- $result .= '
';
-
- return $result;
+ $vars = array();
+ $vars['count'] = \SYSTEM\DBD\SYS_SAIMOD_CACHE_COUNT::Q1()['count'];
+ $vars['entries'] = '';
+ $res = \SYSTEM\DBD\SYS_SAIMOD_CACHE::QQ();
+ while($r = $res->next()){
+ $r['class'] = self::tablerow_class($r['CacheID']);
+ $vars['entries'] .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_cache/tpl/saimod_sys_cache_entry.tpl'), $r);}
+ return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_cache/tpl/saimod_sys_cache.tpl'), $vars);
}
private static function tablerow_class($cacheID){
if($cacheID == 1){
return 'info';}
-
- return 'success';
- }
+ return 'success';}
- //public static function html_li_menu(){return '';}
public static function html_li_menu(){return '';}
public static function right_public(){return false;}
public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
diff --git a/sai/modules/saimod_sys_cache/tpl/saimod_sys_cache.tpl b/sai/modules/saimod_sys_cache/tpl/saimod_sys_cache.tpl
new file mode 100644
index 0000000..5044a08
--- /dev/null
+++ b/sai/modules/saimod_sys_cache/tpl/saimod_sys_cache.tpl
@@ -0,0 +1,11 @@
+System Cache
+Entries: ${count} showing 100
+
+
+ | ID |
+ CacheID |
+ Ident |
+ Data |
+
+ ${entries}
+
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_cache/tpl/saimod_sys_cache_entry.tpl b/sai/modules/saimod_sys_cache/tpl/saimod_sys_cache_entry.tpl
new file mode 100644
index 0000000..e4bf11e
--- /dev/null
+++ b/sai/modules/saimod_sys_cache/tpl/saimod_sys_cache_entry.tpl
@@ -0,0 +1,6 @@
+
+ | ${ID} |
+ ${CacheID} |
+ ${Ident} |
+  |
+
\ No newline at end of file