saimod mod lib texts
This commit is contained in:
parent
1c134a14dd
commit
203b5b20b1
@ -844,6 +844,7 @@
|
||||
INSERT INTO `system_text` (`id`, `lang`, `text`, `author`, `author_edit`, `time_create`, `time_edit`) VALUES ('table_class', 'enUS', 'Class', 2, 2, '2015-04-18 14:42:56', '2015-04-18 14:42:56');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_class', 'sai_log');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_class', 'sai_todo');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_class', 'sai_mod');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_class', 'sai_security');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_class', 'table');
|
||||
|
||||
@ -1134,6 +1135,20 @@
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_done', 'sai_todo');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_done', 'table');
|
||||
|
||||
DELETE FROM `system_text` WHERE id = 'table_version';
|
||||
DELETE FROM `system_text_tag` WHERE id = 'table_version';
|
||||
INSERT INTO `system_text` (`id`, `lang`, `text`, `author`, `author_edit`, `time_create`, `time_edit`) VALUES ('table_version', 'deDE', 'Version', 2, 2, '2015-04-23 01:58:25', '2015-04-23 01:58:25');
|
||||
INSERT INTO `system_text` (`id`, `lang`, `text`, `author`, `author_edit`, `time_create`, `time_edit`) VALUES ('table_version', 'enUS', 'Version', 2, 2, '2015-04-18 13:56:53', '2015-04-18 13:56:53');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_version', 'sai_mod');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_version', 'table');
|
||||
|
||||
DELETE FROM `system_text` WHERE id = 'table_interface';
|
||||
DELETE FROM `system_text_tag` WHERE id = 'table_interface';
|
||||
INSERT INTO `system_text` (`id`, `lang`, `text`, `author`, `author_edit`, `time_create`, `time_edit`) VALUES ('table_interface', 'deDE', 'Schnittstelle', 2, 2, '2015-04-23 01:58:25', '2015-04-23 01:58:25');
|
||||
INSERT INTO `system_text` (`id`, `lang`, `text`, `author`, `author_edit`, `time_create`, `time_edit`) VALUES ('table_interface', 'enUS', 'Interface', 2, 2, '2015-04-18 13:56:53', '2015-04-18 13:56:53');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_interface', 'sai_mod');
|
||||
INSERT INTO `system_text_tag` (`id`, `tag`) VALUES ('table_interface', 'table');
|
||||
|
||||
-- Time
|
||||
|
||||
DELETE FROM `system_text` WHERE id = 'time_ago';
|
||||
|
||||
@ -37,21 +37,22 @@ class saimod_sys_mod extends \SYSTEM\SAI\SaiModule {
|
||||
}
|
||||
|
||||
public static function sai_mod__SYSTEM_SAI_saimod_sys_mod_action_lib(){
|
||||
$table = '';
|
||||
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\DBD\system_text::TAG_SAI_MOD);
|
||||
$vars['entries'] = '';
|
||||
$libs = \LIB\lib_controll::all();
|
||||
foreach($libs as $lib){
|
||||
$vars = array();
|
||||
$vars['lib'] = $lib;
|
||||
$vars['version'] = \call_user_func($lib.'::version');
|
||||
$vars2 = array();
|
||||
$vars2['lib'] = $lib;
|
||||
$vars2['version'] = \call_user_func($lib.'::version');
|
||||
$parents = \class_parents($lib);
|
||||
$vars['interface'] = (\array_search('LIB\lib_php', $parents) ? 'php, ' : '').
|
||||
$vars2['interface'] = (\array_search('LIB\lib_php', $parents) ? 'php, ' : '').
|
||||
(\array_search('LIB\lib_js', $parents) ? 'js, ' : '').
|
||||
(\array_search('LIB\lib_css', $parents) ? 'css, ' : '').
|
||||
(\array_search('LIB\lib_jscss', $parents) ? 'js, css, ' : '');
|
||||
$vars['interface'] = \substr($vars['interface'],0,-2);
|
||||
$table .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_mod/tpl/lib_tr.tpl'),$vars);
|
||||
$vars2['interface'] = \substr($vars2['interface'],0,-2);
|
||||
$vars['entries'] .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_mod/tpl/lib_tr.tpl'),$vars2);
|
||||
}
|
||||
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_mod/tpl/lib_table.tpl'),array('entries' => $table));
|
||||
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_mod/tpl/lib_table.tpl'),$vars);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user