当前位置: 首页>>代码示例>>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;未经允许,请勿转载。