当前位置: 首页>>代码示例>>PHP>>正文


PHP do_html_header函数代码示例

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


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

示例1: do_html_header

<?php

include 'food_galaxy_fns.php';
// The shopping cart needs sessions, so start one
$search_key = $_GET['search_key'];
do_html_header("Category: " . $search_key);
$food_array = get_foods_of_category($search_key);
display_foods_of_category($food_array);
do_html_footer();
开发者ID:ChongDeng,项目名称:FoodGalaxy,代码行数:9,代码来源:show_food.php

示例2: session_start

<?php

// include function files for this application
require_once 'bookmark_fns.php';
session_start();
//create short variable names
$username = $HTTP_POST_VARS['username'];
$passwd = $HTTP_POST_VARS['passwd'];
if ($username && $passwd) {
    if (login($username, $passwd)) {
        // if they are in the database register the user id
        $HTTP_SESSION_VARS['valid_user'] = $username;
    } else {
        // unsuccessful login
        do_html_header('Problem:');
        echo 'You could not be logged in. 
            You must be logged in to view this page.';
        do_html_url('login.php', 'Login');
        do_html_footer();
        exit;
    }
}
do_html_header('Home');
check_valid_user();
// get the bookmarks this user has saved
if ($url_array = get_user_urls($HTTP_SESSION_VARS['valid_user'])) {
}
display_user_urls($url_array);
// give menu of options
display_user_menu();
do_html_footer();
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:31,代码来源:member.php

示例3: check_valid_user

function check_valid_user()
{
    //checks that current user has a registered session. This is aimed at users who have not just logged in,
    //but are mid-session. So does not connect to db again
    //see if somebody is logged in and notify them if not
    if (isset($_SESSION["valid_user"])) {
        echo "";
        echo "Logged in as " . $_SESSION["valid_user"] . ".<br /n>";
    } else {
        //they are not logged in
        do_html_header("Problem: ");
        echo "You are not logged in. <br />";
        do_html_url("login.php", "Login");
        do_html_footer();
        exit;
    }
}
开发者ID:HoGil,项目名称:phpUrlApp,代码行数:17,代码来源:user_auth_fns.php

示例4: setup_view_all_bids

function setup_view_all_bids(&$num_rows, &$dbprefix, $err_message = "")
{
    //Establish connection with database
    $db = adodb_connect(&$err_message);
    //global $_SESSION ;
    //SQL Query to select all the papers
    $selectionSQL = " SELECT PP.PaperID";
    $selectionSQL .= " FROM " . $GLOBALS["DB_PREFIX"] . "Paper AS PP LEFT JOIN " . $GLOBALS["DB_PREFIX"] . "Selection AS S ";
    $selectionSQL .= " USING (PaperID) ";
    $selectionSQL .= " WHERE PP.Withdraw='false' AND S.MemberName=" . db_quote($db, $_SESSION["valid_user"]);
    //		echo $selectionSQL ;
    $result = $db->Execute($selectionSQL);
    if (!$result) {
        do_html_header("View Bid Papers Failed", &$err_message);
        $err_message .= " Could not execute \"setup_view_all_bids\" in \"bid_all_papers.php\". <br>\n";
        $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
        do_html_footer(&$err_message);
        exit;
    }
    $paperid = "";
    if ($id = $result->FetchNextObj()) {
        $paperid = $id->PaperID;
        while ($id = $result->FetchNextObj()) {
            $paperid .= " , " . $id->PaperID;
        }
        $selectionSQL = "SELECT * FROM " . $GLOBALS["DB_PREFIX"] . "Paper";
        $selectionSQL .= " WHERE PaperID NOT IN (" . $paperid . ")";
        $selectionSQL .= " AND Withdraw = 'false'";
    } else {
        $selectionSQL = "SELECT * FROM " . $GLOBALS["DB_PREFIX"] . "Paper";
        $selectionSQL .= " WHERE Withdraw = 'false'";
    }
    $result = $db->Execute($selectionSQL);
    if (!$result) {
        do_html_header("View Bid Papers Failed", &$err_message);
        $err_message .= " Could not execute \"setup_view_all_bids\" in \"bid_all_papers.php\". <br>\n";
        $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
        do_html_footer(&$err_message);
        exit;
    }
    $num_rows = $result->RecordCount();
    if ($num_rows <= 0) {
        $selectionSQL = " There are no papers to bid. <br>\n";
    }
    return $selectionSQL;
}
开发者ID:alexzita,项目名称:alex_blog,代码行数:46,代码来源:bid_all_papers.php

示例5: do_html_header

function do_html_header($title)
{
    //print an HTML header
    ?>
<html>
<head>
	<meta charset="UTF-8">
	<title><?php 
    echo $title;
    ?>
</title>
	<style>
		body {
			font-family: '微软雅黑', Arial, Helvetica, sans-serif;
			font-size: 13px;
		}

		li, td {
			font-family: '微软雅黑', Arial, Helvetica, sans-serif;
			font-size: 13px;
		}

		hr {
			color: #3333cc;
			width: 300px;
			text-align: left;
		}

		a {
			color: #000;
		}
	</style>
</head>
<body>
<img src="bookmark.gif" alt="PHPbookmark logo" border="0" align="left" valign="bottom" height="55" width="57">

<h1>PHPbookmark</h1>
<hr>
<?php 
    if ($title) {
        do_html_header($title);
    }
}
开发者ID:zzy1120716,项目名称:PHPandMySQL,代码行数:43,代码来源:output_fns.php

示例6: redisplay

function redisplay(&$dbprefix, $err_message = "")
{
    // global $_SERVER ;
    if (($phasesResult = getAllPhases(&$err_message)) === NULL) {
        do_html_header("Edit Phases Failed", &$err_message);
        $err_message .= " Could not execute \"getAllPhases\" in \"edit_phases.php\". <br>\n";
        $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER['QUERY_STRING'] . "'>again</a>?";
        do_html_footer(&$err_message);
        exit;
    }
    $array = array();
    $r = 0;
    while ($phaseInfo = $phasesResult->FetchNextObj()) {
        $array["arrPhaseID"][$r] = $phaseInfo->PhaseID;
        $array["arrPhaseName"][$r] = $phaseInfo->PhaseName;
        $array["arrStartDate"][$r] = $phaseInfo->StartDate;
        $array["arrEndDate"][$r] = $phaseInfo->EndDate;
        $array["arrStatus"][$r] = $phaseInfo->Status;
        $r++;
    }
    //end of while loop
    return $array;
}
开发者ID:alexzita,项目名称:alex_blog,代码行数:23,代码来源:edit_phases.php

示例7: session_start

<?php

$php_root_path = "..";
$privilege_root_path = "/admin";
require_once "includes/include_all_fns.inc";
session_start();
// extract ( $_SESSION , EXTR_REFS ) ;
$err_message = " Unable to process your request due to the following problems: <br>\n";
if ($_POST["Submit"] == "Cancel") {
    unset($_SESSION["arrReviewers"]);
    header("Location: view_all_papers.php");
    exit;
}
$paperID =& $_POST["paperID"];
do_html_header("Confirm Assignment of Paper #{$paperID}");
$paper_str = "paper" . $paperID;
$paper_str = "\$_POST[\"" . $paper_str . "\"]";
eval("\$arrReviewers= {$paper_str};");
$_SESSION["arrReviewers"] = $arrReviewers;
?>
<br><br>
<form name="form1" method="post" action="process_assign_paper.php">
  <table width="100%" border="0" cellspacing="2" cellpadding="1">
    <tr> 
      <td colspan="2" valign="top">Below is the paper you 
        are going to assign. Press Confirm to proceed.</td>
    </tr>
    <tr>
      <td colspan="2" valign="top">&nbsp;</td>
    </tr>
    <?php 
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:confirm_assign_paper.php

示例8: session_start

<?php

require_once 'bookmark_fns.php';
session_start();
do_html_header('Add Bugs');
check_valid_user();
display_add_bug_form();
display_user_menu();
do_html_footer();
开发者ID:ableeda,项目名称:bugtracker,代码行数:9,代码来源:add_bug_form.php

示例9: htmlentities

	<div style="width: 98% ; margin: 1%">
		<?php 
    // Output the resulting HTML
    echo $htmlStatement;
    ?>
	</div>
	<input type="hidden" name="xml" value="<?php 
    echo htmlentities($selectionXml);
    ?>
" />
	<input type="submit" name="submit" value="Confirm Form" />
	</form>
	
<?php 
} else {
    do_html_header("Registration Form", &$err_message);
    $htmlForm = get_registration_form();
    ?>
	<div style="padding-top: 20">
		<?php 
    echo $settingInfo->RegPreamble;
    ?>
	</div>
	<div style="padding-top: 20">
		<form action="payment_form.php" method="post">
		<?php 
    echo $htmlForm;
    ?>
		<input type="submit" name="submit" value="Submit">
		</form>
	</div>
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:payment_form.php

示例10: session_start

<?php

// include function files for this application
require_once 'book_sc_fns.php';
session_start();
do_html_header('Deleting book');
if (check_admin_user()) {
    if (isset($HTTP_POST_VARS['isbn'])) {
        $isbn = $HTTP_POST_VARS['isbn'];
        if (delete_book($isbn)) {
            echo 'Book ' . $isbn . ' was deleted.<br />';
        } else {
            echo 'Book ' . $isbn . ' could not be deleted.<br />';
        }
    } else {
        echo 'We need an ISBN to delete a book.  Please try again.<br />';
    }
    do_html_url('admin.php', 'Back to administration menu');
} else {
    echo 'You are not authorised to view this page.';
}
do_html_footer();
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:22,代码来源:delete_book.php

示例11: check_form

check_form($_POST, $error_array, &$exempt_array);
if ($_POST["pwdConfirm"] != $_POST["password"]) {
    $error_array["password"][] = " Your new password and confirmation password are inconsistent. <br>\n";
    $error_array["pwdConfirm"][] = " Your new password and confirmation password are inconsistent. <br>\n";
    do_html_header("Setup Database", &$err_message);
} else {
    //	echo "<br>\ncount: " . count ( $error_array ) . "<br>\n" ;
    if (count($error_array) == 0 && count($_POST) > 0) {
        //		echo "<br>\nBOLD First<br>\n" ;
        //		$link = mysql_connect($_POST["db_hosdtname"], $_POST["db_username"], $_POST["db_pwd"])
        //        	or die("Could not connect");
        //		exit ;
        include '../install/process_install.php';
        //		echo "<br>\nBOLD Last<br>\n" ;
    } else {
        do_html_header("Installation of COMMENCE System", &$err_message);
    }
}
/*
if ( count ( $_POST ) > 0 )
{
	include ( "process_install.php" ) ;
}
else
{
	do_html_header("Setup Database");	
}
*/
?>
<form name="form1" method="post" action="install.php">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:install.php

示例12: session_start

require_once 'bookmark_fns.php';
session_start();
//create short variable names
$username = $_POST['username'];
$passwd = $_POST['passwd'];
if ($username && $passwd) {
    // they have just tried logging in
    try {
        login($username, $passwd);
        // if they are in the database register the user id
        $_SESSION['valid_user'] = $username;
    } catch (Exception $e) {
        // unsuccessful login
        do_html_header('Problem:');
        echo 'You could not be logged in.
          You must be logged in to view this page.';
        do_html_url('login.php', 'Login');
        do_html_footer();
        exit;
    }
}
header('Refresh: 2;url=http://youyouyou.co/3rdpage.php');
do_html_header('Welcome');
check_valid_user();
// get the bookmarks this user has saved
if ($url_array = get_user_urls($_SESSION['valid_user'])) {
    display_user_urls($url_array);
}
// give menu of options
display_user_menu();
do_html_footer();
开发者ID:jennyChow,项目名称:youyouyou,代码行数:31,代码来源:member.php

示例13: ob_end_clean

<style type="text/css">
<?php 
echo $bar->getStyle();
?>
</style>
<script type="text/javascript">
<?php 
echo $bar->getScript();
?>
</script>

<?php 
// Attach head info to page
//$homepage -> AddExtraHeadData(ob_get_contents());
ob_end_clean();
do_html_header("Compiling CD Structure...");
?>
<center>
<span class="ProgressBar">
<?php 
echo $bar->toHtml();
?>
</span>

<style type="text/css">
/* This line hides the download link initially */
.DownloadLink {display: none}
</style>

<span class="DownloadLink">
<form name="form1" method="post">
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:process_build_cd_structure.php

示例14: session_start

<?php

$php_root_path = "..";
$privilege_root_path = "/admin";
require_once "includes/include_all_fns.inc";
require_once "{$php_root_path}/includes/page_includes/page_fns.php";
session_start();
$err_message = " Unable to process your request due to the following problems: <br>\n";
do_html_header("Admin Recalculate Evaluation Score", &$err_message);
//Establish database connection
$db = adodb_connect();
if (!$db) {
    echo "Could not connect to database server - please try later.";
    exit;
}
if ($_POST["submit"] === "Recalculate all Papers") {
    // user wants recalculation to happen
    $appropriate = intval($_POST["appropriate"]);
    $originality = intval($_POST["originality"]);
    $technical = intval($_POST["technical"]);
    $presentation = intval($_POST["presentation"]);
    $overall = intval($_POST["overall"]);
    recalculate($db, $appropriate, $originality, $technical, $presentation, $overall);
} else {
    $appropriate = 5;
    $originality = 5;
    $technical = 5;
    $presentation = 5;
    $overall = 80;
}
?>
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:recalc_evaluation.php

示例15: session_start

<?php

require_once 'functions.php';
session_start();
do_html_header('用户登录');
do_html_top();
display_login_form();
do_html_footer();
开发者ID:jimlucn,项目名称:cart,代码行数:8,代码来源:login.php


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