Show sourcecode

The following files exists in this folder. Click to view.

Getting_to_know_jQuery/

1.php
2.php
3.php
4.php
5.php
6.php
7.php
README
README~
about.php
common.php
favicon.ico
index.php
jquery-1.4.1.min.js
nav.css
page.php
source.php
stylesheet.css
template.php
tutorial.php

page.php
<?php
// ===========================================================================================
//
// page.php
//
// Description: Prints out a HTML-page. 
//
// Author: Mikael Roos
//


// -------------------------------------------------------------------------------------------
//
// Create and print out the html-page
//
require_once('common.php');
$title         = (empty($title)) ? "No title set, define '$title'" : $title;
$charset    = "utf-8";
$language   = "en";
$stylesheet = "stylesheet.css";
$favicon     = "favicon.ico";
$debug         = @$debugEnable ? $debug : "";

$html = <<< EOD
<!DOCTYPE html>
<html lang="{$language}">
    <head>
        <meta charset="{$charset}" />
        <title>{$title}</title>
        <link rel="stylesheet" href="{$stylesheet}" />
        <link rel="shortcut icon" href="{$favicon}" />
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    </head>
    <body>
        <div class='wrapper-page'>    
            <div class='wrapper-header'>{$header}</div>
            <div class='wrapper-body'>{$html}</div>
            <div class='wrapper-footer'>{$footer}</div>
            <div class='wrapper-debug'>{$debug}</div>            
        </div>
    </body>
</html>
EOD;


// Print the header and page
header("Content-Type: text/html; charset={$charset}");
echo $html;
exit;


?>