本文整理汇总了PHP中parse_navbar函数的典型用法代码示例。如果您正苦于以下问题:PHP parse_navbar函数的具体用法?PHP parse_navbar怎么用?PHP parse_navbar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parse_navbar函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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'] : ' ');
$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
示例16: admin
function admin($message = NULL)
{
unset($GLOBALS['phpgw_info']['flags']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
$p = $GLOBALS['phpgw']->template;
$p->set_root(PHPGW_APP_TPL);
$p->set_file(array('fields' => 'fields.tpl'));
if (!isset($message)) {
$message = phpgw::get_var('message', 'string', 'GET');
}
$var = array('action_url' => $GLOBALS['phpgw']->link($this->base_url, array('menuaction' => 'registration.uimanagefields.submit')), 'message' => $message, 'lang_current_fields' => lang('Current fields:'), 'lang_name_and_shortdesc' => lang('Name (blank unless Text, Textarea, Dropdown, Checkbox; else alphanumeric only)'), 'lang_text' => lang('Text'), 'lang_type' => lang('Type'), 'lang_values_and_shortdesc' => lang('Values (For Dropdown only; comma separated)'), 'lang_required' => lang('Required'), 'lang_remove' => lang('Remove'), 'lang_order' => lang('Order'), 'lang_textarea' => lang('Textarea'), 'lang_dropdown' => lang('Dropdown'), 'lang_checkbox' => lang('Checkbox'), 'lang_email' => lang('Email'), 'lang_first_name' => lang('First Name'), 'lang_last_name' => lang('Last Name'), 'lang_address' => lang('Address'), 'lang_city' => lang('City'), 'lang_state' => lang('State'), 'lang_zip' => lang('ZIP/Postal'), 'lang_country' => lang('Country'), 'lang_gender' => lang('Gender'), 'lang_phone' => lang('Phone'), 'lang_birthday' => lang('Birthday'), 'lang_location' => lang('location'), 'lang_cancel' => lang('Cancel'), 'lang_update_add' => lang('Update/Add'));
$p->set_var($var);
$row_color = $GLOBALS['phpgw']->nextmatches->alternate_row_color($row_color);
$var = array('row_off' => $GLOBALS['phpgw']->nextmatches->alternate_row_color($row_color));
$p->set_var($var);
$row_color = $GLOBALS['phpgw']->nextmatches->alternate_row_color($row_color);
$var = array('row_on' => $GLOBALS['phpgw']->nextmatches->alternate_row_color($row_color));
$p->set_var($var);
$p->set_block('fields', 'info', 'info_list');
$fields = $this->bo->fields;
foreach ($fields as $num => $field_info) {
unset($field_required);
if ($field_info['field_required'] == 'Y') {
$field_required = "checked";
}
$var = array('field_short_name' => $field_info['field_name'], 'field_name' => $field_info['field_name'], 'field_text' => $field_info['field_text'], 'field_type' => $field_info['field_type'], 'field_type_selected_text' => '', 'field_type_selected_textarea' => '', 'field_type_selected_dropdown' => '', 'field_type_selected_checkbox' => '', 'field_type_selected_email' => '', 'field_type_selected_first_name' => '', 'field_type_selected_last_name' => '', 'field_type_selected_address' => '', 'field_type_selected_city' => '', 'field_type_selected_state' => '', 'field_type_selected_zip' => '', 'field_type_selected_country' => '', 'field_type_selected_gender' => '', 'field_type_selected_phone' => '', 'field_type_selected_birthday' => '', 'field_type_selected_location' => '', 'field_type_selected_' . $field_info['field_type'] => 'selected', 'field_values' => $field_info['field_values'], 'field_required' => $field_required, 'field_order' => $field_info['field_order']);
$p->set_var($var);
$p->parse('info_list', 'info', True);
}
/* Add an empty entry line */
$var = array('field_short_name' => 'reg_new', 'field_name' => '', 'field_text' => '', 'field_type' => '', 'field_type_selected_text' => '', 'field_type_selected_textarea' => '', 'field_type_selected_dropdown' => '', 'field_type_selected_checkbox' => '', 'field_type_selected_email' => '', 'field_type_selected_first_name' => '', 'field_type_selected_last_name' => '', 'field_type_selected_address' => '', 'field_type_selected_city' => '', 'field_type_selected_state' => '', 'field_type_selected_zip' => '', 'field_type_selected_country' => '', 'field_type_selected_gender' => '', 'field_type_selected_phone' => '', 'field_type_selected_birthday' => '', 'field_type_selected_location' => '', 'field_values' => '', 'field_required' => '', 'field_remove' => '', 'field_order' => '');
$p->set_var($var);
$p->parse('info_list', 'info', True);
$p->pfp('out', 'fields');
}
开发者ID:HaakonME,项目名称:porticoestate,代码行数:38,代码来源:class.uimanagefields.inc.php
示例17: exportlist
function exportlist()
{
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->saveconfig($cat_id, $_POST['inputconfig'][$cat_id]);
}
}
$GLOBALS['phpgw']->template->set_file('export', 'export.tpl');
$GLOBALS['phpgw']->template->set_block('export', 'cat_list', 'Cblock');
$GLOBALS['phpgw']->template->set_block('cat_list', 'config', 'confblock');
$GLOBALS['phpgw']->template->set_var(array('title' => $GLOBALS['phpgw_info']['apps']['news_admin']['title'] . ' - ' . lang('Configure RSS exports'), 'lang_search' => lang('Search'), 'lang_save' => lang('Save'), 'lang_done' => lang('Done'), 'lang_search' => lang('Search'), 'lang_configuration' => lang('Configuration')));
$left = $this->nextmatchs->left('/index.php', $this->start, $this->bo->catbo->total_records, 'menuaction=news_admin.uiexport.exportlist');
$right = $this->nextmatchs->right('/index.php', $this->start, $this->bo->catbo->total_records, 'menuaction=news_admin.uiexport.exportlist');
$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.uiexport.exportlist'), 'query' => $this->query));
@reset($this->bo->cats);
while (list(, $cat) = @each($this->bo->cats)) {
$config = $this->bo->readconfig($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'], 'lang_type' => lang('Format of export'), 'typeselectlist' => $this->selectlist($this->exporttypes, $config['type']), 'lang_item' => lang('Format for links to items'), 'itemsyntaxselectlist' => $this->selectlist($this->itemsyntaxtypes, $config['itemsyntax'])));
$GLOBALS['phpgw']->template->set_var('confblock', '');
foreach (array('title' => lang('Title'), 'link' => lang('Link'), 'description' => lang('description'), 'img_title' => lang('Image Title'), 'img_url' => lang('Image URL'), 'img_link' => lang('Image Link')) as $setting => $label) {
$GLOBALS['phpgw']->template->set_var(array('setting' => $label, 'value' => '<input size="80" type="text" name="inputconfig[' . $cat['id'] . '][' . $setting . ']" value="' . $config[$setting] . '" />'));
$GLOBALS['phpgw']->template->parse('confblock', 'config', True);
}
$GLOBALS['phpgw']->template->parse('Cblock', 'cat_list', True);
}
$GLOBALS['phpgw']->template->pfp('out', 'export', True);
}
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:36,代码来源:class.uiexport.inc.php
示例18: export
function export()
{
$convert = get_var('convert', 'POST');
$conv_type = get_var('conv_type', 'POST');
$fcat_id = get_var('fcat_id', 'POST');
$download = get_var('download', 'POST');
$tsvfilename = get_var('tsvfilename', 'POST');
if ($convert) {
if ($conv_type == 'none') {
$GLOBALS['phpgw_info']['flags']['noheader'] = False;
$GLOBALS['phpgw_info']['flags']['noheader'] = True;
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
echo lang('<b>No conversion type <none> could be located.</b> Please choose a conversion type from the list');
echo ' <a href="' . $GLOBALS['phpgw']->link('/index.php', 'menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
$GLOBALS['phpgw']->common->phpgw_exit();
}
$buffer = $this->bo->export($conv_type, $fcat_id);
if ($download == 'on' || $conv_type == 'Palm_PDB') {
// filename, default application/octet-stream, length of file, default nocache True
$this->browser->content_header($tsvfilename, 'application/x-octet-stream', strlen($buffer));
echo $buffer;
} else {
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
echo "<pre>\n";
echo $buffer;
echo "\n</pre>\n";
echo '<a href="' . $GLOBALS['phpgw']->link('/index.php', 'menuaction=addressbook.uiXport.export') . '">' . lang('OK') . '</a>';
$GLOBALS['phpgw']->common->phpgw_footer();
}
} else {
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
set_time_limit(0);
$this->template->set_file(array('export' => 'export.tpl'));
$dir_handle = opendir(PHPGW_APP_INC . SEP . 'export');
$i = 0;
$myfilearray = '';
while ($file = readdir($dir_handle)) {
if (substr($file, 0, 1) != '.' && is_file(PHPGW_APP_INC . SEP . 'export' . SEP . $file)) {
$myfilearray[$i] = $file;
$i++;
}
}
closedir($dir_handle);
sort($myfilearray);
for ($i = 0; $i < count($myfilearray); $i++) {
if ($myfilearray[$i] == 'Multiple_VCard') {
$fname = lang('multiple vcard');
} else {
$fname = str_replace('_', ' ', $myfilearray[$i]);
}
$conv .= ' <option value="' . $myfilearray[$i] . '">' . $fname . '</option>' . "\n";
}
$this->template->set_var('lang_none', lang('none'));
$this->template->set_var('lang_cancel', lang('Cancel'));
$this->template->set_var('lang_cat', lang('Select Category'));
$this->template->set_var('lang_export_instructions', lang('Download export file (Uncheck to debug output in browser)'));
$this->template->set_var('lang_select', lang('Select the type of conversion:'));
$this->template->set_var('cat_link', $this->cat_option($this->cat_id, False, False));
$this->template->set_var('cancel_url', $GLOBALS['phpgw']->link('/addressbook/index.php'));
$this->template->set_var('navbar_bg', $GLOBALS['phpgw_info']['theme']['navbar_bg']);
$this->template->set_var('navbar_text', $GLOBALS['phpgw_info']['theme']['navbar_text']);
$this->template->set_var('export_text', lang('Export from Addressbook'));
$this->template->set_var('action_url', $GLOBALS['phpgw']->link('/index.php', 'menuaction=addressbook.uiXport.export'));
$this->template->set_var('filename', lang('Export file name'));
$this->template->set_var('conv', $conv);
$this->template->set_var('debug', lang(''));
$this->template->set_var('download', lang('Submit'));
$this->template->set_var('start', $this->start);
$this->template->set_var('sort', $this->sort);
$this->template->set_var('order', $this->order);
$this->template->set_var('filter', $this->filter);
$this->template->set_var('query', $this->query);
$this->template->set_var('cat_id', $this->cat_id);
$this->template->pparse('out', 'export');
$GLOBALS['phpgw']->common->phpgw_footer();
}
}
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:81,代码来源:class.uiXport.inc.php
示例19: phpgw_header
/**
* Load the phpgw header
*/
public function phpgw_header($navbar = False)
{
// this prevents infinite loops caused by bad code - skwashd jan08
static $called = false;
if ($called) {
return;
}
$called = true;
$tpl_name = $GLOBALS['phpgw_info']['server']['template_set'];
if (!is_dir(PHPGW_INCLUDE_ROOT . "/phpgwapi/templates/{$tpl_name}/") || !is_readable(PHPGW_INCLUDE_ROOT . "/phpgwapi/templates/{$tpl_name}/head.inc.php")) {
$tpl_name = 'simple';
}
require_once PHPGW_INCLUDE_ROOT . "/phpgwapi/templates/{$tpl_name}/head.inc.php";
require_once PHPGW_INCLUDE_ROOT . "/phpgwapi/templates
|
请发表评论