• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP navItem函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: array

<?php

include_once 'functions.inc.php';
include_once '../conf/config.inc.php';
$GEOSERVE_METADATA = array();
include_once 'admin/metadata.inc.php';
include_once 'auth/metadata.inc.php';
include_once 'event/metadata.inc.php';
include_once 'fe/metadata.inc.php';
include_once 'geonames/metadata.inc.php';
include_once 'neiccatalog/metadata.inc.php';
include_once 'neicresponse/metadata.inc.php';
include_once 'offshore/metadata.inc.php';
include_once 'tectonic/metadata.inc.php';
include_once 'timezones/metadata.inc.php';
$format = param('format', 'php');
$GEOSERVE_ENDPOINTS = array(array('name' => 'Places', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/places.{$format}"), array('name' => 'Regions', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/regions.{$format}"), array('name' => 'Layers', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/layers.{$format}"));
$endpointLinks = array();
foreach ($GEOSERVE_ENDPOINTS as $endpoint) {
    $endpointLinks[] = navItem(str_replace($HOST_URL_PREFIX, '', $endpoint['url']), $endpoint['name'] . ' Service');
}
include_once 'places.inc.php';
include_once 'regions.inc.php';
include_once 'layers.inc.php';
开发者ID:jdbrown-USGS,项目名称:hazdev-geoserve-ws,代码行数:24,代码来源:metadata.inc.php


示例2: navGroup

<?php

echo navGroup(navItem('/research/index.php', 'Research'), navItem('/publications/papers.php', 'Publications') . navItem('/research/GIC.php', 'Geomagnetically Induced Currents') . navItem('/research/magdataquality.php', 'Magnetic Data Quality') . navItem('/research/extreme-events.php', 'Extreme Events') . navItem('/conductivity/', 'Regional Conductivity Maps') . navItem('/research/spaceweather.php', 'Space Weather Applications') . navItem('/research/spaceclimatology.php', 'Space Climatology') . navItem('/research/geomagnetism-earthquakes.php', 'Earthquake Prediction') . navItem('/publications/movies/', 'Magnetic Disturbance Movies'));
开发者ID:hasimpson-usgs,项目名称:geomag-website,代码行数:3,代码来源:_navigation.inc.php


示例3: navItem

<?php

echo navItem("/data/comcat/", "ComCat Documentation");
开发者ID:SCEDC,项目名称:earthquake-website,代码行数:3,代码来源:_navigation.inc.php


示例4: navGroup

<?php

include_once '../conf/config.inc.php';
print navGroup('Geoserve Web Service', navItem($MOUNT_PATH . '/index.php', 'Places Documentation') . navItem($MOUNT_PATH . '/RegionSearch.php', 'Regions Documentation'));
开发者ID:hasimpson-usgs,项目名称:hazdev-geoserve-ws,代码行数:4,代码来源:_navigation.inc.php


示例5: header

            if ($httpCode === 409) {
                header('HTTP/1.0 410 Gone');
                $TITLE = 'Event Deleted';
                include_once 'template.inc.php';
            } else {
                // other, unexpected return
                header('HTTP/1.0 503 Service Unavailable');
                echo 'Unable to retrieve event information (' . $httpCode . ')';
            }
        }
        exit(-1);
    }
    $EVENT = json_decode($EVENT_FEED, true);
    $PROPERTIES = $EVENT['properties'];
    $GEOMETRY = $EVENT['geometry'];
    if ($PROPERTIES['net'] . $PROPERTIES['code'] !== $eventid) {
        header('HTTP/1.1 301 Moved Permanently');
        header('Location: ' . $PROPERTIES['url']);
    }
    $TITLE = $PROPERTIES['title'];
    $NAVIGATION = navItem('#', 'Event Summary');
    $EVENT_CONFIG = array('MOUNT_PATH' => $CONFIG['MOUNT_PATH'], 'KML_STUB' => isset($CONFIG['KML_STUB']) ? $CONFIG['KML_STUB'] : null, 'DYFI_RESPONSE_URL' => $CONFIG['DYFI_RESPONSE_URL'], 'OFFSITE_HOST' => $CONFIG['OFFSITE_HOST'], 'SEARCH_STUB' => $SEARCH_STUB);
    $HEAD = '<link rel="stylesheet" href="css/event.css"/>';
    $FOOT = '<script>' . 'var EventConfig = ' . json_encode($EVENT_CONFIG) . ';' . 'var EventDetails = ' . json_encode($EVENT) . ';' . '</script>' . '<script src="js/event.js"></script>';
    include 'template.inc.php';
}
if ($httpCode != 409) {
    include_once '../lib/inc/html.inc.php';
} else {
    print '<p class="alert error">The requested event has been deleted.</p>';
}
开发者ID:emcwhirter-usgs,项目名称:earthquake-eventadmin,代码行数:31,代码来源:event.php


示例6: navItem

<?php

$SITE_URL = 'earthquake.usgs.gov';
$SITE_SITENAV = navItem('#earthquakes', 'Earthquakes') . navItem('#hazards', 'Hazards') . navItem('#data', 'Data') . navItem('#learn', 'Learn') . navItem('/flexible-grid.php', 'Monitoring') . navItem('#research', 'Research');
$SITE_COMMONNAV = navItem('#home', 'Home') . navItem('#aboutus', 'About Us') . navItem('#contactus', 'Contact Us') . navItem('#legal', 'Legal') . navItem('#partners', 'Partners');
$HEAD = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>' . ($HEAD ? $HEAD : '') . '<meta name="description" content="' . 'USGS Earthquake Hazards Program, responsible for' . ' monitoring, reporting, and researching earthquakes and' . ' earthquake hazards' . '"/>' . '<meta name="keywords" content="' . 'aftershock,earthquake,epicenter,fault,foreshock,geologist,' . 'geophysics,hazard,hypocenter,intensity,intensity scale,magnitude,' . 'magnitude scale,mercalli,plate,richter,seismic,seismicity,seismogram,' . 'seismograph,seismologist,seismology,subduction,tectonics,tsunami,quake,' . 'sismologico,sismologia' . '"/>';
开发者ID:hasimpson-usgs,项目名称:earthquake-rtgm-calculator,代码行数:6,代码来源:_config.inc.php


示例7: navItem

<?php

// site search url, leave blank for all usgs
$SITE_URL = 'earthquake.usgs.gov';
// navigation above search, below section navigation
$SITE_SITENAV = '<a href="#earthquakes">Earthquakes</a>' . '<a href="#hazards">Hazards</a>' . '<a href="#data">Data</a>' . '<a href="#learn">Learn</a>' . '<a href="#monitoring">Monitoring</a>' . '<a href="#research">Research</a>';
// at bottom of page
$SITE_COMMONNAV = navItem('#home', 'Home') . navItem('#aboutus', 'About Us') . navItem('#contactus/regional.php', 'Contact Us') . navItem('#legal.php', 'Legal');
$HEAD = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>' . ($HEAD ? $HEAD : '');
开发者ID:usgs,项目名称:hazdev-leaflet,代码行数:9,代码来源:_config.inc.php


示例8: navGroup

<?php

echo navGroup(navItem('/state_local/', 'State and Local'), navItem('/state_local/seattle.php', 'Seattle') . navItem('/state_local/sanfrancisco.php', 'San Francisco Bay') . navItem('http://pubs.er.usgs.gov/publication/ofr0317', 'Southwest California'));
开发者ID:usgs,项目名称:landslides-website,代码行数:3,代码来源:_navigation.inc.php


示例9: str_replace

<?php

if (!isset($TEMPLATE)) {
    // embed in the template
    $useTemplate = !isset($_GET['template']) || $_GET['template'] !== 'false';
    $pageUrl = str_replace(strstr($_SERVER['REQUEST_URI'], '?'), '', $_SERVER['REQUEST_URI']);
    if ($useTemplate) {
        include 'template.inc.php';
    } else {
        include 'minimal.inc.php';
    }
}
// this is only output during the "content" phase of the template
$nav = array();
if ($pageUrl !== '/example.php') {
    $nav[] = navItem('/example.php?template=' . $useTemplate, 'Examples Index');
}
if ($useTemplate) {
    $nav[] = navItem($pageUrl . '?template=false', 'View without template');
} else {
    $nav[] = navItem($pageUrl . '?template=true', 'View with template');
}
echo '<nav>', implode(' ', $nav), '</nav>';
if (!$useTemplate) {
    echo '<h1>' . $TITLE . '</h1>';
}
开发者ID:ehunter-usgs,项目名称:hazdev-webutils,代码行数:26,代码来源:_example.inc.php


示例10: navItem

<?php

print navItem('/hazards/designmaps/index.php', 'Seismic Design Maps &amp; Tools');
print navGroup(navItem('hazards/designmaps/usdesign.php', 'US Seismic Design Maps'), navItem('/designmaps/us/application.php', 'Use the Tool') . navItem('/designmaps/us/changelog.php', 'Recent Changes') . navItem('hazards/designmaps/usdesigndoc.php', 'Documentation &amp; help'));
print navGroup(navItem('/hazards/designmaps/rtgm.php', 'Risk Targeted Ground Motion Calculator'), navItem('/designmaps/rtgm/', 'Use the Tool') . navItem('https://github.com/usgs/earthquake-rtgm-calculator/wiki/Risk-Targeted-Ground-Motion-Calculator-Documentation', 'Documentation & Help'));
print navGroup(navItem('/hazards/designmaps/wwdesign.php', 'Worldwide Seismic Design Tool'), navItem('http://geohazards.usgs.gov/designmaps/ww/', 'Use the Tool') . navItem('https://github.com/usgs/earthquake-wwdesign/wiki/Worldwide-Seismic-Design-Tool-Documentation', 'Documentation &amp; Help'));
开发者ID:hasimpson-usgs,项目名称:earthquake-rtgm-calculator,代码行数:6,代码来源:_navigation.inc.php


示例11: navGroup

<?php

echo navGroup(navItem('/example.php', 'Examples'), navItem('/CollectionSelectBoxUITest.php', 'Collection Select Box') . navItem('/CollectionViewUI.php', 'Collection View') . navItem('/DownloadViewUITest.php', 'Download View') . navItem('/FileInputViewUI.php', 'File Input View') . navItem('/MessageUI.php', 'Messsage View') . navItem('/ModalViewUITest.php', 'Modal View') . navItem('/SelectViewUITest.php', 'Select View'));
开发者ID:ehunter-usgs,项目名称:hazdev-webutils,代码行数:3,代码来源:_navigation.inc.php


示例12: navGroup

<?php

echo navGroup(navItem('/theme/index.php', 'The Template'), navItem('/theme/alert.php', 'Alerts') . navItem('/theme/button.php', 'Buttons') . navItem('/theme/figcaption.php', 'Figure Caption') . navItem('/theme/flexible-grid.php', 'Flexible Grid') . navItem('/theme/form.php', 'Forms') . navItem('/theme/icons.php', 'Icons') . navItem('/theme/jumplist.php', 'Jump List') . navItem('/theme/list.php', 'Lists') . navItem('/theme/minimal.php', 'Minimal') . navItem('/theme/references.php', 'References') . navItem('/theme/table.php', 'Tables') . navItem('/theme/text.php', 'Text Level Semantics') . navItem('/theme/typography.php', 'Typography'));
echo navItem('/theme/content.php', 'Content Styles');
echo navItem('/theme/cooperator.php', 'Cooperator Logos');
开发者ID:halsimpson,项目名称:hazdev-template,代码行数:5,代码来源:_navigation.inc.php


示例13: navGroup

<?php

$section = "/earthquakes";
echo navGroup(navItem("{$section}/", "Earthquakes"), navItem("{$section}/map/", "Latest Earthquakes") . navItem("{$section}/eqarchives/", "Earthquake Lists, Maps & Statistics") . navItem("{$section}/search/", "Search Earthquake Catalog") . navItem("{$section}/feed/", "Real-time Feeds & Notifications") . navItem("{$section}/region.php", "Information by Region") . navItem("/data/comcat/", "ANSS ComCat Documentation") . navItem("{$section}/errata.php", "Errata for Latest Earthquakes"));
开发者ID:SCEDC,项目名称:earthquake-website,代码行数:4,代码来源:_navigation.inc.php


示例14: array

<?php

include_once 'functions.inc.php';
include_once '../conf/config.inc.php';
$GEOSERVE_METADATA = array();
include_once 'admin/metadata.inc.php';
include_once 'auth/metadata.inc.php';
include_once 'event/metadata.inc.php';
include_once 'fe/metadata.inc.php';
include_once 'geonames/metadata.inc.php';
include_once 'neiccatalog/metadata.inc.php';
include_once 'neicresponse/metadata.inc.php';
include_once 'tectonic/metadata.inc.php';
include_once 'timezones/metadata.inc.php';
$format = param('format', 'html');
$GEOSERVE_ENDPOINTS = array(array('name' => 'Places', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/places.{$format}"), array('name' => 'Regions', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/regions.{$format}"), array('name' => 'Layers', 'url' => "{$HOST_URL_PREFIX}{$MOUNT_PATH}/layers.{$format}"));
$endpointLinks = array();
foreach ($GEOSERVE_ENDPOINTS as $endpoint) {
    $endpointLinks[] = navItem($endpoint['url'], $endpoint['name'] . ' Details');
}
include_once 'places.inc.php';
include_once 'regions.inc.php';
include_once 'layers.inc.php';
开发者ID:hasimpson-usgs,项目名称:hazdev-geoserve-ws,代码行数:23,代码来源:metadata.inc.php


示例15: navItem

<?php

include_once '../conf/config.inc.php';
$eq = 'http://earthquake.usgs.gov/hazards/designmaps';
// NB: Old template-style navigation stuff exists in this file but is
//     commented out. This is because the dev version runs the new template
//     and production code runs the old template. Part of the build process
//     for this tool does template downgrading and these commented sections
//     are used to that effect. Proceed with caution.
// print side_nav_header();
print navItem("{$eq}/wwdesign.php", 'Introduction') . navItem($CONFIG['MOUNT_PATH'] . '/', 'Use Application') . navItem('https://github.com/usgs/earthquake-wwdesign/wiki#sources-of-seismic-design-parameter-values', "Documentation");
// print side_nav_footer();
开发者ID:jimsrc,项目名称:earthquake-wwdesign,代码行数:12,代码来源:_navigation.inc.php


示例16: navItem

<?php

$navItems = '';
if (isset($CURRENT_USER)) {
    if (isset($CURRENT_USER['default_observatory_id'])) {
        $observatoryId = '#' . $CURRENT_USER['default_observatory_id'];
    } else {
        $observatoryId = '';
    }
    $navItems .= navItem($MOUNT_PATH . '/index.php', 'Dashboard') . navItem($MOUNT_PATH . '/observation/' . $observatoryId, 'Observation Input');
    if ($CURRENT_USER['admin'] === 'Y') {
        $navItems .= navItem($MOUNT_PATH . '/plot.php', 'Baseline Plot');
        $navItems .= navItem($MOUNT_PATH . '/useradmin.php', 'Administer Users');
    }
    $navItems .= navItem($MOUNT_PATH . '/logout.php', 'Logout');
} else {
    $navItems .= navItem($MOUNT_PATH . '/login.php', 'Login');
}
print navGroup('Web Absolutes', $navItems);
开发者ID:aclaycomb-usgs,项目名称:geomag-algorithms,代码行数:19,代码来源:_navigation.inc.php


示例17: navItem

<?php

$SITE_URL = 'earthquake.usgs.gov';
$SITE_DESCRIPTION = 'USGS Earthquake Hazards Program, responsible for' . ' monitoring, reporting, and researching earthquakes and' . ' earthquake hazards';
$SITE_KEYWORDS = 'aftershock,earthquake,epicenter,fault,foreshock,geologist,' . 'geophysics,hazard,hypocenter,intensity,intensity scale,magnitude,' . 'magnitude scale,mercalli,plate,richter,seismic,seismicity,seismogram,' . 'seismograph,seismologist,seismology,subduction,tectonics,tsunami,quake,' . 'sismologico,sismologia';
$SITE_SITENAV = navItem('#earthquakes', 'Earthquakes') . navItem('#hazards', 'Hazards') . navItem('#learn', 'Learn') . navItem('#data', 'Data') . navItem('#monitoring', 'Monitoring') . navItem('#research', 'Research');
$SITE_COMMONNAV = '
    <a href="#home">Home</a>
    <a href="#aboutus">About Us</a>
    <a href="#contactus">Contact Us</a>
    <a href="#legal">Legal</a>
    <a href="#partners">Partners</a>
';
// add site css
if (!isset($HEAD)) {
    $HEAD = '';
}
$HEAD = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>' . $HEAD;
开发者ID:ArkayaVenture,项目名称:earthquake-latest-earthquakes,代码行数:18,代码来源:_config.inc.php


示例18: navItem

<?php

// application injects its navigation into this element
echo '<div id="geomag-config"></div>';
echo navItem('/ws/edge/', 'Web Service');
开发者ID:ehunter-usgs,项目名称:geomag-plots,代码行数:5,代码来源:_navigation.inc.php


示例19: navItem

<?php

// site search url, leave blank for all usgs
$SITE_URL = 'http://landslides.usgs.gov';
// navigation above search, below section navigation
$SITE_SITENAV = '<a href="/hazards/">Hazards</a>' . '<a href="/monitoring/">Monitoring</a>' . '<a href="/state_local/">State &amp; Local</a>' . '<a href="/learn/">Learn</a>' . '<a href="/research/">Research</a>';
// at bottom of page
$SITE_COMMONNAV = navItem($SITE_URL, 'Home') . navItem('/aboutus/', 'About Us') . navItem('/contactus/', 'Contact Us') . navItem('/legal.php', 'Legal');
$HEAD = '<link rel="stylesheet" href="/theme/site/landslides/index.css"/>' . ($HEAD ? $HEAD : '') . '<meta name="description" content="' . 'USGS Landslide Hazards Program, responsible for monitoring, ' . 'reporting, and researching landslides and landslide hazards' . '"/>' . '<meta name="keywords" content="' . 'landslide, landslides, mudflow, erosion' . '"/>' . '<script id="_fed_an_ua_tag" async="async" src="' . '/lib/Universal-Federated-Analytics-Min.1.0.js' . '?agency=DOI&amp;subagency=USGS&amp;pua=UA-23479674-1' . '"></script>';
// comments and questions default
if (!isset($CONTACT)) {
    $CONTACT = '[email protected]';
}
$CONTACT_URL = 'mailto:{CONTACT}?subject=LHP%20Website%20Email%20';
开发者ID:emartinez-usgs,项目名称:landslides-website,代码行数:14,代码来源:_config.inc.php


示例20: navItem

<?php

$livesite = 'http://earthquake.usgs.gov';
$SITE_COMMONNAV = navItem($livesite . '/', 'Home') . navItem($livesite . '/aboutus/', 'About Us') . navItem($livesite . '/contactus/regional.php', 'Contact Us') . navItem($livesite . '/legal.php', 'Legal');
$THEME_CSS = '<link rel="stylesheet" href="/theme/site/earthquake/index.css"/>';
$SITE_URL = 'earthquake.usgs.gov';
$SITE_SITENAV = navItem($livesite . '/earthquakes/', 'Earthquakes') . navItem($livesite . '/hazards/', 'Hazards') . navItem($livesite . '/data/', 'Data') . navItem($livesite . '/learn/', 'Learn') . navItem($livesite . '/monitoring/', 'Monitoring') . navItem($livesite . '/research/', 'Research');
$HEAD = $THEME_CSS . ($HEAD ? $HEAD : '') . '<meta name="description" content="' . 'USGS Earthquake Hazards Program, responsible for' . ' monitoring, reporting, and researching earthquakes and' . ' earthquake hazards' . '"/>' . '<meta name="keywords" content="' . 'aftershock,earthquake,epicenter,fault,foreshock,geologist,' . 'geophysics,hazard,hypocenter,intensity,intensity scale,magnitude,' . 'magnitude scale,mercalli,plate,richter,seismic,seismicity,seismogram,' . 'seismograph,seismologist,seismology,subduction,tectonics,tsunami,' . 'quake,sismologico,sismologia' . '"/>';
开发者ID:usgs,项目名称:earthquake-gps,代码行数:8,代码来源:_config.inc.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP nav_form函数代码示例发布时间:2022-05-15
下一篇:
PHP nav函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap