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


PHP display_menu函数代码示例

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


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

示例1: display_header

function display_header($title = FALSE, $status = "")
{
    if (isset($_REQUEST['status'])) {
        $status .= $_REQUEST['status'];
    }
    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

	<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
	  <link rel = "stylesheet" type = "text/css" href = "styles.css" />
	  <link rel = "shortcut icon" href = "favicon.ico" />
	  <title>';
    if ($title) {
        echo 'RPI Ambulance - ' . $title . '</title>';
    } else {
        echo 'RPI Ambulance</title>';
    }
    echo '
	</head>

	<body>';
    display_menu();
    echo '
		<div id = "page_container">
			<div id = "status">' . $status . '</div>';
}
开发者ID:RPIA,项目名称:WebCom,代码行数:28,代码来源:display.php

示例2: display_mainpage

/**
 * Prints a user's mainpage
 */
function display_mainpage()
{
    display_menu();
    print "<div class=\"container2\">";
    display_content();
    print "</div>";
    display_copyright();
    display_footer();
}
开发者ID:kfr2,项目名称:phpmygrades,代码行数:12,代码来源:printlib.php

示例3: display_menu

function display_menu($nodes, $indent = 0)
{
    foreach ($nodes as $node) {
        print str_repeat('&nbsp;', $indent * 4);
        print $node['name'];
        print '<br/>';
        if (isset($node['child'])) {
            display_menu($node['child'], $indent + 1);
        }
    }
}
开发者ID:Shipu,项目名称:MenuTraveling,代码行数:11,代码来源:index.php

示例4: printHeader

function printHeader($my_title = 'PHP CA Server')
{
    print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
    print "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n";
    print "<head>\n";
    print "<script type=\"text/javascript\" src=\"layout/jquery-1.6.4.min.js\"></script>\n";
    print "<script type=\"text/javascript\" src=\"layout/jquery.droppy.js\"></script>\n";
    print "<link rel=\"stylesheet\" href=\"layout/droppy.css\" type=\"text/css\">\n";
    print "<title>" . $my_title . "</title>\n";
    print "</head>\n";
    display_menu();
}
开发者ID:NamingException,项目名称:PHP-Certificate-Authority-Server,代码行数:12,代码来源:functions_layout.php

示例5: check_valid_user

function check_valid_user()
{
    //user logged in
    if (session_is_registered('valid_user_id')) {
        return;
    } else {
        //user tries to log in
        if (!empty($_POST['user']) && !empty($_POST['password'])) {
            $valid_user_id = user_ok($_POST['user'], $_POST['password']);
            switch ($valid_user_id) {
                case false:
                    // something went wrong with the DB
                    $title = 'B³±d bazy danych, spróbuj pó¼niej.';
                    break;
                case -1:
                    //user cannot be logged in
                    $title = 'Nie mogê zalogowaæ u¿ytkownika ' . htmlspecialchars(stripslashes($_POST['user'])) . '!';
                    break;
                default:
                    //everything OK
                    $_SESSION['valid_user_id'] = $valid_user_id;
                    $url = $_SERVER['PHP_SELF'] . (empty($_SERVER['QUERY_STRING']) ? '' : '?' . $_SERVER['QUERY_STRING']);
                    header('location: ' . $url);
                    // reload page
                    exit;
            }
        } else {
            if (!isset($_POST['user']) && !isset($_POST['password'])) {
                $title = 'Zaloguj siê';
            } else {
                $title = '¬le wype³niony formularz! Spróbuj ponownie';
            }
        }
        display_html_header();
        display_document_header(true);
        // true = with setfocus script
        display_menu();
        display_login_form($title);
        display_document_footer();
        exit;
    }
}
开发者ID:exviva,项目名称:flip,代码行数:42,代码来源:auth.php

示例6: session_start

<?php

session_start();
require_once 'lib/flip.php';
check_valid_user();
display_html_header();
display_document_header();
display_menu(true);
if (!isset($_GET['show_closed'])) {
    $_GET['show_closed'] = 0;
}
if (!isset($_GET['show_history'])) {
    $_GET['show_history'] = 0;
}
echo '<table width="90%" valign="top">' . "\n" . '<tr><td align="center" class="naglowek">Moje projekty<hr></td></tr>' . "\n";
$my_projects = get_my_projects($_SESSION['valid_user_id']);
echo '<tr><td>';
if ($my_projects === false) {
    echo 'B³±d bazy danych, spróbuj pó¼niej.';
} else {
    if (empty($my_projects)) {
        echo 'Brak projektów.';
    } else {
        foreach ($my_projects as $project_id) {
            if (project_is_closed($project_id)) {
                display_link_to_project($project_id, 0);
                echo ' (projekt zamkniêty)<br>';
                continue;
            }
            $orgs = get_my_project_orgs($_SESSION['valid_user_id'], $project_id);
            if ($orgs === false) {
开发者ID:exviva,项目名称:flip,代码行数:31,代码来源:index.php

示例7: display_menu

<?php

require_once "global/menu_nabz.php";
$menu = display_menu();
echo $menu;
?>
<h2>Abreuver son lapin</h2>

<table>
	<tr><!-- First line --!>
		<td><!-- First column --!>
		<?php 
display_avatar_name();
display_skill($_SESSION['id_nabz']);
?>
		</td>
		<td id="td_secondcol"><!-- Second line --!>
		<?php 
if ($item_cat != NULL) {
    echo 'Pour abreuver votre lapin vous disposez de :';
} else {
    echo 'Vous ne disposez d\'aucun produit pour abreuver votre lapin :( ';
}
?>
		<?php 
//display each product as in the rabbit store
foreach ($item_cat as $value) {
    $infos_product = infos_product($value);
    echo '<table id=\'table_product_profile\'><tbody><tr>';
    echo '<td>';
    echo '<img src=' . PATH_IMAGE_STORE . $infos_product['product_image'] . '>' . '<br \\>';
开发者ID:picsoung,项目名称:NabzFood,代码行数:31,代码来源:view_water.php

示例8: display_menu

		</li>
		<?php 
}
?>
		<!-- End extension section -->
		<?php 
echo display_menu("forum");
?>
		<?php 
echo display_menu("info");
?>
		<?php 
echo display_menu("irc");
?>
		<?php 
echo display_menu("donate");
?>
	</ul>
	<div style="clear:both"></div>
</div>
        <br /><br /><br /><br /><br /><br /><br /><br />
		<?php 
if (!empty($input_errors)) {
    print_error_box($input_errors);
}
?>
        <br /><br /><br /><br /><br /><br /><br /><br /><br />
        <div id="loginpage">
            <table height="100%" width="100%" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:login.php

示例9: json_encode

			settings_rewrite( $SETTINGS, $DB, $PLUGINS ); 
		}

	}

	cache( $cache_file, json_encode( $rss ), 'RSS' ); 
}
*/
$cache_file = md5('FURASTA_ADMIN_MENU_' . $_SESSION['user']['id']);
if (cache_exists($cache_file, 'USERS')) {
    $menu = json_decode(cache_get($cache_file, 'USERS'));
} else {
    $url = SITE_URL . 'admin/';
    $menu_items = array('menu_overview' => array('url' => $url . 'index.php', 'name' => $Template->e('menu_overview')), 'menu_pages' => array('url' => $url . 'pages.php', 'name' => $Template->e('menu_pages'), 'submenu' => array('menu_edit_pages' => array('name' => $Template->e('menu_edit_pages'), 'url' => $url . 'pages.php?page=list'), 'menu_new_page' => array('name' => $Template->e('menu_new_page'), 'url' => $url . 'pages.php?page=new'), 'menu_trash' => array('name' => $Template->e('menu_trash'), 'url' => $url . 'pages.php?page=trash'))), 'menu_files' => array('url' => $url . 'files.php', 'name' => $Template->e('menu_files')), 'menu_users_groups' => array('name' => $Template->e('menu_users_groups'), 'url' => $url . 'users.php', 'submenu' => array('menu_edit_users' => array('name' => $Template->e('menu_edit_users'), 'url' => $url . 'users.php?page=users'), 'menu_edit_groups' => array('name' => $Template->e('menu_edit_groups'), 'url' => $url . 'users.php?page=groups'))), 'menu_settings' => array('name' => $Template->e('menu_settings'), 'url' => $url . 'settings.php', 'submenu' => array('menu_configuration' => array('name' => $Template->e('menu_configuration'), 'url' => $url . 'settings.php?page=configuration'), 'menu_template' => array('name' => $Template->e('menu_template'), 'url' => $url . 'settings.php?page=template'), 'menu_plugins' => array('name' => $Template->e('menu_plugins'), 'url' => $url . 'settings.php?page=plugins'), 'menu_update' => array('name' => $Template->e('menu_update'), 'url' => $url . 'settings.php?page=update'))));
    $menu_items = $Plugins->adminMenu($menu_items);
    $menu = display_menu($menu_items);
    $menu_items_cache = json_encode($menu);
    cache($cache_file, $menu_items_cache, 'USERS');
}
$Template->add('menu', $menu);
$javascript = '
window.furasta = {
	site : {
		url : "' . SITE_URL . '"
        },
        user : {
                id      : "' . $User->id() . '",
                name    : "' . $User->name() . '",
                email   : "' . $User->email() . '",
        },
	lang : ' . json_encode($Template->lang) . ',
开发者ID:letsdodjango,项目名称:furasta-org,代码行数:31,代码来源:header.php

示例10: display_warning

    case 0:
        display_warning('Wybierz elementy do wyszukiwania!');
        exit;
    case 1:
        $final_condition = $condition['in_questions'];
        break;
    case 2:
        $final_condition = $condition['in_answers'];
        break;
    case 3:
        $final_condition = $condition['in_questions'] . ' or ' . $condition['in_answers'];
        break;
}
display_html_header();
display_document_header();
display_menu();
echo '<table width="90%">' . "\n";
echo '<tr><td align="center" class="naglowek">Pomoc - wyniki wyszukiwania<hr></td></tr>' . "\n";
echo '<tr><td class="naglowek_maly">Szukane wyra¿enie: ' . "'" . htmlspecialchars(stripslashes($_GET['search'])) . "'" . '. Oto rezultaty wyszukiwania:</td></tr>';
$results = help_search($final_condition);
/*	$results[i] = array (	'question_id' 	=> '...',
							'category_id' 	=> '...',
							'label'			=> '...'
						  );
*/
echo '<tr><td>';
if ($results === false) {
    echo "B³±d bazy danych, spróbuj pó¼niej.\n";
} else {
    if (empty($results)) {
        echo "Nic nie znaleziono.\n";
开发者ID:exviva,项目名称:flip,代码行数:31,代码来源:search.php

示例11: reset_menu

if ('reset' == $_GET['action']) {
    reset_menu();
    compileMenus();
    header('location:' . $_SERVER['PHP_SELF']);
}
TopCodeAdmin();
ContentBlockHead("Member Menu");
// Get a list of all fields.
$query_str = "SELECT * FROM `MemberMenu` ORDER BY `MenuOrder` ASC";
$res = db_res($query_str);
if ($_GET['action'] == 'upload') {
    display_form((int) $_GET['ID']);
} else {
    echo "<p class=text><a href=\"{$_SERVER['PHP_SELF']}?action=upload\">Add new item</a></p>\n";
    echo "<p class=text><a href=\"{$_SERVER['PHP_SELF']}?action=reset\">Reset items</a></p>\n";
    display_menu($res);
}
ContentBlockFoot();
BottomCode();
//display all current menu items
function display_menu($res)
{
    ?>
	<table width="590" border="1" class="profile_fields">
			<tr class="section">
				<th>Name</th>
				<th>Link</th>
				<th>Group</th>
				<th colspan="2">Visible</th>
				<th colspan="2">Order</th>
				<th>Del</th>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:memb_menu.php

示例12: display_warning

function display_warning($warning)
{
    display_html_header();
    display_document_header();
    display_menu();
    echo '<p class="naglowek">' . $warning . "</p>\n";
    display_document_footer();
}
开发者ID:exviva,项目名称:flip,代码行数:8,代码来源:display.php

示例13: privmsg_header

function privmsg_header($view_user_id, $folder_id, $privmsg_recip_id = 0)
{
    global $template, $db, $userdata;
    global $lang, $images, $board_config, $phpEx, $phpbb_root_path;
    global $folders;
    global $main_pgm;
    global $nav_separator;
    // fix the folder id
    if (!isset($folders['data'][$folder_id])) {
        $folder_id = INBOX;
    }
    $folder_main = $folder_id;
    if (!empty($folders['main'][$folder_id])) {
        $folder_main = $folders['main'][$folder_id];
    }
    $template->set_filenames(array('privmsga_header' => 'privmsga_header.tpl'));
    // start the display
    if (!defined('IN_PCP')) {
        make_jumpbox('viewforum.' . $phpEx);
    }
    // send the menu
    display_menu($view_user_id, $folder_id);
    // nav sentence
    $u_main = append_sid("{$main_pgm}&folder={$folder_main}");
    $l_main = _lang($folders['data'][$folder_main]['folder_name']);
    $u_subf = append_sid("{$main_pgm}&folder={$folder_id}");
    $l_subf = _lang($folders['data'][$folder_id]['folder_name']);
    if ($folder_main == $folder_id) {
        $u_main = $u_subf;
        $l_main = $l_subf;
        $u_subf = '';
        $l_subf = '';
    }
    // generate some command buttons and the nav sentence
    $template->assign_vars(array('U_POST_NEW_PM' => append_sid("{$main_pgm}&pmmode=post"), 'L_POST_NEW_PM' => _lang('Post_new_pm'), 'POST_IMG' => _images('pm_postmsg'), 'U_REPLY_PM' => append_sid("{$main_pgm}&pmmode=reply&" . POST_POST_URL . "={$privmsg_recip_id}"), 'L_REPLY_PM' => _lang('Post_reply_pm'), 'REPLY_IMG' => _images('pm_replymsg'), 'U_FOLDER' => $u_main, 'L_FOLDER' => $l_main, 'U_SUBFOLDER' => $u_subf, 'L_SUBFOLDER' => $l_subf));
    if (!defined('IN_PCP')) {
        $template->assign_block_vars('switch_not_in_pcp', array());
        $template->assign_block_vars('switch_nav_sentence', array());
        $template->assign_block_vars('switch_not_in_pcp.switch_nav_sentence', array());
        if (!empty($u_subf)) {
            $template->assign_block_vars('switch_nav_sentence.switch_subfolder', array());
            $template->assign_block_vars('switch_not_in_pcp.switch_nav_sentence.switch_subfolder', array());
        }
    } else {
        $template->assign_block_vars('switch_in_pcp', array());
    }
    // edit folder list
    if (!defined('IN_POSTING') && !defined('IN_FOLDERS')) {
        $template->assign_block_vars('switch_new_post', array());
        if (!defined('IN_PCP')) {
            $template->assign_block_vars('switch_not_in_pcp.switch_new_post', array());
        }
    }
    // reply button
    if (!empty($privmsg_recip_id) && $folder_main == INBOX) {
        $template->assign_block_vars('switch_reply', array());
        if (!defined('IN_PCP')) {
            $template->assign_block_vars('switch_not_in_pcp.switch_reply', array());
        }
    }
    // system
    _hide('sid', $userdata['session_id']);
    $template->assign_vars(array('NAV_SEPARATOR' => $nav_separator));
    $template->assign_var_from_handle('EXTERNAL_HEADER', 'privmsga_header');
}
开发者ID:BackupTheBerlios,项目名称:phpbbsfp,代码行数:65,代码来源:functions_privmsga.php

示例14: demo_go

function demo_go($dp, $demo, $cv, $bounds, $outline)
{
    caca_set_color_ansi($cv, CACA_LIGHTGRAY, CACA_BLACK);
    caca_clear_canvas($cv);
    while (!caca_get_event($dp, CACA_EVENT_KEY_PRESS)) {
        if (function_exists($demo)) {
            $demo($cv, $bounds, $outline);
        }
        caca_set_color_ansi($cv, CACA_LIGHTGRAY, CACA_BLACK);
        caca_draw_thin_box($cv, 1, 1, caca_get_canvas_width($cv) - 2, caca_get_canvas_height($cv) - 2);
        $rate = sprintf("%01.2f", 1000000 / caca_get_display_time($dp));
        caca_put_str($cv, 4, 1, "[{$rate} fps]----");
        caca_refresh_display($dp);
    }
    display_menu($cv, $dp, $bounds, $outline);
    caca_refresh_display($dp);
}
开发者ID:dns,项目名称:libcaca,代码行数:17,代码来源:demo.php

示例15: show_header

function show_header($title)
{
    // header for html-page
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    header("Content-Type: text/html; charset=" . $GLOBALS["charset"]);
    /* NAS4FREE & QUIXPLORER CODE*/
    // Html & Page Headers
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"" . system_get_language_code() . "\" lang=\"" . system_get_language_code() . "\" dir=\"" . $GLOBALS["text_dir"] . "\">\n";
    echo "<head>\n";
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"" . $GLOBALS["charset"] . "\">\n";
    echo "<title>Nas4free.local - File Manager</title>\n";
    if (isset($pgrefresh) && $pgrefresh) {
        echo "<meta http-equiv='refresh' content=\"" . $pgrefresh . "\"/>\n";
    }
    echo "<link href=\"./_style/style.css\" rel=\"stylesheet\"\ttype=\"text/css\">\n";
    echo "<link href=\"../gui.css\" rel=\"stylesheet\" type=\"text/css\">\n";
    echo "<link href=\"../navbar.css\" rel=\"stylesheet\" type=\"text/css\">\n";
    echo "<link href=\"../tabs.css\" rel=\"stylesheet\" type=\"text/css\">\n";
    echo "<script type=\"text/javascript\" src=\"../js/jquery.min.js\"></script>\n";
    echo "<script type=\"text/javascript\" src=\"../js/gui.js\"></script>\n";
    if (isset($pglocalheader) && !empty($pglocalheader)) {
        if (is_array($pglocalheader)) {
            foreach ($pglocalheader as $pglocalheaderv) {
                echo $pglocalheaderv;
                echo "\n";
            }
        } else {
            echo $pglocalheader;
            echo "\n";
        }
    }
    echo "</head>\n";
    // NAS4Free Header
    echo "<body>\n";
    echo "<div id=\"header\">\n";
    echo "<div id=\"headerlogo\">\n";
    echo "<a title=\"www." . get_product_url() . "\" href=\"http://" . get_product_url() . "\" target='_blank'><img src='../header_logo.png' alt='logo' /></a>\n";
    echo "</div>\n";
    echo "<div id=\"headerrlogo\">\n";
    echo "<div class=\"hostname\">\n";
    echo "<span>" . system_get_hostname() . "&nbsp;</span>\n";
    echo "</div>\n";
    echo "</div>\n";
    echo "</div>\n";
    echo "<div id=\"headernavbar\">\n";
    echo "<ul id=\"navbarmenu\">\n";
    echo display_menu("system");
    echo display_menu("network");
    echo display_menu("disks");
    echo display_menu("services");
    //-- Begin extension section --//
    if (Session::isAdmin() && isset($g) && isset($g['www_path']) && is_dir("{$g['www_path']}/ext")) {
        echo "<li>\n";
        echo "<a href=\"index.php\" onmouseover=\"mopen('extensions')\" onmouseout=\"mclosetime()\">" . gettext("Extensions") . "</a>\n";
        echo "<div id=\"extensions\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">\n";
        $dh = @opendir("{$g['www_path']}/ext");
        if ($dh) {
            while (($extd = readdir($dh)) !== false) {
                if ($extd === "." || $extd === "..") {
                    continue;
                }
                @(include "{$g['www_path']}/ext/" . $extd . "../menu.inc");
            }
            closedir($dh);
        }
        echo "</div>\n";
        echo "</li>\n";
    }
    //-- End extension section --//
    echo display_menu("access");
    echo display_menu("status");
    echo display_menu("diagnostics");
    echo display_menu("advanced");
    echo display_menu("help");
    echo "</ul>\n";
    echo "<div style=\"clear:both\"></div>\n";
    echo "</div>\n";
    echo "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />\n";
    // QuiXplorer Header
    $pgtitle = array(gettext("Advanced"), gettext("File Manager"));
    if (!isset($pgtitle_omit) || !$pgtitle_omit) {
        echo "<div style=\"margin-left: 50px;\"><p class=\"pgtitle\">" . htmlspecialchars(gentitle($pgtitle)) . "</p></div>\n";
    }
    echo "<center>\n";
    echo "<table border=\"0\" width=\"93%\" cellspacing=\"0\" cellpadding=\"5\">\n";
    echo "<tbody>\n";
    echo "<tr>\n";
    echo "<td class=\"title\" aligh=\"left\">\n";
    if ($GLOBALS["require_login"] && isset($GLOBALS['__SESSION']["s_user"])) {
        echo "[" . $GLOBALS['__SESSION']["s_user"] . "] ";
    }
    echo $title;
    echo "</td>\n";
    echo "<td class=\"title_version\" align=\"right\">\n";
    echo "Powered by QuiXplorer";
    echo "</td>\n";
//.........这里部分代码省略.........
开发者ID:rterbush,项目名称:nas4free,代码行数:101,代码来源:header.php


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