当前位置: 首页>>代码示例>>PHP>>正文


PHP parse_navbar函数代码示例

本文整理汇总了PHP中parse_navbar函数的典型用法代码示例。如果您正苦于以下问题:PHP parse_navbar函数的具体用法?PHP parse_navbar怎么用?PHP parse_navbar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了parse_navbar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display_app_header

 function display_app_header($_displayNavbar)
 {
     switch ($_GET['menuaction']) {
         case 'felamimail.uipreferences.editSignature':
             $GLOBALS['phpgw']->js->validate_file('jscode', 'listSignatures', 'felamimail');
             #$GLOBALS['phpgw']->js->set_onload('fm_initEditLayout();');
             break;
         case 'felamimail.uipreferences.listAccountData':
         case 'felamimail.uipreferences.editAccountData':
             $GLOBALS['phpgw']->js->validate_file('jscode', 'editAccountData', 'felamimail');
             $GLOBALS['phpgw']->js->set_onload('javascript:initEditAccountData();');
             break;
         case 'felamimail.uipreferences.listSignatures':
             $GLOBALS['phpgw']->js->validate_file('jscode', 'listSignatures', 'felamimail');
             #$GLOBALS['phpgw']->js->set_onload('javascript:initEditAccountData();');
             break;
         case 'felamimail.uipreferences.listFolder':
         case 'felamimail.uipreferences.addACL':
             $GLOBALS['phpgw']->js->validate_file('tabs', 'tabs', 'felamimail');
             $GLOBALS['phpgw']->js->validate_file('dhtmlxtree', 'js/dhtmlXCommon', 'felamimail');
             $GLOBALS['phpgw']->js->validate_file('dhtmlxtree', 'js/dhtmlXTree', 'felamimail');
             $GLOBALS['phpgw']->js->validate_file('jscode', 'listFolder', 'felamimail');
             $GLOBALS['phpgw']->js->set_onload('javascript:initAll();');
             break;
     }
     $GLOBALS['phpgw_info']['flags']['include_xajax'] = True;
     $GLOBALS['phpgw']->common->phpgw_header();
     if ($_displayNavbar == TRUE) {
         echo parse_navbar();
     }
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:31,代码来源:class.uipreferences.inc.php

示例2: display_app_header

 function display_app_header()
 {
     $GLOBALS['phpgw']->js->validate_file('jscode', 'editUserdata', 'emailadmin');
     $GLOBALS['phpgw_info']['flags']['include_xajax'] = True;
     $GLOBALS['phpgw']->common->egw_header();
     echo parse_navbar();
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:7,代码来源:class.uiuserdata.inc.php

示例3: acllist

 function acllist()
 {
     if (!$GLOBALS['phpgw']->acl->check('run', 1, 'admin')) {
         $this->deny();
     }
     if ($_POST['btnDone']) {
         $GLOBALS['phpgw']->redirect_link('/admin/index.php');
     }
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
     if ($_POST['btnSave']) {
         foreach ($_POST['catids'] as $cat_id) {
             $this->bo->set_rights($cat_id, $_POST['inputread'][$cat_id], $_POST['inputwrite'][$cat_id]);
         }
     }
     $GLOBALS['phpgw']->template->set_file('acl', 'acl.tpl');
     $GLOBALS['phpgw']->template->set_block('acl', 'cat_list', 'Cblock');
     $GLOBALS['phpgw']->template->set_var(array('title' => $GLOBALS['phpgw_info']['apps']['news_admin']['title'] . ' - ' . lang('Configure Access Permissions'), 'lang_search' => lang('Search'), 'lang_save' => lang('Save'), 'lang_done' => lang('Done'), 'lang_read' => lang('Read permissions'), 'lang_write' => lang('Write permissions'), 'lang_implies' => lang('implies read permission')));
     $left = $this->nextmatchs->left('/index.php', $this->start, $this->bo->catbo->total_records, 'menuaction=news_admin.uiacl.acllist');
     $right = $this->nextmatchs->right('/index.php', $this->start, $this->bo->catbo->total_records, 'menuaction=news_admin.uiacl.acllist');
     $GLOBALS['phpgw']->template->set_var(array('left' => $left, 'right' => $right, 'lang_showing' => $this->nextmatchs->show_hits($this->bo->catbo->total_records, $this->start), 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 'sort_cat' => $this->nextmatchs->show_sort_order($this->sort, 'cat_name', 'cat_name', '/index.php', lang('Category'), '&menuaction=news_admin.uiacl.acllist'), 'query' => $this->query));
     @reset($this->bo->cats);
     while (list(, $cat) = @each($this->bo->cats)) {
         $this->rights = $this->bo->get_rights($cat['id']);
         $tr_color = $this->nextmatchs->alternate_row_color($tr_color);
         $GLOBALS['phpgw']->template->set_var(array('tr_color' => $tr_color, 'catname' => $cat['name'], 'catid' => $cat['id'], 'read' => $this->selectlist(PHPGW_ACL_READ), 'write' => $this->selectlist(PHPGW_ACL_ADD)));
         $GLOBALS['phpgw']->template->parse('Cblock', 'cat_list', True);
     }
     $GLOBALS['phpgw']->template->pfp('out', 'acl', True);
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:30,代码来源:class.uiacl.inc.php

示例4: import

 function import()
 {
     $url = $this->config->config_data['manual_update_url'];
     $from = explode('/', $url);
     $from = count($from) > 2 ? $from[2] : $url;
     $langs = implode(',', array_keys($GLOBALS['phpgw']->translation->get_installed_langs()));
     if ($langs) {
         $url .= (strstr($url, '?') === False ? '?' : '&') . 'lang=' . $langs;
     }
     // only do an incremental update if the langs are unchanged and we already did an update
     if ($langs == $this->config->config_data['manual_langs'] && $this->config->config_data['manual_updated']) {
         $url .= (strstr($url, '?') === False ? '?' : '&') . 'modified=' . (int) $this->config->config_data['manual_updated'];
     }
     $GLOBALS['phpgw_info']['flags']['app_header'] = lang('manual') . ' - ' . lang('download');
     $GLOBALS['phpgw']->common->phpgw_header();
     parse_navbar();
     echo str_pad('<h3>' . lang('Starting import from %1, this might take several minutes (specialy if you start it the first time) ...', '<a href="' . $url . '" target="_blank">' . $from . '</a>') . "</h3>\n", 4096);
     // dirty hack to flushes the buffer;
     @set_time_limit(0);
     $status = xmlwiki::import($url, True);
     $this->config->config_data['manual_updated'] = $status['meta']['exported'];
     $this->config->config_data['manual_langs'] = $langs;
     $this->config->save_repository();
     echo '<h3>' . lang('%1 manual page(s) added or updated', count($status['imported'])) . "</h3>\n";
     $GLOBALS['phpgw']->common->phpgw_footer();
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:26,代码来源:class.uimanualadmin.inc.php

示例5: display_headers

 function display_headers($extras = '')
 {
     //$broadcaster=$GLOBALS['phpgw']->acl->get_specific_rights(
     //$GLOBALS['phpgw']->accounts->name2id('Broadcast'),'phpgw_group');
     //$multicaster = $GLOBALS['phpgw']->acl->get_specific_rights(
     //$GLOBALS['phpgw']->accounts->name2id('Multicast'),'phpgw_group');
     $GLOBALS['phpgw']->template->set_file('_header', 'messenger_header.tpl');
     $GLOBALS['phpgw']->template->set_block('_header', 'global_header');
     $GLOBALS['phpgw']->template->set_var('lang_inbox', '<a href="' . $GLOBALS['phpgw']->link('/index.php', 'menuaction=messenger.uimessenger.inbox') . '">' . lang('Inbox') . '</a>');
     $GLOBALS['phpgw']->template->set_var('lang_archive', '<a href="' . $GLOBALS['phpgw']->link('/index.php', 'menuaction=messenger.uimessenger.archive') . '">' . lang('archive') . '</a>');
     $GLOBALS['phpgw']->template->set_var('lang_compose', '<a href="' . $GLOBALS['phpgw']->link('/index.php', 'menuaction=messenger.uimessenger.compose') . '">' . lang('Compose to single-user') . '</a>');
     if ($this->broadcaster || $this->multicaster) {
         $GLOBALS['phpgw']->template->set_var('lang_compose_multiple', '<a href="' . $GLOBALS['phpgw']->link('/index.php', 'menuaction=messenger.uimessenger.compose_multiple') . '">' . lang('Compose to multi-users') . '</a>');
     }
     if ($extras['nextmatchs_left']) {
         $GLOBALS['phpgw']->template->set_var('nextmatchs_left', $extras['nextmatchs_left']);
     }
     if ($extras['nextmatchs_right']) {
         $GLOBALS['phpgw']->template->set_var('nextmatchs_right', $extras['nextmatchs_right']);
     }
     if ($extras['folder_name']) {
         $GLOBALS['phpgw']->template->set_var('lang_folder_name', lang($extras['folder_name']));
     }
     $GLOBALS['phpgw']->template->fp('app_header', 'global_header');
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:27,代码来源:class.uimessenger.inc.php

示例6: edit

 public final function edit()
 {
     if (!$GLOBALS['phpgw']->acl->check('run', 1, 'admin')) {
         $GLOBALS['phpgw']->redirect_link('/admin/index.php');
     }
     $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url'];
     $webserver_url = !empty($webserver_url) ? $webserver_url : '/';
     $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Admin') . ' - ' . lang('Expresso Messenger');
     echo parse_navbar();
     $path_expressoMail = $webserver_url . "/" . $GLOBALS['phpgw_info']['flags']['currentapp'];
     // Get Organizations Ldap
     $organizationsLdap = "<option value='-1'>-- " . lang('Select Organization') . " --</option>";
     if ($orgs = $this->getOrganizations()) {
         foreach ($orgs as $value) {
             $organizationsLdap .= "<option value='" . $value . "'>" . $value . "</option>";
         }
     }
     $current_config = array();
     // Get values
     if ($this->repository->config_data) {
         $current_config = $this->repository->config_data;
     }
     if (isset($current_config['groups_expresso_messenger'])) {
         //Groups Expresso Messenger
         natsort($current_config['groups_expresso_messenger']);
         foreach ($current_config['groups_expresso_messenger'] as $value) {
             $groups = explode(";", $value);
             $groups_expresso_messenger .= "<option value='" . $value . "'>" . $groups[0] . "</option>";
         }
     }
     $GLOBALS['phpgw']->template->set_file(array('expressoMessenger' => 'expressoMessenger.tpl'));
     $GLOBALS['phpgw']->template->set_block('expressoMessenger', 'bodyMessenger');
     $GLOBALS['phpgw']->template->set_var(array('action_url' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=expressoMail.configMessenger.save'), 'lang_add' => lang('Add'), 'lang_cancel' => lang('Cancel'), 'lang_Domain_Jabber' => lang('Domain Jabber'), 'lang_Expresso_Messenger_settings' => lang('Expresso Messenger Settings'), 'lang_enabled_groups' => lang('Enabled groups'), 'lang_groups_ldap' => lang('Groups ldap'), 'lang_organizations' => lang('Organizations'), 'lang_remove' => lang('Remove'), 'lang_save' => lang("Save"), 'lang_URL_for_connecting_via_WebServer' => lang('URL for connecting via WebServer'), 'lang_URL_for_direct_connection' => lang('URL for direct connection'), 'path_expressoMail' => $path_expressoMail, 'value_jabber_url_1' => isset($current_config['jabber_url_1']) ? $current_config['jabber_url_1'] : "", 'value_jabber_url_2' => isset($current_config['jabber_url_2']) ? $current_config['jabber_url_2'] : "", 'value_jabber_domain' => isset($current_config['jabber_domain']) ? $current_config['jabber_domain'] : "", 'value_organizationsLdap' => isset($organizationsLdap) ? $organizationsLdap : "", 'value_groups_expresso_messenger' => isset($groups_expresso_messenger) ? $groups_expresso_messenger : ""));
     $GLOBALS['phpgw']->template->pparse('out', 'bodyMessenger');
 }
开发者ID:cjvaz,项目名称:expressomail,代码行数:35,代码来源:class.configMessenger.inc.php

示例7: header

 function header()
 {
     if (!@is_object($GLOBALS['phpgw']->js)) {
         $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript');
     }
     $GLOBALS['phpgw']->js->validate_file('jscode', 'openwindow', 'admin');
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:9,代码来源:class.uicurrentsessions.inc.php

示例8: StartPage

 function StartPage()
 {
     if (isset($_REQUEST['bNoHeader'])) {
         return;
     }
     global $phpgw;
     $phpgw->common->phpgw_header();
     echo parse_navbar();
 }
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:9,代码来源:class.PagePHPGW.inc.php

示例9: display_app_header

 function display_app_header()
 {
     if (!@is_object($GLOBALS['phpgw']->js)) {
         $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript');
     }
     $GLOBALS['phpgw']->js->validate_file('foldertree', 'foldertree');
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:9,代码来源:class.uipreferences.inc.php

示例10: list_history

 function list_history()
 {
     $account_id = get_var('account_id', array('GET', 'POST'));
     $start = get_var('start', array('POST'), 0);
     $sort = get_var('sort', array('POST'), 0);
     $order = get_var('order', array('POST'), 0);
     $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Admin') . ' - ' . lang('View access log');
     if (!@is_object($GLOBALS['phpgw']->js)) {
         $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript');
     }
     $GLOBALS['phpgw']->js->validate_file('jscode', 'openwindow', 'admin');
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
     $total_records = $this->bo->total($account_id);
     $var = array('th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 'nextmatchs_left' => $this->nextmatchs->left('/index.php', $start, $total_records, '&menuaction=admin.uiaccess_history.list_history&account_id=' . $account_id), 'nextmatchs_right' => $this->nextmatchs->right('/index.php', $start, $total_records, '&menuaction=admin.uiaccess_history.list_history&account_id=' . $account_id), 'showing' => $this->nextmatchs->show_hits($total_records, $start), 'lang_loginid' => lang('LoginID'), 'lang_ip' => lang('IP'), 'lang_login' => lang('Login'), 'lang_logout' => lang('Logout'), 'lang_total' => lang('Total'));
     if ($account_id) {
         $var['link_return_to_view_account'] = '<a href="' . $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'admin.uiaccounts.view', 'account_id' => $account_id)) . '">' . lang('Return to view account') . '</a>';
         $var['lang_last_x_logins'] = lang('Last %1 logins for %2', $total_records, $GLOBALS['phpgw']->common->grab_owner_name($account_id));
     } else {
         $var['lang_last_x_logins'] = lang('Last %1 logins', $total_records);
     }
     $this->template->set_var($var);
     $records = $this->bo->list_history($account_id, $start, $order, $sort);
     while (is_array($records) && (list(, $record) = each($records))) {
         $this->nextmatchs->template_alternate_row_color($this->template);
         $var = array('row_loginid' => $record['loginid'], 'row_ip' => $record['ip'], 'row_li' => $record['li'], 'row_lo' => $record['account_id'] ? $record['lo'] : '<b>' . lang($record['sessionid']) . '</b>', 'row_total' => $record['lo'] ? $record['total'] : '&nbsp;');
         $this->template->set_var($var);
         $this->template->fp('rows_access', 'row', True);
     }
     if (!$total_records && $account_id) {
         $this->nextmatchs->template_alternate_row_color($this->template);
         $this->template->set_var('row_message', lang('No login history exists for this user'));
         $this->template->fp('rows_access', 'row_empty', True);
     }
     $loggedout = $this->bo->return_logged_out($account_id);
     if ($total_records) {
         $percent = round(10000 * ($loggedout / $total_records) / 100);
     } else {
         $percent = '0';
     }
     $var = array('bg_color' => $GLOBALS['phpgw_info']['themes']['bg_color'], 'footer_total' => lang('Total records') . ': ' . $total_records);
     if ($account_id) {
         $var['lang_percent'] = lang('Percent this user has logged out') . ': ' . $percent . '%';
     } else {
         $var['lang_percent'] = lang('Percent of users that logged out') . ': ' . $percent . '%';
     }
     // create the menu on the left, if needed
     $menuClass = CreateObject('admin.uimenuclass');
     $var['rows'] = $menuClass->createHTMLCode('view_account');
     $this->template->set_var($var);
     $this->template->pfp('out', 'list');
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:52,代码来源:class.uiaccess_history.inc.php

示例11: create_header

 public function create_header()
 {
     ob_start();
     $GLOBALS['egw']->common->egw_header();
     parse_navbar();
     $jsVersion = $this->m_tblConfig['JS_VERSION'];
     echo "<link rel='stylesheet' type='text/css' href='" . $GLOBALS['egw']->link('/' . $this->getCurrentApp(false) . '/templates/default/' . $this->m_tblConfig['APP_CSS'] . '/jquery-ui-1.8.16.custom.css') . "' />";
     echo "<link rel='stylesheet' type='text/css' href='" . $GLOBALS['egw']->link('/' . $this->getCurrentApp(false) . '/templates/default/' . $this->m_tblConfig['APP_CSS'] . '/app-custom.css?' . $jsVersion) . "' />";
     echo "<link rel='stylesheet' type='text/css' href='" . $GLOBALS['egw']->link('/' . $this->getCurrentApp(false) . '/templates/default/ui.jqgrid.css') . "' />";
     echo "<link rel='stylesheet' type='text/css' href='" . $GLOBALS['egw']->link('/' . $this->getCurrentApp(false) . '/templates/default/ui.jqgridex.css') . "' />";
     if ($_SESSION[$this->getCurrentApp(false)]['testmode']) {
         echo "<div style='width:100%;text-align:center;color:white;background-color:red;'><strong><blink>WARNING</blink> : Test mode is activated !</strong>\n              <a style='color:white;' href=" . $GLOBALS['egw']->link('/index.php', array('menuaction' => $this->getCurrentApp(false) . '.uietude.startupInterface', 'testmode' => 'false', 'title' => urlencode(lang('testmode')))) . ">Click here to exit test mode</a></div>";
     }
 }
开发者ID:bluedrone,项目名称:ALIX-EDC-SOLUTIONS,代码行数:14,代码来源:class.uietude.inc.php

示例12: draw_form

 function draw_form()
 {
     $this->template->set_file(array('manage_cats_t' => 'categorize_contacts.tpl'));
     $list_widget = $this->lists->get_widget();
     $onsubjs = $this->lists->get_onsubmit_js_string();
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
     $this->template->set_var('action', $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'addressbook.uicategorize_contacts.index')));
     $this->template->set_var('form_name', 'categorize_contacts_form');
     $this->template->set_var('onsubjs', $onsubjs);
     $this->template->set_var('widget_lists', $list_widget);
     $this->template->pfp('out', 'manage_cats_t');
     $GLOBALS['phpgw']->common->phpgw_exit();
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:14,代码来源:class.uicategorize_contacts.inc.php

示例13: vfs

 function vfs()
 {
     $this->vfs_shared();
     $this->basedir = $GLOBALS['phpgw_info']['server']['files_dir'];
     $this->working_id = $GLOBALS['phpgw_info']['user']['account_id'];
     $this->working_lid = $GLOBALS['phpgw']->accounts->id2name($this->working_id);
     $this->now = date('Y-m-d');
     /*
        File/dir attributes, each corresponding to a database field.  Useful for use in loops
        If an attribute was added to the table, add it here and possibly add it to
        set_attributes ()
     
        set_attributes now uses this array().   07-Dec-01 skeeter
     */
     $this->attributes[] = 'deleteable';
     $this->attributes[] = 'content';
     /*
        Decide whether to use any actual filesystem calls (fopen(), fread(),
        unlink(), rmdir(), touch(), etc.).  If not, then we're working completely
        in the database.
     */
     $this->file_actions = $GLOBALS['phpgw_info']['server']['file_store_contents'] == 'filesystem' || !$GLOBALS['phpgw_info']['server']['file_store_contents'];
     // test if the files-dir is inside the document-root, and refuse working if so
     //
     if ($this->file_actions && $this->in_docroot($this->basedir)) {
         $GLOBALS['phpgw']->common->phpgw_header();
         if ($GLOBALS['phpgw_info']['flags']['noheader']) {
             echo parse_navbar();
         }
         echo '<p align="center"><font color="red"><b>' . lang('Path to user and group files HAS TO BE OUTSIDE of the webservers document-root!!!') . "</b></font></p>\n";
         $GLOBALS['phpgw']->common->phpgw_exit();
     }
     /*
        These are stored in the MIME-type field and should normally be ignored.
        Adding a type here will ensure it is normally ignored, but you will have to
        explicitly add it to acl_check (), and to any other SELECT's in this file
     */
     $this->meta_types = array('journal', 'journal-deleted');
     /* We store the linked directories in an array now, so we don't have to make the SQL call again */
     if ($GLOBALS['phpgw_info']['server']['db_type'] == 'mssql' || $GLOBALS['phpgw_info']['server']['db_type'] == 'sybase') {
         $query = $GLOBALS['phpgw']->db->query("SELECT directory, name, link_directory, link_name FROM phpgw_vfs WHERE CONVERT(varchar,link_directory) != '' AND CONVERT(varchar,link_name) != ''" . $this->extra_sql(array('query_type' => VFS_SQL_SELECT)), __LINE__, __FILE__);
     } else {
         $query = $GLOBALS['phpgw']->db->query("SELECT directory, name, link_directory, link_name FROM phpgw_vfs WHERE (link_directory IS NOT NULL or link_directory != '') AND (link_name IS NOT NULL or link_name != '')" . $this->extra_sql(array('query_type' => VFS_SQL_SELECT)), __LINE__, __FILE__);
     }
     $this->linked_dirs = array();
     while ($GLOBALS['phpgw']->db->next_record()) {
         $this->linked_dirs[] = $GLOBALS['phpgw']->db->Record;
     }
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:49,代码来源:class.vfs_sql.inc.php

示例14: init

 /**
  * Show applications user interface.
  */
 function init()
 {
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
     if ($this->error_report) {
         $old = error_reporting(E_ALL);
     }
     if (is_object($this->ipcManager) == false) {
         echo 'ipc_manager not found';
         return false;
     }
     echo '<table width="100%" border="0"><tr><td><pre>';
     $this->run_test();
     echo '</pre></td></tr></table>';
     if ($this->error_report) {
         error_reporting($old);
     }
     $GLOBALS['phpgw']->common->phpgw_footer();
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:22,代码来源:class.ipc_test_suite_ui.inc.php

示例15: edit_log_levels

 public function edit_log_levels()
 {
     if ($GLOBALS['phpgw']->acl->check('error_log_access', 1, 'admin')) {
         $GLOBALS['phpgw']->redirect_link('/index.php');
     }
     // If log_levels have ever been set before, go ahead and set them.
     // There's probably a more correct place to do this.
     if (!isset($GLOBALS['phpgw_info']['server']['log_levels'])) {
         $GLOBALS['phpgw_info']['server']['log_levels'] = array('global_level' => 'E', 'module' => array(), 'user' => array());
     }
     // If they've updated something, save the change.
     $level_type = phpgw::get_var('level_type');
     if ($level_type) {
         $level_key = phpgw::get_var('level_key');
         $new_level = phpgw::get_var($level_type . '_' . $level_key . '_select');
         $this->update_level($level_type, $level_key, $new_level);
     } else {
         $level_key = phpgw::get_var('module_add_name_select');
         if ($level_key) {
             $this->update_level('module', $level_key, phpgw::get_var('module_add_level_select'));
         }
         $level_key = phpgw::get_var('user_add_name_select');
         if ($level_key) {
             $this->update_level('user', $level_key, phpgw::get_var('user_add_level_select'));
         }
     }
     $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Admin') . ' - ' . lang('Edit Log Levels');
     $GLOBALS['phpgw']->common->phpgw_header();
     echo parse_navbar();
     $this->add_modules_list();
     $this->add_users_list();
     $var['lang_set_levels'] = "Set Logging Levels";
     $var['lang_global_level'] = "Global logging level";
     $var['lang_module_level'] = "Module Logging Levels";
     $var['lang_user_level'] = "User Logging Levels";
     $var['global_option'] = $this->create_select_box('global', '', $GLOBALS['phpgw_info']['server']['log_levels']['global_level']);
     $this->template->set_var($var);
     $this->template->pfp('out', 'loglevels');
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:39,代码来源:class.uiloglevels.inc.php


注:本文中的parse_navbar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。