Esempio n. 1
0
<title>Home</title>
<?php 
include 'header.php';
if (isset($_GET['v'])) {
    if ($_GET['v'] == 'MLB') {
        echo "MLB";
        indexContent('MLB');
        echo "contentEnd";
    } elseif ($_GET['v'] == 'SL') {
        echo "SL";
        indexContent('SL');
        echo "contentEnd";
    } else {
        indexContent('');
    }
} else {
    indexContent('');
}
include 'footer.php';
Esempio n. 2
0
<?php

include_once "support_functions.php";
//gets the header function (support_functions.php)
getHeader();
//navigation (support_functions.php)
getNav();
//sidebar (support_functions.php)
getSide();
//content goes here now
indexContent();
function indexContent()
{
    $html = "";
    $html .= "<p>Imagine a world where everything runs off of efficiency.  A world where electricity isn't wasted,\n\t\twhere your appliances smartly budget the amount of power that they will need, thus saving not only you, \n\t\tbut your community money and power.</p>\n";
    $html .= "<p>Current technology cannot meet this need.  In fact, with our current system, power plants are\n\t\trunning just a few hundred hours per year, and emit extra pollution just to meet the demands for this power.\n\t\t  How should this be alleviated?  <strong><em>Smart grid</em></strong> sytems are systems designed with this  \n\t\t  type of efficiency in mind - and you can be part of this.</p>\n\n";
    $html .= "<p>Whether you have already received a degree or are completely new to the idea of smart grid technology,  \n\t\tthis site is dedicated to providing you with the information you need in order to guide your course toward\n\t\t  the goal of working with smart grid technology.  From the above menu, you can either select the sector you  \n\t\t  currently work in, or the institution you are interested in pursuing your studies at.</p>\n\n";
    echo $html;
}