本文整理汇总了PHP中getHead函数的典型用法代码示例。如果您正苦于以下问题:PHP getHead函数的具体用法?PHP getHead怎么用?PHP getHead使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getHead函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_table_data
function get_table_data($user_access = 0)
{
global $mySQLi, $users, $user_meta;
$sql = "SELECT * FROM `{$users}` u WHERE u.deleted='0' ORDER BY u.lastname,u.firstname;";
$rows = $mySQLi->get_results($sql);
$out['sql'] = $sql;
$out['success'] = true;
$out['aoColumns'] = getHead($user_access);
if ($mySQLi->error !== '') {
$out['tbody'] = '<tbody><tr><td colspan="4">(ERROR (' . $mySQLi->error_num . '): ' . $mySQLi->error . ')</td></tr></tbody>';
} else {
if ($mySQLi->row_count == 0) {
$out['tbody'] = '<tbody><tr><td colspan="4">(No users defined)</td></tr></tbody>';
} else {
$out['tbody'] = '<tbody>';
$today = strtotime('today');
foreach ($rows as $user) {
$last_accessed = getLast_Accessed($user['id'], $today);
$out['aaData'][] = array('id' => $user['id'], 'nuid' => $user['nuid'], 'username' => $user['lastname'] . ', ' . $user['firstname'], 'date_last_accessed' => $last_accessed['date'], 'last_accessed' => isset($last_accessed['text']) ? $last_accessed['text'] : '');
$out['tbody'] .= '<tr user_id="' . $user['id'] . '"><td class="nuid">' . $user['nuid'] . '</td><td class="username">' . $user['lastname'] . ', ' . $user['firstname'] . '</td>';
if ($user_access == 10) {
$out['tbody'] .= '<td class="actions"><a href="?action=edit&id=' . $user['id'] . '" title="Edit ' . $user['lastname'] . ', ' . $user['firstname'] . '" class="button edit"><img src="/utility/gi-whiteboard/img/btn-edit-user.png" /></a>' . '<a href="?action=delete&id=' . $user['id'] . '" title="Delete ' . $user['lastname'] . ', ' . $user['firstname'] . '" class="button delete"><img src="/utility/gi-whiteboard/img/btn-delete-user.png" />' . '</a></td>';
}
$out['tbody'] .= '</tr>';
}
// loop foreach user
$out['tbody'] .= '</tbody>';
return $out;
}
// end if error
}
// end if nothing found
}
示例2: showTemplate
function showTemplate()
{
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow" />
<meta name="author" content="Aron Heinecke" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="Stylesheet" media="all" type="text/css" href="css/bootstrap.min.css">
<link rel="Stylesheet" media="all" type="text/css" href="css/default.css">
<script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
<link rel="icon" href="data:;base64,=">
<title>YAYD Frontend demonstration</title>
<?php
if (function_exists('getHead')) {
// include mod exclusive head content if function exists
getHead();
}
?>
</head>
<body>
<!--site-->
<?php
echo getContent();
?>
<!--/site-->
<script src="js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>
<?php
}
示例3: getManagerHeader
function getManagerHeader($userPriority)
{
header('Content-Type: text/html; charset=utf-8');
$head = getHead();
switch ($userPriority) {
case 1:
case 2:
$result = getResultPriority1();
break;
case 3:
case 4:
$result = getResultPriority3();
break;
default:
$result = getResultPriority0();
break;
}
return $head . $result;
}
示例4: getHead
<?php
require "../../const.php";
require SITE_URL . "init.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
getHead("Remind password");
?>
</head>
<body>
<div class="wrapper">
<?php
getHeader();
?>
<div class="row"></div>
<div class="warning-container container text-center">
<div class="warning"><p>Alert!</p></div>
</div>
<div class="container registration-form">
<div class="registration text-center registration-header-container">
<h2>We remind you your password</h2>
<p>Please, fill in all the fields, and click to "Send"</p>
</div>
<div class="registration text-center registration-login-container">
<input required = "required" type="text" name = "remind-username-field" placeholder = "Your Nickname">
</div>
<div class="registration text-center registration-password-container">
<input required = "required" type="password" name = "remind-input-password" placeholder="Your new password">
示例5: array
$user = $_SESSION["identidad"];
$params = array(":evaluador" => $user, ":ano" => $ano);
$sql =
"SELECT 1
FROM rrhh.hue_usuarioevaluacion
WHERE ue_evaluador = UPPER(:evaluador)
AND ue_anoevaluacion = :ano";
$esEvaluador = (valorSql($sql, -1, $params) == 1);
$permisoCambioIdentidad = array("ALAPACO", "GLANCHA", "VDOMINGUEZ", "VLOPEZ");
?>
<html>
<head>
<?php
echo getHead("Sistema de Evaluación de Desempeño", array("style.css?today=" . date("Ymd")));
?>
<link rel="stylesheet" href="/js/popup/dhtmlwindow.css" type="text/css" />
<script src="/js/popup/dhtmlwindow.js" type="text/javascript"></script>
<script language="JavaScript" src="js/hint_config.js"></script>
<script language="JavaScript" src="js/evaluacion.js?rnd=<?php
echo time();
?>
"></script>
<script>
function cambiarAno() {
cambiarUsuarioAEvaluar('<?php
echo $user;
?>
', document.getElementById('Ano').value);
}
示例6: getHead
<?php
require "const.php";
require SITE_URL . "init.php";
?>
<!DOCTYPE html5>
<html lang="en">
<head>
<?php
getHead("Document Generator");
?>
</head>
<body>
<div class="wrapper">
<?php
getHeader();
?>
<div class="row"></div>
<div class="warning-container container bg-danger text-center">
<div class="warning"><p>Alert!</p></div>
</div>
<div class="col-lg-12">
<div class="row">
<div class="text-center col-lg-6 col-lg-offset-3 call-lawyer-container">
<button class="btn btn-warning btn-lg form-control call-lawyer" onclick="window.location = getURL()+'page/search-lawyer/'">Contact a lawyer</button>
</div>
<div class="text-center col-lg-6 col-lg-offset-3 call-lawyer-container">
<button class="btn btn-info btn-lg form-control show-template" onclick="window.location = getURL()+'page/download-templates/'">Download Template</button>
</div>
</div>
</div>
示例7: rtrim
<html>
<?php
////////////////////////////////////////////////////////////////////////
//LOAD LIBRARY
////////////////////////////////////////////////////////////////////////
$HOST = $_SERVER["HTTP_HOST"];
$SCRIPTNAME = $_SERVER["SCRIPT_FILENAME"];
$ROOTDIR = rtrim(shell_exec("dirname {$SCRIPTNAME}"));
require "{$ROOTDIR}/etc/library.php";
////////////////////////////////////////////////////////////////////////
//INITIALIZATION
////////////////////////////////////////////////////////////////////////
$content = "";
$content .= getHeaders();
$content .= getHead();
$content .= getMainMenu();
////////////////////////////////////////////////////////////////////////
//SUBMENU
////////////////////////////////////////////////////////////////////////
$content .= <<<M
<div class="moduletitle">
Documentos
</div>
<div class="submenu">
<a href="?">Inicio</a>
<span class="level5">| <a href="?mode=mode">Modo</a></span>
</div>
<div class="container">
M;
////////////////////////////////////////////////////////////////////////
//BODY
示例8: getHead
<?php
require "../../const.php";
require SITE_URL . "init.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
getHead("Joining");
?>
</head>
<body>
<div class="wrapper">
<?php
getHeader();
?>
<div class="row"></div>
<div class="warning-container container text-center">
<div class="warning"><p>Alert!</p></div>
</div>
<div class="container registration-form">
<div class="row">
<div class="registration text-center registration-header-container">
<h2>Registration</h2>
<p>Please, fill in all the fields, and click to "Ready"</p>
</div>
</div>
<div class="row">
<div class="registration text-center registration-login-container">
<input required = "required" type="text" name = "login-field" placeholder = "Your Nickname">
示例9: get_table_data
function get_table_data($access_level)
{
global $mySQLi, $posts, $myReturn;
$out['aoColumns'] = getHead($access_level);
$qry = "SELECT * FROM `{$posts}` WHERE `{$posts}`.`type`='post' AND `{$posts}`.`status`='open' ORDER BY created;";
$out['sql'] = $qry;
$result = $mySQLi->get_results($qry);
$out['access_level'] = $access_level;
$out['results'] = $result;
/* For debugging only. Passes security information for your MySQL connection
ob_start();
var_dump($mySQLi);
$out['mySQLi'] = ob_get_clean();
*/
if ($result !== false) {
$out['success'] = true;
$out['aaData'] = getBody($result, $access_level);
} else {
$out['success'] = false;
$out['tbody'] = '<tbody>';
$out['tbody'] .= '<tr><td colspan="' . (isset($access_level) && $access_level > 0 ? 6 : 7) . '">';
$out['tbody'] .= '(No records found)';
$out['tbody'] .= '</td></tr>';
}
// end if results found;
return $out;
}
示例10: getHead
if ($_REQUEST["id"] == 9562) {
?>
<script>
window.location.href = '/archivo/RDovU3RvcmFnZV9JbnRyYW5ldC8vdmFyaW9zL3Byb2RlXzIwMTUvcGF1dGFzX2dlbmVyYWxlc19wcm9kZV9jb3BhX2FtZXJpY2FfMjAxNS5wZGY=';
</script>
<?
exit;
}
// FIN - Harcodeo para notas en particular..
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="fondoBlank">
<head>
<?php
echo getHead(getPageTitle(-1), array("form_elements.css", "general.css", "style.css", "/modules/articulos/css/articulos.css"));
?>
<?
if ($row["AI_HABILITARCOMENTARIOS"] == "S") {
?>
<link href="/functions/comentarios/css/comentarios.css" rel="stylesheet" type="text/css" />
<?
}
?>
</head>
<body class="fondoBlank">
<div id="divFondoSeccion" style=""><div id="divTituloSeccion"><?php
echo $row["AI_TITULO"];
?>
</div></div>
<div><?php
示例11: getHead
<?php
getHead('P');
?>
</div>
<div id="P-Team"></div>
<?php
getColorAll('P');
?>
</div>
<div class="col-xs-12 col-md-6 col-lg-3">
<div class='color-head' style="background-color: #1abc9c">สีเขียว</div>
<div class="team-head">
<div class='head-text'>หัวหน้าสี</div>
<?php
getHead('G');
?>
</div>
<div id="G-Team"></div>
<?php
getColorAll('G');
?>
</div>
</div>
</div>
<footer class="footer">
示例12: validarIngresoPrimeraVez
validarIngresoPrimeraVez();
$pageid = -1;
if (isset($_REQUEST["pageid"])) {
$pageid = intval($_REQUEST["pageid"]);
}
$idEstadistica = '';
if ($pageid != 90) {
// La página 90 es el error 404, asi que no hace falta loguearlo..
$idEstadistica = logUrlIn($_SERVER["REQUEST_URI"]);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<?php
echo getHead(getPageTitle($pageid), array("form_elements.css", "general.css", "grid.css", "header.css", "list_of_items.css", "/functions/comentarios/css/comentarios.css", "style.css"));
?>
<script type="text/javascript">
redirectToGestionSistemas();
</script>
</head>
<body onKeyDown="keyDown(event)" onKeyUp="keyUp(event)" onLoad="onLoadBody()" onResize="resizeBody()">
<iframe id="iframeGeneral" name="iframeGeneral" src="" style="display:none;"></iframe>
<input id="idEstadistica" type="hidden" value="<?php
echo $idEstadistica;
?>
" />
<input id="iPaginaPublica" type="hidden" value="<?php
echo isPublicPage($pageid) ? "t" : "f";
?>
" />
示例13: header
if (!user_is_logged()) {
header("Location:connexion.php");
die;
}
require_once 'patterns/head.inc';
require_once 'patterns/footer.inc';
require_once 'patterns/header.inc';
?>
<!doctype html>
<html>
<head>
<?php
getHead('Ajouter un évènement');
?>
</head>
<body>
<?php
getHeader('Ajouter un évènement');
?>
<div class="wrapper">
<form class="addEvent" action="#" method="post" id="add-event">
<div class="textfield">
<input id="event-title" class="textfield__input" type="text" name="event-title" required />
示例14: getHead
<?php
echo getHead('en', ['gallery.prefixed.min.css', 'huwess.css', '_main.min.css']);
?>
<div class="wrapper">
<?php
echo $nav->getNav('bootstrap', 'GT Marine Offshore', false);
?>
<div class="home">
<div class="gallery autoplay items-3">
<div id="item-1" class="control-operator"></div>
<div id="item-2" class="control-operator"></div>
<div id="item-3" class="control-operator"></div>
<figure id="slide1" class="item">
<h2>Becoming a leading partner in assuring work force competency through safety</h2>
</figure>
<figure id="slide2" class="item">
<h2>Holding a world leading assurance program, working standards and innovative practical solutions</h2>
</figure>
<figure id="slide3" class="item">
<h2>Creating a safer place in the marine and offshore environment</h2>
</figure>
<div class="controls">
<a href="#item-1" class="control-button">•</a>
<a href="#item-2" class="control-button">•</a>
<a href="#item-3" class="control-button">•</a>
示例15: UPPER
$sql =
"SELECT 1
FROM rrhh.rue_usuarioevaluacion
WHERE ue_evaluador = UPPER(:evaluador)
AND ue_anio = :ano";
$esEvaluador = (valorSql($sql, -1, $params) == 1);
$permisoCambioIdentidad = array("ALAPACO", "JBALESTRINI", "EVILA");
require_once("index_combos.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<?php
echo getHead("Sistema de Evaluación de Desempeño", array("style.css?today=" . date("Ymd"), "/modules/evaluacion_desempeno/css/evaluacion_desempeno.css"));
?>
<link rel="stylesheet" href="/js/popup/dhtmlwindow.css" type="text/css" />
<script src="/js/popup/dhtmlwindow.js" type="text/javascript"></script>
<script language="JavaScript" src="/modules/evaluacion_desempeno/js/hint_config.js?rnd=<?php
echo time();
?>
"></script>
<script language="JavaScript" src="/modules/evaluacion_desempeno/js/evaluacion.js?rnd=<?php
echo time();
?>
"></script>
</head>
<body>
<iframe id="iframeEvaluacion" name="iframeEvaluacion" src="" style="display:none;"></iframe>