• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP html_head函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中html_head函数的典型用法代码示例。如果您正苦于以下问题:PHP html_head函数的具体用法?PHP html_head怎么用?PHP html_head使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了html_head函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: chdir

<?php

chdir("../../");
require_once "challenge/html_head.php";
html_head("Install No Escape");
if (!GWF_User::isAdminS()) {
    return htmlSendToLogin("Better be admin !");
}
/*
CREATE USER 'gizmore_noesc'@'localhost' IDENTIFIED BY 'gizmore_noesc';
CREATE DATABASE gizmore_noesc;
GRANT ALL ON gizmore_noesc.* TO 'gizmore_noesc'@'localhost' IDENTIFIED BY 'gizmore_noesc';
# Now execute install.php
*/
define('NO_ESCAPE_USER', 'gizmore_noesc');
define('NO_ESCAPE_DB', 'gizmore_noesc');
define('NO_ESCAPE_PW', 'gizmore_noesc');
require_once 'code.include';
noesc_createTable();
$title = 'No Escape';
$solution = false;
$score = 2;
$url = "challenge/no_escape/index.php";
$creators = "Gizmore";
$tags = 'Exploit,PHP,MySQL';
WC_Challenge::installChallenge($title, $solution, $score, $url, $creators, $tags, true);
require_once "challenge/html_foot.php";
开发者ID:sinfocol,项目名称:gwf3,代码行数:27,代码来源:install.php


示例2: array

/**
 * Areas definieren
 */
#$areas['workflow'] = array('title'=>'Workflow',          'color'=>'#336600');
$areas['upload'] = array('title' => 'Uploads verwalten', 'color' => '#663300');
$areas['user'] = array('title' => 'Leser verwalten', 'color' => '#660033');
$areas['rights'] = array('title' => 'Dateien verwalten', 'color' => '#330066');
$areas['download'] = array('title' => 'Download', 'color' => '#660066');
// Default Area aktivieren
$area = $_REQUEST['area'];
if (!isset($area) || !isset($areas[$area])) {
    $area = array_keys($areas);
    $area = $area[0];
}
// Kopf ausgeben
html_head('<style>.tblhead {background-color: ' . $areas[$area]['color'] . '}</style>');
?>

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>&nbsp; Redakteur: <?php 
echo $db_user['name'];
?>
 &nbsp;</b></td>

<?php 
// alle Areas
foreach ($areas as $_key => $_val) {
    ?>
  <td>&nbsp;</td><td style="padding:3px;background-color:<?php 
    echo $area == $_key ? $areas[$area]['color'] : "gray";
开发者ID:BackupTheBerlios,项目名称:dep,代码行数:31,代码来源:grp_redakteur.php


示例3: html_head

    $MY_ENV['selected']['langde'] = "selected";
}
if ($l == "es") {
    $MY_ENV['selected']['langes'] = "selected";
}
if ($l == "pl") {
    $MY_ENV['selected']['langpl'] = "selected";
}
if ($l == "ru") {
    $MY_ENV['selected']['langru'] = "selected";
}
// adding image if URL sent
if (trim($MY_ENV['imgurl']) != "") {
    $MY_ENV['htmlimgurl'] = "<figure><img src=\"" . $MY_ENV['imgurl'] . "\"></figure>";
}
$html_head = html_head();
print $html_head;
if ($MY_ENV['complete'] != "yes") {
    $html_body = html_form();
} else {
    $html_body = html_page();
}
print $html_body;
function html_head()
{
    return "\n  <!DOCTYPE html>\n  <html>\n  <head>\n  \t<meta charset=\"utf-8\">\n  \t<title>Screencast</title>\n  \t<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900|Roboto+Slab:400,100,700&subset=latin,greek,greek-ext,vietnamese,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css'>\n  \t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/main.css\">\n  </head>";
}
// end function html_head()
function html_form()
{
    global $lang;
开发者ID:vmcarranza,项目名称:screencast-titles,代码行数:31,代码来源:index.php


示例4: chdir

<?php

chdir("../../../../");
require_once "challenge/html_head.php";
html_head("Training: Bacon Returns");
if (!GWF_User::isAdminS()) {
    echo GWF_HTML::err('ERR_NO_PERMISSION');
    $_GET['no_session'] = 1;
    require_once "challenge/html_foot.php";
    return;
}
$title = 'Training: Bacon Returns';
$solution = false;
$score = 3;
$url = "challenge/training/encodings/bacon2/index.php";
$creators = "Gizmore";
$tags = 'Encoding,Crypto,Training';
WC_Challenge::installChallenge($title, $solution, $score, $url, $creators, $tags, true);
require_once "challenge/html_foot.php";
开发者ID:sinfocol,项目名称:gwf3,代码行数:19,代码来源:install.php


示例5: chdir

<?php

chdir("../../../../");
require_once "challenge/html_head.php";
html_head("Install Training: Math Pyramid");
if (!GWF_User::isAdminS()) {
    echo GWF_HTML::err('ERR_NO_PERMISSION');
    $_GET['no_session'] = 1;
    require_once "challenge/html_foot.php";
    return;
}
$title = 'Training: Math Pyramid';
$solution = false;
$score = 2;
$url = "challenge/training/math/pyramid/index.php";
$creators = "Gizmore";
$tags = 'Math,Training';
WC_Challenge::installChallenge($title, $solution, $score, $url, $creators, $tags, true);
require_once "challenge/html_foot.php";
开发者ID:sinfocol,项目名称:gwf3,代码行数:19,代码来源:install.php


示例6: html_head

	switch ($action) {
	case "subscribe":
		$area->activate_participation();
		redirect();
		break;
	case "unsubscribe":
		$area->deactivate_participation();
		redirect();
		break;
	}
	warning(_("Unknown action"));
	redirect();
}


html_head(_("Subject areas"), true);

$entitled = ( Login::$member and Login::$member->entitled($ngroup->id) );

?>
<table>
	<tr>
		<th><?php 
echo _("Name");
?>
</th>
		<th><?php 
echo _("Participants");
?>
</th>
<? if ($entitled) { ?>
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:31,代码来源:areas.php


示例7: get_request_data

require './inc/script_start.inc.php';
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    $table = get_request_data('table', 'GET');
    $col = get_request_data('col', 'GET');
    $where = get_request_data('where', 'GET');
} else {
    $table = get_request_data('table');
    $col = get_request_data('col');
    $where = get_request_data('where');
    $s_wt['blob_as'][$col] = get_request_data('blobtype');
}
$imageurl = 'showimage.php?where=' . urlencode($where) . '&table=' . $table . '&col=' . $col;
$imageurl .= '&' . uniqid('UNIQ_');
$blob = get_blob_content(sprintf('SELECT %s FROM %s %s', $col, $table, $where));
$title = build_title(sprintf('Blob from %s %s', $table, $where), FALSE);
echo html_head($title) . '<body bgcolor="' . $s_cust['color']['area'] . "\">\n" . js_window_resize(BLOB_WINDOW_WIDTH, BLOB_WINDOW_HEIGHT) . '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . '" name="showblob_form">' . "\n" . hidden_field('table', htmlentities($table)) . hidden_field('col', htmlentities($col)) . hidden_field('where', htmlentities($where)) . "<table>\n<tr>\n<td>\n" . get_selectlist('blobtype', $blob_types, $s_wt['blob_as'][$col], TRUE) . "</td>\n<td>\n" . '<input type="submit" name="change_blobtype" value="Change Type">' . "\n" . "</td>\n<td width=\"50\">\n</td>\n<td>\n" . '<input type="button" value="Close" onClick="self.close()">' . "\n" . "</td>\n</tr>\n<table>\n" . "</form>\n";
$blobas = isset($s_wt['blob_as'][$col]) && $s_wt['blob_as'][$col] != '' ? $s_wt['blob_as'][$col] : 'hex';
switch ($blobas) {
    case 'png':
    case 'jpg':
    case 'gif':
        echo '<img src="' . $imageurl . "\">\n";
        break;
    case 'text':
        echo '<pre align="left">' . htmlspecialchars($blob) . "</pre>\n";
        break;
    case 'html':
        echo $blob;
        break;
    case 'hex':
        echo hex_view($blob);
开发者ID:silvadelphi,项目名称:firebirdwebadmin,代码行数:31,代码来源:showblob.php


示例8: html_head

<?php

include '_common.php';
?>

<?php 
echo html_head('Create Account');
?>
	<body class="kbc-outer-page">
	<div class="kbc-outer-container">
		<div class="kbc-outer-logo">
			<span class="kbc-icon-keboola-logo"></span>
		</div>
		<form class="kbc-outer-content well" role="form">
			<div class="kbc-outer-header">
				<h2>Create Account</h2>
				<p>We will send you password retrieval link via email</p>
			</div>
			<div class="kbc-outer-input">
				<label for="inputEmail" class="sr-only">Email</label>
				<input type="email" id="inputEmail" class="form-control" placeholder="Email" required="" autofocus="">
				<label for="inputName" class="sr-only">Name</label>
				<input type="text" id="inputName" class="form-control" placeholder="Name">
				<label for="inputPassword" class="sr-only">Password</label>
				<input type="password" id="inputPassword" class="form-control" placeholder="Password">
				<label for="inputConfirmPassword" class="sr-only">Confirm Password</label>
				<input type="password" id="inputConfirmPassword" class="form-control" placeholder="Confirm Password">
			</div>
			<div class="kbc-outer-form">
				<div class="formCaptcha form-group kbc-outer-captcha">
					<img width="200" height="50" alt="" src="captcha.png">
开发者ID:keboola,项目名称:kbc-bootstrap,代码行数:31,代码来源:signup.php


示例9: html_head

<?php

include '_common.php';
?>

<?php 
echo html_head('Login');
?>
	<body class="kbc-outer-page">
		<div class="kbc-outer-container">
			<div class="kbc-outer-logo">
				<span class="kbc-icon-keboola-logo"></span>
			</div>
			<form class="kbc-outer-content well" role="form">
				<div class="kbc-outer-header">
					<h2>Please Sign In</h2>
				</div>
				<div class="kbc-outer-input">
					<label for="inputEmail" class="sr-only">Email</label>
					<input type="email" id="inputEmail" class="form-control" placeholder="Email">
					<label for="inputPassword" class="sr-only">Password</label>
					<input type="password" id="inputPassword" class="form-control" placeholder="Password">
				</div>
				<button class="btn btn-lg btn-info btn-block kbc-login-submit" type="submit">Sign In</button>
				<p class="kbc-login-links">
					<a href="">Sign Up</a>
					<a href="">Forgot password?</a>
				</p>
			</form>
			<p class="kbc-login-terms">By signing in You agree with our <a href="">Terms and Conditions</a></p>
		</div>
开发者ID:keboola,项目名称:kbc-bootstrap,代码行数:31,代码来源:login.php


示例10: Member

<?
/**
 * member.php
 *
 * @author Magnus Rosenbaum <[email protected]>
 * @package Basisentscheid
 */


require "inc/common_http.php";

Login::access("member");

if (empty($_GET['id'])) error(_("Missing parameter"));

$member = new Member(intval($_GET['id']));

if (!$member) error(_("The requested member does not exist."));


html_head(sprintf(_("Member %s"), $member->username()));

?>
<p><?php 
echo content2html($member->profile);
?>
</p>
<?

html_foot();
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:30,代码来源:member.php


示例11: crypt

		$member->password = crypt($password);
		if ( ! $member->update(['password'], 'password_reset_code=NULL, password_reset_code_expiry=NULL') ) break;
		success(_("Password has been reset successfully. You can log in with the new password now:"));

		redirect("login.php");
		break;

	default:
		warning(_("Unknown action"));
		redirect();
	}
}


html_head(_("Reset password"));

form(BN);
input_hidden("action", "set_password");
?>
<fieldset class="member">
<?
if ($member) {
	input_hidden("code", $code);
} else {
?>
	<div class="description td1"><?php 
echo _("Please enter the code you have received by email:");
?>
</div>
	<div class="input td1">
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:30,代码来源:reset_password.php


示例12: html_head

	if ($action) {
		if ($action!="confirm") error(_("Unknown action"));
		action_required_parameters('code');
		action_confirm_mail($_POST['code']);
	}

	// link in confirmation request mail clicked
	if (isset($_GET['code'])) {
		action_confirm_mail($_GET['code']);
	}

}


html_head(_("Email address confirmation"));

if (Login::$member) {

	form(BN);
?>
<label><?php 
echo _("Code");
?>
: <input type="text" name="code" size="20" value="<?php 
echo trim(@$_REQUEST['code']);
?>
"></label>
<input type="hidden" name="action" value="confirm">
<input type="submit" value="<?php 
echo _("confirm");
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:30,代码来源:confirm_mail.php


示例13: param

<?php

include_once 'lib.php';
$sort = param($_GET, 'sort', 'rd');
$order = param($_GET, 'order', 'ASC');
html_head('Admin > Cards > Extensions list', array('style.css', 'admin.css'));
?>
 <body>
<?php 
html_menu();
?>
  <div class="section">
   <h1>Extensions</h1>
   <a href="../">Return to admin</a>
   <form method="get">
    Sort : 
    <select name="sort">
     <option value="rd">Release date</option>
     <option value="priority">Priority</option>
    </select>
    <select name="order">
     <option value="ASC">Ascendency</option>
     <option value="DESC">Descendency</option>
    </select>
    <input type="submit">
   </form>
<?php 
$ext = param($_GET, 'ext_del', 0);
if ($ext != 0) {
    query("DELETE FROM extension WHERE `id` = '{$ext}' ; ");
    echo "  <p>Extension {$ext} removed</p>";
开发者ID:OlivierLamiraux,项目名称:mtgas,代码行数:31,代码来源:extensions.php


示例14: intval

<?php

include '../lib.php';
$id = intval(param_or_die($_GET, 'id'));
$pid = param($_GET, 'pid', '');
html_head('Building #' . $id, array('style.css', 'options.css', 'menu.css', 'tournament.css', 'build.css'), array('lib/Flotr2/flotr2.min.js', 'html.js', 'math.js', 'image.js', 'deck.js', 'options.js', 'stats.js', 'websockets.js', 'menu.js', 'spectactor.js', 'tournament/lib.js', 'tournament/limited.js', 'tournament/build.js', '../variables.js.php'));
?>
 <body onload="start(<?php 
echo $id;
?>
, '<?php 
echo $pid;
?>
')">
  <div id="info" class="section">
   <input id="timeleft" type="text" value="Initializing" disabled="disabled" title="Time left for building" size="8"><br>
   <label title="Tournament starts if every player check this box before timer ends"><input id="ready" type="checkbox" disabled="disabled">I'm ready</label>
  </div>

  <div id="stats" class="section">
   <h2>Stats</h2>
   <label><input id="stats_side" type="checkbox">Stats side</label>
   <div id="stats_graphs"></div>
  </div>

  <div id="selectors" class="section"></div>

  <div id="div_side" class="section">
   <h1>Sideboard <?php 
echo ws_indicator();
?>
开发者ID:OlivierLamiraux,项目名称:mtgas,代码行数:31,代码来源:build.php


示例15: param_or_die

<?php

include_once 'lib.php';
$ext = param_or_die($_GET, 'ext');
html_head('Admin > Cards > Extension', array('style.css', 'admin.css', 'admin_extension.css'), array('lib/jquery.js', 'html.js', 'math.js', 'stats.js', 'lib/Flotr2/flotr2.min.js', 'admin/extension.js'));
?>

 <body>
<?php 
html_menu();
?>
  <div class="section">
<?php 
$query = query("SELECT * FROM extension WHERE `se` = '{$ext}' ; ");
if ($arr = mysql_fetch_array($query)) {
    $ext_bdd = $arr;
    // Backup first extension line (normally only 1)
    echo '  <h1>' . $ext . ' - ' . $ext_bdd['name'] . ' (#' . $ext_bdd['id'] . ')</h1>';
    echo '  <input id="ext" type="hidden" value="' . $ext_bdd['id'] . '">';
}
?>
  <a href="extensions.php">Return to extension list</a>

  <form id="update_ext" action="json/extension.php">
   <input type="hidden" name="ext_id" value="<?php 
echo $ext_bdd['id'];
?>
">
    Code : <input type="text" name="se" size="4" value="<?php 
echo $ext_bdd['se'];
?>
开发者ID:OlivierLamiraux,项目名称:mtgas,代码行数:31,代码来源:extension.php


示例16: html_head

<?php

include '_common.php';
?>

<?php 
echo html_head('Orchestrations List');
echo head('<h1>Orchestrations</h1> <a href=""><span class="kbc-refresh kbc-icon-cw"></span></a>', '<button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal"><span class="kbc-icon-plus"></span> Add Orchestration</button>
	<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-lg btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-lg btn-success">Save changes</button>
      </div>
    </div>
  </div>
</div>
	');
?>

	<?php 
include 'notifications.php';
开发者ID:keboola,项目名称:kbc-bootstrap,代码行数:31,代码来源:orchestrations-list.php


示例17: param_or_die

<?php

include_once 'lib.php';
$id = param_or_die($_GET, 'id');
html_head('Admin > Cards > View one', array('style.css', 'admin.css'), array('lib/jquery.js', 'math.js', 'html.js'));
?>
  <script type="text/javascript">
function setimage(src, backsrc) {
	var img = new Image() ;
	img.addEventListener('load', function(ev) {
		var ci = document.getElementById('cardimage') ;
		ci.style.width = this.width+'px' ;
		ci.style.height = this.height+'px' ;
		ci.style.backgroundImage = 'url("'+src+'")' ;
	}, false) ;
	img.addEventListener('error', function(ev) {
		alert('Error loading '+ev.target.src) ;
	}, false) ;
	img.src = src ;
	if ( backsrc ) {
		var img = new Image() ;
		img.addEventListener('load', function(ev) {
			var ci = document.getElementById('cardimageback') ;
			ci.style.width = this.width+'px' ;
			ci.style.height = this.height+'px' ;
			ci.style.backgroundImage = 'url("'+backsrc+'")' ;
		}, false) ;
		img.src = backsrc ;
	}
}
function start() {
开发者ID:OlivierLamiraux,项目名称:mtgas,代码行数:31,代码来源:card.php


示例18: error

/**
 * a fatal user error
 *
 * @param string  $text
 * @param boolean $content2html (optional) format content
 */
function error($text, $content2html=false) {
	if (PHP_SAPI=="cli") {
		// for tests
		echo "Error: ".$text."\n";
	} else {
		if (empty($GLOBALS['html_head_issued'])) {
			html_head(_("Error"));
		}
?>
<p class="error">&#9747; <?php 
echo $content2html ? content2html($text) : h($text);
?>
</p>
<?
		html_foot();
	}
	exit;
}
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:24,代码来源:functions.php


示例19: Proposal

}

$proposal = new Proposal($draft->proposal);

$issue = $proposal->issue();

$_SESSION['ngroup'] = $issue->area()->ngroup;

list($supporters, $proponents, $is_supporter, $is_proponent) = $proposal->supporters();

if (!$is_proponent and !Login::$admin) {
	error(_("You are not a proponent of this proposal!"));
}


html_head( sprintf(_("<a%s>Proposal %d</a>, version differences"), ' href="proposal.php?id='.$proposal->id.'"', $proposal->id) );

?>

<section class="proposal_info">
<? $proposal->display_proposal_info($issue, $proponents, $is_proponent); ?>
</section>

<section class="proposal_content diff">
<h2><?php 
echo _("Title");
?>
</h2>
<p class="proposal proposal_title"><? diff($draft->title, $draft2->title)?></p>
<h2><?php 
echo _("Content");
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:31,代码来源:diff.php


示例20: html_head

<?
/**
 * about
 *
 * @author Magnus Rosenbaum <[email protected]>
 * @package Basisentscheid
 */


require "inc/common_http.php";

html_head(_("About"));

readfile("locale/about_".LANG.".html");

?>
<p class="version"><?php 
echo _("Version");
?>
: <span><?php 
echo version();
?>
</span></p>
<?

html_foot();
开发者ID:ppschweiz,项目名称:basisentscheid,代码行数:26,代码来源:about.php



注:本文中的html_head函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP html_head_begin函数代码示例发布时间:2022-05-15
下一篇:
PHP html_graph_thumbnail_area函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap