<?php
/**
* @author Prakash Khanchandani
* @copyright 2013
* @program index.php
* @des demo system for the master maintenance class
*/
session_start();
/*
set the date format to dmy for ddmmyyyy. The other option is mdy. */
$_SESSION['dateFormat'] = 'dmy';
require_once ("classes.php");
class indexFH extends header
{
function __construct()
{
parent::__construct();
$this->setCurrentBlock("mainBlock");
$this->setVariable("_mb_rightColNotes",
'Acknowledgement: The button images used in the demo are by
<a href="http://www.iconarchive.com/artist/deleket.html"
target="_blank">Deleket</a>.');
$this->setVariable("nxtBlk", $this->setNotes());
}
private function setNotes()
{
$notes = @file_get_contents('indexFileHelp.htm');
if (!$notes)
$notes = '<p>no help</p>';
return $notes;
}
}
$form = new indexFH;
$form->show();
?>
|