本文整理汇总了PHP中display_section函数的典型用法代码示例。如果您正苦于以下问题:PHP display_section函数的具体用法?PHP display_section怎么用?PHP display_section使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了display_section函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: all_hooks
/**
* hooks to build projectmanager's sidebox-menu plus the admin and preferences sections
*
* @param string/array $args hook args
*/
function all_hooks($args)
{
$appname = 'courseprotocol';
$location = is_array($args) ? $args['location'] : $args;
//echo "<p>ts_admin_prefs_sidebox_hooks::all_hooks(".print_r($args,True).") appname='$appname', location='$location'</p>\n";
if ($location == 'sidebox_menu') {
$file = array();
display_sidebox($appname, $GLOBALS['egw_info']['apps'][$appname]['title'] . ' ' . lang('Menu'), $file);
}
if ($GLOBALS['egw_info']['user']['apps']['preferences'] && $location != 'admin') {
$file = array('View Occurrence' => $GLOBALS['egw']->link('/index.php', 'menuaction=courseprotocol.uicourseprotocol.occindex'));
display_sidebox($appname, lang('Courseprotocol menu'), $file);
$file = array('Grant Access' => $GLOBALS['egw']->link('/index.php', 'menuaction=preferences.uiaclprefs.index&acl_app=' . $appname));
if ($location == 'preferences') {
display_section($appname, $file);
} else {
display_sidebox($appname, lang('Preferences'), $file);
}
}
if ($GLOBALS['egw_info']['user']['apps']['admin'] && $location != 'preferences') {
$file = array('Custom fields' => $GLOBALS['egw']->link('/index.php', 'menuaction=admin.customfields.edit&appname=' . $appname), 'Global Categories' => $GLOBALS['egw']->link('/index.php', array('menuaction' => 'admin.uicategories.index', 'appname' => $appname, 'global_cats' => true)));
if ($location == 'admin') {
display_section($appname, $file);
} else {
display_sidebox($appname, lang('Admin'), $file);
}
}
}
示例2: all_hooks
function all_hooks($args)
{
$appname = 'infolog';
$location = is_array($args) ? $args['location'] : $args;
//echo "<p>admin_prefs_sidebox_hooks::all_hooks(".print_r($args,True).") appname='$appname', location='$location'</p>\n";
if ($location == 'sidebox_menu') {
$file = array('infolog list' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'infolog.uiinfolog.index')), 'add' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'infolog.uiinfolog.edit')));
display_sidebox($appname, $GLOBALS['phpgw_info']['apps']['infolog']['title'] . ' ' . lang('Menu'), $file);
}
if ($GLOBALS['phpgw_info']['user']['apps']['preferences'] && $location != 'admin') {
$file = array('Preferences' => $GLOBALS['phpgw']->link('/preferences/preferences.php', 'appname=' . $appname), 'Grant Access' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=preferences.uiaclprefs.index&acl_app=' . $appname), 'Edit Categories' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True'));
if ($location == 'preferences') {
display_section($appname, $file);
} else {
display_sidebox($appname, lang('Preferences'), $file);
}
}
if ($GLOBALS['phpgw_info']['user']['apps']['admin'] && $location != 'preferences') {
$file = array('Site configuration' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'infolog.uiinfolog.admin')), 'Global Categories' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'admin.uicategories.index', 'appname' => $appname, 'global_cats' => True)), 'Custom fields, typ and status' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'infolog.uicustomfields.edit')), 'CSV-Import' => $GLOBALS['phpgw']->link('/infolog/csv_import.php'));
if ($location == 'admin') {
display_section($appname, $file);
} else {
display_sidebox($appname, lang('Admin'), $file);
}
}
}
示例3: menus
/**
* Show E-Push preferences link in preferences
*
* @param string|array $args
*/
public static function menus($args)
{
$appname = 'activesync';
$location = is_array($args) ? $args['location'] : $args;
if ($location == 'preferences') {
$file = array('Preferences' => egw::link('/index.php', 'menuaction=preferences.uisettings.index&appname=' . $appname));
if ($location == 'preferences') {
display_section($appname, $file);
} else {
display_sidebox($appname, lang('Preferences'), $file);
}
}
}
示例4: section_end
}
/**
*
*/
function section_end()
{
$GLOBALS['phpgw']->template->parse('rows', 'spacer_row', true);
}
/**
*
*
* @param $appname
* @param $file
* @param $file2
*/
function display_section($nav, $items)
{
section_start($nav['text'], $GLOBALS['phpgw']->common->image($nav['image'][0], $nav['image'][1]));
foreach ($items as $item) {
section_item($item['url'], $item['text']);
}
section_end();
}
$menus = execMethod('phpgwapi.menu.get');
foreach ($GLOBALS['phpgw_info']['user']['apps'] as $app => $app_info) {
if (isset($menus['preferences'][$app])) {
display_section($menus['navbar'][$app], $menus['preferences'][$app]);
}
}
$GLOBALS['phpgw']->template->pfp('out', 'list');
$GLOBALS['phpgw']->common->phpgw_footer();
示例5: array
<?php
if (!isset($GLOBALS['phpgw_info'])) {
$GLOBALS['phpgw_info']['flags'] = array('currentapp' => 'expressoMail', 'nonavbar' => true, 'noheader' => true);
}
require_once '../header.inc.php';
// Only Modify the $file and $title variables.....
$title = $appname;
$file = array('Site Configuration' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uiconfig.index&appname=' . $appname));
//Do not modify below this line
display_section($appname, $title, $file);
示例6: display_section
<?php
if (isset($display_section) and count($display_section) > 0) {
?>
<tr>
<td class="secton_block"><?php
if (isset($display_section[0])) {
$section_tag = $display_section[0];
display_section($section_tag);
}
?>
</td>
<td class="horizon_gap"></td>
<td class="secton_block"><?php
if (isset($display_section[1])) {
$section_tag = $display_section[1];
display_section($section_tag);
}
?>
</td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table><!-- #page 2 -->
<?php
}
// end of the loop.
?>
示例7: array
<?php
/**************************************************************************\
* eGroupWare *
* http://www.egroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
// $Id: hook_preferences.inc.php,v 1.8 2004/01/27 19:09:35 reinerj Exp $
// $Source: /cvsroot/egroupware/tts/inc/hook_preferences.inc.php,v $
$values = array('Preferences' => $GLOBALS['phpgw']->link('/preferences/preferences.php', 'appname=tts'), 'Edit Categories' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True'));
display_section('tts', 'Trouble Ticket System', $values);
示例8: array
<?php
/**************************************************************************\
* eGroupWare - Bookmarks *
* http://www.egroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id: hook_preferences.inc.php,v 1.21.2.1 2004/07/21 14:15:28 alpeb Exp $ */
$file = array('Import Bookmarks' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=bookmarks.ui.import'), 'Export Bookmarks' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=bookmarks.ui.export'), 'Grant Access' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=preferences.uiaclprefs.index&acl_app=' . $appname), 'Edit Categories' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True'));
display_section('bookmarks', 'Bookmarks', $file);
示例9: display_section
if (!$GLOBALS['phpgw']->acl->check('applications_access', 1, 'admin')) {
$file['Applications'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uiapplications.get_list');
}
if (!$GLOBALS['phpgw']->acl->check('global_categories_access', 1, 'admin')) {
$file['Global Categories'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uicategories.index');
}
if (!$GLOBALS['phpgw']->acl->check('mainscreen_message_access', 1, 'admin') || !$GLOBALS['phpgw']->acl->check('mainscreen_message_access', 2, 'admin')) {
$file['Change Main Screen Message'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uimainscreen.index');
}
if (!$GLOBALS['phpgw']->acl->check('current_sessions_access', 1, 'admin')) {
$file['View Sessions'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uicurrentsessions.list_sessions');
}
if (!$GLOBALS['phpgw']->acl->check('access_log_access', 1, 'admin')) {
$file['View Access Log'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uiaccess_history.list_history');
}
if (!$GLOBALS['phpgw']->acl->check('error_log_access', 1, 'admin')) {
$file['View Error Log'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uilog.list_log');
}
if (!$GLOBALS['phpgw']->acl->check('applications_access', 16, 'admin')) {
$file['Find and Register all Application Hooks'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uiapplications.register_all_hooks');
}
if (!$GLOBALS['phpgw']->acl->check('asyncservice_access', 1, 'admin')) {
$file['Asynchronous timed services'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uiasyncservice.index');
}
if (!$GLOBALS['phpgw']->acl->check('info_access', 1, 'admin')) {
$file['phpInfo'] = "javascript:openwindow('" . $GLOBALS['phpgw']->link('/admin/phpinfo.php') . "')";
//$GLOBALS['phpgw']->link('/admin/phpinfo.php');
}
/* Do not modify below this line */
display_section('admin', $file);
示例10: menu
function menu($args)
{
display_section('manual', 'manual', array('install or update the manual-pages' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'manual.uimanualadmin.import'))));
}
示例11: array
<?php
/**
* phpGroupWare (http://phpgroupware.org/)
* SyncML interface
*
* @author Johan Gunnarsson <johang@phpgroupware.org>
* @copyright Copyright (c) 2007 Free Software Foundation, Inc.
* @license GNU General Public License 3 or later
* @package syncml
* @version $Id$
*/
$title = 'SyncML interface';
$file = array('Rehash password' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'syncml.uisyncml.rehash')), 'Edit databases' => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 'syncml.uisyncml.listdatabases')));
display_section('syncml', $title, $file);
示例12: display_section
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id: hook_preferences.inc.php,v 1.14 2003/03/28 18:14:08 ralfbecker Exp $ */
if ($GLOBALS['phpgw']->acl->check('changepassword', 1)) {
$file['Change your Password'] = $GLOBALS['phpgw']->link('/preferences/changepassword.php');
}
$file['change your settings'] = $GLOBALS['phpgw']->link('/preferences/preferences.php', 'appname=preferences');
display_section('preferences', $file);
示例13: display_section
<?php
display_section('forum', 'Forum', array('Preferences' => $GLOBALS['phpgw']->link('/preferences/preferences.php', 'appname=forum')));
示例14: array
<?php
$values = array('Global Categories' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=admin.uicategories.index&appname=' . $appname . '&global_cats=True'));
display_section($appname, $appname, $values);