本文整理汇总了PHP中getHead函数的典型用法代码示例。如果您正苦于以下问题:PHP getHead函数的具体用法?PHP getHead怎么用?PHP getHead使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getHead函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
}
开发者ID:mvbaxter,项目名称:gi-whiteboard,代码行数:33,代码来源:ajax_user_requests.php
示例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
}
开发者ID:0xpr03,项目名称:yayd-frontend,代码行数:34,代码来源:template.inc.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;
}
开发者ID:jim19901103,项目名称:WebTest,代码行数:19,代码来源:libs_goplay_manager_bootstrap_ui.php
示例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">
开发者ID:smichrissoft,项目名称:doc-generator,代码行数:31,代码来源:forgot-password.php
示例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);
}
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:index.php
示例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>
开发者ID:smichrissoft,项目名称:doc-generator,代码行数:31,代码来源:index.php
示例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
开发者ID:facom,项目名称:Sinfin,代码行数:31,代码来源:documentos.php
示例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">
开发者ID:smichrissoft,项目名称:doc-generator,代码行数:31,代码来源:index.php
示例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;
}
开发者ID:mvbaxter,项目名称:gi-whiteboard,代码行数:27,代码来源:ajax_requests.php
示例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
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:30,代码来源:ver_articulo_blank.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">
开发者ID:uttapong,项目名称:tobdongcolor,代码行数:31,代码来源:main.php
示例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";
?>
" />
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:index.php
示例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 />
开发者ID:antoineguillou,项目名称:comptes,代码行数:31,代码来源:add-event.php
示例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>
开发者ID:Hullgj,项目名称:gtmarine,代码行数:31,代码来源:home.php
示例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>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:index.php
示例16: getHead
<?php
require_once "functions.php";
require_once 'patterns/head.inc';
require_once 'patterns/footer.inc';
require_once 'patterns/header.inc';
?>
<!doctype html>
<html>
<head>
<?php
getHead();
?>
</head>
<body>
<?php
if (!user_is_logged()) {
?>
<?php
getHeader('Connection');
?>
<div class="wrapper">
<section class="login">
开发者ID:antoineguillou,项目名称:comptes,代码行数:31,代码来源:index.php
示例17: setTitle
function setTitle($title)
{
addHTML(getHead(), "title", $title, true);
}
开发者ID:ZeitZumSterben,项目名称:website-cms,代码行数:4,代码来源:dom-function.php
示例18: getHead
<?php
echo getHead('en', ['_main.min.css']);
?>
<div class="wrapper">
<?php
echo $nav->getNav('bootstrap', 'GT Marine Offshore', false);
?>
<div class="landing">
<section class="container">
<h1>Contacts</h1>
<article>
<h2>Find us.</h2>
<p>
Insert Google Map stuff here.
</p>
<iframe width="100%" height="450" frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?q=61+Rimsdale+Drive,+Manchester+M400GN,+United+Kingdom&key=AIzaSyCbZ8ZIiV0odrf2ihYsfMeGBCbsl6wnRE8" allowfullscreen></iframe>
</article>
<article>
<h2>article.title</h2>
<p>
<ul>
<li>61 Rimsdale drive</li>
<li>Manchester</li>
<li>M400GN</li>
</ul>
</p>
</article>
</section>
开发者ID:Hullgj,项目名称:gtmarine,代码行数:31,代码来源:contacts.php
示例19: header
<?
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
require_once($_SERVER["DOCUMENT_ROOT"]."/constants.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/functions/general.php");
?>
<html>
<head>
<?php
echo getHead("Sistema de Evaluación de Desempeño " . $_REQUEST["ano"], array("style.css?today=" . date("Ymd")));
?>
<script language="JavaScript" src="js/objetivos.js"></script>
</head>
<body bgcolor="#AFC2BE" bottommargin="5" leftmargin="5" rightmargin="5" style="margin-top:5px;">
<form action="procesar_objetivos.php" enctype="multipart/form-data" id="formObjetivos" method="post" name="formObjetivos" target="_self" onSubmit="return validarFormObjetivos(formObjetivos)">
<input id="FormularioId" name="FormularioId" type="hidden" value="<?php
echo $_REQUEST["formularioid"];
?>
">
<input id="Id" name="Id" type="hidden" value="<?php
echo $_REQUEST["id"];
?>
">
<input id="Num" name="Num" type="hidden" value="<?php
echo $_REQUEST["num"];
?>
">
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:modificar_objetivo.php
示例20: array
$jsonArray = array("status" => "ok");
return $jsonArray;
}
if ($_POST) {
$dataType = trim($_POST["dataType"]);
if ($dataType == "getTeacherInformation") {
$openid = trim($_POST["openid"]);
echo json_encode(getTeacherInformation($openid, $conn));
} else {
if ($dataType == "getCertificates") {
$openid = trim($_POST["openid"]);
echo json_encode(getCertificates($openid, $conn));
} else {
if ($dataType == "getHead") {
$openid = trim($_POST["openid"]);
echo json_encode(getHead($openid, $conn));
} else {
if ($dataType == "certificateRecord") {
$openid = trim($_POST["teacherOpenId"]);
$desc = trim($_POST["description"]);
$imgUrl = trim($_POST["imageUrl"]);
echo json_encode(certificateRecord($openid, $desc, $imgUrl, $conn));
} else {
if ($dataType == "updateCertificateDesc") {
$updateId = trim($_POST["updateId"]);
$updateVal = trim($_POST["updateVal"]);
echo json_encode(updateCertificateDesc($updateId, $updateVal, $conn));
} else {
if ($dataType == "deleteCertificate") {
$deleteId = trim($_POST["deleteId"]);
echo json_encode(deleteCertificate($deleteId, $conn));
开发者ID:AnderLX,项目名称:wechat,代码行数:31,代码来源:teacherRegistrationService.php
注:本文中的getHead函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论