- Serverside for the stats gathering.

This commit is contained in:
dave 2009-05-04 06:13:44 +00:00
parent 66fe2ed34f
commit f58fd10749
3 changed files with 11 additions and 2 deletions

View File

@ -1 +1 @@
126
128

6
db/db.update.128.sql Normal file
View File

@ -0,0 +1,6 @@
INSERT INTO `config` (`var`, `val`, `category`, `type`, `type_values`, `ord`, `description`, `year`) VALUES
('fair_stats_info', 'yes', 'Science Fairs', 'yesno', '', 600, 'Gather Stats: Information about the fair (date, location, budget, charity info).', -1),
('fair_stats_next_chair', 'yes', 'Science Fairs', 'yesno', '', 700, 'Gather Stats: Chairperson name and contact info for the next year', -1),
('fair_stats_scholarships', 'yes', 'Science Fairs', 'yesno', '', 800, 'Gather Stats: Scholarships given out by the fair', -1),
('fair_stats_delegates', 'yes', 'Science Fairs', 'yesno', '', '900', 'Gather Stats: CWSF Delegate names/email/jacket size', '-1');

View File

@ -57,7 +57,10 @@
$year = $data['getstats'][0]['year'][0];
$vars = array('fair_stats_participation', 'fair_stats_schools_ext',
'fair_stats_minorities', 'fair_stats_guests',
'fair_stats_sffbc_misc');
'fair_stats_sffbc_misc', 'fair_stats_info',
'fair_stats_next_chair', 'fair_stats_scholarships',
'fair_stats_delegates',
);
foreach($vars as $v) {
$response['statconfig'][$v] = $config[$v];
}