forked from science-ation/science-ation
52 lines
797 B
PHP
52 lines
797 B
PHP
![]() |
<?
|
||
|
|
||
|
|
||
|
class person {
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
class judge extends person {
|
||
|
|
||
|
/* Static members for the table editor */
|
||
|
function editor_setup($editor)
|
||
|
{
|
||
|
/* Setup the table editor with the fields we want to display
|
||
|
* when displaying a list of judges, and also the type of each
|
||
|
* field where required */
|
||
|
$l = array( 'id' => 'ID',
|
||
|
'firstname' => 'First Name',
|
||
|
'lastname' => 'Last Name'
|
||
|
);
|
||
|
|
||
|
$e = array( 'firstname' => 'First Name',
|
||
|
'lastname' => 'Last Name',
|
||
|
'address' =>"Address 1",
|
||
|
'address2' =>"Address 2",
|
||
|
'complete' => "Complete" );
|
||
|
|
||
|
$editor->setTable('judges');
|
||
|
$editor->setListFields($l);
|
||
|
$editor->setEditFields($e);
|
||
|
|
||
|
// $editor->setFieldOptions('complete', array('yes','no'));
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Functions for $this */
|
||
|
|
||
|
|
||
|
function judge()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
function load()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
?>
|