public static function sai_mod__SYSTEM_SAI_saimod_sys_config_action_sai()
 {
     $vars['sai'] = '';
     $vars['sai'] .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_config/tpl/config_tr.tpl'))->SERVERPATH(), array('id' => \SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT, 'name' => '\\SYSTEM\\CONFIG\\config_ids::SYS_SAI_CONFIG_PROJECT', 'value' => \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT)));
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_config/tpl/config_sai.tpl'))->SERVERPATH(), $vars);
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_config/tpl/config_database.tpl'))->SERVERPATH(), $vars);
 }
 public static function lang_menu($endpoint = './api.php')
 {
     $result = '';
     $langs = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS);
     foreach ($langs as $lang) {
         $result .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_langswitcher/tpl/language.tpl'))->SERVERPATH(), array('lang' => $lang, 'endpoint' => $endpoint));
     }
     return $result;
 }
示例#3
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_cache()
 {
     $vars = array();
     $vars['count'] = \SYSTEM\SQL\SYS_SAIMOD_CACHE_COUNT::Q1()['count'];
     $vars['entries'] = '';
     $res = \SYSTEM\SQL\SYS_SAIMOD_CACHE::QQ();
     while ($r = $res->next()) {
         $r['class'] = self::tablerow_class($r['cache']);
         $vars['entries'] .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_cache/tpl/saimod_sys_cache_entry.tpl'))->SERVERPATH(), $r);
     }
     $vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_CACHE));
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_cache/tpl/saimod_sys_cache.tpl'))->SERVERPATH(), $vars);
 }
示例#4
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_files_action_tab($name = 'sys')
 {
     $result = '';
     $cat = \SYSTEM\FILES\files::get($name);
     $i = 0;
     foreach ($cat as $file) {
         $result .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_files/tpl/saimod_sys_files_list_entry.tpl'))->SERVERPATH(), array('i' => $i++, 'cat' => $name, 'name' => $file, 'extension' => substr($file, -3, 3), 'url' => 'api.php?call=files&cat=' . $name . '&id=' . $file));
     }
     $vars['cat'] = $name;
     $vars['content'] = $result;
     $vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_FILES));
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_files/tpl/saimod_sys_files_list.tpl'))->SERVERPATH(), $vars);
 }
示例#5
0
 public function html($_escaped_fragment_ = NULL)
 {
     $vars = array();
     $vars['css'] = self::css();
     $vars['js'] = '';
     if (!$_escaped_fragment_) {
         $vars['js'] = self::js();
     }
     $vars['menu_languages'] = \SYSTEM\SAI\saimod_sys_langswitcher::lang_menu('./sai.php');
     $vars['menu_start'] = self::menu_start();
     $vars['menu_sys'] = self::menu_sys();
     $vars['menu_proj'] = self::menu_proj();
     $vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_DEFAULT), array('project' => \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT), 'project_url' => \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL)));
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('page/tpl/sai.tpl'))->SERVERPATH(), $vars);
 }
示例#6
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_cron()
 {
     $vars['content'] = '';
     $vars['last_visit'] = \SYSTEM\time::time_ago_string(strtotime(\SYSTEM\CRON\cron::last_visit()));
     $res = \SYSTEM\SQL\SYS_SAIMOD_CRON::QQ();
     $i = 0;
     while ($r = $res->next()) {
         $r['selected_0'] = $r['selected_1'] = $r['selected_2'] = $r['selected_3'] = '';
         $r['next'] = date('Y-m-d H:i:s', \SYSTEM\CRON\cron::next($r['class']));
         $r['selected_' . $r['status']] = 'selected';
         $r['i'] = $i++;
         $vars['content'] .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_cron/tpl/list_entry.tpl'))->SERVERPATH(), $r);
     }
     $vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_CRON), \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_TIME));
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_cron/tpl/tabs.tpl'))->SERVERPATH(), $vars);
 }
示例#7
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_git()
 {
     $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_GIT);
     $vars = array_merge($vars, self::getGitInfo());
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_git/tpl/saimod_sys_git.tpl'))->SERVERPATH(), $vars);
 }
示例#8
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_mod()
 {
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_mod/tpl/mods.tpl'))->SERVERPATH(), \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_MOD));
 }
示例#9
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_log()
 {
     $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOG);
     $vars['PICPATH'] = (new \SYSTEM\PSAI('modules/saimod_sys_log/img/'))->WEBPATH(false);
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_log/tpl/saimod_sys_log.tpl'))->SERVERPATH(), $vars);
 }
示例#10
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_text_action_editor($id, $lang)
 {
     $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_TEXT);
     $vars['id'] = $id;
     $vars['lang'] = $lang;
     $vars['content'] = \SYSTEM\PAGE\text::get($id, $lang, false);
     $vars['tags'] = '';
     $tags = \SYSTEM\PAGE\text::id_tags($id);
     foreach ($tags as $tag) {
         $vars['tags'] .= $tag['tag'] . ', ';
     }
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_text/tpl/saimod_sys_text_edit_editor.tpl'))->SERVERPATH(), $vars);
 }
示例#11
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_todo_action_todo($todo)
 {
     $userid = \SYSTEM\SECURITY\Security::getUser()->id;
     $vars = \SYSTEM\SQL\SYS_SAIMOD_TODO_TODO::Q1(array($todo, $userid));
     $vars['trace'] = implode('</br>', array_slice(explode('#', $vars['trace']), 1, -1));
     $vars['display_assign'] = $vars['assignee_id'] != $userid ? '' : 'display: none;';
     $vars['display_deassign'] = $vars['assignee_id'] == $userid ? '' : 'display: none;';
     $vars['assignees'] = '';
     $res = \SYSTEM\SQL\SYS_SAIMOD_TODO_ASSIGNEES::QQ(array($todo, $userid));
     while ($row = $res->next()) {
         $vars['assignees'] .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_todo/tpl/saimod_sys_todo_todo_user_assignee.tpl'))->SERVERPATH(), $row);
     }
     $vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_TODO));
     return $vars[\SYSTEM\SQL\system_todo::FIELD_TYPE] == \SYSTEM\SQL\system_todo::FIELD_TYPE_USER ? \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_todo/tpl/saimod_sys_todo_todo_user.tpl'))->SERVERPATH(), $vars) : \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_todo/tpl/saimod_sys_todo_todo.tpl'))->SERVERPATH(), $vars);
 }
示例#12
0
 public static function sai_mod__system_sai_saimod_sys_api_action_newdialog()
 {
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_api/tpl/new_dialog.tpl'))->SERVERPATH(), \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_API));
 }
示例#13
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_docu_action_cat($cat = 'system')
 {
     $vars = array('iframesrc' => \SYSTEM\DOCU\docu::get($cat)['outpath']->WEBPATH(false));
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_docu/tpl/saimod_sys_docu_iframe.tpl'))->SERVERPATH(), $vars);
 }
示例#14
0
 public static function sai_mod__SYSTEM_SAI_saimod_sys_login_action_registerform()
 {
     $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOGIN);
     return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/register.tpl'))->SERVERPATH(), $vars);
 }