Commit Graph

1079 Commits

Author SHA1 Message Date
james
40bc5f93ef Oops and add the db update for the new config options 2008-07-16 17:24:19 +00:00
james
651d6235a4 Add config options for Province/State and Postal Code/Zip Code 2008-07-16 17:23:53 +00:00
dave
986ce4ef44 - user.inc.php needs to generate a password without including common.inc.php
(install3 doesn't like including that file).  That's ok, because eventually
  all passwd handling will be done through user.inc.php (and the generate could
  even be inlined into set_password). But for now, just copy the existing
  generatePassword, and call it something different so the function names don't
  clash.
2008-07-09 18:24:49 +00:00
dave
a9318b6303 - Move all the password handling code into one function (not duplicated/spread
over 3 files)
- Fix a bug to always save the old password (unless it was a reset password)
- Fix a bug to save the old password even when the user sets a new one
2008-07-09 17:02:11 +00:00
james
5ed0135442 Better fix for the password expiration problem 2008-07-09 14:51:48 +00:00
james
0f2812cc90 Set the email address properly on install 2008-07-08 19:52:14 +00:00
james
e1055150c9 Dont make newly created users passwords expire as soon as they login
Allow firstname and lastname to be POSTed through on the install3 script so the name can be set instead of using 'Superuser Account'
2008-07-08 19:29:02 +00:00
james
66ec01cd60 htmlspecialchars the text for the text box so things like <a href>'s work. 2008-07-02 15:52:51 +00:00
james
a8fadb3046 Fix the scheduler status in IE7 - the http readystate needs to be manually reset. 2008-04-14 00:16:52 +00:00
james
73972d676f Show judges language on the judge team members list - for quick verification of proper language team assignments.
Fix 1x4 and 1x1.33 Avery stock to print properly.
2008-04-03 20:34:42 +00:00
james
76966f0f62 Allow the admin to change the project sort as well as the project number. we dont care abotu checking for duplicates here with the project sort... its just a sort field.... 2008-04-02 17:27:10 +00:00
dave
d2868f3f45 - Updates to the tour annealer:
- Add more verbose output for the terminal
	- Split the student load / tour preference load to capture student who
	  didn't select any tours
	- Allow students with no tour selection to be placed anywhere with no
	  penalty
	- Add a missing break; in cost computation (doesn't change the result)
2008-04-02 06:25:50 +00:00
dave
6d3f518648 - Fix the multiple cookie bugs if SFIABDIRECTORY=='' and the user visits
'/admin' or some other subdir first.  Setting the cookie directory to ''
  seems to mean that PHP sets it to the current directory.  We want it to be
  set to '/'.
2008-03-30 18:42:15 +00:00
james
bbbd32a026 Dont include deleted judges in the number of available judges check 2008-03-30 16:06:08 +00:00
james
8b250c8997 Fix a bug where the scheduler was allowing deleted judges to be used 2008-03-29 20:59:14 +00:00
james
5458a5809e Fix a bug where judging teams containing apostrophe's wasnt being created, but it was using an old ID from a previous insert, so judges were being linked to teams that didnt exist... then the records became orphaned and couldnt be deleted. 2008-03-29 20:48:39 +00:00
james
572242bc14 Only consider judges teams from the current fair year when calculating what judging team number to start numbering at 2008-03-29 19:02:43 +00:00
james
bc3727b5c1 Leave the main page only checking whichever student is logged in (FOR NOW)
But if they go into the page they will see the check for BOTH STUDENTS
2008-03-27 22:41:55 +00:00
james
cebe0d2ea7 Properly do the namecheck for multiple student 2008-03-27 22:34:15 +00:00
james
300e76c3c0 Show both names on the same page 2008-03-27 22:26:06 +00:00
james
63034a1d33 Check the name check status on deciding if a form is complete or not. 2008-03-27 22:12:27 +00:00
james
d190d4f0b7 Display errors if at least one age category and one division arent selected 2008-03-27 08:06:14 +00:00
james
6a1f51d3dd Re-work how it checks if someone is "unassigned" - the old way was causing problems with multi-year data, if a judge was assigned in a previous year it was getting picked up as assigned even though it wasnt assigned for the current year. 2008-03-27 07:46:52 +00:00
james
0dc2862fa0 VERY important update to reports_items that dave must have missed.. took me THREE HOURS to track down why alignment wasnt being saved from the report editor! 2008-03-27 06:22:11 +00:00
james
63a48c8fbf Rework school access page.
1) add a crapload of missing i18n's
2) disable feedback form until an email address is entered
3) update the headers of the email sent so 'reply' works
2008-03-27 04:33:00 +00:00
james
e41072e076 Make the table the full page width, 75% of my judging team names were getting cut off.. perhaps the team names should use shortforms for the divisions instead of the full spellings... "Senior Earth & Environmental Sciences/Health Sciences/Biotechnology (en fr) 2" seems... excesssive 2008-03-25 17:20:31 +00:00
dave
52e7a6500a - Add a convenience stringwidth funciton 2008-03-24 18:45:51 +00:00
james
c0026c75e5 If there are no jdiv's left, hide the multi-select box and all the "Add >>" buttons so the page looks much nicer (and better to print!) 2008-03-20 20:59:56 +00:00
james
560d799b4b Allow filtering the awards management interface by award sponsor status: any, confirmed only, unconfirmed only 2008-03-20 20:37:33 +00:00
james
ec66217a2b Split label_box into two separate options: label_box and field_box. label_box draws a border around the entire label, field_box draws a boarder around each field of text on the label 2008-03-20 20:07:13 +00:00
james
45a1bdd1e4 Only set the school if the school is posted through, this way we dont whipe out a students school.
-This line, and those below, will be ignored--

M    student_editor.php
2008-03-20 16:28:50 +00:00
dave
bb4997548c - Add medic alert and food req. info
- Change the name of cshool teacher/email because these are really the values
  the student enters.
2008-03-20 02:57:18 +00:00
james
06cb13d7e4 Oops, the _seq's cant be null, they need to be set to 0 2008-03-20 01:57:24 +00:00
james
3fc27ceb04 Set everything to do with the project number, project sort, and sequence numbers to null, not just the project number, when
unregistering a project.
2008-03-20 01:52:47 +00:00
james
e320230a3e Add a way to unregister projects. Simply re-enter their registration number, and click the link. 2008-03-20 01:19:35 +00:00
james
431c8d9036 Properly fix the summary required field for wordmin=0 (summary simply becomes a non-required field)
Fixes the problem reported by waterloo, where the preg to count words was not counting words the same as the real word counter (602 vs 598 in the one i was looking at)
2008-03-16 19:32:30 +00:00
dave
6e8883b4a2 - Add pronunciation 2008-03-16 19:09:47 +00:00
dave
7651426f03 - Add a field for trophies
- Fix a bug with the ordering of the sql statement.  Something I noticed fixing
  this bug: Tour info and award info will generate an error if used together.
2008-03-12 01:18:29 +00:00
dave
4587fd3c86 - When checking the project status, count the words and test that against the
min/max number of words.  (fix 335).
2008-03-12 00:28:44 +00:00
james
a7da608982 Switch heading() to use addText() so it implements line-wrapping for super-long headings 2008-03-04 21:57:49 +00:00
james
a7dad33da3 Cleanify the subject, and strip slashes from the message body 2008-03-03 20:12:59 +00:00
dave
2d052c056f - Add an option to the award ceremony script to show the pronunciation key (if
the students entered it)
- Add an option to the award ceremony script to filter the awards by age
  category (the GVRSF needs one script for juniors, and another for
  intermediate/senior :)
2008-02-29 07:10:08 +00:00
james
3a1b4cca15 - Ignore jdiv 0 in the annealer and in the check. jdiv 0 is what all unassigned divs/cats get,
and if they're unassigned we don't want to schedule them.
- Fix a typo in the language selection
2008-02-28 20:23:27 +00:00
dave
6454f86aa9 - Add judge_scheduler_activity and judge_scheduler_percent to the config, if
they don't already exist.
2008-02-28 20:03:48 +00:00
dave
a8ed1d28e9 - Remove some old "Back to" links, the navbar does it now. 2008-02-28 19:34:39 +00:00
dave
07a7994d81 - When resetting the status of the scheduler, it is helpful to actually reset
the status of the scheduler.
2008-02-28 19:30:19 +00:00
james
bb3d4c0480 Need -r3 now to keep track of changes since r2 was packaged 2008-02-27 16:03:43 +00:00
james
17745cbb0a Always show the city in the school access login page, and sort it first by city then school name (previously it only showed the city for duplicate school names) 2008-02-27 15:59:03 +00:00
dave
f70314653b - Only lookup _GET['showstatus'] once, for a minute speed increase and easier
handling.
2008-02-26 08:32:00 +00:00
dave
b1ed8e4b4a - Optimize away some code where I was trying something different. :) 2008-02-26 08:28:20 +00:00