Commit Graph

497 Commits

Author SHA1 Message Date
james
d1c626e2b6 Add the award sponsor to the winners entry page 2007-10-29 19:13:52 +00:00
james
b8e4c38c2b Make sure we have an ID and a Year before trying to make the report 2007-10-25 20:30:58 +00:00
james
213004783b s/awarded/available 2007-10-25 20:23:28 +00:00
james
c5b2ae9f4c Add "label" to list of report formats 2007-10-25 19:54:10 +00:00
james
54ca3a0eef in mysql5, projects needs to be joined before the projectdivisions/projectcategories 2007-10-25 19:48:20 +00:00
james
e8aeb731ec Clear some ambiguity in the term "# of prizes" vs "# awarded" 2007-10-25 18:48:35 +00:00
james
091c2ceffd Judge list - delete now unlinks the judge from the current year
Judge manager - delete now deletes the judge completely

Judge list only shows judges active for current fairyear
Clarify a few issues on the judge registration page
2007-10-25 18:20:55 +00:00
dave
186c0525b7 - Add an option to view reports from previous years 2007-10-20 04:04:14 +00:00
james
1c0c51c7fc Update all Avery templates, add new avery template for 1 1/3" x 4"
Fix a register_globals reliance
2007-10-09 17:42:00 +00:00
dave
f922adb9af - Implement vertical alignment for labels
- Implement boxes around text for testing (and maybe for a purpose?)
2007-10-05 20:12:19 +00:00
james
30df2c8af8 Add "back to admin" links
Rename item in main admin menu to be more reflective of what it actually does
2007-10-05 18:44:48 +00:00
james
02a5ef7811 Add the xml.inc.php common file 2007-10-05 18:40:32 +00:00
james
dbcd4e955f Update admin index to include One-Click Affiliation Stats
Factor XML functiosn out of cwsfregister into separate xml.inc.php
Add xml functionality to ysfstats, and fudge the male/female stats to include "not specificed" genders
Add submit functionality to ysfstats to actually send data to YSF
2007-10-05 18:40:07 +00:00
james
29f545f80f The rest of the stats required for regional affiliation with YSF 2007-10-05 17:34:06 +00:00
james
c82126150e Add a file to calculate stats required for YSF Regional Affiliation
(not complete yet)
2007-10-03 21:03:46 +00:00
james
4a3aaac8af Properly address french mailing labels to schools 2007-09-27 15:29:48 +00:00
james
c4c57fde2b Make sure the FAIRYEAR is 2008, and bump version number to 2.1.2 2007-09-20 17:31:43 +00:00
james
7f3a0ff528 Add a fix to re-roll award prizes that werent properly rolled over due to the rollover bug in 2.1.0 2007-09-20 17:26:18 +00:00
james
1e947cba16 - Add a school based report query, so things like mailing labels can be created for ALL schools, not just the ones attached to a student. 2007-09-13 18:57:56 +00:00
james
0de2bfeef0 Add a few more missing "exit" calls after a header("Location"); 2007-05-10 19:18:01 +00:00
dave
878a29a9d1 - Another case where we depend on register_globals = 1 2007-04-11 22:09:17 +00:00
dave
9c1a16acc2 - Add assigned tour to the report generator
- Add prize names to the report generator
- Change award name to sort by name, if you want to sort by order, use the
  Award--Order column. (Specifying a sort by prize name, and it actually
  sorting by order doesn't make sense)
2007-04-10 15:53:48 +00:00
james
3f8d70d47d Add a bunch of fields that allow you to create all the information on a single form for Sci-Tech Ontario award winners to submit to sci-tech ontario 2007-04-05 21:33:39 +00:00
james
6088779b37 Properly handle "quote" marks in the title if the page gets resaved after the initial save 2007-04-03 21:07:44 +00:00
james
f3ad2c7f26 Oops need to global $config for that last patch to work 2007-04-03 20:17:32 +00:00
james
31aebc743f Only count a huge penalty for the team if there's no chair on the team if the minimum number of judges per team is greater than 1. If the minimum is 1, then essentially the "willing chair" stuff should get ignored. 2007-04-03 20:16:48 +00:00
james
eff30a5adb Add an option on the winners selection page, to show all ELIGIBLE projects for a special award, not just the nomiated ones. Helps in teh case that an award was added last minute that nominations didnt happen for, or in a caase that the judges decided to choose a winner that didnt nominate to begin with.
Update the winners page to not duplicate students names :p
2007-04-03 20:10:00 +00:00
james
e7776a6b9c CSV of award winners - we used this at ORSF to do a Mail-Merge into a MS publisher template which export to a PDF to create a presentation for the awards ceremony... Next year we should automate this to create an OpenDocument Presentation (.odp) 2007-04-03 20:05:39 +00:00
dave
35ccf2a2ad - Fix an instance where we rely on register_globals to be on 2007-04-03 19:53:30 +00:00
dave
526db97052 - Update the custom tour selection report to:
- Only report complete students
	- Use tour names instead of numbers
	- Not use $email as a temp varaible because that actually overwrites the
	  $_SESSION['email'], and logs us out, wtf?
	- Sort by first tour selection
2007-04-03 18:49:29 +00:00
james
daa3f4bb51 Rename the entry to "Website Consent" 2007-03-31 01:10:56 +00:00
james
c95df2b912 Implement web consent restrictions, settable by the admin (under the admin->participant registration menu) to prevent firstname and or lastname (and or photos once they are implemented) of students, on a per studnet basis, from being displayed on the website. It currently affects the confirmed participants page, and the winners page (the only two public places where sutdent info is available thorugh the system) 2007-03-31 01:10:08 +00:00
james
97c2b65a93 Require >1 judge div grouping 2007-03-29 20:33:45 +00:00
james
d209b0648f Add new CUSTOM report: Program Awards List (used for ORSF printed program)
Add award criteria to getJudgingTeams() result
Modify CUSTOM report judges teams proejcts, to show each award and the criteria/eligibility for each award that the team is assigned to judge.
More ease of use cleanups to awards interface
Add new field award order to student report generator
2007-03-28 22:32:57 +00:00
james
6fa1a01fe6 Remove much of the awkwareness of the awards management interface 2007-03-28 18:03:15 +00:00
dave
1bdba54ed5 - Add a special awards feature (off by default) to the judge scheduler. It:
- Creates a judging team for each special award
	- Assigns judges to special awards based on the number of students self
	  nominated.
	- Obeys the judges special award preferences (if enabled), and also
	  judges that specify if they are a judge for a specific special award
	  (if enabled).

- Add 2 new config variables.
	- Enable the special award scheduler
	- Specify the max. number of projects each special award judge can
	  handle (default: 20)

- Delete an extra blank line in register_participants_students.php
2007-03-28 06:16:41 +00:00
dave
cc2e6b5bce - Add fullpage (no margin) reports for the full pages, we need them for our
certificate generator
2007-03-27 05:01:51 +00:00
james
fb1ddd4775 Clarify what the 'prize' field should be used for. (eg, only if the prize is non-cash/non-scholarship) 2007-03-26 17:06:44 +00:00
dave
a979f158eb - Add a 0.75" page margin to the full page labels 2007-03-26 16:49:15 +00:00
dave
336ec2f75c - Don't generate PDF table reports for things that should be labels.. generate
"label" reports.
2007-03-26 06:20:43 +00:00
dave
efc7ae411d - BAM!
- Overhauled the report generator.. It's more versatile now
- Added 'filter' option to the generator, so you can filter any column by (=,
  <=, >=, <, >, IS, IS NOT, LIKE, NOT LIKE).  It doesn't support AND or OR
  combinations, but that should cover what we need for now.  Example: We can
  filter "Award Name" LIKE "%Gold%" to generate a report of just the Gold medal
  projects.
- Wipe out the report database, and create it again from scratch.
  update.48.sql contains an example of how to add additional reports to the
  system without knowing the report_ids, because after regions start adding
  their own reports, we won't be able to just wipe out the whole report system
  to add one.
- We handle more reports now, specifically nametags and table labels, so remove
  those files, and update the reports.php file to link the old links to the new
  report generator (so people don't get too confused in this transition).
- Beginnings of moving the report generator to proper LEFT JOIN style
  constructs instead of just one big massive EQUALS JOIN.
2007-03-26 06:15:41 +00:00
dave
80ca088be2 - This will break things, but I need to get these home so I can work on 'em.
WIth luck, I'll have a new report generator commiteed witha proper DB update
  tonight.
2007-03-26 01:54:18 +00:00
james
c22b3fa86b Add some extra fields to the awards report 2007-03-22 14:55:24 +00:00
dave
c64d7445e9 Update the selector so it works 2007-03-20 20:50:14 +00:00
dave
23934f080a - Fix the report selector for browers that can't seem to do javascript 2007-03-20 18:49:44 +00:00
dave
77eee9dcdd - Add options for nametags to be generated
- Add committee member generator
- It is now possible to generate ALL nametags the old system could generate
  (needs a DB update before that happens... actually, the report generator
  isn't as stable as I hoped.. I'll probably just nuke the report tables the
  next upgrade and recreate them all.. I'm probably the only one who has tried
  generating a custom report. :)
2007-03-20 06:24:18 +00:00
dave
18d2bfa0d3 - The generator needs these to be arrays 2007-03-19 16:47:01 +00:00
dave
2f23e31a40 - Update the generator, it can do labels and nametags now, almost ready to
deprecate all the mailing list/nametag/table label/etc. files.
2007-03-19 06:51:44 +00:00
dave
3f737b3270 - Replace two judging reports.. The second isn't quite a perfect match, but it's close
enough..  Currently we can't produce both a list of judges and a list of awards for each
  team with the generator (how the heck would we express that with an SQL statement)
2007-03-19 00:13:12 +00:00
dave
d659999339 - Update the judge and award report generators 2007-03-18 21:48:36 +00:00
dave
7b04204ede - Add judge and award type report generators (not nearly complete)
- Migrate generic code into reports.inc.php
2007-03-18 19:59:02 +00:00
dave
f3129e7a39 - Add date of birth to the student report field list so we can close a bug on
bugtracker.
2007-03-18 07:24:52 +00:00
dave
857cb6aa7b - Fix the CSV generator 2007-03-18 07:19:00 +00:00
dave
331bedc7e7 - Delete reports that the new report generator now duplicates 2007-03-18 07:12:49 +00:00
dave
b3978c7dae - Add a new student report generator
- Add an editor for that generator.. it's not flawless, but it's not hard to
  use either.
- Add 19 default reports
- Replace several reports on the report page with the new generator versions
  (they pretty much look the same, same info, same sort order, same pagination)
- Add a pulldown menu to the report pages so any report can be generated
2007-03-18 07:10:54 +00:00
james
a318e2d1fa Always for the project number position, incase the project title wraps onto two lines, this prevents the table labels from spilling over to two pages.
Also fix it so it doesnt have a final blank page at the end
2007-03-14 01:18:18 +00:00
james
faceec20ed In the judges division groupings, only show the count of projects that are complete or paymentpending 2007-03-13 22:11:18 +00:00
james
174490b752 Auto focus on the input box on the input received forms page, so you dont have to click on the box every time before you start typing in the registration number. 2007-03-13 21:34:24 +00:00
dave
453a3666f1 - Commit the report generator.. it still needs work, but it's quite usable now. 2007-03-13 06:10:27 +00:00
dave
cb992b8819 - Add the "none" tshirt option to the admin student editor 2007-03-12 17:27:55 +00:00
james
3519bc5e0e Add three new email recipients to the communications module:
1) special award sponsors (confirmed only)
2) special award sponsors (unconfirmed only)
3) special award sponsors (all)
2007-03-12 14:23:44 +00:00
dave
57ff84c563 - Move registration fee computation into the include file
- Add the required registration fee to the received forms checkoff, so the
  amount of the cheque can ben checked too.
2007-03-12 02:05:40 +00:00
dave
f0bb80a866 - Fix the name of the generate project number function
- Hardcode add a special award to the top of the list "I do not wish to
  nominate for any special awards".  Allow the
  project_specialawards_link.award_awards_id field to become NULL, and set it
  to NULL if the student selects this award.
- Fix the display of the award status based on whether the student has or has
  not specified that they do not wish to nominate for special awards.
2007-03-05 04:27:44 +00:00
james
4789d78e2f - Move the project number generation into a header
- Add an option to the project editor to regenerate the project number
- Fix a bug in the project number generation.  Include YEAR in the project
  number check (and in the number generation) so we don't find a project from
  last year (that already has a number), and decide not to generate one for a
  project from this year.  The $checkNumQuery was returning 2 rows.. one from
  2006, one from 2007.  Two projects from different years had the same
  registrations.num (665983) in my test.. about 10% of the projects at the VDSF
  collided with numbers from previous years.
2007-03-04 20:28:51 +00:00
james
2ff20effc2 Respect page margins on the school access codes report 2007-03-04 16:38:45 +00:00
james
fe2627faec Fix the wording on Jesse's table labels and nametags field section pages. 2007-03-04 16:36:28 +00:00
james
659bc11066 Put the email address in the registration list, so when someone calls and says "i never got my registration number!" you can easily look it up for them! Sorry this didnt get into 2.0.10, im going to update everyones version with this patch anyways 2007-03-02 15:02:14 +00:00
james
fea05546d1 Fixed the reports_schoolprojects report to not error when there are no projects 2007-02-26 21:43:39 +00:00
jesse
4c08f9c517 This now prompts for which fields to display in the name tag (pdf). 2007-02-24 20:24:22 +00:00
jesse
5edba483e3 This will prompt for which fields to display on the project table label. By default all of the checkboxes are ticked. 2007-02-24 19:59:55 +00:00
james
2d6257715e Fix text on one configuration variable
Fix judge manager to keep the 'show_what' persistent when performing other actions on the table (editing, sorting, etc).
2007-02-21 20:42:48 +00:00
jesse
8830c1be99 added another column "school boards". This allows us to sort our list and quickly distribute the school access codes because we do not have email addresses for all of our schools. 2007-02-18 17:38:48 +00:00
james
8a009b71e1 Add a "Presented by: " to the awards ceremony script
Closes Bug #0000113
2007-02-12 22:30:43 +00:00
james
952a4d3c29 Fix a bug where if no $table is passed to addTable it will now return gracefully instead of spitting out error messages
Add email field to the judge list, and the judge manager list
2007-02-09 14:57:07 +00:00
james
1d203535ee Add 1x4" judging sheet stickers for use on the CWSF judging sheets. It contains the project number, title, and category/division. 2007-02-07 22:05:59 +00:00
dave
f83dcfebd0 - Add the award critera to the page where we input the winners, just so the
person doing the data entry has the option to sanity check the results.
2007-01-30 07:45:12 +00:00
dave
49c5704143 - Include the table editor before the judge class, this is in prep for PHP5
when we implmeent templates.
2007-01-30 01:52:55 +00:00
dave
3da0ba87e2 - Update the table editor, instead of doing all that funky stuff for listing
the table, we call a method in the table helper class.  That method returns 3
  things.. an array of SELECT columns, an array of FROM tables, and an array of
  WHERE clauses.  The table editor takes these, adds ORDER, LIMIT, etc, and
  runs the sql.
- Update the table editor to allow variables to be set.  THe helper class reads
  these variables to do pretty much anything it wants.. In this commit, it
  reads the judges_show_what variable, to determine how to format the SQL for
  selecting the table of judges (so the calling php can now know NOTHIGN about
  the database, it just sets a variable and expects the data to be formatted
  correctly.
- Update the judge manager, show all judges should now SHOW ALL JUDGES.
2007-01-28 07:53:14 +00:00
dave
94639c1278 - Allow a committee member to edit the password in their own profile (if they
have admin access to access the committee editor)
- Put a "My Profile" link on the main nav bar once a committee member logs in,
  so they don't have to find themselves thorugh the committee editor.  It takes
  them right to editing their own profile.
2007-01-21 05:43:29 +00:00
dave
82b8b75b25 - Add location and contact info for each tour. Dump this in the CSV dump of
the tours, but don't show it to the students at all.
2007-01-20 08:10:26 +00:00
dave
f7c430d712 - Allow a committee privateemail to be written as '' (nothing) without throwing
the "email address already exists" error.
2007-01-18 04:16:43 +00:00
james
932ce3731c remove some extra code from the tours manager
add a link to return to admin for translations
2007-01-12 20:45:52 +00:00
dave
900dab702d Add Tour selection.
- Admin can use the tour manager to add tours
- Admin can use the config variables to enable tours, and select the min/max number of tour choices.
- Students will see a "Tour Selection" section of registration, which is incomplete until the student has selected at least a minimum number of tours.... actually, this may be broken.. Need to look at it further..
2007-01-09 19:05:23 +00:00
james
0dd2da7145 Add configuration options to choose whether to ask the students if they require:
- table
	- electricity
2007-01-02 20:33:16 +00:00
james
9fc98fc288 Add a TCPDF version of the signature page, TCPDF does not require any extra PDF libraries (eg pdflib) to be installed
Create PNG versions of the uploaded logo image file
Detect which version of the signature page to use
Bump version to development series 2.0.5
2006-12-18 20:55:30 +00:00
james
0bd7ab8a93 Add an option to forcibly reset the judge scheduelr incase it gets stuck in an inconsistent state
Bump version number
Correct wording on judges expertise page
2006-12-15 21:18:27 +00:00
james
b38dfe33cc Update copyright headers to 2006 2006-12-15 19:51:32 +00:00
james
f36212f868 Add a project editor and a student editor, accessible by
clicking on the project or student links from the 
  "Registration List and Statistics" page

Add the project number to the registration list
2006-12-15 18:45:06 +00:00
james
1e7d9fcad9 Show access code in schools list
Add ability to create access codes for all schools and to remove access codes from all schools
Update generatePassword to accept a password length as a parameter, defaults to 8
2006-12-06 19:24:09 +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
james
c951c58984 Only allow the Password: field in the committee manager to be shown/displayed/edited by someone with superuser access level
(i thought thats how it always was!, thats how it was meant to be at least!)
2006-11-21 20:20:25 +00:00
james
669ef1349c Add an ETA calculation to the status 2006-10-25 19:10:27 +00:00
james
b2c2fdb38b Add an option to DELETE a registration, removes everything to do with it from the database 2006-10-25 17:35:51 +00:00
james
95dc9eea5b Launch the scheduler with a lower priority (10) instead of hte default (0) 2006-10-25 03:25:31 +00:00
james
b65316c32e Changes to judging scheduler so the process runs smoothly
Dont let it start running if its already going
Properly handle the text when its done running
2006-10-25 03:19:54 +00:00
james
2bb5c2e2a4 Oops add the launcher 2006-10-25 02:41:56 +00:00
james
a871759129 Add the judges scheduler status page, updated automagically using AJAX
Redirect the scheduler link to a launcher link that lauches the scheduler then goes to the status page
2006-10-25 02:41:41 +00:00
james
5cf008adf6 s/precent/percent 2006-10-25 02:26:49 +00:00
dave
b883d2f389 - Fix the percent update in the judge scheduler 2006-10-25 02:23:53 +00:00
james
677132f307 Ooops, close php properly on the communication.inc.php file (sloccount told me so!) 2006-10-25 01:50:59 +00:00
james
cf1bf2cf9d change set_progress to set_percent 2006-10-25 01:48:32 +00:00
james
f687e4d889 Put the judge scheduler status in the "Judge Scheduler" category, instead of a new category (having it in a new category makes that new category show up on the configuration variables page, and since they are year=0 the page would be empty anyways. 2006-10-25 01:34:11 +00:00
dave
ea418624ba - Add status output to the judge scheduler in the form of 2 variables.
Completely untested because I don't have judge data here.  Will test when I
  get home and debug.
2006-10-25 00:53:02 +00:00
james
f3e8762f2e Only check if the cwsf division id is set once per project, not for each student 2006-10-19 23:31:28 +00:00
james
06cb40304b Add the link to the One-click CWSF registration
Also split the student display onto multiple lines
2006-10-19 23:12:11 +00:00
james
aa93c170db Actually send the data to the YSF server! 2006-10-19 22:54:26 +00:00
james
2019e24b89 Add the 'one click' CWSF registration code!
It current generates the XML but does not implement the sending to YSF (thats still to come!)
2006-10-19 21:39:30 +00:00
dave
9fbb3feb3b - A few simple fixes to make it work in default mode 2006-10-19 17:17:43 +00:00
dave
a9ca1718d1 - A new judge report generator.. it's completely broken and not done, but I
wanted to get it into the repository so maybe I can work on it elsewhere
  later today.
2006-10-19 17:16:31 +00:00
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
james
cfd6fdf637 Dont bail out on empty judge teams 2006-03-16 20:15:50 +00:00
james
5e8aa4ca2b Add recipient "Judges not active for this year" to communication module 2006-03-08 22:12:55 +00:00
james
04e8f0d1c1 Add a project logistical requirements report to show which projects need electricity, tables, and othe rspecial requirements 2006-03-08 20:22:17 +00:00
james
82bae118b1 Handle multi-year data in award_types 2006-03-08 20:01:18 +00:00
james
220c7a6fb1 Fix the winners list when there's multi-year data in the award_types table. 2006-03-04 05:22:26 +00:00
james
f0fdca1ba0 Add a new report that shows each project/students on a per school basis, one school per page. 2006-03-04 05:09:05 +00:00
james
95c6381007 reorganize the send_communication script to be more efficient 2006-03-01 18:03:41 +00:00
james
4bf5cb909f Update the communication module with a few more options 2006-03-01 15:59:51 +00:00
james
d3090b934f Add a judges list to the judges management page, this list allows you to view the status of the judges as well as delete judges from the current year's fair (note: only deactivates their account for the fair, does not delete it completely) 2006-02-15 18:10:27 +00:00
james
db5b20d54a Fix a few bugs in the communication module 2006-02-07 20:56:54 +00:00
james
a85faefe2d Fix the judges report 2006-02-07 20:19:56 +00:00
james
4aff70ef17 Fix the broken sending emails -- aparently the "at" command had its syntax changed and now requires a base to add increments from
(at now + 1 minute)
2006-02-06 21:34:09 +00:00
james
d5fd002820 Update the judges automatic scheduler to honour filtering categories by divisions, so we only get teams for cat/div combos that we actually need 2006-02-06 16:45:39 +00:00
james
68ff1bdc2f Make the titles on the awards page a little more meaningful/correct 2006-02-01 05:12:07 +00:00
james
b375b4ae0d Implement Bug #0000001 - Have option to exclude awards and/or prizes from the awards ceremony script.
(An example could be honourable mentions that you dont call up on stage at the awards ceremony)
2006-02-01 05:06:48 +00:00
james
1833a63b15 Adjust the column widths a bit 2006-02-01 05:04:36 +00:00
james
738aaeb172 fix a few typos in the annealer, and bump up the moves to 1000 for better results 2006-01-31 23:31:40 +00:00
james
c5e55fad37 Remove the unneeded configuration params for timeslots from the scheduler
Separate the 'requirement check' into a separate file and run it on both the config  page, and as a double check on the actual annealer page incase they decide to manually type in the address or bookmark or somkething.
2006-01-31 22:34:04 +00:00
james
cf22c24c78 Add school district and school board fields to the schools database 2006-01-27 18:36:53 +00:00
james
eaa1444082 Make the scheduler config check for available timeslots
Make the scheduler actually insert the timeslot/project/team data into the database
2006-01-26 23:06:47 +00:00
james
7b5d56ce60 Update the judges timeslot editor to have a new field for 'allow divisional'. This specifies whether the automatic judges scheduler can use this timeslot to scheduler the divisional awards judging.
Add a new feature to the timeslot editor to add multiple timeslots at once, by specifying the start time, duration, and break time.
2006-01-26 21:42:04 +00:00
james
19b24cca36 Add scrollbars=yes to the judge info popup window, so its possible to scroll down! 2006-01-26 17:52:06 +00:00
james
fefd9c8e35 BUGFIX From Just Reardon:
If specialawardnomination is set to "none" (fair doesnt use special award self-nominations) then the pick winners page will instead show all projects that are eligible for the award to choose a winner, instead of those that are nominated for it (which is none).

Thanks Justin!
2006-01-26 15:04:25 +00:00
james
4d54bdbb1c Update translation manager to work with unlimited number of languages as defined in the languages table
Update i18n function to accept a third parameter, which is an array that describes the arguments in the string to make translation much easier
Update some of the config/admin pages to make sure i18n is properly used, and that argument descriptions are set
2006-01-19 17:15:07 +00:00
james
28ebf2ce30 Add a preliminary translation manager, mostly copied from another location that I use a similar system. It needs to be updated still to handle translations for the languages in the 'languages' table instead of only french. But this will at least allow us to begin the french translations 2006-01-19 01:58:37 +00:00
james
321a245670 Split school access and school participant invitations into separate files
Update invitation system to keep track of the number that have been invited and not allow the school to invite more than they are allowed
Update the schools editor, to allow specifying the max number of projects and whether the max is total for the school, or per age category
Add required fields to the schools table
Update the config variable for special awards registration to allow turning special awards registration off
2006-01-18 05:22:58 +00:00
james
515e615a8f Properly display the project number if registraiton fee is >0 2006-01-16 16:22:05 +00:00
james
bd274f6301 Add the 'back to admin' line to the committee manager 2006-01-16 05:24:14 +00:00
james
b4fc47f9b7 Add a huge warning about the scheduler not yet being complete. 2006-01-16 05:04:45 +00:00
james
3bccb5d163 Commit all of daves changes to the annealer - it is DEFINITELY NOT COMPLETE YET! DO NOT ATTEMPT TO USE IT YET! EXCEPT OF COURSE FOR TESTING PURPOSES :) 2006-01-16 04:58:43 +00:00
james
d763cd1636 Add a link to the generic prize template editor, right before the link to create all divisional awards based on the template. 2006-01-16 04:57:56 +00:00
james
5ff9494d48 Fix judges info to properly show the age category preference and areas of expertise 2006-01-16 04:55:46 +00:00
james
d17e145158 Only create the awards if a sponsor is selected 2006-01-16 04:44:30 +00:00
james
4953d2c13c fix the table labels report to work multi-yaer 2006-01-13 16:57:58 +00:00
james
635d0b6e2d Fix annealer to only use judges that are complete and from the current FAIRYEAR 2006-01-03 02:44:26 +00:00
james
112693c337 Fix the divisional award creator to load the right page :) 2006-01-03 02:33:36 +00:00
james
c53e130cc4 Fix the scheduler config to work with multi-year data 2006-01-03 02:33:11 +00:00
james
44a79493aa Get age category preference from judges as they register
Create scheduler configuration page to handle setup parameters for the automatic judge team assignments
Create the annealer to handle the actual assignments of judges to judging teams based on the lowest cost function of each individual team.  Currently takes into account: a) age category preference, b) divisional areas of expertise.  still requires: years of experience, language preference, and 'team captain' scheduling.
2006-01-03 02:08:23 +00:00
james
577789b117 Add functionality to auto-create the divisional awards for each division and age category, based on the default prize template 2006-01-03 02:02:52 +00:00
james
335098e5a7 Fix a few queries to handle multi-year data properly
Add link to edit the generic prize template
2006-01-03 02:01:20 +00:00
james
8ae58b5957 Fix the width of the teams display so they are all consistent 2006-01-03 01:50:23 +00:00
james
d8321449f9 Bug and Typo fixes are per John Meskes 2005-12-15 22:28:04 +00:00
james
b956f4c2d3 Add project details report - shows info for one project per page, with project details, mentor information, and project summary
Remove some leftover junk from tablelabels report
2005-12-08 18:00:30 +00:00
james
3f50a343af fix a few reports to make sure we dont duplicate results for multiple years 2005-12-08 16:17:12 +00:00
james
5bd24e3f8d Put phone numbers on multiple lines for PDF, and in multiple columns on teh same line for CSV 2005-12-08 16:05:25 +00:00
james
074b66274c Add student emergency contact report 2005-12-08 16:00:18 +00:00
james
a4faab66e0 Fix the divisions query to query the divisions from this year properly 2005-11-26 18:59:44 +00:00
james
e8353f011f Add the judge inviter to the judge administration section
Add the new judge invite email
2005-11-25 21:15:29 +00:00
james
860175ae79 NEW FEATURE: Participant Registration Type
Open - Anyone can register.

	Single password - Same password for all schools, they tell the 
		students that will register what the password is.

	School password - One password per school, they tell the students
		that will register what the password is.  School is 
		pre-selected based on their school password.  This will allow
		eventually the ability to restrict participation numbers on
		a per school basis

	Invite - The teachers at the schools must 'invite' the students 
		to register by logging in as the school and creating
		accounts for each student.  The student then logs in and
		finishes entering all of their information.  This will allow
		eventually the ability to restrict participation numbers on
		a per school basis

Bump version number (0.9.3-svn)
2005-11-24 20:21:55 +00:00
james
2e125d263c 2005-05-13 17:36:01 +00:00
james
c93a18ea4e only show nominated special awards instead of eligible special awards when assign projects to teams timeslots 2005-05-12 19:47:08 +00:00
james
32e36648b4 When adding a winner for a special award, only show choices of those who nominated themselves for that award (instead of all eligible projects) 2005-05-12 19:06:12 +00:00
james
ed663e77eb Wow I dont even know what all is in this commit: few things i do know:
1) add (preliminary) special awards nominations for students
2) add css right-margin to summarytable class
3) add new table for projets-specialawards-link
4) move projects.inc.php from admin/ to / (so particpant registration can use it)
2005-05-11 04:13:27 +00:00
james
b1810d05a2 commit this file so i can mov eit 2005-05-10 21:51:22 +00:00
james
c7e1ec708c Only show projects that are eligible for an award that the team is judging for 2005-05-06 20:26:15 +00:00
james
e91dbdf4c9 factor out functions to get projects that are eligible for an award 2005-05-06 20:02:20 +00:00
james
1476031aea get teams project assignments ready to handle only displalying projects that are eligible for the awards that are assigned to that team 2005-05-06 19:14:56 +00:00
james
7af110337a Add the awards at the top of the judging teams view tables 2005-05-06 18:05:10 +00:00
james
b3cad6ebd3 show error if team is empty
add ability to empty entire teams
switch 'delete' button from a form button to the standard cancel icon (saves vert space)
2005-05-06 16:34:13 +00:00
james
a947ff8e85 Whew! Add a new interface to link judging teams with the awards that they are
judging for.  Can now auto-create judging teams based on awards list (one team per award).

db bumped to v6

moved judges_teams to judges_teams_members
judges_teams is now the new interface
2005-05-06 16:13:37 +00:00
james
c171fe752d enter winning projects
new database files
update PDF addText to go to next page when necessary
awards ceremony script
2005-05-04 21:23:00 +00:00
james
0127061871 Remove border from team captain icons 2005-05-02 20:56:49 +00:00
james
098649c8a3 Add Presenter to awards 2005-04-26 18:59:38 +00:00
james
7c95c37d21 Committee Nametags 2005-04-22 19:51:47 +00:00
james
65c4600bec Judges nametags 2005-04-22 19:14:37 +00:00
james
95e13e966a make the div/cat on the nametags a bit smaller 2005-04-22 18:01:13 +00:00
james
fe1217ba6b Whew! LPDF Nametag support & nametags for students... that took 5 hours! 2005-04-22 17:37:19 +00:00
james
1d3c7294e4 Add the project table lablels report 2005-04-22 14:20:29 +00:00
james
b7b9064810 Create report to show judging times for each project. One project per page. 2005-04-21 22:12:35 +00:00
james
db6b2dad28 LPDF: fix bug when one line of text is added with addtext
LCSV: add addtext, newpage functions

Create new report containing judging team project assignments, one team per page.
2005-04-21 20:29:08 +00:00
james
3120d31841 add the ability to show ALL or only UNASSIGNED projects when assigning projects to judging teams timeslots 2005-04-21 17:00:49 +00:00
james
e812d1d783 more code to add projects to the teams 2005-04-19 19:22:25 +00:00
james
57ec92392a Add judges team timeslots assignments (finished)
Add judges team projects assignments (in progress)
2005-04-19 18:36:03 +00:00
james
229f2670f1 whoops fix big bug which prevented project numbers from being assigned properly! 2005-04-19 18:20:10 +00:00
james
57ed732bd0 Factor getJudgesTeams into a function since we seem to need to use it all over the place :) 2005-04-18 17:56:46 +00:00
james
917e374f0a Add judging timeslots
Add emit_date and emit_time functions
2005-04-15 20:33:13 +00:00
james
44f40885e5 LCSV: add heading() and nextline()
Add judging teams list and judging teams view reports

Fix judges team number assignments to assign new teams the next available number, filling empty/missing numbers.
2005-04-15 16:12:00 +00:00
james
ab424f244f automatically assign a new team captain if the current team captain is removed from the team 2005-04-15 14:50:18 +00:00
james
3f471bde41 Add judge team captains, bump db version 2005-04-15 14:27:18 +00:00
james
c632070d6e implode on ", " instead of "," 2005-03-30 18:24:20 +00:00
james
354ab22d92 add some space before the popup footer
change judge info popup size (make it bigger)
2005-03-30 18:21:48 +00:00
james
dc8fad6320 onload popups now get focus 2005-03-30 18:19:31 +00:00
james
ed9b3d577f add new css class - viewtable - nearly the same as summarytable but
will be used for viewing information.

also switch the judge info button to just say the name when a person is selected
2005-03-30 18:13:58 +00:00
james
abcd327e5a remove brackets from subdivisions
change areas of expertise table to use class=summarytable
2005-03-30 18:05:53 +00:00
james
05a9ae0bf6 add judges info popup box, also new common functions send_popup_header and send_popup_footer 2005-03-30 18:02:45 +00:00
james
0545126b9d whoops definitely need to reset the arrays! 2005-03-30 16:07:33 +00:00
james
2813dcaa7a add divisions and subdivision info to the judge list report. 2005-03-30 16:04:32 +00:00
james
584e7fe8f1 whoops screwed that one up :p 2005-03-29 21:09:34 +00:00
james
e19cb49b3e replace both \r and \n when exporting 2005-03-29 21:08:47 +00:00
james
5641edd8d2 use LEFT JOIN's instead of EQUAL joins 2005-03-29 20:51:37 +00:00
james
392dcf94dc show cat/div preference names instead of their ID's
fix address1 to address
2005-03-29 20:44:28 +00:00