Example #1
0
<?php

$template = new Template();
$template->setPage("Title", "Server Error Page");
/*Display Page Captions in flexboxes*/
/** PageHeader 
    $template->setPage("PageHeader","<div class=\"adinfo\">
                   <!--Leaderboard banner here 600x250 (standard)-->
                   <p class=\"img_rotator\">Google Ads Here</p>
                   <p>Some Information </p></div>");*/
$template->setPage("MainNav", getPublicNavigation());
/** Aside Left
    $template->setPage("AsideLeft",'
                    <div class="livebox"><h3>Current Information </h3>
                    <ul class="currentinfo">
                    <li><p>Some Information form database</p></li>
                    </ul><!-- Quick Links Ends--></div>'); */
/** Aside Right */
//$template->setPage("AsideRight",'');
/** page contents starts here col2 */
$target = ucfirst($GLOBALS["target"]);
$content = "<div id=\"servererror\">\n     <h1>Oooops Server Error Occured !!!</h1>\n     <p style=\"font-weight:bold\">{$target} page can not be found or The web page you requested is Under Construction</p></div>";
$template->setPage("Content", $content);
$template->setPage("Footer", PAGE_FOOTER);
include_once TEMPLATE_DIR . SITE_TEMPLATE . LAYOUT;
<?php

//include_once"includes/initialize.inc.php";
$template = new Template();
switch ($GLOBALS["action"]) {
    case "display":
        /*Display full page */
        /** PageHeader */
        $template->setPage("PageHeader", "");
        $template->setPage("MainNav", getAdminNavigation());
        /** Aside Left */
        $template->setPage("AsideLeft", "");
        /** Aside Right */
        $template->setPage("AsideRight", "");
        /** page contents starts here col2 */
        $template->setPage("Content", previewContent());
        $template->setPage("Footer", PAGE_FOOTER);
        include_once TEMPLATE_DIR . SITE_TEMPLATE . LAYOUT;
        break;
    default:
        include_once ADMIN_INC_PATH . "dashboard.php";
        break;
}
<?php

$template = new Template();
switch ($GLOBALS["action"]) {
    case "resource":
        //resource code later
        break;
    case "view":
        /*Display Page Captions in flexboxes*/
        /** PageHeader */
        $template->setPage("PageHeader", "<div class=\"adinfo\">\n\t                    <!--Leaderboard banner here 600x250 (standard)-->\n\t                    <p class=\"img_rotator\">Google Ads Here</p>\n\t                    <p>Some Information </p></div>");
        $template->setPage("MainNav", getPublicNavigation());
        /** Aside Left */
        $template->setPage("AsideLeft", '
	                    <div class="livebox"><h3>Current Information </h3>
	                    <ul class="currentinfo">
	                    <li><p>Some Information form database</p></li>
	                    </ul><!-- Quick Links Ends--></div>');
        /** Aside Right */
        $template->setPage("AsideRight", '');
        /** page contents starts here col2 */
        $template->setPage("Content", pageFlexBox());
        $template->setPage("Footer", PAGE_FOOTER);
        include_once TEMPLATE_DIR . SITE_TEMPLATE . LAYOUT;
        break;
    case "display":
        /*Display full page */
        /** PageHeader */
        $template->setPage("PageHeader", "<div class=\"adinfo\">\n                        <!--Leaderboard banner here 600x250 (standard)-->\n                        <p class=\"img_rotator\">Google Ads Here</p>\n                        <p>Some Information </p></div>");
        $template->setPage("MainNav", getPublicNavigation());
        /** Aside Left */
Example #4
0
<?php

include_once "includes/initialize.inc.php";
$template = new Template();
//add Scripts to the page
$template->setPage("Script", $html->addScripts(array(TEMPLATE_DIR . "_scripts/jquery.js", TEMPLATE_DIR . "_scripts/tabfunction.js")));
//Title
$template->setPage("Title", "Homepage");
//PageHeader
$template->setPage("PageHeader", "<div class=\"adinfo\">\n<!--Leaderboard banner here 600x250 (standard)-->\n<p class=\"img_rotator\">Google Ads Here</p>\n<p>Some Information </p>\n</div>");
$template->setPage("MainNav", getPublicNavigation());
//col1
$template->setPage("AsideLeft", '
<div class="livebox">
<!-- Quick Links -->
<h3>Quick Links </h3>
<ul class="quickref">
<li><a href="#">Quick Link 1</a></li>
<li><a href="#">Quick Link 2</a></li>
<li><a href="#">Quick Link 3</a></li>
<li><a href="#">Quick Link 4</a></li>
<li><a href="#">Quick Link 5</a></li>
<li><a href="#">Quick Link 6</a></li>
</ul>
<!-- Quick Links Ends-->
<!-- Current Updates  -->
<h3>Current Information </h3>
<ul class="currentinfo">
<li><p>Some Information form database</p></li>
</ul>
<!-- Quick Links Ends-->