public function doeditor() { global $_M; nav::select_nav(1); $user = $this->userclass->get_user_by_id($_M['form']['id']); require_once $this->template('tem/user_editor'); }
public function doset() { global $_M; $_M[form][pos] = $_M[form][pos] ? $_M[form][pos] : 0; nav::select_nav($_M[form][pos]); require $this->template('own/temset'); }
public function nav() { global $_M; //记得global $_M parent::__construct(); //如果重写了初始化方法,一定要调用父类的初始化函数。 nav::set_nav(1, "选项卡1", $_M['url']['own_form'] . 'a=admin_user'); nav::set_nav(2, "选项卡2", $_M['url']['own_form'] . 'a=admin_user'); nav::set_nav(3, "选项卡3", $_M['url']['own_form'] . 'a=admin_user'); }
public function __construct() { // Grab local path $local_path = dirname(__FILE__); // Set Authentication Data Source $this->auth_data_source = strtolower($_SESSION['auth_data_source']); // Set login status to false by default $this->status = false; // Include necessary classes require_once $_SESSION['frame_path'] . '/core/data_access/data_trans.class.php'; require_once $local_path . '/nav.class.php'; require_once $local_path . '/xml_nav.class.php'; require_once $local_path . '/authentication.class.php'; require_once $local_path . '/module_list.class.php'; //**************************************************** // Build Array NAVs //**************************************************** // User Modules $modules_dir = isset($_SESSION['modules_dir']) ? $_SESSION['modules_dir'] : 'modules'; $modules_path = $_SESSION['file_path'] . '/' . $modules_dir; if (file_exists($modules_path) && is_dir($modules_path)) { $nav = new nav($modules_path); } $_SESSION['menu_array'] = isset($nav) ? $nav->export() : array(); $_SESSION['menu_array2'] = isset($nav) ? $nav->export2() : array(); //************************************** // Authenticate //************************************** $authen = new authentication(); //************************************** // Authentication Success //************************************** if ($authen->status()) { // Build XML Nav $module_xml = new xml_nav($_SESSION['menu_array']); $_SESSION['menu_xml'] = $module_xml->export(); // Login Success $this->status = true; } else { $this->fail_login('1'); } }
public function dorecharge() { global $_M; $this->navigation(); nav::select_nav(3); if ($_M['form']['return_this']) { $_M['form']['sucurl'] = HTTP_REFERER; } $sucurl = $_M['form']['sucurl'] ? $_M['form']['sucurl'] : "{$_M['url'][own_name]}&c=appstore&a=doindex"; //$sucurl .= "&recharge=1"; require $this->template('tem/recharge'); }
protected function nav() { $nav = new nav($this->url, "nav nav-pills nav-justified"); $nav->addItem("Accueil", "index.php"); $nav->addItem("Page", "page.php"); $nav->addItem("Custom-css", "custom-css.php"); $nav->addItem("Custom-js", "custom-js.php"); return $nav->display(); }
/** * 设置当前页面的导航栏 * @param int $num 选定导航选项卡的编号 * @param string $title 在顶部导航后追加的导航,一般是这个选定导航选项卡的内部页面,此时导航选项卡会影藏。 */ public static function select_nav($num, $title = '') { global $_M; foreach (self::$navlist as $key => $val) { self::$navlist[$key]['classnow'] = ''; self::$navlist[$key]['nav'] = ''; } self::$navlist[$num]['classnow'] = "class='now'"; if ($title) { self::$navlist[$num]['nav'] = ' > <a href="' . self::$navlist[$num]['url'] . '">' . self::$navlist[$num]['title'] . '</a> > ' . $title . "<div class='return'><a href='javascript:history.go(-1);'><i class='fa fa-chevron-left'></i>{$_M['word']['js55']}</a></div>"; self::$nav_show = 0; } else { self::$navlist[$num]['nav'] = ' > ' . self::$navlist[$num]['title']; self::$nav_show = 1; } }
<!-- submit incident --> <?php echo $submit_btn; ?> <!-- / submit incident --> </div> <!-- / header --> <!-- / header item for plugins --> <?php // Action::header_item - Additional items to be added by plugins Event::run('ushahidi_action.header_item'); ?> <!-- main body --> <div id="middle"> <div class="background layoutleft"> <!-- mainmenu --> <div id="mainmenu" class="clearingfix"> <ul> <!-- JP: Show or hide reports_submit tab, depending on settings. --> <?php nav::main_tabs($this_page, Kohana::config('settings.show_submit_report_tab') ? array() : array('reports_submit')); ?> </ul> </div> <!-- / mainmenu -->
* $Id: nav.inc.php 4337 2010-09-06 04:48:05Z fanshengshuai $ */ if (!defined('IN_STORE')) { exit('Acess Denied'); } $navid = empty($_REQUEST['navid']) ? null : intval($_REQUEST['navid']); if (in_array($_REQUEST['navid'], array('index', 'notice', 'album', 'good', 'consume', 'groupbuy'))) { $navid = $_REQUEST['navid']; } $shopid = $_G['myshopid']; if (intval($shopid) < 1) { cpmsg(lang('menu_home_waitmod')); exit; } require_once B_ROOT . './source/class/nav.class.php'; $_nav = new nav(); $nav_default = $_nav->get_shop_nav_default($_G['myshopid']); if (!empty($_POST['valuesubmit'])) { $_BCACHE->deltype('detail', 'nav', $_G['myshopid']); $checkresults = array(); $arr_data = array(); $arr_data['name'] = $_POST['subject']; $arr_data['target'] = $_POST['nav_target']; $arr_data['available'] = $_POST['available']; empty($_POST['strongsubject']) ? $_POST['strongsubject'] = '' : ($_POST['strongsubject'] = 1); empty($_POST['underlinesubject']) ? $_POST['underlinesubject'] = '' : ($_POST['underlinesubject'] = 1); empty($_POST['emsubject']) ? $_POST['emsubject'] = '' : ($_POST['emsubject'] = 1); empty($_POST['fontcolorsubject']) ? $_POST['fontcolorsubject'] = '# ' : ($_POST['fontcolorsubject'] = '#' . $_POST['fontcolorsubject']); $arr_data['highlight'] = sprintf("%7s%1s%1s%1s", substr($_POST['fontcolorsubject'], -7), $_POST['emsubject'], $_POST['strongsubject'], $_POST['underlinesubject']); if ($arr_data['highlight'] === '# ') { $arr_data['highlight'] = '';
<?php $tampil = new admlib(); $appx = new app(); $dbu = new db(); $navi = new nav(); echo $tampil->tampilkan_header('home', 'cms'); echo $tampil->tampilkan_menu('cms'); ?> <div class="content"> <script src="<?php echo $app["lib_cms"]; ?> /js/all_check.js"></script> <?php if ($_SESSION['msg'] != "") { ?> <div class="box"> <div class="box-<?php echo $_SESSION["alt"]; ?> "><span class="ion-information-circled"></span> information</div> <div class="box-content" style="vertical-align:center;"> <?php echo $_SESSION["msg"]; ?> </div> </div> <?php } $_SESSION['msg'] = "";
<!-- EOT; if ($title) { echo <<<EOT --> \t <!-- EOT; } echo <<<EOT --> \t</div> \t<div class="clear"></div> <!-- EOT; $navlist = nav::get_nav(); if ($navlist) { echo <<<EOT --> <div class="stat_list"> <!-- EOT; foreach ($navlist as $key => $val) { echo <<<EOT --> \t<a {$val['classnow']} title="{$val['title']}" href="{$val['url']}">{$val['title']}</a> <!-- EOT; } echo <<<EOT -->
<?php /** * @package WordPress * @subpackage Study_Edge * @since Study Edge 1.0 */ global $current_blog, $nav; $pages = array('./' => 'Home', 'students/', 'teachers/', 'parents/', 'districts/', 'news/', 'faq/' => 'About/FAQ'); $nav = new nav($pages); $path = get_path(); ?> <!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" <?php language_attributes(); ?> > <![endif]--> <!--[if IE 8]> <html class="ie ie8" <?php language_attributes(); ?> > <![endif]--> <!--[if !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?> class="<?php echo $nav->getActive() . (isset($current_blog->path) ? ' ' . str_replace('/', '', $current_blog->path) : '');
<div id="middle"> <?php echo $div_timeline; ?> <h2 id="tagline">Community powered map of TEDx Talks</h2> <div class="background layoutleft"> <!-- mainmenu --> <div id="mainmenu" class="clearingfix"> <ul> <?php nav::main_tabs('home'); ?> </ul> </div> <!-- / mainmenu --> <!-- content --> <div class="content-container"> <!-- content blocks --> <div class="content-blocks clearingfix"> <ul class="content-column"> <?php blocks::render(); ?> </ul>
public function doopen() { global $_M; nav::select_nav(5); require_once $this->template('tem/open'); }
function get_grouping_pages() { //landing area $actions = array('0' => array('action' => array(), 'init' => function () { // user dialed the short code nav::show_page(array('page' => 'welcome_page')); }, 'inputComplete' => function () { }), 'welcome_page' => array('action' => array('1' => function () { nav::show_page(array('page' => 'enter_name')); }, '2' => function () { nav::show_page(array('page' => 'about')); }, '3' => function () { $menus = array('Good Bye , You Can Access Groupings By Dialing *718*30# On Any Network'); nav::display_prompt($menus); }), 'init' => function () { $menus = array('Welcome To GroupIns' . PHP_EOL, '1. Enter Name', '2. My Details', '3. Exit'); nav::display($menus); }, 'inputComplete' => function () { }), 'enter_name' => array('action' => array(), 'init' => function ($d) { $title = array('Enter your Name:'); if ($d && is_string($d)) { $title = $d; } nav::await_input('name', '', $title); }, 'inputComplete' => function () { nav::show_page(array('page' => 'enter_age')); }), 'enter_age' => array('action' => array(), 'init' => function ($d) { $title = 'Enter Your Age '; if ($d && is_string($d)) { $title = $d; } nav::await_input('age', '', $title); }, 'inputComplete' => function () { nav::show_page(array('page' => 'about')); }), 'about' => array('action' => array('1' => function () { nav::show_page(array('page' => 'enter_name')); }, '2' => function () { nav::show_page(array('page' => 'enter_age')); }), 'init' => function () { $name = ussd::getDataItem('name') ? ussd::getDataItem('name') : "Mr Beans"; $age = ussd::getDataItem('age') ? ussd::getDataItem('age') : "Just 365"; $menus = array("About Me", "Your Name Is " . $name, "You Are " . $age . " Years Old", "Press 1 to Change Your Name , 2 To Change Your Age"); nav::display($menus); }, 'inputComplete' => function () { })); return $actions; }
function set_navigator(&$sql, &$nav, $pagesize, $param, $attr = '', $attrPls = '') { $dbu = new db(); if ($_GET['page_offset']) { $pageoffset = $_GET['page_offset']; } else { $pageoffset = 0; } if ($_GET[page_total]) { $pagetotal = $_GET['page_total']; } else { $dbu->query($sql, $rs, $nr); $pagetotal = $nr; } $cari_limit = preg_match_all('|limit (.*)|sm', $sql, $hasil); if ($hasil[1][0]) { $sql = str_replace("" . $hasil[0][0] . "", "", $sql); } if ($pageoffset + $pagesize > $pagetotal) { $nilai = $pagetotal - $pageoffset; $sql = $sql . " limit {$pageoffset}, {$nilai}"; } else { $sql = $sql . " limit {$pageoffset}, {$pagesize}"; } $nav = new nav(); $nav->init($pageoffset, $pagetotal, $param, $attr, $attrPls); $nav->param = $param; $nav->build($pagesize); }
function dothirdparty() { global $_M; nav::select_nav(3); require $this->template('tem/thirdparty'); }
</div> </div> </div><!-- end #service-area --> <?php } ?> <div class="container home" id="footer"> <div class="row" data-equalizer> <div class="large-7 large-push-5 columns" data-equalizer-watch> <div id="footer-links"> <!---------- FOOTER LINKS -------------------------------> <?php $superNav = new nav(); $superNav->superMode = 'bottom'; echo $superNav->generateSuperMarkup(); ?> [[social_footer]] <!--------- END FOOTER LINKS ----------------------------> </div> </div> <div class="large-5 large-pull-7 columns" data-equalizer-watch> <div id="footer-contact"> <a href="/free-estimate.html" id="footer-btn">get a free quote</a> <p class="footer-phone">Or call us at <span><a href="tel:<?php
?> <?php } else { ?> <?php echo nav::add('login', 'Login'); ?> <?php echo nav::add('register', 'Register'); ?> <?php } ?> <?php echo nav::output(); ?> </div> <div class="clear"></div> </div> <div class="container white"> <div class="margining"> <div id="error_container"></div> <?php if (flash::get_message()) { ?> <div class="user_message" id="flash_message"><?php echo flash::get_message(); ?> </div>
function dositemap() { global $_M; nav::select_nav(4); require $this->template('tem/sitemap'); }
function doindex() { global $_M; nav::select_nav(4); require $this->template('tem/support'); }
<!-- submit incident --> <?php echo $submit_btn; ?> <!-- / submit incident --> </div> <!-- / header --> <!-- main body --> <div id="middle"> <div class="background layoutleft"> <!-- mainmenu --> <div id="mainmenu"> <ul> <!-- <?php nav::main_tabs($this_page); ?> --> <?php $menu = ""; $lang = ""; if (isset($_GET['l']) && !empty($_GET['l'])) { if($_GET['l'] != 'ja_JP') { $lang = "?l=".$_GET['l']; } } // Home $menu .= "<li><a href=\"".url::site()."main".$lang."\" "; $menu .= ($this_page == 'home') ? " class=\"active\"" : ""; $menu .= ">".Kohana::lang('ui_main.home')."</a></li>";
public function doword() { global $_M; nav::select_nav(2); require $this->template('own/word'); }
public function doindex() { global $_M; nav::select_nav(2); require_once $this->template('tem/user_group'); }
?> " /></a> <?php } ?> <!-- / logo --> <!-- submit incident --> <?php echo $submit_btn; ?> <!-- / submit incident --> </div> <!-- / header --> <!-- main body --> <div id="middle"> <div class="background layoutleft"> <!-- mainmenu --> <div id="mainmenu" class="clearingfix"> <ul> <?php nav::main_tabs($this_page); ?> </ul> </div> <!-- / mainmenu -->
static function config(&$session, $pages) { self::$session = $session; self::$pages = $pages; }
if (isset($_GET['widget'])) { echo '<link rel="stylesheet" type="text/css" href="' . url::site() . 'themes/ci_cumulus/css/widget/widget.css" />'; } ?> </head> <body> <div id="header"> <div class="content-wrapper"> <div class="logo"> <h1><a href="/"><?php echo $site_name; ?> </a></h1> <h2><?php echo $site_tagline; ?> </h2> </div> <div id="menu"> <ul> <?php nav::main_tabs($this_page, array('reports', 'reports_submit', 'alerts', 'contact')); ?> </ul> </div> </div> </div> <!-- END HEADER -->
function doappservice() { global $_M; nav::select_nav(4); require $this->template('tem/appservice'); }