Commit Graph

113 Commits

Author SHA1 Message Date
james
517455ee13 Migrate css to a theme and setup to allow multiple themes
Begin adding icons to the default theme and reorganizing the admin index
2008-07-24 16:20:16 +00:00
james
651d6235a4 Add config options for Province/State and Postal Code/Zip Code 2008-07-16 17:23:53 +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
dave
fc4de718f0 - Use a » character instead of >> for menu position. 2008-02-04 23:40:26 +00:00
james
1ae2b2e779 Better display of development versions, and make the DEBUG session output easily switch on-off-able by passing in ?debug=true or ?debug=false to any page. 2007-12-20 22:39:21 +00:00
dave
8c42e853af - Handle type/stock for custom reports properly
- Convert reports.php to use SESSION based status messages.  Just to try it
  out.
2007-12-20 18:44:28 +00:00
james
9a7383f552 How'd that / sign get in there, it should be a . to concatenate 2007-12-20 14:48:02 +00:00
james
00eed557cd Move the contact link out of the centered div, so it looks like the rest of the menu items 2007-12-13 19:54:19 +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
dave
9fffa6755d - Call them 'fair's not 'region's.. to assist linking fairs together.
- This patch references some config variables that don't exist yet, that's ok,
  we dont' want anyone turning these on yet.
2007-12-12 04:15:17 +00:00
james
d024d30793 Revert the isEmailAddress change so emails will actually send out again 2007-12-09 22:18:29 +00:00
dave
3479ab4e7f - Add missing i18n() to the top bar 2007-11-23 20:56:59 +00:00
dave
071ded90b0 - Remove "Home >>" from the top nav bar, and simplify the logic 2007-11-23 20:55:29 +00:00
dave
3ba0d061f7 - Remove auth_has_access($access) completely, use
committee_auth_has_access($access) now.
- Remove unused committee_login and committee_auth.php
- Simplify the left bar logic for the committee links
2007-11-21 07:41:09 +00:00
james
1937045874 Fix the "My Profile" link 2007-11-19 21:29:32 +00:00
dave
82b957eee4 - Fix a bug in multirole 2007-11-19 17:11:47 +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
fa9b298959 - Add the volunteer registration link to the left nav, and unconfuse the PHP for it. 2007-11-16 07:54:33 +00:00
dave
e43eb703a5 - And the code for the nav bar thingy 2007-11-16 06:47:53 +00:00
james
645f48beb5 Oops typofix 2007-11-15 21:18:06 +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
3a75f58f41 Name the PHP Session cookie something unique for each SFIAB to reduce the possibility of SESSION variable collisions between multiple SFIAB's running under the same domain 2007-11-15 18:34:41 +00:00
james
1f31bc124c Remove the "Return to SFIAB Development Page" link, and make the version number at the bottom link back to it 2007-11-14 20:55:47 +00:00
dave
6112c7faaf - Add the multirole switcher link to the log bar.. The file doesn't exist yet,
but noone should be able to access that link anyway, until user_login.php
  committeed.
2007-11-13 21:00:58 +00:00
james
d20a9c1eef Fix dave's logout code to work regardless of what folder you're in, and i18n the logout links 2007-11-13 14:47:01 +00:00
dave
2a5cdcb57e - Put a login bar in the header that always has a logout link, eventually it'll
have more.
2007-11-12 20:43:47 +00:00
dave
fb65e87587 - Match the ENTIRE string in isEmailAddress, because otherwise things like :
"dave@slicer.ca';DROP TABLE students; --" will match.
2007-11-09 07:20:10 +00:00
james
4378f966ce Add an email address verification function so we dont need to keep duplicating the regex everywhere
Add a function to get the email recipients for a given registration id, for now, it just gets the students, but downt eh road it should check if teachers, parents, emergency contacts, mentors, etc should receive fair updates as well.
Implement the code/replacement tags for the two new emails, one for 'forms received, with payment' and the other for 'forms received, without payment'
2007-10-30 22:35:00 +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
a83695bfe7 Fix a bug where the fair logo wasnt showing up on /admin or /config pages 2007-10-23 21:54:22 +00:00
james
f0dc0d938f Character set stuff for MySQL 5.x 2007-10-09 18:48:41 +00:00
james
c2856ad9cb add another parmeter to i18n() which will allow you to force the language that gets returned for that specific call to i18n. Makes it easy to do things like make bilingual data sets, eg: "Life Science / Sciences de la vie" 2007-04-03 20:12:43 +00:00
james
e2eff96db9 Show the link to the Confirmed Participants page once the date > regclose. The list will be empty (but with a notice to that affect) until the date that the list is defined to be posted. This should hopefully prevent the frantic phone/emails "i sent my forms three days ago why havent you received them?!?!?!?!" 2007-03-13 14:34:02 +00:00
james
ea55978aa9 Make sure $config['dates']['postparticipants'] is valid before relying on it. 2007-03-08 21:35:52 +00:00
james
59aade5f0c Add the confirmed participants list, and display it in the menu under the particpant registration link, if NOW() > the date it should be posted. 2007-03-08 21:33:22 +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
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
65e408ce2a Add a check about rolling over the fair year, which will begin to show a warning 4 months after the fair date until the year is rolled over properly 2006-10-23 18:38:05 +00:00
james
f6272d7bd6 Remove the border on the help icon 2006-10-23 14:57:29 +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
5e77a78642 Oops i forgot to commit the help icon changes... here they are 2006-10-18 17:32:14 +00:00
james
f395e7480b Add a link to return to the main schoolaccess page once a school has
logged in.  Fixes Bug #0000100
2006-10-16 17:31:55 +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
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
0987d76e43 turn off NOTICE error reporting in PHP, some people's PHP dont do this globally for some reason. 2006-09-04 16:13:07 +00:00
dave
372c2a55c7 Replace the version debug with a single function call (instead of array index and a strlen) so it is more efficient (since it's called on every page). 2006-09-03 21:45:54 +00:00
justin
31ae487b11 Added student logout link; resolves issue 8. 2006-07-14 00:07:46 +00:00
james
877c5bbef5 Restrict the session variable cookie to the SFIABDIRECTORY path, instead of just / 2006-03-30 22:18:04 +00:00
james
9f7aea3a57 Get rid of the counter alltogether, its really useless, and especially so when the same counter is
used for everyone
2006-03-29 00:55:10 +00:00