forked from science-ation/science-ation
- Serverside for the stats gathering.
This commit is contained in:
parent
66fe2ed34f
commit
f58fd10749
@ -1 +1 @@
|
||||
126
|
||||
128
|
||||
|
6
db/db.update.128.sql
Normal file
6
db/db.update.128.sql
Normal 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');
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user