Commit Graph

25 Commits

Author SHA1 Message Date
dennis
ee657d49a1 Dennis. Changes allow 'installation' in windows servers (and others) Complete functionality in windows servers still 'in work' 2011-02-22 21:54:34 +00:00
james
70d359c15b PHP 5.3 DEPRECATED split() so, convert all split()'s to explode()'s 2010-09-10 19:38:56 +00:00
james
75c806bf7e temporarily set the fairyear in install3 so user_create works? 2010-07-05 20:36:40 +00:00
james
b7f3274543 Massive overhaul of the configuration variables
- split into system variables and conference variables
- rely on conference_id instead of year
2010-06-22 21:32:03 +00:00
james
078d8bdb0e Make config editor for themes work on sfiab.com 2009-11-30 19:00:04 +00:00
dave
f06523ec74 Forgot a closedir() 2009-11-06 22:13:51 +00:00
dave
f67b485d6d - Separate the icons out of the colour themes
- Detect the theme directories and use dropdown boxes to select the theme and theme_icons, so no one can type in random stuff and screw their sfiab.
- Add 2 missing icons.
2009-11-06 22:10:06 +00:00
james
f963dbf276 Merge all changes from branch r1284:1498 into trunk 2009-09-09 00:26:12 +00:00
james
b3bfb560f9 Add a bunch of missing i18n()'s 2008-10-06 19:09:00 +00:00
james
7dcb9ef8b0 Fix the config variables rollover so it uses the previous year's data instead of the defaults!
Also add some intval()'s for rollover year sanity checking
2008-09-02 17:34:32 +00:00
dave
414a85ccb2 - Add number checking (and parsing) to the config editor
- Change the type of $config['regfee'] to 'number'
2008-01-28 21:48:44 +00:00
dave
984c9776ef - Separte the action handler from the config emitter (but tie them together so
that the old functionality remains)
- Run the action handler separately in the tour annealer and judge annealer
  config so that the page can be refreshed immediately after an update, so
  the  config variables (that may have changed) are reloaded.
- Skip updating config variables that haven't changed.
2007-12-20 08:20:29 +00:00
james
4043df2e66 set a minimum on config editor input text size, so if all fields are empty the text boxes are bigger than 1 characer long 2007-12-14 15:46:01 +00:00
dave
998c8b9af5 - Use a list of checkboxes instead of multisel. If the list is large, it puts
in in 3 columns under the config option.. if it's small it goes beside it
  where the config widgets normally go.
2007-12-12 23:49:50 +00:00
dave
9eca885410 - Allow multiselect to select nothing 2007-11-26 02:25:39 +00:00
dave
57f62f7ab4 - Add a multiselect option to the config editor 2007-11-25 23:30:51 +00:00
dave
f6cc5d7326 - Cleanup how variables are handled/rolled/etc. Convert the require_vars
function in the config editor to one that checks where ALL variables marked
  with year=-1 exist for FAIRYEAR.  If it doesn't, it creates them.  This
  function gets called in three places:
 	- On installation
	- On rollover
	- Whenever the database is updated
 We should, now, be able to just insert new variables with year=-1, and they
 will be automatically updated for the current year with the default value.
 (no more going into the variable editor to make sure the copy is done).

- Fix the superuser account creation in the install script
2007-11-25 19:53:15 +00:00
dave
039a3aa1d5 - Alternate colours on each line in the config editor. Makes it easier to see
which config lines go with which options.
2007-01-21 03:55:38 +00:00
dave
5ca11ae362 - Properly copy the config type in the config editor when copying -1 config values into
the current year
- Add 2 new config options.  
	- 'participant_student_tshirt_cost' allows the cost of each fair tshirt
	  to be set (vancouver charges $10 for tshirts, because not all
	  students want them), this also adds a 'none' option to the tshirt
	  selection box, and a note indicating the tshirt cost if the costs is
	  nonzero.
	- 'regfee_show_info' adds a "Registration Fee Information" to the main
	  student registration page, showing a breakdown of the registration
	  fee computation (including tshirts, per_student and per_project
	  registration, and indicates the total.
- Convert the tshirt field to VARCHAR(32) instead of enum so the "none" option
  described above works, also, some fairs may want to add more optoins, like
  female/male sizes.. so turn this into a text field for those fairs.  The next
  step would be to make a config option for the tshirt options. :)
2007-01-21 01:40:46 +00:00
dave
018725aebf - Add a type field to each config variable. The type field is used to tell the
editor what type of variable to expect.  It can be yesno, enum, text
  (default), number (unimplemented), or blank (default behaviour of the current
  system).  In response, the editor will use pull down lists instead of text boxes 
  for things like "Yes", and "No", or enumerated fields.
- Update the descriptions and type of existing variables.
2007-01-20 22:23:44 +00:00
james
319c5d6720 Add option to turn off the Mentor section for participant registration
Add two new projectnumber options:  c=category shortform,  d=division shortform, eg  (JLS01 = Junior, Life Science, Project #01)
Add shortform field for age category
Fix bug in config editor where it was updating values for ALL years, instead of just the current year!
Bump version number to development version
2006-12-06 17:58:40 +00:00
dave
a430aadab3 delete debugging print statements 2006-09-03 21:37:23 +00:00
dave
ebd4666f51 Add a function to the config editor to specify which variables the config
should contain.  If the config doesn't find those variables for the current
year, they are automatically copied in from year=-1.  This means that
we can update a database and add new config variables and not have to manually
add each variable to the current year.  It also means someone can't mess
up the system and accidentally delete config variables, because they 
will be recreated.
2006-09-03 21:36:28 +00:00
james
14e93e0c12 Split the Configuration Variables page into separate 'Category' pages 2006-08-11 18:53:10 +00:00
dave
e7d726355d The new judge scheduler.
- Missing: Having a project judged more than once by different judging teams is
  untested, I don't htink it'll work properly, still working on that part.
- Missing: Auto updating the configuration if any of the variables are missing.
- Missing: A way to preserve judging questions (like willing_chair), so the
  user doesn't delete them and break the scheduler, OR, notice saying that the
  question has been deleted and the scheduler won't use the chair calculations,
  then we need a way to add them back in with the click of a button.
2006-08-01 19:43:15 +00:00