本文整理汇总了PHP中getNav函数的典型用法代码示例。如果您正苦于以下问题:PHP getNav函数的具体用法?PHP getNav怎么用?PHP getNav使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getNav函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_template
function render_template($tpl, $vars = array())
{
header('Content-Type: text/html; charset=utf-8');
$vars['header'] = getNav();
extract($vars);
include_once PATH_VIEW . '/header.php';
include_once PATH_VIEW . '/' . $tpl;
include_once PATH_VIEW . '/footer.php';
}
示例2: addNav
function addNav($name, $id)
{
$node = addHTML(getNav(), "li");
if (FIRSTHREF) {
setAtr($node, "class", "active");
define("FIRSTHREF", false);
}
$node2 = addHTML($node, "a", $name, true);
setAtr($node2, "data-toggle", "tab");
setAtr($node2, "href", "#" . $id);
}
示例3: showPage
function showPage($configItems, $typeOfDemo)
{
global $manifest;
global $paths;
// paths related to the environment
global $typeOfDemo;
$paths["webDefault"] = $paths["webHome"] . "/default/templates/" . $typeOfDemo;
include $paths["templates"] . "/manifest.php";
$manifest = getManifest($typeOfDemo);
$basicHTMLstrings = getHTMLstrings($configItems);
// grab any simple HTML
//strings from the list of configurations
$thesePaths = setPaths();
// paths to all of the needed files
$finalPaths = evaluatePaths($thesePaths);
// files opened, html tags added
$basicHTMLstrings["navigation"] = getNav();
$finalHTML = getFinalHTML($finalPaths, $basicHTMLstrings);
$htmlTemplate = getHTMLtemplate($configItems);
$htmlString = buildPage($htmlTemplate, $finalHTML);
echo $htmlString;
}
示例4: getHeader
<?php
// Index Page
require_once "class.php";
include "view.inc.php";
getHeader("Manual Mode (Main Building 4th floor)", "Manual Mode (Main Building 4th floor)");
getNav();
?>
<main>
<?php
report4thSirind();
?>
</main>
<?php
getFooter();
示例5: goBack
echo $siteurl;
?>
assets/js/login.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
$('[data-toggle=collapse]').click(function(){
$(this).find("i").toggleClass("fa-chevron-right fa-chevron-down");
});
});
function goBack() {window.history.back()}
</script>
</head>
<body>
<nav class="<?php
echo getNav();
?>
navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><?php
echo $servername;
?>
</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
示例6: U
<img src="/object/Public/images/Picture/321c7a0420674f369ccbf2c19f3d4467.gif"/>
</a>
</div>
<a class="block head_cart" href="<?php
echo U('cart/index');
?>
" webtrekkparam="{ct:'xbsy_gwc'}" target="_blank">
<div class="had_num" id="productNumInCart"></div>
<span class="pl20 white font14">购物车</span>
</a>
<div class="clear"></div>
</div>
<?php
$rNav = getNav(1);
$lNav = getNav(0);
?>
<div class="nav">
<div class="center relative zindex299" >
<ul class="main_nav left">
<?php
if (is_array($lNav)) {
foreach ($lNav as $key => $v) {
?>
<li class="hadlist">
<a href="<?php
echo $v['url'];
?>
"> <?php
echo $v['title'];
?>
示例7: metricas
function metricas()
{
$mbd = new mbd();
$json_lugares = $_POST['json_lugares'];
$json_indicadores = $_POST['json_indicadores'];
$lugares = "";
$navegador = getNav();
if (sizeof($json_lugares) == 1) {
$SQL = "INSERT INTO metricas(espacialidade_mun, indicadores, data_consulta, navegador, versao_navegador, os, ip) " . "VALUES ('" . $json_lugares[0]["ids"] . "','{$json_indicadores}',now(),'" . $navegador[0] . "','" . $navegador[1] . "','" . getOs() . "','" . $_SERVER['REMOTE_ADDR'] . "')";
}
if (sizeof($json_lugares) == 3) {
$SQL = "INSERT INTO metricas(espacialidade_mun, espacialidade_est, espacialidade_area_tematica, indicadores, data_consulta, navegador, versao_navegador, os, ip) " . "VALUES ('" . $json_lugares[0]["ids"] . "','" . $json_lugares[1]["ids"] . "','" . $json_lugares[2]["ids"] . "','{$json_indicadores}',now(),'" . $navegador[0] . "','" . $navegador[1] . "','" . getOs() . "','" . $_SERVER['REMOTE_ADDR'] . "')";
}
$mbd->insert($SQL);
}
示例8: die
<?php
if (!defined('MyConst')) {
die('Direct access not permitted');
}
?>
<!-- Footer -->
<footer>
<div class="footer" id='footer'>
<?php
getNav('Footer', 'false', 'left');
?>
</div>
<?php
echo "<div class='row' id='socialmedia'>";
echo "<div class='col-md-12'>";
include 'socialmedia_inc.php';
echo "</div>";
echo "</div>";
?>
<div class="row copyright">
<div class="col-lg-6 text-left">
<p>Copyright © <?php
echo str_replace(':8080', '', $_SERVER['HTTP_HOST'] . " " . date("Y"));
?>
</p>
</div>
<div class="col-lg-6 text-right"><a href="//sayat.me/teklynk" target="_blank"><img style="max-width:60px;" src="core/teklynk_logo.png" border="0"/></a></div>
</div>
示例9: PDO
<?php
include 'head.php';
include 'nav.php';
$db = new PDO('sqlite:db/movies.db') or die("fail to connect db");
$ugly_url = "{$_SERVER['REQUEST_URI']}";
$url = explode("/", $ugly_url);
getHead(ucfirst($url[1]));
getNav(ucfirst($url[1]));
?>
示例10: actList
public function actList()
{
// 分配菜单
$navs = getNav(3);
$this->assign('cid', -1);
//分配cid 取消菜单的选中状态
$this->assign('navs', $navs);
// 解析模版
$this->display();
}
示例11: index
public function index()
{
//获取商城菜单
$navs = getNav(2);
//分配变量(首页 cid设置为0)
$this->assign('cid', 0);
$this->assign("navs", $navs);
//显示模版
$this->display();
}
示例12: getNav
$menuAutoGroupFile = $MODULE_PARAMS[1]['menuAutoGroupFile'];
} else {
$menuAutoGroupFile = null;
}
if (isset($MODULE_PARAMS[1]['noScript'])) {
$noScript = $MODULE_PARAMS[1]['noScript'];
} else {
$noScript = false;
}
if (isset($MODULE_PARAMS[1]['menuType'])) {
$menuType = $MODULE_PARAMS[1]['menuType'];
} else {
$menuType = "sidebar";
}
$params = $MODULE_PARAMS[1];
$nav = getNav($params['menuid'], $menuAutoGroupFile, $params);
//printArray($nav);
$atl = new ArrayToList();
$atl->printTitle(true);
$s = $atl->getTree($nav, 'data', 0, false);
$s = substr($s, 4, strlen($s) - 9);
echo $s;
if (!$noScript) {
?>
<script language=javascript>
<?php
if (file_exists(dirname(__FILE__) . "/{$menuType}.js")) {
include "{$menuType}.js";
}
?>
function openLink(lnk) {
示例13: die
die("403 - Access Forbidden");
}
if ($_SESSION['admin'] == 1) {
echo "<h2 class=\"text-left\">Configure Theme</h2><hr/>";
$themes = array('bootstrap', 'cerulean', 'cosmo', 'cyborg', 'darkly', 'flatly', 'journal', 'lumen', 'paper', 'readable', 'sandstone', 'slate', 'simplex', 'spacelab', 'superhero', 'united', 'yeti');
if (!isset($_POST['apply'])) {
echo "\n\t\t\tPlease click one of the options below to preview the theme. Once you are happy with your theme, click the \"Apply Theme\" button below.\n\t\t\t<hr/>\n\t\t\t<form name=\"applytheme\" method=\"post\">";
foreach ($themes as $t) {
if ($theme == $t) {
echo "<div class=\"radio\"><label class=\"radio\"><input type=\"radio\" name=\"theme\" value=" . $t . " checked>" . ucfirst($t) . " <a href=\"http://bootswatch.com/" . $t . "/\" target=\"_blank\"><i class=\"fa fa-external-link\"></i></a></label></div>";
} else {
echo "<div class=\"radio\"><label class=\"radio\"><input type=\"radio\" name=\"theme\" value=" . $t . ">" . ucfirst($t) . " <a href=\"http://bootswatch.com/" . $t . "/\" target=\"_blank\"><i class=\"fa fa-external-link\"></i></a></label></div>";
}
}
echo "<hr/>";
if (getNav() == "navbar navbar-default") {
echo "\n\t\t\t\t\t<div class=\"radio\"><label class=\"radio\"><input type=\"radio\" name=\"nav\" value=\"0\" checked>Normal Navigation Bar</label></div>\n\t\t\t\t\t<div class=\"radio\"><label class=\"radio\"><input type=\"radio\" name=\"nav\" value=\"1\">Inverse Navigation Bar</label></div>\n\t\t\t\t";
} else {
echo "\n\t\t\t\t\t<div class=\"radio\"><label class=\"radio\"><input type=\"radio\" name=\"nav\" value=\"0\">Normal Navigation Bar</label></div>\n\t\t\t\t\t<div class=\"radio\"><label class=\"radio\"><input type=\"radio\" name=\"nav\" value=\"1\" checked>Inverse Navigation Bar</label></div>\n\t\t\t\t";
}
echo '
<hr/>
<input type="submit" name="apply" value="Apply Theme »" class="btn btn-primary"/>
</form>
';
} else {
if (isset($_POST['theme']) && isset($_POST['nav'])) {
$theme = $mysqli->real_escape_string($_POST['theme']);
$nav = $mysqli->real_escape_string($_POST['nav']);
$update = $mysqli->query("UPDATE " . $prefix . "properties SET theme = '{$theme}', nav = '{$nav}'");
echo "<div class=\"alert alert-success\">Successfully updated theme.</div>";
示例14: getNav
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Estoque</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<link href="css/theme.css" rel="stylesheet">
</head>
<body role="document">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand">Estoque - PHP</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav"><?php
echo getNav($_SERVER['REQUEST_URI']);
?>
</ul>
</div>
</div>
</nav>
示例15: getNav
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" id='top' role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"><?php
echo $setupTitle;
?>
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<?php
getNav('Top', 'true', 'right');
?>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<?php
//include 'slider_inc.php';