public function __construct() { parent::__construct(); $this->load->library("CiSmarty"); //定义后台模版路径 $this->cismarty->assign("THEMEPATH", "/application/themes/admin/default"); //取得当前按钮 $this->load->helper("admin_menu"); $this->cismarty->assign("admin_menu", admin_menu()); $this->load->helper("common"); }
function login($auth) { if ($auth == 1) { admin_menu($_GET['section']); } else { if ($auth == 0) { admin_interface_mens("Autentificacion fallida <br> <a href='admin.php?logout=1'><b>REINTENTAR</b></a>"); session_destroy(); } } }
public function __construct() { parent::__construct(); $this->load->library("CiSmarty"); $this->load->library('CiPage'); //定义后台模版路径 $this->cismarty->assign("THEMEPATH", "/application/" . THEME_ADMIN); //取得当前按钮 $this->load->helper("admin_menu"); $this->cismarty->assign("admin_menu", admin_menu()); $this->load->helper("common"); }
function widget_admin_menu($args) { global $wpdb, $table_prefix; extract($args); //$options = get_option('widget_wp_shopping_cart'); $title = empty($options['title']) ? __(TXT_WPSC_ADMINMENU) : $options['title']; echo $before_widget; $full_title = $before_title . $title . $after_title; echo $full_title; admin_menu(); echo $after_widget; }
/** * Widget Output * * @param $args (array) * @param $instance (array) Widget values. * * @todo Add individual capability checks for each menu item rather than just manage_options. */ function widget($args, $instance) { extract($args); if (current_user_can('manage_options')) { echo $before_widget; $title = apply_filters('widget_title', empty($instance['title']) ? __('Admin Menu', 'wpsc') : $instance['title']); if ($title) { echo $before_title . $title . $after_title; } admin_menu(); echo $after_widget; } }
function smarty_function_adminmenue($params, $template) { if (empty($params['id']) && $params['page'] == 'true') { $menu_id = '0'; $class = 'class = "page_menu"'; } else { $menu_id = $params['id']; $class = ''; } $menus = admin_menu($menu_id); if(!$menus) { echo "Fehler beim Laden des Menüs (ID: ".$params['id'].")"; } else { echo '<ul'.$class.'>'; foreach($menus as $menu) { echo '<li><a href="'.$menu['link'].'"'.$menu['target'].'>'.$menu['title'].'</a></li>'; } echo '</ul>'; } }
function widget_admin_menu($args) { global $wpdb, $table_prefix, $current_user; get_currentuserinfo(); if ($current_user->wp_capabilities['administrator'] == 1) { extract($args); //$options = get_option('widget_wp_shopping_cart'); $title = empty($options['title']) ? __(TXT_WPSC_ADMINMENU) : $options['title']; echo $before_widget; $full_title = $before_title . $title . $after_title; echo $full_title; admin_menu(); echo $after_widget; } }
<!-- /.navbar-static-side --> <div role="navigation" class="navbar-default sidebar"> <div class="sidebar-nav navbar-collapse"> <ul id="side-menu" class="nav in"> <?php if($this->ion_auth->is_admin()) { echo admin_menu(); } elseif($this->ion_auth->is_depot()) { echo depot_menu(); } elseif($this->ion_auth->is_doctor()) { echo doctor_menu(); } elseif($this->ion_auth->is_medical_store()) { echo medical_store_menu(); } else { echo "Menu"; } ?> </ul> </div> <!-- /.sidebar-collapse --> </div>
/* Seems to be unused : $basedir = dirname($SCRIPT_FILENAME); $textrows = 20; $textcols = 85; $udir = dirname($PHP_SELF); if (empty($wdir)) $wdir='/'; */ // to be put somewhere else !!! review ? if ($module == 'Past_Nuke' and $op == 'deleteNotice') { deleteNotice($id, $table, $op_back); exit; } // to be put somewhere else !!! end // prepare the menu admin_menu('admin.html'); if (file_exists($file = 'modules/' . pnVarPrepForOS($module) . '/admin.php')) { $ModName = $module; include $file; modules_get_language(); modules_get_manual(); if (substr($module, 0, 3) == 'NS-') { $function = substr($module, 3) . '_admin_'; } else { $function = $module . '_admin_'; } $function_op = $function . $op; $function_main = $function . 'main'; $var = array_merge($GLOBALS['HTTP_GET_VARS'], $GLOBALS['HTTP_POST_VARS']); if (function_exists($function_op)) { $function_op($var);
/** * main function. checks for authorization and renders the * required admin section. */ function admin_main($authorised) { echo "\n<div id=\"channel_admin\" class=\"frame\">"; if ($authorised) { admin_menu(); if (array_key_exists(CST_ADMIN_DOMAIN, $_REQUEST)) { switch ($_REQUEST[CST_ADMIN_DOMAIN]) { case CST_ADMIN_DOMAIN_FOLDER: $show = folder_admin(); break; case CST_ADMIN_DOMAIN_CHANNEL: $show = channel_admin(); break; case CST_ADMIN_DOMAIN_CONFIG: $show = config_admin(); break; case CST_ADMIN_DOMAIN_ITEM: $show = item_admin(); break; case CST_ADMIN_DOMAIN_PLUGINS: $show = plugins_admin(); break; case CST_ADMIN_DOMAIN_THEMES: $show = themes_admin(); break; case CST_ADMIN_DOMAIN_TAGS: $show = tags_admin(); break; case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS: $show = plugin_options_admin(); break; case CST_ADMIN_DOMAIN_THEME_OPTIONS: $show = theme_options_admin(); break; default: break; } } if (array_key_exists(CST_ADMIN_VIEW, $_REQUEST) || isset($show)) { if (!isset($show)) { $show = $_REQUEST[CST_ADMIN_VIEW]; } switch ($show) { case CST_ADMIN_DOMAIN_CONFIG: config(); break; case CST_ADMIN_DOMAIN_CHANNEL: channels(); break; case CST_ADMIN_DOMAIN_FOLDER: folders(); break; case CST_ADMIN_DOMAIN_OPML: opml(); break; case CST_ADMIN_DOMAIN_NONE: break; case CST_ADMIN_DOMAIN_ITEM: items(); break; case CST_ADMIN_DOMAIN_SYSINFO: sysinfo(); break; case CST_ADMIN_DOMAIN_DASHBOARD: dashboard(); break; case CST_ADMIN_DOMAIN_PLUGINS: plugins(); break; case CST_ADMIN_DOMAIN_THEMES: themes(); break; case CST_ADMIN_DOMAIN_TAGS: tags(); break; case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS: plugin_options(); break; case CST_ADMIN_DOMAIN_THEME_OPTIONS: theme_options(); break; default: } } else { if (true == getConfig('rss.config.defaultdashboard')) { dashboard(); } else { channels(); } } echo "\n<div class=\"clearer\"></div>\n"; } else { rss_error(sprintf(__('<h1>Not Authorized!</h1>You are not authorized to access the administration interface. Please follow <a href="%s">this link</a> back to the main page. Have a nice day!'), getPath()), RSS_ERROR_ERROR, true); } echo "</div>\n"; }
<a class="navbar-brand" href="<?php echo get_url(); ?> " title="返回 <?php site_title(); ?> 首页"><?php site_name(); ?> </a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <?php admin_top_menu(); ?> </ul> </div> </nav> </header> <div class="container"> <div class="col-md-2"> <ul class="nav nav-pills nav-stacked"> <?php admin_menu(); ?> </ul> </div> <div class="admin_content col-md-10"> <!--顶部结束-->
$menu = referal_menu($core, $menu); } if ($core->user->work == -1) { $menu = external_menu($core, $menu); } if ($core->user->work >= 1) { $menu = order_menu($core, $menu); } if ($core->user->work == 0 || $core->user->work == 2) { $menu = webmaster_menu($core, $menu); } if ($core->user->comp && $core->user->compad) { $menu = company_menu($core, $menu); } if ($core->user->level == 1) { $menu = admin_menu($core, $menu); } $menu = base_menu($core, $menu); $newmenu = array(); foreach ($menu as $n => &$m) { if (is_array($m)) { $sub = array(); foreach ($m as $mm) { $sub[] = array('div' => $mm, 'link' => $core->url('m', $mm), 'name' => $core->lang['menu_sub_' . $mm] ? $core->lang['menu_sub_' . $mm] : $core->lang['menu_' . $mm]); } $newmenu[] = array('div' => $n, 'link' => $core->url('m', $n), 'name' => $core->lang['menu_' . $n], 'sub' => $sub); } else { $newmenu[] = array('div' => $m, 'link' => $core->url('m', $m), 'name' => $core->lang['menu_' . $m]); } } $core->setmenu($newmenu);
$mothers = getMotherInfo(); ?> <head> <?php head_tag("Admin LACTOR - " . _("Display Data")); ?> </head> <body> <div id="maincontainer"> <?php page_header(); admin_menu(1); ?> <div id="pagecontent"> <div id="registercontent"> <div id="container"> <div class='tabs'> <ul class="menu"> <li><a href='#displayData'><?php echo _("Display Data"); ?> </a></li> </ul> <div id='displayData'>
} ?> <head> <?php head_tag("Admin pCare - " . _("User Accounts")); ?> </head> <body> <div id="maincontainer"> <?php page_header(); admin_menu(3); ?> <div id="pagecontent"> <?php displayMessage(@$_SESSION['AccountMessage'], @$_SESSION['AccountDetails'], @$_SESSION['AccountType']); unset($_SESSION['AccountMessage'], $_SESSION['AccountDetails'], $_SESSION['AccountType']); $query = "SELECT email FROM Mothers m LEFT JOIN InfantProfile i ON m.mid = i.mid WHERE i.mid IS NULL;"; $result = mysql_query($query); $needInfoEmails = array(); if (mysql_num_rows($result)) { while ($row = mysql_fetch_array($result)) { array_push($needInfoEmails, $row['email']); } if (count($needInfoEmails)) { $childMessage = "The following mother(s) need their child information entered: ";
th { background-color: #ddd; } td:first-child { background-color: #ddd; } </style> </head> <body> <div id="maincontainer"> <?php page_header(); ?> <?php admin_menu(0); ?> <div id="pagecontent"> <form method="post" action="admin/display_data.php" name="dash"> <input type="hidden" name="dateFrom" value=<?php echo "\"" . date("Y-m-d") . "\""; ?> \> <input type="hidden" name="dateTo" value=<?php echo "\"" . date("Y-m-d") . "\""; ?> \>
initialize(); ?> <head> <?php head_tag("Admin LACTOR - Notifications"); ?> </head> <body> <div id="maincontainer"> <?php page_header(); admin_menu(6); ?> <div id="pagecontent"> <div id="registercontent"> <div id="container"> <div class="tabs"> <ul class="menu"> <li><a href="#displayData"><?php echo _("Notifications"); ?> </a></li> </ul> <div id="displayData">
global $table_prefix, $config, $lang; /* $table_prefix = $GLOBALS['table_prefix']; $config = $GLOBALS['board_config']; $lang = $GLOBALS['lang']; */ } if (!defined('IP_ROOT_PATH')) { define('IP_ROOT_PATH', './../'); } if (!defined('PHP_EXT')) { define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); } include IP_ROOT_PATH . 'includes/functions_cash.' . PHP_EXT; $menu = array(); admin_menu($menu); if ($config['cash_adminbig']) { for ($i = 0; $i < sizeof($menu); $i++) { for ($j = 0; $j < $menu[$i]->num(); $j++) { $module['3100_CASH'][$menu[$i]->items[$j]->title] = $menu[$i]->items[$j]->linkage(); if ($j == $menu[$i]->num() - 1 && !($i == sizeof($menu) - 1)) { $lang[$menu[$i]->items[$j]->title] = $lang[$menu[$i]->items[$j]->title] . '</a></span></td></tr><tr><td class="row2" height="7"><span class="genmed"><a name="cm' . $menu[$i]->num() . '">'; } } } } else { $file = basename(__FILE__); //$module['3100_CASH']['110_Cash_Admin'] = $file; $module['3100_CASH']['110_Cash_Admin'] = 'cash_main.' . PHP_EXT; $module['3100_CASH']['120_Cash_Help'] = 'cash_help.' . PHP_EXT; }
echo Url::make(Config::get('application.admin_folder')); ?> "> <img src="<?php echo theme_url('assets/img/logo.png'); ?> " alt="Anchor CMS"> </a> <?php if (($user = Users::authed()) !== false) { ?> <nav> <ul> <?php foreach (admin_menu() as $title => $url) { ?> <li <?php if (strpos(Url::current(), $url) !== false) { echo 'class="active"'; } ?> > <a href="<?php echo Url::make($url); ?> "><?php echo __('common.' . $title, $title); ?> </a> </li>
function admin_init() { global $theuser, $config; $postuser = ''; $postpass = ''; $cookieuser = ''; //print_r($_COOKIE); if (isset($_POST['action_logout'])) { setcookie("cookie_user", '', time() - 10000); echo '<div>Redirecting...</div><script> var basepath = unescape(window.location.pathname); setTimeout( refresh, 1500 ); function refresh() { window.location.href = basepath; } </script>'; return; } if (isset($_COOKIE['cookie_user'])) { $cookieuser = $_COOKIE['cookie_user']; } if (isset($_POST['user'])) { $postuser = $_POST['user']; } if (isset($_POST['password'])) { $postpass = $_POST['password']; } $args = array(); if ($cookieuser != '') { $theuser = $cookieuser; admin_menu(); return; } //print_r($_POST); //print_r($config); if ($postuser == $config['user']) { if ($postpass == $config['password']) { $theuser = $postuser; admin_menu(); return; } else { $args['warning'] = 'Password not correct...'; admin_login_screen($args); return; } } else { if ($postuser != '') { $args['warning'] = 'Username not correct...'; } admin_login_screen($args); return; } }
<?php require 'header.php'; require 'stats/lib.php'; echo '<h1>' . __('Website Statistics') . '</h1>'; echo admin_menu(array('Summary' => 'stats.php?page=summary', 'Popular Pages' => 'stats.php?page=popular_pages')); echo '<div class="has-left-menu">'; $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : ''; switch ($page) { case 'popular_pages': // { require 'stats/popular_pages.php'; break; // } // } default: // { require 'stats/summary.php'; // } } echo '</div>'; require 'footer.php';
<?php require 'header.php'; echo '<h1>Site Options</h1>'; echo admin_menu(array('General' => 'siteoptions.php?page=general', 'Users' => 'siteoptions.php?page=users', 'Groups' => 'siteoptions.php?page=groups', 'Themes' => 'siteoptions.php?page=themes', 'Plugins' => 'siteoptions.php?page=plugins')); $page = admin_verifypage(array('general', 'users', 'groups', 'themes', 'plugins'), 'general', isset($_REQUEST['page']) ? $_REQUEST['page'] : ''); echo '<div class="has-left-menu">'; require 'siteoptions/' . $page . '.php'; echo '</div>'; require 'footer.php';
loadVocabulary(); ?> <head> <?php head_tag("Admin LACTOR - " . _("Mother Log In")); ?> </head> <body> <div id="maincontainer"> <?php page_header(); admin_menu(2); ?> <div id="pagecontent"> <?php displayMessage('ProxyMessage', 'ProxyDetails', 'ProxyType'); ?> <div id="registercontent"> <div id="container"> <ul class="menu"> <li id="breastfeeding" class="active"><?php echo _("Mother's Portal"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JADE PALACE ADMIN PANEL</title> </head> <body> <table width=100% border=0> <tr> <td width=100% bgcolor=#19A349><center><h1>JADE PALACE ADMIN PANEL</h1></center></td> </tr> <tr><td> <hr/> <? include ("admin_functions.php"); include ('config.php'); admin_menu("news"); echo "</table>"; ?> <center><p>Administrator Panel Created by <a href=mailo:rafal.zdziech@gmail.com>aMiGa</a></p></center> </td></tr>
loadVocabulary(); ?> <head> <?php head_tag("LACTOR - " . _("Inbox")); ?> </head> <body> <div id="maincontainer"> <?php page_header(); admin_menu(ADMIN_PAGE_INBOX); ?> <!-- Page Content --> <div id="pagecontent"> <div class='message dynamic' style='display:none'></div> <?php if (isset($_SESSION['s_mid'])) { $_SESSION['Smessage'] = "Logged in as scientist."; $_SESSION['Stype'] = 2; $_SESSION['Sdetail'] = ""; displayMessage('Smessage', 'Sdetail', 'Stype'); } ?> <!-- form box -->
?> <head> <?php head_tag("Admin LACTOR - " . _("Child Info")); ?> <link rel="stylesheet" href="css/child.css" type="text/css" media="all" /> </head> <body> <div id="maincontainer"> <?php page_header(); admin_menu(4); ?> <div id="pagecontent"> <?php displayMessage('ChildMessage', 'ChildDetails', 'ChildType'); ?> <div id="registercontent"> <p> <?php echo _("Note: Once a child's information has been added for a certain mother, it cannot be undone or modified."); ?> </p> <br />