本文整理汇总了PHP中h1函数的典型用法代码示例。如果您正苦于以下问题:PHP h1函数的具体用法?PHP h1怎么用?PHP h1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了h1函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:pmontojo,项目名称:Blackboard,代码行数:26,代码来源:purchase.php
示例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();
}
开发者ID:beafus,项目名称:blackboard,代码行数:12,代码来源:enrollment.php
示例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> ';
}
开发者ID:pmontojo,项目名称:Blackboard,代码行数:15,代码来源:installation.php
示例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();
}
开发者ID:pmontojo,项目名称:Blackboard,代码行数:17,代码来源:details.php
示例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);
}
开发者ID:badlamer,项目名称:hhvm,代码行数:17,代码来源:489.php
示例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 '';
}
开发者ID:ankitparsanaa,项目名称:foodapp,代码行数:28,代码来源:shortcodes.php
示例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>");
}
}
开发者ID:pmontojo,项目名称:Blackboard,代码行数:17,代码来源:controller.php
示例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'];
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:fiche.inc.php
示例9: def_sprintfer
<?php
// def_sprintfer - делает тоже что и def_printfer, но используя функцию sprintf
def_sprintfer('h1', '<h1>%s</h1>');
$v = h1('hello!');
echo ">" . $v . "<";
?>
---
><h1>hello!</h1><
开发者ID:najomi,项目名称:najomi.org,代码行数:9,代码来源:def_sprintfer.php
示例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));
?>
开发者ID:doodzik,项目名称:homespot_legacy,代码行数:11,代码来源:index.php
示例11: print_page_title
function print_page_title()
{
h1("Blog World");
}
开发者ID:beafus,项目名称:blog,代码行数:4,代码来源:user.php
示例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')))));
开发者ID:rcrowley,项目名称:wheresmycar,代码行数:3,代码来源:layout.html.php
示例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'))))));
开发者ID:rcrowley,项目名称:wheresmycar,代码行数:3,代码来源:home.html.php
示例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();
开发者ID:badlamer,项目名称:hhvm,代码行数:12,代码来源:250.php
示例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())));
开发者ID:doodzik,项目名称:homespot_legacy,代码行数:15,代码来源:index.php
示例16: def_printfer
<?php
// def_printfer принимает название функции которую надо создать и шаблон.
// Привызове она будет использовать шаблон как первый аргумент для printf.
def_printfer('h1', '<h1>%s</h1>');
h1('hello!');
?>
---
<h1>hello!</h1>
开发者ID:najomi,项目名称:najomi.org,代码行数:9,代码来源:def_printfer.php
示例17: view
function view()
{
$b=h1("News").getNews();
return menuSystem($b);
}
开发者ID:BackupTheBerlios,项目名称:antargis-svn,代码行数:6,代码来源:view.inc.php
示例18: ln
function ln($n = 1)
{
out('', $n);
}
function h1($msg)
{
ln(2);
out("-------");
out($msg);
}
$configFile = dirname(__FILE__) . '/config.php';
if (!file_exists($configFile)) {
out('Cannot find config.php file!');
die;
}
require_once $configFile;
h1("Update sources from git...");
chdir($dir);
system("git pull");
system("git submodule update --init --recursive");
h1("Rebuild Propel ORM classes...");
chdir($dir . "/core/orm");
system("../../lib/propel/generator/bin/propel-gen");
h1("Set write permissions for folders...");
$writeDirs = array($dir . '/lib/tcpdf/cache', $dir . '/lib/tcpdf/fonts', $dir . '/lib/tcpdf/images', $dir . '/docs/invoices', $dir . '/docs/reports');
foreach ($writeDirs as $d) {
out(' * ' . $d);
chmod($d, 0777);
}
ln();
out("Done!", 2);
开发者ID:notarzvit,项目名称:Notarzvit-Tools,代码行数:31,代码来源:rebuild.php
示例19: h2
if ($doAdoptAuthority) {
echo h2('Adopt authority');
// Note: only works if you've defined $user and $testPw, and created the user profile.
echo "About to adopt authority to user {$user}<BR>";
$start = microtime(true);
$success = i5_adopt_authority($user, $testPw);
$end = microtime(true);
$elapsed = $end - $start;
if (!$success) {
echo "Error adopting authority: " . printArray(i5_error()) . "<BR>";
} else {
echo "Success adopting authority in {$elapsed} seconds<BR>";
echo "About to check current user and other variables after adopting authority.<BR>";
$cmdString = 'RTVJOBA';
$input = array();
$output = array('ccsid' => array('ccsid', 'dec(5 0)'), 'dftccsid' => array('defaultCcsid', 'dec(5 0)'), 'curuser' => 'currentUser', 'nbr' => 'jobNumber', 'job' => 'jobName', 'user' => 'jobUser', 'usrlibl' => 'userLibl');
$commandSuccessful = i5_command($cmdString, $input, $output, $conn);
if (function_exists('i5_output')) {
extract(i5_output());
}
// i5_output() required if called in a function
echo "Ran command {$cmdString}. Return: " . OkBad($commandSuccessful) . " with original job user '{$jobUser}', current user '{$currentUser}', CCSID '{$ccsid}', default CCSID '{$defaultCcsid}', job name '{$jobName}', job number '{$jobNumber}', with user liblist '{$userLibl}'.<BR><BR>";
}
}
$ret = i5_close($conn);
//$conn optional
echo h2('Connection close');
echo "Closed i5 connection. return status: " . OkBad($ret) . ".";
echo h1('End of script');
?>
</html>
开发者ID:zendtech,项目名称:ibmitoolkit,代码行数:31,代码来源:cwtest.php
示例20: deleteArticle
function deleteArticle()
{
if (isset($_REQUEST['confirmDelete'])) {
if (mayDeleteArticle($_REQUEST['articleid'])) {
$feedback = deleteArticleService($_REQUEST['articleid']);
$result = $feedback[0];
array_shift($feedback);
if ($result) {
echo "Kommentaren eller artikkelen ble slettet.";
//echo($feedback[0]);
} else {
echo "En feil oppstod, kommentaren/artikkelen ble ikke slettet.";
//echo($feedback[0]);
}
} else {
h3("Du har ikke tillatelse til å slette denne artikkelen.");
}
} else {
h1("Bekreft sletting");
form_start_post();
form_hidden("m_c", "deleteArticle");
form_hidden("confirmDelete", "1");
form_hidden("articleid", $_REQUEST['articleid']);
form_submit("submit", "Bekreft sletting");
form_end();
br();
js_backbutton("Avbryt");
}
}
开发者ID:arewold,项目名称:calcuttagutta,代码行数:29,代码来源:articleGUI.php
注:本文中的h1函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论