當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Head::begin方法代碼示例

本文整理匯總了PHP中Head::begin方法的典型用法代碼示例。如果您正苦於以下問題:PHP Head::begin方法的具體用法?PHP Head::begin怎麽用?PHP Head::begin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Head的用法示例。


在下文中一共展示了Head::begin方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: catch

<?php

include_once $_SERVER["DOC_ROOT"] . "/scripts/php/core.php";
HTML::begin();
Head::begin("Sign Up");
Body::add_action("pre_home()");
Body::begin(true, true);
?>

<div id="home_container">
	<div class="layout-1200 uk-container uk-container-center">
			<div id="signup_panel" class="uk-width-1-1 uk-border-rounded uk-container-center uk-text-center">
				<h1>Join the Trading Revolution</h1>
					<form method="POST" onsubmit="clearIncomplete(this);" action="/signup/process.php" id="signup_form">
						<div class="uk-width-medium-1-3 uk-container-center">
							<input class="uk-width-1-1 text_medium" name="fname"  id="fname"  autocomplete="off" type="text"     placeholder="First Name" /><br/>
							<input class="uk-width-1-1 text_medium" name="lname"  id="lname"  autocomplete="off" type="text"     placeholder="Last Name" /><br/>
							<input class="uk-width-1-1 text_medium" name="eaddr"  id="eaddr"  autocomplete="off" type="text"     placeholder=".edu Address" /><br/>
							<input class="uk-width-1-1 text_medium" name="pword"  id="pword"  autocomplete="off" type="password" placeholder="Password"  />
							<input class="uk-width-1-1 text_medium" name="rpword" id="rpword" autocomplete="off" type="password" placeholder="Retype Password"  />
							
							<?php 
$location_html = "<b>Could not detect location</b>";
$location_array = get_location();
try {
    if (trim($location_array["properties"]["city"]) != "" && trim($location_array["properties"]["region"]) != "") {
        $location_html = "<b>General Location: </b>{$location_array["properties"]["city"]}, {$location_array["properties"]["region"]}";
    }
} catch (Exception $e) {
}
?>
開發者ID:Nickersoft,項目名稱:eDart,代碼行數:31,代碼來源:index.php

示例2: header

        //Throw an error
        header("Location:./?error=401");
        exit;
        //Exit
    }
    //Send an email to them with their new password
    $subject = "Password Reset";
    $msg = "A request was made recently to reset your eDart password. If this sounds right to you, you can click the reset button below to specify a new password.";
    $link = "http://wewanttotrade.com/reset-password/?auth=" . urlencode($rand);
    $btnTxt = "Reset";
    sendMail($to, $fname, $lname, $subject, $msg, $link, $btnTxt);
    $complete = true;
    //Change the boolean
}
HTML::begin();
Head::begin("Forgot Password");
?>
		<style>

		.norm{
		color:black;
		text-align:center;
		font-size:50px;
		margin-top:20px;
		}

		p {
		text-indent:20px;
		color:black;
		margin:0px;
		margin-top:5px;
開發者ID:Nickersoft,項目名稱:eDart,代碼行數:31,代碼來源:index.php

示例3: sendMail

 * Signature: Tyler Nickerson
 * Copyright 2014 eDart
 *
 * [Do not remove this header. One MUST be included at the start of every page/script]
 *
 */
include_once $_SERVER["DOC_ROOT"] . "/scripts/php/core.php";
//Include all core functionality
//If there form has been submitted, send an email to the webmaster
if (isset($_POST["bug_desc"])) {
    sendMail("nickersoft@gmail.com", "Tyler", "Nickerson", "Bug Report", "A user has found the following bug (oh no!):<br/><br/>" . $_POST["bug_desc"], "/", "Go to eDart");
    header("Location: ./?sent=true");
    //Redirect to 'sent' version of page
}
HTML::begin();
Head::begin("Report a Bug");
?>

<style type="text/css">

.align { width:800px; display:block; margin:0px auto; margin-bottom:50px; }

#bug_desc { resize:none; width:300px; height:100px; font-size:12px; margin-bottom:10px; }

a{text-decoration:underline;color:black;}

</style>

<?php 
Head::end();
Body::begin();
開發者ID:Nickersoft,項目名稱:eDart,代碼行數:31,代碼來源:index.php

示例4: mysqli_query

                    //Log them out
                    mysqli_query($con, "DELETE FROM `pass_reset` WHERE `key`='" . mysqli_real_escape_string($con, $_GET["auth"]) . "'");
                    $complete = true;
                } else {
                    header("Location:./?auth={$_GET["auth"]}&error=105");
                }
            }
        }
    } else {
        header("Location:/");
    }
} else {
    header("Location:/");
}
HTML::begin();
Head::begin("Reset Password");
?>
		<style>
		.align{width:800px;display:block;margin:0px auto;margin-bottom:50px;}
		</style>
<?php 
Head::end();
Body::add_action("\$('#error_display').modal()");
Body::begin();
?>
		<div id="mc_cont">
			<div id="mc">
				<div class="align">
					<h1 class="uk-text-center" style="line-height:1.5em;font-size:3.2em;">Hey there, <?php 
echo $name;
?>
開發者ID:Nickersoft,項目名稱:eDart,代碼行數:31,代碼來源:index.php

示例5:

<?php

/*
 * Page Name: Report Abuse
 * Purpose: Allows users to report an abusive item
 * Last Updated: 6/5/2014
 * Signature: Tyler Nickerson
 * Copyright 2014 eDart
 *
 * [Do not remove this header. One MUST be included at the start of every page/script]
 *
 */
include_once $_SERVER["DOC_ROOT"] . "/scripts/php/core.php";
//Import core functionality
HTML::begin();
Head::begin("Internships");
?>
<style>p { text-indent:25px; text-align:justify; }</style>
<?php 
Head::end();
Body::add_action("showError()");
Body::begin();
?>
					<div class="layout-978 uk-container-center">
						<h1 class="uk-text-center" style="font-size:3.5em;line-height:1.5em;">Work with Us</h1>
						<h2 class="uk-text-center" style="color:gray;font-size:1.4em;"><i>It's time to put the 'you' in future.</i></h2>
						<p>
							So, you want to change the world, huh? Have the desire to help create a future of online trade, a marketplace without price tags?
							Then you've come to the right place. By interning at eDart, you will not only be helping to better the future of 
							society, but also gain valuable development skills that will better your future as an individual. Please note that
							eDart internships at the current time are <b>unpaid</b> and <b>completely voluntary</b>. That being said, we hope that
開發者ID:Nickersoft,項目名稱:eDart,代碼行數:31,代碼來源:index.php


注:本文中的Head::begin方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。