<?php
/**
* @author Prakash Khanchandani
* @copyright 2013
* @program crncy.php
* @description currencies maintenance
* @specialities - foreign key reference
* - default column values
*/
session_start();
require_once ("classes.php");
function createTableObject()
{
$obj = new crncyTable;
if ($obj->getListAndColumns() === false)
return false;
else
return $obj;
}
class crncyTable extends mstrTable
{
function getListAndColumns()
{
$this->tableName = 'currencies';
$result = parent::getListAndColumns();
return $result;
}
}
if (!isset($_REQUEST['actn'])) {
$obj = createTableObject();
} else {
/* if the user has taken some action, handle it. */
$obj = handleRequestOption();
}
$form = new mstrFH($obj);
$form->setDemoNotes(crncyNotes());
$form->displayForm();
?>
|