Commit Graph

188 Commits

Author SHA1 Message Date
dave
9f9b612e5d - Added an option for the tableeditor to construct a LEFT JOIN when listing a
table
- Add complete and year options to the judge manager, filter by ALL, active and
  inactive for the current year, or active only.
- Add the "complete" status the the judge info page (the judge info popup page
  needs to be integrated with the new judge manager, somehow.. so we can remove
  the judges_judges list page).
2006-10-18 17:05:18 +00:00
dave
29a772ae5e - Add the judge manager to the judges admin page
- Put a total at the top of the judge manager list
- Add to the table editor:
	- Change the filter to accept a single argument, so we're not
	  restricted to the `$k`='$v' syntax, we want to be able to filter on a
	  table JOIN.
	- Add a additionalListTable variable, and additionalListTable()
	  function, to specify additional tables that should be part of the
	  table select statement.  I guess ideally the class would implmenent
	  their own if alternative behaviour was desired.  But this way is
	  pretty generic.  The table editor can now, for example, select judges
	  by year.
2006-10-18 07:50:23 +00:00
dave
29e14c2514 - Fix the tableeditor to do a string compare for determining if something
should be SELECTED in the select type.  If the keys are 0, and there is no
  data, PHP does a numeric compare and matches them, when they shouldn't
  actually be matched.
- Add Load/Save for the judge category preferences
- Enable saving to mysql.  It works.
- Update the tableeditor css to use the same colours as sfiab
2006-10-17 06:44:27 +00:00
james
b8f2e52401 Show inactive judges list - this will probably be replaced soon with the new
editor interface.  Fixes Bug #0000064
2006-10-16 17:50:28 +00:00
james
7143e9e01a Delete old school mailing labels and replace with a mailing label generator
that allows you to customize the size of the labels to suit _ANY_ label
stock paper.

Add to label generator the option to get judge mailing labels, and award
sponsor mailing labels, and make it easy to add more mailing labels
down the road (students? committee? etc?)

Add two default label stocks (Avery 1"x4" and Avery 2"x4")
2006-10-16 15:42:29 +00:00
james
4a5bc27532 Add salutation field to award contacts 2006-10-16 03:36:39 +00:00
james
83691b07b8 Add a header for "public email / private email" to the top of the committee list administration page. Fixes Bug #0000041 2006-10-16 02:36:20 +00:00
james
7e0720dffe Fix a typo 2006-10-15 21:52:58 +00:00
james
cbc01c020f Fix the filename of the awards ceremony CSV script - Fixes Bug #0000063 2006-10-15 21:33:32 +00:00
james
cb6f4a3dbb update database length of email field from 32 to 128
update maxlength attribute of phone/fax fields to 32 (from 16) to line up with the db fields
2006-10-15 20:42:02 +00:00
james
130f0f5786 Implement Bug #0000029 - Report to view school access codes and registration passwords 2006-10-15 20:07:18 +00:00
james
9eef488a5d Implement Bug #0000004 - Do not allow multiple committee members with the same email address 2006-10-15 19:36:33 +00:00
james
4ee617eb52 Add more school information to the schools database (school lanaguage, school level, principal and school email addresS) 2006-10-15 17:11:56 +00:00
dave
373b876b1b Hacked up the editor a bit more.
- Added a "multicheck" input type for languages (english, french)
- Added a proof of concept cross reference to the judge class, it pulls the
  languages out of the judges_language database
- Completely broke the save mechanism.
- Converted the tableeditor edit routines to read from the input class
- Converted the tableeditor edit routines to use assoc arrays, instead of ->
  (easier to pull from mysql and then add cross references to it.
2006-10-11 07:21:35 +00:00
dave
1e9f68a35e - Add the table editor class (not heavily modified for SFIAB yet)
- Add the table editor style sheet, and load it in the header (needs editing)
- Add a judge class (not complete)
- Add a judge manager php file that doesn't interfere with what's already in the system

THis is a proof of concept, it sorta works, but the table editor is still reading directly from the judges class.  It will be updated to make calls only into the calling class type, thus abstracting away all the SQL stuff, and allowing the group class (judge in this case) to hide
all the cross table references we need to make for loading, saving, deleting, etc.
2006-10-11 00:28:58 +00:00
james
952047cc11 Add a prize value field to award prizes, also add editor the the value, as well add editor for the contact position 2006-09-20 16:24:52 +00:00
james
951f801093 Add an AJAX powered translation dropdown to allow incorporation of single string translations in-line in any editor instead of having to manage the translations separately in the translation manager.
Add the translation dropdown to a few fields in teh award sponsors, awards and award prizes.
2006-09-19 22:40:46 +00:00
james
e6ed1c35b0 Account for spacing between labels when generating mailing labels for the schools
Also shrink the c/o line to better accomodate long names
2006-09-12 18:03:46 +00:00
james
a8d31a3603 Add report generation support for mailing labels
Add School Mailing Address Labels for Avery #05163 (4"x2" or 10.2 x 5.1 cm)
2006-09-11 18:05:35 +00:00
james
6ab58a1b8e Add a generic CSV reader that properly handles multi-line fields
Add a school importer to import school list from CSV file
2006-09-11 17:32:02 +00:00
james
050f2093fb Replace "Sex" with "Gender", and allow the db field to be null, instead of defaulting to "male"
BUG#105
2006-09-04 16:28:28 +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
justin
808290f631 projects should be assigned a project number once registration forms have been received, whether or not they still owe money. Resolves issue 101. 2006-08-20 00:02:31 +00:00
justin
a169e422e6 Add support to choose what status a project must have to be used by the judge scheduler. Allows for any of open, payment pending or complete projects to be allowed. 2006-08-12 18:05:38 +00:00
dave
145c6f88ff If we manage to reach a 0 cost early, stop the annealer, there is no point
looking any further.  This significantly reduces the timeslot scheduling time.
In most cases we reach 0 in a couple thousand iterations, but we need high
effort because some timeslot scheduling problems are hard to assign.
2006-08-12 08:07:02 +00:00
dave
c247119663 Remove redundant config code. Use the judge scheduler options directly. 2006-08-11 21:10:33 +00:00
dave
7451483ddf Add he min teams requirement to the check too, not just the scheduler 2006-08-11 20:17:30 +00:00
james
14e93e0c12 Split the Configuration Variables page into separate 'Category' pages 2006-08-11 18:53:10 +00:00
dave
6d6dd8abb1 We must have a number of judging teams at least equal to the number
of times a project must be judged, to avoid assigning the same jteam to
the same project
2006-08-11 01:11:14 +00:00
dave
58e1b4a05e Really fix the problem this time... Stupid Typo 2006-08-09 02:06:36 +00:00
dave
e1c39dd0a3 This shoul dfix the case where there are no projects in a judging division 2006-08-09 02:01:43 +00:00
dave
be711441ea Recommend 15 minutes, not 10 for the php script run time. The annealer takes 12 minutes on my system with really high effort. 2006-08-08 07:03:03 +00:00
dave
dcefe6cdad Replaced the timeslot scheduler. This one is much faster, but it doens't actually compute cost for the number of judges the student has in a row. But, because it's totally random in layout multiple judges in a row should happen very infrequently. 2006-08-08 06:51:07 +00:00
dave
03acd9d8fc Use the annealer to assign projects and judges to timeslots. This should
prevent a project from getting too many judges in a row, and also a judge from
judging 2 projects at the same time (which would be more of a problem).

Still need to write a verifier to check all the results.  But the annealer
tests look pretty good.  Unfortunately it takes a pretty long time to run. :(
2006-08-08 03:21:08 +00:00
dave
b86bb3bc9a - Fix most issues with projects being judged multiple times. This should fix
all issues EXCEPT that the timetable scheduler may assign two judging teams
  to the same project at the same time.  I will fix that soon.  But everything
  else should now work.
2006-08-02 08:07:51 +00:00
dave
c79f16837b - Remove a debugging line. 2006-08-02 07:44:31 +00:00
dave
5438821b1c - Don't include judges that area already on a judging team (their ID appears in
judges_teams_link) in the pool of judges for the judges scheduler.
2006-08-02 07:43:02 +00:00
dave
d01a3eede6 - Delete the old divisional teams, links, award links, timeslot links earlier
in the scheduler so we can only select judges that are NOT already part of a
  judging team

- Fix a numbering issue where sometimes an divisional team created by the
  scheduler wouldn't get created because of conflicting team numbers.  Now, use
  MAX(num) to find the highest team number and increment team numbers from that
  number.
2006-08-02 07:36:21 +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
dave
6fc83836af Implemented a judges division editor, to be used before the automatic judge scheduler to
set groups of divisions that judges can judge within.
2006-07-31 18:17:37 +00:00
james
ea82b61700 Only show the count of awards and contacts for a sponsor for the current fairyear. 2006-07-26 14:42:03 +00:00
james
7d7dd74b18 Show sponsors from all years, make the rollover script simply unconfirm all of the sponsors so they can be reconfirmed for the new year. 2006-07-26 14:38:21 +00:00
dave
228a1a0583 Implementation of configurable judges questions. 2006-07-11 20:22:42 +00:00
justin
e87a80e04a Add csv versions of the committee, judge and student nametags. Resolves issue 60. 2006-07-04 20:38:09 +00:00
justin
0e9a889e4f Schools and students were not being properly numbered in the Registration Summary. Ref: Bug 90 2006-04-09 13:47:04 +00:00
james
a3cec472ac Fix a critical bug with the judging team assignments, the team name needs to be rawurlencoded before put into the URL! 2006-03-30 17:46:37 +00:00
james
7ea92bbcb4 Properly handle empty judging teams 2006-03-30 17:05:36 +00:00
james
e97e22c6e3 Ooops! dont forget to clear out the variable each time through the loop! 2006-03-28 23:50:36 +00:00
james
cbfb9809c0 Add judges languages to the judges list export
Fixes BR#84
http://www.sfiab.ca/bugtracker/view.php?id=84
2006-03-28 23:48:08 +00:00
james
82a45a9d26 Commit Justin's code (modified slightly) for student info viewer
Fixes BR#82
http://www.sfiab.ca/bugtracker/view.php?id=82
2006-03-28 23:32:43 +00:00