Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Prakash Khanchandani  >  Table Maintenance  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index script
Class: Table Maintenance
Manage forms for CRUD MySQL table records
Author: By
Last change:
Date: 1 year ago
Size: 1,000 bytes
 

Contents

Class file image Download
<?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();
?>