Adding a field is fairly complex.
www
user on moog. Edit
~www/php/include/apply.inc.php
. That file defines a number of arrays.
~www/php/apply/appply.php
, which uses apply.inc.php
and displays the appropriate web pages.$apply_fields
array, add the new field name and the text that is to be displayed.
/export/home1/tmp/php.err
for the error message.
$apply_fields = array( ... 'statementofpurposeURL' => "URL of StatementOfPurpose", 'otherprogram' => " If you are not selected for the TRUST PROGRAM, would you like to be considered for a REU position in another NSF-funded Science and Technology Center?" );
$apply_formats
add the new field name
and the type, for example:
$apply_formats = array( ... 'statementofpurposeURL' => "text", 'otherprogram' => "tinyint" );
Possible Types:
enum
tinyint
$apply_map
add your new field to the appropriate subarray. For example:
'star' => array('motherseducation', 'fatherseducation', 'major', 'majorgpa', 'overallgpa', 'communitycollege', 'anticipatedtransferdate', 'standing', 'honors', 'researchprograms', 'statementofpurpose', 'resume', 'otherprogram'),
$apply_summary_headers
and add the short name for the new field.
$apply_summary_headers = array( ... 'statementofpurposeURL' => "SoP", 'otherprogram' => "tinyint" );
if (!sqli_exists($db, $table)) { //log_event("apply.inc.php: creating $table"); $query = " create TABLE $table ( ... 'resumeURL' varchar(256), 'statementofpurposeURL' varchar(256), otherprogram tinyint(1) NOT NULL default 1Don't forget to pay attention to the commas
http://truststc.org/mysql
and find the database for the workgroup. For example the TRUST star workgroup is in the star_4
database.apply
table, and click on the structure
link.add column
line and click on the go button.apply.php
file for possible sizes and defaults.apply.php
file and try out the application.