本文整理汇总了PHP中top_panel函数的典型用法代码示例。如果您正苦于以下问题:PHP top_panel函数的具体用法?PHP top_panel怎么用?PHP top_panel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了top_panel函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: header
header('location: /login/');
exit;
}
$v_username = $user;
$v_min = escapeshellarg($_POST['v_min']);
$v_hour = escapeshellarg($_POST['v_hour']);
$v_day = escapeshellarg($_POST['v_day']);
$v_month = escapeshellarg($_POST['v_month']);
$v_wday = escapeshellarg($_POST['v_wday']);
$v_cmd = escapeshellarg($_POST['v_cmd']);
// Save changes
exec(VESTA_CMD . "v-change-cron-job " . $v_username . " " . $v_job . " " . $v_min . " " . $v_hour . " " . $v_day . " " . $v_month . " " . $v_wday . " " . $v_cmd, $output, $return_var);
check_return_code($return_var, $output);
unset($output);
$v_cmd = $_POST['v_cmd'];
// Set success message
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = __("Changes has been saved.");
}
}
// Header
include $_SERVER['DOCUMENT_ROOT'] . '/templates/header.html';
// Panel
top_panel($user, $TAB);
// Display body
include $_SERVER['DOCUMENT_ROOT'] . '/templates/admin/edit_cron.html';
// Flush session messages
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
// Footer
include $_SERVER['DOCUMENT_ROOT'] . '/templates/footer.html';
开发者ID:DouglasDigital,项目名称:vesta,代码行数:31,代码来源:index.php
示例2: top_panel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Bibliothèque</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
</head>
<body>
<a href="index.php"><img class="image-header" src="image/header.jpg"/></a>
<section>
<div id="panel">
<?php
top_panel();
?>
</div>
<br>
<?php
if ($_SESSION['langue'] == 'ru') {
echo '<h1 class="titre">мой счет</h1>';
} else {
echo '<h1 class="titre">Mon Compte</h1>';
}
?>
<div id="mid_emprunt">
<?php
body_panel();
?>
</div>
开发者ID:thecampagnards,项目名称:Portfolio,代码行数:31,代码来源:compte.php
示例3: render_page
function render_page($user, $TAB, $page)
{
$__template_dir = dirname(__DIR__) . '/templates/';
$__pages_js_dir = dirname(__DIR__) . '/js/pages/';
// Header
include $__template_dir . 'header.html';
// Panel
top_panel(empty($_SESSION['look']) ? $_SESSION['user'] : $_SESSION['look'], $TAB);
// Extarct global variables
// I think those variables should be passed via arguments
//*
extract($GLOBALS, EXTR_SKIP);
/*/
$variables = array_filter($GLOBALS, function($key){return preg_match('/^(v_|[a-z])[a-z\d]+$/', $key);}, ARRAY_FILTER_USE_KEY);
extract($variables, EXTR_OVERWRITE);
//*/
// Body
if ($_SESSION['user'] !== 'admin' && @(include $__template_dir . "user/{$page}.html")) {
// User page loaded
} else {
// Not admin or user page doesn't exist
// Load admin page
@(include $__template_dir . "admin/{$page}.html");
}
// Including common js files
@(include_once dirname(__DIR__) . '/templates/scripts.html');
// Including page specific js file
if (file_exists($__pages_js_dir . $page . '.js')) {
echo '<script type="text/javascript" src="/js/pages/' . $page . '.js?' . JS_LATEST_UPDATE . '"></script>';
}
// Footer
include $__template_dir . 'footer.html';
}
开发者ID:EidolonHost,项目名称:vesta,代码行数:33,代码来源:main.php
示例4: str_replace
$v_ns3 = str_replace("'", "", $v_ns3);
$v_ns4 = str_replace("'", "", $v_ns4);
$v_ns5 = str_replace("'", "", $v_ns5);
$v_ns6 = str_replace("'", "", $v_ns6);
$v_ns7 = str_replace("'", "", $v_ns7);
$v_ns8 = str_replace("'", "", $v_ns8);
}
// Set success message
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = __('Changes has been saved.');
}
}
// Header
include $_SERVER['DOCUMENT_ROOT'] . '/templates/header.html';
// Panel
if (!empty($_SESSION['look'])) {
top_panel($user, $TAB);
} else {
top_panel($_SESSION['user'], $TAB);
}
// Display body
if ($_SESSION['user'] == 'admin') {
include $_SERVER['DOCUMENT_ROOT'] . '/templates/admin/edit_user.html';
} else {
include $_SERVER['DOCUMENT_ROOT'] . '/templates/user/edit_user.html';
}
// Flush session messages
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
// Footer
include $_SERVER['DOCUMENT_ROOT'] . '/templates/footer.html';
开发者ID:DouglasDigital,项目名称:vesta,代码行数:31,代码来源:index.php
注:本文中的top_panel函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论