本文整理汇总了PHP中h1函数的典型用法代码示例。如果您正苦于以下问题:PHP h1函数的具体用法?PHP h1怎么用?PHP h1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了h1函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view
function view($data)
{
startOfPage();
//$title = get_Title();
//siteTitle("$title");
//startOfPage();
//startContent();
//$content = "this is the title";
//$title = get_Title();
//siteTitle("$title");
echo "<div class='jumbotron'>" . PHP_EOL;
startContent();
users_renderLoginForm();
echo "</div>" . PHP_EOL;
echo '<hr>' . PHP_EOL;
echo '<div class="container-narrow">' . PHP_EOL;
endContent();
p("<h2>Here is the list of your current enrollments</h2>");
//users_renderLoginForm();
$history = $data["Enrollment"];
h1("Your Enrollments");
foreach ($history as $enrollment) {
purchases_render($enrollment);
}
endOfPage();
}
示例2: view
function view($data)
{
startOfPage("esto es el view enrollment");
siteTitle("Blackboard");
p("Welcome to Blackboard - Select your subjects!");
$history = $data["enrollments"];
h1("Your Subjects");
foreach ($history as $enrollment) {
enrollments_render($enrollment);
}
endOfPage();
}
示例3: get_Form
function get_Form()
{
h1("First step:Create your database");
echo '<form id="CreateDataBase" action="installation.php" method="POST"> ' . PHP_EOL;
h3("Introduce a Hostname");
echo '<p><input name="hostname" type="text"/></p>' . PHP_EOL;
h3("Introduce an User");
echo '<p><input name="user" type="text" /></p>' . PHP_EOL;
h3("Introduce a password");
echo '<p><input name="password" type="text" /></p>' . PHP_EOL;
h3("Introduce a name for the database");
echo '<p><input name="db_name" type="text"/></p>' . PHP_EOL;
echo ' <input type="submit" value="Submit"/> ' . PHP_EOL;
echo '</form> ';
}
示例4: view
function view($data)
{
startOfPage();
echo "<div class='jumbotron'>" . PHP_EOL;
startContent();
users_renderLoginForm();
echo "</div>" . PHP_EOL;
echo '<div class="container-narrow">' . PHP_EOL;
endContent();
$history = $data["Enrollment"];
h1("Details of this course");
foreach ($history as $enrollment) {
//echo $data;
display_render($enrollment);
}
//endOfPage();
}
示例5: h1
function h1(&$arr, $i)
{
foreach ($arr as $k => &$v) {
echo "i={$i} key={$k}\n";
if ($k == 0) {
if ($i > 0) {
h1($arr, $i - 1);
} else {
if ($i == 0) {
echo "Unsetting key 1\n";
unset($arr[1]);
}
}
}
}
end($arr);
}
示例6: takeaway_heading
/**
*######################################################################
*# takeaway heading
*######################################################################
*/
function takeaway_heading($atts)
{
if (isset($atts['type'])) {
switch ($atts['type']) {
case 'h1':
return h1($atts);
break;
case 'h2':
return h2($atts);
break;
case 'h3':
return h3($atts);
break;
case 'h4':
return h4($atts);
break;
case 'h5':
return h5($atts);
break;
}
}
return '';
}
示例7: execute_loginAdm
function execute_loginAdm()
{
$username = $_POST['username'];
//echo "username is $username";
$password = $_POST['password'];
$success = users_checkExists($username, $password);
//echo $success;
$admin = users_checkAdmin($username);
//echo "admin is $admin";
if ($admin) {
execute_admin();
//view courses after logging in
} else {
h1("You don't have permission to access this section");
h3("<a href='index.php?option=courses&view=list'>Click here to be logged as an student</a>");
}
}
示例8: _
$str_add_card = $g_user->check_action(FICADD) == 1 ? $h_add_card_b->input() : "";
/*
* You show now the result
*/
if ($array == null) {
echo '<div class="content">';
echo '<h2 class="info2"> ' . _('Aucune fiche trouvée') . '</h2>';
echo $str_add_card;
echo '</div>';
return;
}
$allcard = isset($_GET['allcard']) ? 1 : 0;
if ($allcard == 0) {
$fiche_def = new Fiche_Def($cn, $_GET['cat']);
$fiche_def->get();
echo h1($fiche_def->label, "");
echo h2($fiche_def->fd_description, "");
}
echo '<div class="content">';
/* * *********************************************************************************************************************************
* Liste
*
* ******************************************************************************************************************************** */
if ($_GET['histo'] == -1) {
$write = $g_user->check_action(FICADD);
/**
* If ask for move or delete
*/
if (isset($_POST['action'])) {
if ($write == 1) {
$ack = $_POST['f_id'];
示例9: def_sprintfer
<?php
// def_sprintfer - делает тоже что и def_printfer, но используя функцию sprintf
def_sprintfer('h1', '<h1>%s</h1>');
$v = h1('hello!');
echo ">" . $v . "<";
?>
---
><h1>hello!</h1><
示例10: Tag
<?php
require __DIR__ . '/../../init.php';
$tag = new Tag($db, $user->get_id());
$rows = $tag->all();
$content = tag_names_ul($rows);
if (!$content) {
redirect('/tag/create/index.php?no_tags=1');
}
echo html(title('Homespot - All Tags'), navigation($user->is_authed()) . content(h1("All Tags") . p('tag count: ' . count($rows)) . $content));
?>
示例11: print_page_title
function print_page_title()
{
h1("Blog World");
}
示例12: html
<?php
return html(head(meta(array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), meta(array('id' => 'viewport', 'name' => 'viewport', 'content' => 'width=320; initial-scale=1.0; ' . 'maximum-scale=1.0; user-scalable=0;')), title(Sc('title'), Sd('title'), ' — Where’s my car?'), title(Sc('title', false), 'Where’s my car?'), S('link', array(array('type' => 'text/css', 'rel' => 'stylesheet', 'href' => '/css/style.css')))), body(div(array('id' => 'head'), a(array('href' => '/'), 'Where’s my car?')), div(array('id' => 'content'), h1(Sc('title'), Sd('title')), p(array('class' => 'error'), Sc('error'), Sd('error')), p(array('class' => 'status'), Sc('status'), Sd('status')), p(array('class' => 'success'), Sc('success'), Sd('success')), Sl()), div(array('id' => 'foot'), p(Sc('logged_in'), a(array('href' => '/logout'), 'Logout')), p('By ', a(array('href' => 'http://rcrowley.org/'), 'Richard Crowley')))));
示例13: Snil
<?php
return Snil(form(array('action' => '/report', 'method' => 'post'), Sc('address'), h1(small('Currently: '), Sd('address'), br(), Snil(Sc('sweep', true), small('That street is swept: '), Sd('sweep'), ' ', Sif(Sc('inaccurate', true), '(inaccurate)'), Sif(Sc('inaccurate', false), small(small(input(array('type' => 'submit', 'value' => 'Report as inaccurate', 'class' => 'link')))))), Sif(Sc('sweep', false), Sc('impossible', true), small('This address was impossible to geocode')), Sif(Sc('sweep', false), Sc('impossible', false), small('Street sweeping information will be available shortly ', small(a(array('href' => '/home'), 'Refresh')))))), form(array('action' => Sd('URL'), 'method' => 'post'), p(label(array('for' => 'address'), 'My car is at...'), br(), input(array('id' => 'address', 'name' => 'address', 'type' => 'text', 'value' => Sd('new_address'), 'class' => 'text stretch')), br(), 'Only the closest street number and the street name, please.', br(), small('Don’t choose a corner address because SF GIS might return inaccurate street sweeping data. Make sure you use the proper side of the street so we can accurately predict the street sweeping schedule.')), p(input(array('type' => 'submit', 'value' => 'Update', 'class' => 'button')))), Sif(Sc('need_confirm_sms'), h2('Confirm your cell phone number for SMS'), form(array('action' => '/confirm/sms', 'method' => 'post'), p(label(array('for' => 'code'), 'SMS confirmation code:'), br(), input(array('id' => 'code', 'name' => 'code', 'type' => 'text', 'class' => 'text stretch')), br(), small('Enter the code sent to your cell phone to have reminders sent to your phone.')), p(input(array('type' => 'submit', 'value' => 'Confirm', 'class' => 'button'))))));
示例14: h1
<?php
function h1()
{
$x = array(1, 2, 3, 4);
next($x);
$y = $x;
unset($y[2]);
var_dump(current($x));
var_dump(current($y));
}
h1();
示例15: array
<?php
require __DIR__ . '/../../../init.php';
$error = array();
$tag = new Tag($db, $user->get_id());
if (isset($_GET['no_tags'])) {
$error['no_tags'] = 'you need tags to use this service';
}
if (isset($_POST['name'])) {
if (count($error) == 0) {
$tag->create($_POST['name']);
redirect('/tags');
}
}
echo html(title('Homespot - Create Tag'), navigation($user->is_authed()) . content(h1("Create Tag") . input_err($error, 'no_tags') . form('post', input_err($error, 'name') . input('text', 'name') . submit())));