Commit Graph

385 Commits

Author SHA1 Message Date
dave
4357280ffb - Typo in the ordering 2008-01-23 06:02:10 +00:00
dave
78fa4ad6ac - Add support for short project titles in addition to the regular project
titles (defaults to off)
- Renumber the order of the config variables in Participant Registration, it's
  getting a bit crowded 
- Fill in some missing types for config variables
2008-01-23 05:54:03 +00:00
james
8411d614d5 Add the schoolaccess page to the page text editor 2008-01-22 19:22:51 +00:00
dave
e24bbb0bbc - Add a filter to the last commit, to not show the none tshirts.
- Add a 'total' option to the report generator, to signal that this column
  should be added up.
- If total is != zero, it shows the total at the bottom of each table, else, it
  shows the number of rows (changed the text to Total: for a total, and Rows:
  to show rows, if the total is 0)
2007-12-30 22:16:34 +00:00
dave
fcd6eedc1d - Add a new data field for counting the number of tshirts of each size
- Add a system report that lists the number of tshirts of each size
2007-12-30 21:45:04 +00:00
dave
d89c756427 - Add a grade column that uses the format "Grade x", instead of just the
number.  Fix the YSF stats report to use this column and show "Grade x" in
  the titles, not just "x", which was a bit confusing.
2007-12-30 21:20:36 +00:00
dave
827887a0fd - Change the volunteer position description/meet_place colums to text from
tinytext.
- Change the icon_path to somethign SFIAB will like better in the tableeditor
  (was wondering why I had no icons in the tableeditor)
- Add a crude maxlength support for text areas
2007-12-29 19:43:56 +00:00
dave
5aeaa6be0a - Also add the database update :) 2007-12-29 08:47:53 +00:00
dave
e8face39d6 - Update the project numbering system by also adding a sort field (defaults to
the project number field if blank).
- Add a new number option 'X', which counts among ALL projects, not just the
  ones in the same division/cat.
- Add a padding argument to N or X  (N0...N9) defaults to 2 for N, and 3 for X.
- Adds 3 columns to the project table:
	- projectsort: for storing the expanded text
	- projectnumber_seq: for storing the N or X number for projects
	- projectsort_seq: for storing the N or X number for the sort order
- Add a new config option for sorting, and expand the text for the
  projectnumber.
- Change the default sorting for reports and project lists to use the
  projectsort category.
- Remove the gvrsf_tn option from the database, it's not needed now.
2007-12-29 08:46:40 +00:00
dave
f3f2747118 - Replace reports_acpresentation with a report from the report generator.
- Implementing a function call option to parse column data in the report
  generator as it comes out of the database.
2007-12-25 05:13:42 +00:00
dave
8972b5219f - Fix the db update 2007-12-23 01:52:18 +00:00
dave
e74c4ce64d - Another GVRSF change. Optionally include registration fee information on the
signature page.
2007-12-23 01:33:09 +00:00
dave
ebbac49b4b - Add the database stuff for the name check.. oops. 2007-12-22 23:44:46 +00:00
dave
3c9253dd9d - Add a config option to disable printing the cash/scholarship amount on the
public winners page.  (defaults to ON, which is the current behaviour)
- Fix pluralization of "Students" for one student. :)
- Change the effort option for judges and tours to a pulldown menu Low=100,
  Med=1000, High=10000
2007-12-22 05:11:42 +00:00
dave
7f7c3c53e1 - Change the password expiry mechanism to always check
{$type}_password_expiry_days.  This allows the $config variable to be updated
  and everyones password will expire based on the new value.  To implement
  this, the password expiry column in the users table has been changed to
  passwordset, and a PHP script is used to convert the expiry dates to set
  dates (based on the _password_expiry_days)
- Cleanup the password entry checking
- Load all config variables for the db_update.php script.  Just in case an
  update script wants access to $config
2007-12-21 08:38:13 +00:00
dave
49a19c9d44 - Fix report stock when the report stock keys were updated
- Add a missing stock number
- Fix a report where distinct was missing
2007-12-20 09:25:43 +00:00
dave
998fe35d67 - Add a tour number to the database, and modify the tour editor to include the
number, and an option to create numbers automatically
- Completely remove all references (hopefully) to the Tour ID
- Add a Tour type report
- Rework the student report query so it actually makes sense.  It really should
  be a whole bunch of left joins based on the students.  Using comma (cross)
  joins creates situations where if the right side of the join doesn't have
  information, it wipes out the left side.  (Happened before with emergency
  contact info).
- Remove the (two) old custom tour reports
- Add 4 new tour reports to the database:
	- ALL tours for the committee, tour list for students, 
	student emergency contact info for tour coordinators, and 
	a list of tour assignments for students
2007-12-20 01:05:04 +00:00
dave
5c594a9d85 - Sneak in a change to the report tables, we're going to create tour reports
next
2007-12-19 21:16:58 +00:00
dave
b0338f9fdf - Add 3 config variables: An effort for the tour annealer, and the updater
activity and percent.
- Add the status update and links to automatically start the "tour assigner".
  (Didn't want to call it a scheduler, because someone might thing it's for
  assigning tours to timeslots or something)
2007-12-19 21:12:57 +00:00
justin
18aafbea9c Add support for a minimum number of words in the project description. Resolves RFE 162. 2007-12-17 18:19:08 +00:00
justin
30072d182d Add support to omit unawarded awards and prizes from the awards ceremony script. Resolves RFE 136.
-Note: currently adds two configuration variables and a new category, they didn't seem to fit elsewhere.
2007-12-17 17:35:19 +00:00
dave
1dad6505eb - Select the first contact for each sponsor as the primary
- Prevent the user from setting zero, or more than one, primary contact.
- Add a primary column to the contacts table, so they can see the automatic
  set/unset operations on the primary contact.
2007-12-13 21:50:31 +00:00
dave
dcfcd358fc - Add a primary contact field to the award contacts
- Use the primary contact in award reports
2007-12-13 21:23:29 +00:00
dave
4c9d23e513 - Add sponsor information to the report generator awards report.
- Add a system report that dumps all sponsor info to a csv.
2007-12-13 19:56:44 +00:00
james
6c864d1b93 Bump version for development 2.1.7
Create page text entry for 'invite only' volunteer registration
Create a contact page to contact committee members, and link it into the committees page, and the bottom of the left side menu
2007-12-13 19:52:27 +00:00
dave
57f349b1b1 - Add a year field to the users db, we'll need it eventually
- Add a designate field to the schools, to indicate an independent, standard,
  private, etc. school.  It's not editable yet, but.. eventually.
- Fix generatePassword to use proper string indexing, and remove the
  possibility of indexing beyond the end of the string.
- Add "Invite" and "SinglePassword" modes for volunteer registration.
- Update the admin section, add a new volunteers page to contain links to all
  volunteer options
2007-12-13 18:09:22 +00:00
james
ab76d8b329 switch the stock entries in the database if anything's usign the old values 2007-12-13 17:10:11 +00:00
james
4c801ff1ba Fix dave's broken database code 2007-12-12 18:29:51 +00:00
dave
659dba8321 - Add db stuff for 'fairs' 2007-12-12 04:48:22 +00:00
dave
1dc1b47d05 - Fix multirole creation. If a user tries to create an account, and they
already exist, they will be guided through the process of adding a role to
  their existing account.
- Do a database update, and merge anyone who has managed to create 2 accounts
  into a single account.
- Still testing this, but it seems to be working
2007-12-12 03:01:44 +00:00
dave
92a57b0577 - Query the proper report id using the system_report_id, instead of inserting
the report_id directly.
2007-12-10 17:40:34 +00:00
dave
d8e112cc4c - Sneak in a change to number and add a 2nd category, just to demonstrate how
it works.
2007-12-10 09:36:41 +00:00
dave
1e6ffcfa7f - Also add a default set of reports (most of the same reports that were on
reports.php) to existing committee members.  New members will get to build
  their list up from scratch, but we dont' want to confuse old members that are
  use to seeing this list.
2007-12-10 09:13:48 +00:00
dave
3e3c28268c - Implement "My Reports". Committee members (with admin access, because
reports require admin access) can define a list of reports out of all the
  reports, and tag each one with a category and comments.  
- Add all except the ceremony scripts as "Custom" reports.  The My Reports
  system can handle links to custom reports now, but not the ceremony scripts.
  They're too special.  I think they should be moved out of the Reports Area.
- Clean up some report variables to avoid collisions with local names
  ($options, and $stock)
- Implment a new screen for report generation that lets the user set the
  format, stock, and year of the report.
2007-12-10 02:50:53 +00:00
james
78a97236f7 Add the email address to the new participant email 2007-12-09 21:06:55 +00:00
dave
4029fcf563 - Add a schools access code report to the database 2007-12-07 23:58:51 +00:00
dave
5bf1171f17 - Add a new school report to list ALL schools (name, address, contact, and phone).
- Clarify the Schools labels report.. it is only for schools attached to registered students.
2007-12-03 22:04:06 +00:00
james
fab18eb0c7 Add enabled and website (for help) to external sources
Update source editor
Make downloader only check enabled source
Make downloader check for username/password before attempting
Add extra instructions
2007-11-29 18:38:06 +00:00
james
325c909432 Dont check CURL support inside the loop and dont allow checking to be called without CURL support
Remove awards that were previously added but now dissappeared from the XML import
2007-11-28 18:46:32 +00:00
james
0f198346aa Update fake scripts for 2008
Add external award downloader functionality
2007-11-27 22:47:06 +00:00
dave
55983aca38 - Change the user editor, read the fields and required fields from a config
variable, this will allow the committee to specify exactly what they
  wish to collect (and which fields are requried)
- Insert config variables for volunteers and committee
2007-11-26 02:28:45 +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
james
33471e80ee Add award source configuration
Add stub for award downloader
2007-11-23 22:07:55 +00:00
james
7619a8fed5 Update DB version 2007-11-23 21:21:55 +00:00
james
0551a65e93 Add trophy selection (student keeper, student return, school keeper, school return) to prizes
Add description to award & update awards ceremony script to include description if available
2007-11-23 21:21:37 +00:00
dave
311d9475dc - Add a system_report_id field to the reports, and set it to the reports.id
for ids <= 34 (all the reports the system inserts by default)
2007-11-21 21:21:10 +00:00
dave
ad9f954f68 - Correctly copy over NULL password expiry dates (passwords never expire) 2007-11-18 08:20:51 +00:00
dave
190adc2a6d - Update the way php scripts are called.. we need to avoid collisions if the
updater runs in a loop.
- Fix the 62 update script to use the new format
2007-11-18 08:01:05 +00:00
dave
2715d67aef - Fix login check for an expired password
- Allow user_personal.php to handle committee members
- Add password field if the editer in user_personal has access_super
- Allow a committee member to edit anyone in user_personal.php
- Convert auth_required to user_auth_required, and check for both a user type
  and an access level (if committee)
- Convert the committee to the new user system (BIG change :)
- Remove the ^M from admin/committees.php
2007-11-17 21:59:59 +00:00
dave
3904e2d9d8 - Allow the update script to include a PHP script too. The PHP script, called
db.update.$num.php, may contain 2 functions  db_update_pre() and
  db_update_post()  which are run before(pre) and after(post) the SQL file is
  applied.  If the php script doesn't exist, the behaviour of the update script
  is unchanged.
2007-11-16 21:42:45 +00:00
james
40fe6cb88c Do some checks for system() and error out where applicable 2007-11-16 17:58:59 +00:00
james
1c42ab77ae Add missing semicolon which prevented the last two queries from happening 2007-11-16 16:46:57 +00:00
dave
9f0b1d494b - sneak in an update I forgot to add.. hopefully noone applied this patch
within th elast 3 minutes.
2007-11-16 05:24:17 +00:00
dave
82697d2dd8 - Add 2 tables for volunteers. One to hold the positions available, and one to
store the signups for those positions.
- Add the 'volunteer' report type in the database.
2007-11-16 05:13:27 +00:00
james
8ad304441f Add 'emailcontact' field to registrations table, that SCHOOLINVITE teachers can put their own email address into to receive emails that would normally go to the students. If the students email is valid the student will still get the emails as well. 2007-11-15 21:17:20 +00:00
james
90b40724b5 Oops dont change an update file thats already been applied, make a new one! 2007-11-15 20:47:20 +00:00
james
2927eee193 Ahh found the encoding problem, need to set the charset on the command line mysql --defualt-character-set when running INSTALL or DBUPDATE scripts. 2007-11-15 20:45:19 +00:00
james
418322f8fb Aparently the language name needs to insert as UTF8 to work on a Latin1.. <boggle> 2007-11-15 19:19:43 +00:00
james
66924aeba0 Clarify what project_num_format config variable is 2007-11-13 20:15:36 +00:00
dave
df7cb53ee5 - Database update. Add the users, users_volunteer, and users_committee table
(the committee table isn't in use yet)
- Add 2 new emails for volunteers, a welcome email, and a password recovery email.
- Add a password expiry variable for volunteers
2007-11-12 22:45:41 +00:00
james
41053418d8 move the wording on the judges "invitaion only" screen into the page text editor so the fairs can make it say whatever they want it to say. 2007-10-31 20:31:00 +00:00
james
1cc99b4ef9 Add document manager, and update tableeditor to allow setting of a downloadlink for documents 2007-10-31 20:00:23 +00:00
james
aac4c484d0 LOL, dont use my address as the FROM! 2007-10-29 20:25:25 +00:00
james
491b4dac71 Update to DB 53 2007-10-29 20:22:36 +00:00
james
ab5180ef9e Add two new emails: registration complete, registration payment pending
Whipe out all 'from' of info@sfiab.ca (the old default, we dont want others using it!)
When sending emails, if 'from' is empty, use the $config['fairmanageremail']
Add a warning on the communication page if the fair manager email has not been set
Set the default 'from' for new emails to be the fair manager email

NOTE/FIXME: i added the hooks for the two new emails to be sent, but still 
need to fill in the substitution values as well as the "to" - no time now, 
will do that tomorrow
2007-10-29 20:21:40 +00:00
james
40067ed0c4 Add FULL db.52 file, dumped directly from phpMyAdmin 2007-10-09 19:26:13 +00:00
james
2e1ed4a689 Fix the config variables rollover/install for the type and type_values fields 2007-10-01 18:51:56 +00:00
james
a87647ee6c - Update database for schools report query. 2007-09-13 19:18:18 +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
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
d21fbee5a4 - Turn off table label boxes by default 2007-03-26 16:55:45 +00:00
dave
ee6454868f - Sneak this in so we don't print nametags for incomplete judges. 2007-03-26 06:30:15 +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
2b4c5f12e3 - How did that ';' get in there ? 2007-03-18 23:54:35 +00:00
dave
7487828552 - 4 new reports 2007-03-18 23:18:07 +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
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
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
dave
caeb7cbe78 - Add a config option (default 'no') to ask the students for a pronunciation
key for their name.  The idea is that it's for those often mis-pronounced
  names at the award ceremony.
2007-01-31 07:35:08 +00:00
dave
42b60170a4 - Add a 4th text section to the signature page (of course, it's optional, and
off by default).  It's a postamble.. just a space for "Additional
  Information" after all the signatures.
2007-01-31 00:48:24 +00:00
dave
50b4e146bd - Move the judging age preferences to the expertise page... and rename that
page to "Divisional Preferences"
- Add the ability for the judges to select special awards they would like to
  judge
- Add the ability for a judge to specify that they are a judge for a specific
  (one or more) award, and disable the divisional selection for them
2007-01-30 06:12:11 +00:00
dave
0ba89a18a7 - Add a new config variable 'specialawardnomination_aftersignatures'.
Default='yes', meaning the behaviour is the same as the default.  'no' means
  that students can self-nominate for awards before the committee receives
  their signature form.
2007-01-21 05:45:36 +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
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
14e8ee5ec9 - Fix an issue with the default import of judging questions 2007-01-16 19:32:40 +00:00
dave
a386788300 update add 2 missing columns to config. 2007-01-10 05:12:36 +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
2d17c8c21a Add new participnt registration type: openorinvite - allows you to use the system as if it was OPEN or INVITE however limits cannot be imposed in the inviter since when its reached in the inviter it could easily be bypassed by registering through the 'open' way. 2007-01-02 23:38:53 +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
8fd2a44050 Add a configurable character limit on project title length, default is 100 characters 2006-12-06 18:22:31 +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
eb9cf34645 Add db update 31 to fix any fairs that have rolled over their config variables using 2.0.0.. it is essentially the same db updates as db.21 that re-categorizes the variables.
Change version to 2.0.2 so i can do a release since the two bugs fixed are fairly significant.
2006-10-30 20:11:27 +00:00
james
c72193e671 Update database for the language pack installer system to work properly 2006-10-25 16:35:16 +00:00
james
2e36dbe28b Commit the db.29 update 2006-10-20 05:06:06 +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
james
4a5bc27532 Add salutation field to award contacts 2006-10-16 03:36:39 +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
f03dcb782b bump db version for new schools data 2006-10-15 17:12:58 +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
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
474c000377 Add a position field to the award sponsors contacts 2006-09-20 15:33:46 +00:00
james
0ebd709a13 Add the option to collect teacher signatures on the signature page 2006-09-18 19:33:48 +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
james
486536b331 Add full db 22 file
update installer to properly add the current year's configuration variables
2006-09-04 15:42:34 +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
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
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
1519b427d2 Properly rollover the schools, allow 'lastlogin' to be NULL 2006-07-26 14:51:30 +00:00
james
2778faf4c9 Fix the broken sql script, looks like the 'questions' inserts were pasted in the middle of another query! 2006-07-24 16:07:54 +00:00
james
c934d3a9f7 switch year unsigned int (10) to year int (11) so year's of -1 (defaults) will work. 2006-07-12 14:45:53 +00:00
james
66efd08ee3 remove DEFAULT CHARSET (doesnt work on mysql 4.x) and switch ENGINE to TYPE for consistency 2006-07-12 14:41:42 +00:00
james
f117fb3dae Remove auto incremement values from FULL script too 2006-07-12 14:36:29 +00:00
james
ba38372fb5 Remove auto incremement values from table creation 2006-07-12 14:35:41 +00:00
dave
8665e4a487 Missing files 2006-07-12 14:28:52 +00:00
dave
228a1a0583 Implementation of configurable judges questions. 2006-07-11 20:22:42 +00:00
james
2ad2b58233 Bug #0000056 - Change variable wording of filterdivisionbycategory 2006-03-09 13:15:34 +00:00
james
5aca0a8ac9 Add full 16 and 17 and update for 17 2006-03-08 21:21:20 +00:00
james
e5d03b07a9 switch the new database stuff to DB16 instead of 15, and bump the required db number 2006-02-24 17:52:04 +00:00
james
5518a2272f Add the signature page editor
And insert the defaults to the database
2006-02-24 17:42:11 +00:00
james
45b4f7b220 Fix a bug where the school id was not being set when participant registration type was set to invite or singlepassword 2006-02-23 20:40:48 +00:00
james
46c92e0f01 Wrap the db update script in <pre> tags so the output looks better for anyone that runs it through the webserver 2006-02-07 20:59:58 +00:00
james
b72c778ea1 Add the db 15 update 2006-02-07 20:51:42 +00:00
james
b807381418 bump db version to 15 2006-02-05 21:52:40 +00:00
james
1771c83da4 Add a configuration option to specify whether to collect 'personal' information about the students, such as address, phone number, date of birth, etc. 2006-02-05 21:39:32 +00:00
james
99af4b4f4a Bump development branch to 1.0.1 and db 14 2006-02-02 03:23:48 +00:00
james
588d994d41 Add full db.13 file, and bump version number to 1.0.0 2006-02-02 02:59:12 +00:00
james
a20dfdbd7a Merge Jamie's changes from Peterborough, allowing different divisions to be available to the different age categories. -- default is 'no' 2006-02-01 16:29:08 +00:00
james
a9ffdf7ee4 Oops fix the misspelled "Divison"s 2006-02-01 15:31:09 +00:00
james
2784262d6d Database update for the 'exclude from awards ceremony' new feature 2006-02-01 05:09:59 +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
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
36bee33066 Add a configuration option to specify the maximum number of words in the project summary (Default=100)
Add some fancy-smansy javascript/dhtml word-counter code to the project summary.
Make project status be incomplete if word count is too high
2006-01-24 15:44:08 +00:00
james
1585fdb3e6 bump version number to 0.9.9 and db version 13 2006-01-20 20:19:47 +00:00
james
1aec62aa4b Oops, 0.9.8 only requires version 12 2006-01-20 20:04:49 +00:00
james
1a04556319 add full version 12 database
bump version number
2006-01-20 19:58:06 +00:00
james
2135a5aa5b bump database version number 2006-01-19 19:24:36 +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
69b4b943ac Make the T-Shirt size question to students able to be disabled via a configuration variable for fairs that dont give out tshirts 2006-01-18 05:33:13 +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
0043071501 Bump version to 0.9.7 so development can continue, also bump DB version to 12 2006-01-16 06:03:50 +00:00
james
60074d3caa Bump version number to 0.9.6
Add the full database file for DBVERSION 11
2006-01-16 05:21:52 +00:00
james
5748382c97 Whoops, fix the bugs in the db update file, it should import properly now. 2006-01-03 02:17:30 +00:00
james
56a16916e2 New database code for new stuff 2006-01-03 02:00:11 +00:00
james
d8321449f9 Bug and Typo fixes are per John Meskes 2005-12-15 22:28:04 +00:00
james
5b35723e8a Bump version to 0.9.5 and db to 10 for the FINAL TIME :) 2005-12-15 16:24:57 +00:00
james
f12bdfec09 THIS IS THE FINAL REVISION FOR 0.9.4 2005-12-15 16:10:09 +00:00
james
d461952fa4 re-bump version to 0.9.5 and database to 10 2005-12-15 15:59:05 +00:00
james
f2c08f472d Whoops! Rollback to 0.9.4 and fix the bug in the full.9.sql so the installer will work again! I'll need to repackage... 2005-12-15 15:53:37 +00:00
james
39627cd2f5 Update version to 0.9.5 and DB version to 10 in preparation for new stuff 2005-12-14 21:26:58 +00:00
james
1ccaeac8eb Add the FULL v9 DB 2005-12-14 20:14:22 +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
6eb1a39d0b add the ability for schools to invite participants IF participant_registration_type=="invite"
also switch the new participant email to read from the emails table instead of hardcoded from the file
2005-11-25 19:37:10 +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
2c859da295 Add the full 8 database version for installations to use 2005-11-22 14:21:53 +00:00
james
35761a542b wow i scrwered this one up :) this should work now 2005-11-21 21:00:31 +00:00
james
d6256d7c11 whoops wrong filename! 2005-11-21 20:39:59 +00:00
james
b639308993 Add page text functionality, to define arbritary page text to be displayed on pages without having to edit the actual files.
Also shrunk the padding on summarytable, 4px seemed just way too big of a waste of space :)
2005-11-21 20:33:18 +00:00
james
343c70f633 Added the fair year rollover code to go from one year to the next 2005-11-21 19:36:48 +00:00
james
bd4f8b6739 whoops, the code for the fairmanager was messed up - should be fixed now
also set the fair manager to the superuser on installation
2005-06-07 21:36:07 +00:00
james
6a9b470698 Switch the database versioning code from a flat textfile (db/db.db.version.txt) to a record in the config table (var=DBVERSION, year=0)
This gives us a much more robust database versioning system
2005-06-07 21:03:55 +00:00
james
7509f5f7c1 hmm there was a duplicate of all the config options for some reason in the full.7 - remove those dups!
also add the provinces to full/update 7
2005-06-07 20:30:38 +00:00
james
5ef9051c0a Nearly finished install3 - I think the installer is almost ready to be used.
also updated DB version 7 to include the language entries
also update common.inc.php to make sure install3 is installed (make sure there's entries in the config table!)
2005-06-07 01:23:15 +00:00
james
0f4616c2da remove the ID's from the dates INSERT in the FULL 7 file as well 2005-06-06 19:01:06 +00:00
james
047175d4df whoops, remove the ID's from the dates INSERT lines 2005-06-06 18:58:32 +00:00
james
abf46c9e7c Setup defaults in config and dates table to be year=-1
The config and dates pages now need to be updated to read defaults, and insert new config parameters as FAIRYEAR if they dont exist already
Bumped version to 7
2005-06-06 18:56:19 +00:00
james
85e2569446 Add the full database structure for db version 6 2005-05-26 20:32:42 +00:00
james
9604c35f4b Add the installer script - currently it only creates the data/config.inc.php database settings - it still needs to create the actual tables.
Add some extra sanity checking to the db updater

Add more sanity checking to the common.inc.php
2005-05-25 21:58:03 +00:00
james
9ea5843646 whoops last messgae should hav ebeen : add schools management
this one fixes the db to use province_code instead of province
2005-05-13 17:36:29 +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
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
098649c8a3 Add Presenter to awards 2005-04-26 18:59:38 +00:00
james
1f21e06d00 lots more db changes 2005-04-19 19:22:38 +00:00
james
9b385a10fd whoops add the sql update file too 2005-04-15 20:33:49 +00:00
james
3f471bde41 Add judge team captains, bump db version 2005-04-15 14:27:18 +00:00
james
79e166dde7 hmm this didnt get committeed 2005-03-29 19:56:42 +00:00
james
7ba1196957 whoops named it wrong 2005-03-29 19:21:35 +00:00
james
d059f34835 Implement date checking for both participant and judge registration 2005-03-29 19:21:14 +00:00
james
e049de4562 add message at the end 2005-03-10 17:33:30 +00:00
james
9d60276f89 readfile the script so we know whats happening 2005-03-10 17:31:23 +00:00
james
81e1559b8d add the database updater code, and always ensure that the code and db are running the same version 2005-03-10 17:28:15 +00:00