diff --git a/admin/schools.php b/admin/schools.php index d5ee880..0f824f3 100644 --- a/admin/schools.php +++ b/admin/schools.php @@ -44,6 +44,8 @@ $exec="UPDATE schools SET ". "school='".mysql_escape_string(stripslashes($_POST['school']))."', ". + "board='".mysql_escape_string(stripslashes($_POST['board']))."', ". + "district='".mysql_escape_string(stripslashes($_POST['district']))."', ". "address='".mysql_escape_string(stripslashes($_POST['address']))."', ". "city='".mysql_escape_string(stripslashes($_POST['city']))."', ". "province_code='".mysql_escape_string(stripslashes($_POST['province_code']))."', ". @@ -98,7 +100,9 @@ echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "
".i18n("School Name")."school)."\" size=\"60\" maxlength=\"128\" />
".i18n("School Name")."school)."\" size=\"60\" maxlength=\"64\" />
".i18n("School Board")."board)."\" size=\"60\" maxlength=\"64\" />
".i18n("School District")."district)."\" size=\"60\" maxlength=\"64\" />
".i18n("Address")."address)."\" size=\"60\" maxlength=\"64\" />
".i18n("City")."city)."\" size=\"32\" maxlength=\"32\" />
".i18n("Province").""; diff --git a/db/db.update.13.sql b/db/db.update.13.sql index fbb4903..c7ee199 100644 --- a/db/db.update.13.sql +++ b/db/db.update.13.sql @@ -2,3 +2,5 @@ INSERT INTO `config` ( `var` , `val` , `description` , `year` ) VALUES ( 'partic INSERT INTO `config` ( `var` , `val` , `description` , `year` ) VALUES ( 'participant_project_summary_wordmax', '100', 'The maximum number of words acceptable in the project summary', '2006'); ALTER TABLE `projects` ADD `summarycountok` TINYINT( 1 ) DEFAULT '1' NOT NULL AFTER `summary` ; ALTER TABLE `judges_timeslots` ADD `allowdivisional` ENUM( 'no', 'yes' ) DEFAULT 'no' NOT NULL AFTER `endtime` ; +ALTER TABLE `schools` ADD `board` VARCHAR( 64 ) NOT NULL AFTER `school`; +ALTER TABLE `schools` ADD `district` VARCHAR( 64 ) NOT NULL AFTER `board`;