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


PHP makeHeader函数代码示例

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


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

示例1: makePage

function makePage($pageName)
{
    global $pages;
    foreach ($pages as $page) {
        if ($page["name"] == $pageName) {
            makeHead($page);
            if ($page["name"] != "intro") {
                echo '
						<body>
						<div class="mainBlock">
					';
                makeHeader($page);
                makeMenu($page);
                makeNavigation($page);
                echo '
						</div>
						</body>
					';
            } else {
                makeNavigation($page);
            }
            makeScripts($page);
        }
    }
}
开发者ID:Akyraah,项目名称:Presentation-Page,代码行数:25,代码来源:index.php

示例2: makeHeader

<?php

require_once 'header.php';
makeHeader('Group', '', array(), array('group.js'));
?>

<div id='content' class='top-level-area'>

   <button id='join-leave-button' class='second-level-area second-level-button full-second-level-button'>
   </button>

   <div id='group-info' class='second-level-area'>
      <h2 onclick='toggleCollapse("group-info-collapse-button", "group-info-area");'>
         <div class='collapse-button' id='group-info-collapse-button'></div>
         Group Info
      </h2>
      <div id='group-info-area' class='collapsing-area'>
         <span>Group Name: </span><span id='group-name'></span></br>
         <span>Number of Members: </span><span id='group-num-members'></span></br> 
         <span>Group Description: </span><span id='group-desc'></span></br> 
         <span>Created On: </span><span id='group-created'></span>
      </div>
   </div>

   <div id='group-members' class='second-level-area'>
      <h2 onclick='toggleCollapse("group-members-collapse-button", "group-members-area");'>
         <div class='collapse-button' id='group-members-collapse-button'></div>
         Members
      </h2>
      <div id='group-members-area' class='collapsing-area'></div>
   </div>
开发者ID:rverdon,项目名称:CGAT,代码行数:31,代码来源:group.php

示例3: promptLogin

<?php 
require_once 'config.php';
require_once 'functions.php';
promptLogin(1);
makeHeader("Finished Jobs", "Finished Jobs", 2, "CompleteJobs.php", "<style>td{color:white;}</style>");
$g_link = mysql_connect('localhost', $g_username, $g_password);
//TODO use a persistant database connections
mysql_select_db('stt', $g_link);
//check if any buttons were pressed
if (isset($_POST['jobsToList'])) {
    //job is done
    if ($_POST['jobsToList'] == 2) {
        $changeJobStatusQuery = "UPDATE `jobs` SET `status`=4 WHERE id=" . $_POST['formIdentifier'];
        //commence query
        $result = mysql_query($changeJobStatusQuery);
    }
    //job is not done
    if ($_POST['jobsToList'] == 1) {
        $modifyPointsQuery = "DELETE FROM `points` WHERE job_id=" . $_POST['formIdentifier'];
        //commence query
        mysql_query($modifyPointsQuery);
        $resultz = mysql_query("SELECT * FROM `jobs` WHERE id=" . $_POST['formIdentifier']);
        //make a error message
        $jobDesc = mysql_fetch_assoc($resultz);
        $newDesc = $jobDesc['description'];
        if (isset($_POST['whatsWrong']) != "") {
            echo $newDesc = $jobDesc['description'] . " ERROR: " . $_POST['whatsWrong'];
        }
        $changeJobStatusQuery = "UPDATE `jobs` SET `description`='" . $newDesc . "', `status`=2 WHERE id=" . $_POST['formIdentifier'];
        //commence query
开发者ID:princess36rose,项目名称:ccsd_stt,代码行数:30,代码来源:CompleteJobs.php

示例4: makeHeader

<?php

require_once 'PersonalUseFunctions.php';
makeHeader("OOP Programming", "OOP Programming", 2, "Building_Rockets");
?>
<center>
<h1>
	Programming II Homework 1: Introduction to Object Oriented Programming
</h1>

<div style="background:Silver;color:Black;width:50%;border-radius:8px;">
	<?php 
class RocketShip
{
    public $command_module;
    public $fuel_tankA;
    public $fuel_tankB;
    public $payload;
    public $engines;
    public $spacestation;
    public function ToMars()
    {
        echo "Alright Men it's time we prepare ourselves for a mission to Mars, first we need to CONSTRUCT a rocket to launch into low earth orbit and DESTRUCT an old Space Station for parts!<pr></pr> Then When you get back, dont get TOSTRING-y with me, you need to then record all of your results.";
    }
    function __construct($c, $A, $B, $p, $e, $s)
    {
        $this->command_module = $c;
        $this->fuel_tankA = $A;
        $this->fuel_tankB = $B;
        $this->payload = $p;
        $this->engines = $e;
开发者ID:princess36rose,项目名称:ccsd_stt,代码行数:31,代码来源:Building_Rockets.php

示例5: makeHeader

<?php

require_once 'header.php';
makeHeader('CGAT Contig', '', array(), array('contig.js'));
?>

<div id='content' class='top-level-area'>

   <button id='annotate-button' class='second-level-area second-level-button full-second-level-button'
           onclick='annotate();'>
      Annotate This Contig
   </button>

   <div id='contig-info' class='second-level-area'>
      <h2 onclick='toggleCollapse("contig-info-collapse-button", "contig-info-area");'>
         <div class='collapse-button' id='contig-info-collapse-button'></div>
         Contig Info
      </h2>
      <div id='contig-info-area' class='collapsing-area'>
      </div>
   </div>

   <div id='expert-annotations' class='second-level-area'>
      <h2 onclick='toggleCollapse("expert-annotations-collapse-button", "expert-annotations-area");'>
         <div class='collapse-button collapse-on' id='expert-annotations-collapse-button'></div>
         Expert Annotations
      </h2>
      <div id='expert-annotations-area' class='collapsing-area collapse'>
         <div id='expert-annotations-inset' class='second-level-inset'></div>
      </div>
   </div>
开发者ID:rverdon,项目名称:CGAT,代码行数:31,代码来源:contig.php

示例6: makeHeader

<?php

require_once 'header.php';
makeHeader('CGAT Help', '', array(), array('help.js'));
?>

<div id='content' class='top-level-area'>

   <h2 id='help-title'></h2>
   <div id='help-info-area' class='second-level-area'>

   </div>

</div>

<?php 
require 'footer.php';
开发者ID:rverdon,项目名称:CGAT,代码行数:17,代码来源:help.php

示例7: error_log

<?php 
// mail("approvers email address goes here", $RoomReservationRequestID,
//"This is a pending request")//email the approver the request key, not sure
//if it should look like this though.
echo '<div id="container">';
echo '<div id="content" style="margin-left: 250px; margin-top: 23px;">';
//if $showForm = true, display form to enter data
if ($showForm == true) {
    error_log("will display the editing form");
    //FORM
    ?>
<section class="content">
    <form name ="Edit Reservation" method="POST" action="EditReservation.php">
    <?php 
    echo generateTokenField();
    echo makeHeader($informationroom);
    ?>
        <label for="BeginDate">Begin Date:</label>
        <input name="begindate" type="date" value="<?php 
    echo htmlspecialchars($formattedBeginDate);
    ?>
">
        <br><br>
        <label for="endDate">End Date:</label>
        <input name="enddate" type="date" value="<?php 
    echo htmlspecialchars($formattedEndDate);
    ?>
">
        <br><br>
        <input type="hidden" name="reservationKey" id="hiddenField" value="<?php 
    echo $informationroom->get_roomReservationKey();
开发者ID:kumarsivarajan,项目名称:rmh-roomreservation-maker,代码行数:31,代码来源:EditReservation.php

示例8: makeHeader

<?php

require_once 'header.php';
makeHeader('CGAT', 'Search');
?>

<div id='content' class='top-level-area'>

   <div id='contig' class='second-level-area'>
      <h2 onclick='toggleCollapse("contig-collapse-button", "contig-area");'>
         <div class='collapse-button collapse-on' id='contig-collapse-button'></div>
         Search For Contig
      </h2>
      <div id='contig-area' class='collapsing-area collapse'>
         TODO
      </div>
   </div>

   <div id='gene' class='second-level-area'>
      <h2 onclick='toggleCollapse("gene-collapse-button", "gene-area");'>
         <div class='collapse-button collapse-on' id='gene-collapse-button'></div>
         Search For Gene
      </h2>
      <div id='gene-area' class='collapsing-area collapse'>
         TODO
      </div>
   </div>

   <div id='user' class='second-level-area'>
      <h2 onclick='toggleCollapse("user-collapse-button", "user-area");'>
         <div class='collapse-button collapse-on' id='user-collapse-button'></div>
开发者ID:rverdon,项目名称:CGAT,代码行数:31,代码来源:search.php

示例9: ShowReport

function ShowReport(){
	
	global $GroupCostCenter;
	global $GroupPersonType;
	
	?>
	<html>
	<head>
		<META http-equiv=Content-Type content="text/html; charset=UTF-8" >
		<style>
			.header {
				background-color: #D9EBFF;
				font-weight: bold;
				font-size: 10px !important;
			}
			.header td{
				font-size: 11px !important;
			}
			/*-----------------------*/
			#outer table {
				border : 0px;
				border-collapse: collapse;
				width : 100%;
			}
			#outer tr {
				border : 1px solid black;
				border-bottom: 0px;
			}
			#outer td {
				font-family: tahoma;
				font-size: 10px;
				height : 21px;
			}
			/*-----------------------*/
			#inner table {
				border : 0px;
				border-collapse: collapse;
				width : 100%;
			}
			#inner td {
				font-family: tahoma;
				padding-right : 3px;
				font-size: 10px;
				height : 21px;
				border-collapse: collapse;
				border : 1px solid black;
			}
		</style>
	</head>
		<body dir=rtl>
	<?	
	
	$person_count;
	$salaryItems = array();
	global $MainQuery;
	$MainRows = PrepareData($person_count,$_GET['RepType']);
				
	$currentGroup = "";
	for($i=0; $i < count($MainRows); $i++)
	{
		$row = $MainRows[$i];
		
		$group = $GroupCostCenter ? $row["cost_center_id"] . "_" : "ALL_";
		$group .= $GroupPersonType ? $row["person_type"] : "ALL";
		
		if($currentGroup != $group)
		{
			if($currentGroup != "")
			{				
				makeBody($salaryItems);
				makeFooter();
			}
			makeHeader($row, $person_count);
			$currentGroup = $group;
			$i--;
			$salaryItems = array();
			continue;			
		}
		
		$salaryItems[ $row["salary_item_type_id"] ] = $row;
		$salaryItems[ $row["salary_item_type_id"] ]["value"] = ($row["effect_type"] == "1") ? $row["pay_sum"] : $row["get_sum"];
		
		$salaryItems[ $row["salary_item_type_id"] ]["diff_value"] = ($row["effect_type"] == "1") ? $row["diff_pay_sum"] : $row["diff_get_sum"];
	}	
	
	//--------- for last costcenter --------------
	makeBody($salaryItems);
	makeFooter();
?>
	<div style="display:none"><?= $MainQuery ?></div>
	</body>		
</html>		
<?
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:94,代码来源:treasure_summary.php

示例10: makeHeader

<?php

require_once 'header.php';
makeHeader('CGAT Gene', '', array(), array('gene.js'));
?>

<div id='content' class='top-level-area'>

   <div id='contigs' class='second-level-area'>
      <h2 onclick='toggleCollapse("contigs-collapse-button", "contigs-area");'>
         <div class='collapse-button' id='contigs-collapse-button'></div>
         Contigs Information
      </h2>
      <div id='contigs-area' class='collapsing-area'>
      </div>
   </div>

   <div id='collab' class='second-level-area'>
      <h2 onclick='toggleCollapse("collab-collapse-button", "collab-area");'>
         <div class='collapse-button collapse-on' id='collab-collapse-button'></div>
         Collaborative Annotaion
      </h2>
      <div id='collab-area' class='collapsing-area collapse'>
         TODO
      </div>
   </div>

   <div id='annotations' class='second-level-area'>
      <h2 onclick='toggleCollapse("annotations-collapse-button", "annotations-area");'>
         <div class='collapse-button collapse-on' id='annotations-collapse-button'></div>
         Completed Annotations
开发者ID:rverdon,项目名称:CGAT,代码行数:31,代码来源:gene.php

示例11: header

                    // reload page ...
                    header("Location: " . $_SERVER['PHP_SELF']);
                }
            }
        } else {
            if ($_POST['act'] === "setrecfolder") {
                if (isset($_POST['folder'])) {
                    // save folder ...
                    $wdtvConf->writeConf("KART_REC_FOLDER", $_POST['folder']);
                }
            }
        }
    }
}
// create document header ...
makeHeader(isset($_GET['act']) ? $_GET['act'] : "Установка");
// show navi bar ...
makeNavi();
// show fav tables ...
if (isset($_GET['act'])) {
    if ($_GET['act'] === "fav") {
        if (($chanXml = $kartAPI->getChannelListXml()) !== FALSE && ($favXml = $kartAPI->getFavoritesXML()) !== FALSE) {
            echo "<table>\n<tr>\n<td style='vertical-align: top;'>\n";
            makeFavTab($favXml, $chanXml);
            echo "</td>\n<td>\n";
            makeChanTab($favXml, $chanXml);
            echo "</td>\n</tr>\n</table>\n";
        }
    } else {
        if ($_GET['act'] === "acc") {
            makeAccForm();
开发者ID:CreeperCreative,项目名称:vlc-record,代码行数:31,代码来源:config.php

示例12: promptLogin

<?php

require_once "config.php";
require_once "functions.php";
promptLogin();
makeHeader("Incident Report", "Make an Incident Report", 2, "incident_report.php", '<link href="/css_files/create_jobs.css" rel="stylesheet">');
?>

<center>
	<div class="centeringDiv">
	<h2>
		Incident Report
	</h2>
  <form method="post" name="postIt">
    <table>
			<!-- Date Recieved input field -->
      <tr><td>Date Recieved</td><td><input type="date" name="jDate" placeholder="Date" value=></td></tr>
			
      <!-- Owner input field -->
      <tr><td>Owner of Laptop</td><td><input type="text" name="jOwner" placeholder="Owner"></td></tr>
			
			<!-- Status input field -->
			  <tr><td>Status of Laptop</td>
        <td>
          <select name="jStatus">
            <!-- replace options with a query later -->
            <option value="1">Not Usable</option>
            <option value="2">Usable but needs repairs</option>
            <option value="3">No repair needed</option>
          </select>
					<br><br>Whats Wrong if it needs repaired?:
开发者ID:princess36rose,项目名称:ccsd_stt,代码行数:31,代码来源:incident_report.php

示例13: makeHeader

</a>
            </li>
            <li>
               <a href="register.php"><?php 
echo makeHeader('reg');
?>
</a>
            </li>
            <li>
               <a href="standings.php"><?php 
echo makeHeader('stand');
?>
</a>
            </li>
            <li>
               <a href="contact.php"><?php 
echo makeHeader('con');
?>
</a>
            </li>
            <li>
               <?php 
echo getSessionInfo();
?>
            </li>
         </ul>
      </div>
      <!-- /.navbar-collapse -->
   </div>
   <!-- /.container -->
</nav>
开发者ID:seank24,项目名称:LeagueMaster,代码行数:31,代码来源:header.php

示例14: makePageStart

<?php

require_once 'functions.php';
echo makePageStart("Review it!", "review.css");
echo makeHeader("My New Header");
echo makeNavMenu("Categories", array("index.php" => "Home", "book.php" => "Books", "dvd.php" => "DVD", "games.php" => "Games"));
// echo makeMainArea();
echo startMain();
?>
 
<h2>Add your reviews of the following and more</h2>
<h3>Jamie's America</h3>
<p>Jamie will try real American food and meet the most interesting cooks and producers that this vast country has to offer. His epic journey will take him to the heart of America: its people, culture, music and, most importantly, its food. As well as being a visually stunning journey, "Jamie's America" is a practical cookbook, with each chapter focusing on the food and recipes of a different state. Add review</p>
<?php 
echo endMain();
echo makeFooter("Product details taken from the whsmith web site");
echo makePageEnd();
?>


开发者ID:ChesterChin92,项目名称:php,代码行数:18,代码来源:reviewHome.php

示例15: promptLogin

<?php

require_once "config.php";
require_once "functions.php";
promptLogin();
makeHeader("Team Pages", "Team Pages", 2, "team.php", "<style>.meat{position:absolute;width:50%;background:black;color:White;margin-top:3%; margin-left:15%;border-radius:10px;padding:5px;opacity:0.9;}</style>");
?>

	<BR>
	<section style="float:left;width:50%">
		<center>
			<a href='students/walter'>
				<div class="personBox" id="walter">
					<h2 id="toph2" style="background:red;">Walter</h2>
					<ul>
						<li>
							<p>add a few words that describe yourself here</p>
						</li>
						<li><img class="personPic" src="http://goo.gl/zBA0Gk" height="100px" width="100px"></li>
					</ul>
				</div>
			</a>

			<BR>

			<a href='students/Jaydon'>
				<div class="personBox" id="Jayden">
					<h2 id="toph2" style="background:orange;">Jayden</h2>
					<ul>
						<li>
							<p>add a few words that describe yourself here</p>
开发者ID:princess36rose,项目名称:ccsd_stt,代码行数:31,代码来源:team.php


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