forked from science-ation/science-ation
- Added all the fields in the judges table to the judges class, all that's left
now is doing all the cross referencing.
This commit is contained in:
parent
7143e9e01a
commit
5c19a3d0f0
@ -1,6 +1,29 @@
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
|
|
||||||
|
$judges_fields = array( 'firstname' => 'First Name',
|
||||||
|
'lastname' => 'Last Name',
|
||||||
|
'email' => 'Email Address',
|
||||||
|
'password' => 'Password',
|
||||||
|
'passwordexpiry' => 'Password Expiry',
|
||||||
|
'phonehome' => 'Phone (Home)',
|
||||||
|
'phonecell' => 'Phone (Cell)',
|
||||||
|
'phonework' => 'Phone (Work)',
|
||||||
|
'phoneworkext' => 'Phone Ext. (Work)',
|
||||||
|
'organization' => 'Organization',
|
||||||
|
'created' => 'Created',
|
||||||
|
'lastlogin' => 'Last Login',
|
||||||
|
'address' =>"Address 1",
|
||||||
|
'address2' =>"Address 2",
|
||||||
|
'city' => 'City',
|
||||||
|
'province' => 'Province',
|
||||||
|
'postalcode' => 'Postal Code',
|
||||||
|
'deleted' => 'Deleted',
|
||||||
|
'deleteddatetime' => 'Deleted Date/Time',
|
||||||
|
'expertise_other' => 'Other Expertise/Notes',
|
||||||
|
'complete' => "Complete");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class person {
|
class person {
|
||||||
var $id;
|
var $id;
|
||||||
@ -38,19 +61,10 @@ function tableEditorSetup($editor)
|
|||||||
|
|
||||||
/* Most of these should be moved to the base class, as they
|
/* Most of these should be moved to the base class, as they
|
||||||
* will be the same for all person groups */
|
* will be the same for all person groups */
|
||||||
$e = array( 'firstname' => 'First Name',
|
$e = array_merge($judges_fields,
|
||||||
'lastname' => 'Last Name',
|
array( 'language' => 'Language(s)',
|
||||||
'email' => 'Email Address',
|
|
||||||
'address' =>"Address 1",
|
));
|
||||||
'address2' =>"Address 2",
|
|
||||||
'city' => 'City',
|
|
||||||
'province' => 'Province',
|
|
||||||
'postalcode' => 'Postal Code',
|
|
||||||
'phonework' => 'Phone (Work)',
|
|
||||||
'phonecell' => 'Phone (Cell)',
|
|
||||||
'organization' => 'Organization',
|
|
||||||
'language' => 'Language(s)',
|
|
||||||
'complete' => "Complete" );
|
|
||||||
|
|
||||||
$editor->setTable('judges');
|
$editor->setTable('judges');
|
||||||
$editor->setListFields($l);
|
$editor->setListFields($l);
|
||||||
@ -109,18 +123,7 @@ function tableEditorLoad()
|
|||||||
|
|
||||||
function tableEditorSave($data)
|
function tableEditorSave($data)
|
||||||
{
|
{
|
||||||
$judges_fields = array( 'firstname' => 'First Name',
|
global $judges_fields;
|
||||||
'lastname' => 'Last Name',
|
|
||||||
'email' => 'Email Address',
|
|
||||||
'address' =>"Address 1",
|
|
||||||
'address2' =>"Address 2",
|
|
||||||
'city' => 'City',
|
|
||||||
'province' => 'Province',
|
|
||||||
'postalcode' => 'Postal Code',
|
|
||||||
'phonework' => 'Phone (Work)',
|
|
||||||
'phonecell' => 'Phone (Cell)',
|
|
||||||
'organization' => 'Organization',
|
|
||||||
'complete' => "Complete" );
|
|
||||||
|
|
||||||
$query = "";
|
$query = "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user