Commit Graph

234 Commits

Author SHA1 Message Date
dave
aecbabbb4a - reverse the timeout and i18n_array args, i18n should go first as it will be
used much more often.
2009-09-25 22:43:12 +00:00
dave
b0e7715fb9 - Turn fair_save into an ajax query
- Add notification area and debug to the popup window, still an ugly hack.
- Add a checkbox to the feeder fair config to enable/disable the whole thing (will confuse people less, needs to be implemented)
- Also add a checkbox for signaling the feeder fair if there are additional materials for an assigned award.
2009-09-23 16:42:24 +00:00
dave
e07d24102c - Well, disabling the fields was a good idea, exept that serialize() skips over
the value but not the name, so it sets every disabled field to "" when
  passing the data to mysql.
2009-09-20 19:25:42 +00:00
dave
20fe1d8b13 - Switch to a global message status area 2009-09-18 03:29:13 +00:00
dave
792a581357 Put the debug DIV in a sensible location 2009-09-17 06:48:52 +00:00
dave
d2535f46bc - Add status area on each page for award div
- Redirect all ajax load output to a debug div (which can be turned on with
  debug=true).  The output has to go somewhere, and it can't go to the
  notification div, because it will overwrite what's already there.  The ajax
  methods emit javascript now to add notifications.
2009-09-13 19:25:03 +00:00
dave
1f830c7845 - Proof of concept floating status messages that go away after a timeout, in
the same approx. spot that SFIAB has always put status messages.
2009-09-13 08:33:54 +00:00
dave
8f29090c38 - Load .js for popups too, but pretty soon we won't need this popup function at all. 2009-09-11 06:11:43 +00:00
james
bef9c279ec rework/rename the translationeditor 2009-09-11 05:33:41 +00:00
dave
8b7a6e14b3 - Convert the popup to use the jquery ui popup
- Theme the whole thing
- Remvoe the translation dropdown support for now, it's causing a spurious reload replacing the endire page with a clickable "translations" link
- Add code for the prize editor, not done yet.
2009-09-09 17:06:11 +00:00
james
f963dbf276 Merge all changes from branch r1284:1498 into trunk 2009-09-09 00:26:12 +00:00
james
bf58a9d78b Make the Help button work on all of the sfiab.com sites because of the mod-rewrite REDIRECT_URL 2009-01-27 21:52:11 +00:00
james
fde29e7a91 Migrate 1320 from branch into HEAD 2008-11-02 02:35:46 +00:00
james
ffa116bb5d Add backup/restore functionality - need to add icon still
Fix bug where title was leaving room for an icon even if there was no icon
2008-09-24 21:56:11 +00:00
james
09be3848ff Look in the right location for the fair logo image file from the content management page display 2008-08-28 22:14:17 +00:00
james
b2fb7855f0 Make format_date, format_time and format_datetime accept either a unix timestamp, or a text string
switch important_dates to use format_datetime
2008-08-28 22:11:10 +00:00
james
c45edf34ec Add a format_date, format_time and format_datetime functions to pull from the localization settings and update a few places where the date/times are output to use them... need to change everywhere else in the codebase to use these functions too! 2008-08-28 22:02:06 +00:00
james
9995867f1d Add countries table and populate
Add countries_code field to provinces table and fix canadian provinces
Populate US States into provinces table
Add config option to Localization tab to enter a 2 letter country code (how to lookuup from countries table?!)
Update emit_province_selector to use country config entry
2008-08-28 21:41:31 +00:00
james
eb2128da25 Update send_header() for a third parameter of the icon to use 2008-08-22 20:35:08 +00:00
james
7e84ab0222 Add cms table, and move the 'index' pagetext to cms
Add .htaccess rules for the cms
Add cms page display code and convert index.php to pull from the cms
If no page title is passed to send_header(), output the fair name in the <title> tag
2008-08-19 21:13:29 +00:00
james
3992b68029 Update page text's to do multiple languages, instead of storign the text's in the separate language editor
Also - force it to use the newly auto-installed fckeditor, and reduce the height a bit becuase there's now
more than one per page.
2008-08-18 21:08:23 +00:00
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 &raquo; 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
justin
cb280ebc1f Fix the footer in popup window to show the current sfiab version instead of debug info 2006-03-28 21:41:51 +00:00
james
06fe2b179d Add the logo to the header (small in the top-left) and to the index page (bigger, right aligned) 2006-03-08 21:55:57 +00:00
james
54769f999a Fix the version loading/detection in common inc, and properly put debug info in the footer in 'debug' versions (odd numbered versions)
Check for a valid email address before sending an email
Check for a valid email address when trying to create a new participant account
2006-02-14 21:50:41 +00:00
james
aab25dfa0b CSS/Style/Layout fixes specifically for internet exploder to work properly. 2006-02-02 02:32:24 +00:00
james
725a4c91d7 Hmm, fix a big that stopped email tag substitutions from working when the substitution was a pure number (eg, a registration number). Fixed it by enclosing the replacement in "" so its treated as a string. 2006-01-20 19:26:13 +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
652e8fe321 If the page text looks like it contains HTML code, just output it normally, but if it does not contain HTML code, then perform a nl2br() on the text before it outputs 2006-01-18 21:28:00 +00:00
james
b370dac7d5 Add all the "required fields" feedback for participant registration 2006-01-12 16:27:47 +00:00
james
33cb624154 properly handle running scripts from the /scripts directory 2006-01-03 02:03:30 +00:00
james
da91edc427 Add CHANGES file, fix some quotes in common inc 2005-12-14 21:05:27 +00:00
james
017e1c58c0 Make the footer only show debugging information if we're using a debug/testing version, aka version number is odd 2005-12-14 21:00:02 +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
76513f9ffb Fix version detection. 2005-11-21 21:11:34 +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
7fd17c8bbe properly compare dbcodeversion and dbdbversion (trim the newline from dbcodeversion) 2005-06-07 21:10:39 +00:00
james
79f3d7ead6 Fix common.inc.php to properly detect whether installation needs to go to step 2 or step 3 2005-06-07 21:07:52 +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
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
621f940b27 Whoops fix admin and config submenus that I broke on friday! 2005-05-29 22:48:21 +00:00
james
850be50973 Detect when the installation isnt complete 2005-05-27 21:26:51 +00:00
james
f0cbb618ec Move the db/code version check before the database connection in common.inc.php 2005-05-27 21:23:16 +00:00
james
3841d7c86c properly detect where the config.inc.php is even when we're in a known SFIAB subdirectory. 2005-05-26 19:20:24 +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
db4a891b52 add sfiab version information, set it to 0.9 to start with 2005-05-25 19:08:50 +00:00
james
b30e70aaad Add the school access page for schools to login and update their own information 2005-05-13 18:23:31 +00:00
james
6d5f794e05 Add the winners viewer and make sure its robust so it doesnt allow people to see things they shouldnt! 2005-05-12 21:05:21 +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
917e374f0a Add judging timeslots
Add emit_date and emit_time functions
2005-04-15 20:33:13 +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
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
3a26881149 add important dates
remove weird leftover query in config/dates
2005-03-29 21:04:16 +00:00
james
d059f34835 Implement date checking for both participant and judge registration 2005-03-29 19:21:14 +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
james
a2b274f4b9 add two new js functions:
- fieldChanged
	- confirmChanges

call fieldChanged when any field in any of the registraiton forms are chagned
call confirmChanges when the "back to summary" link is changed, to warn them if they have any unsaved changes

remove "(discard changes") from the "back to summary" links.
2005-02-21 23:07:10 +00:00
james
3deae5e029 Implement authorizaiton for admin/config sections
Use committee members for authorization
Add auth required checks in all admin/config sections
2005-02-16 22:50:43 +00:00
james
42c58426dd create email_send function to pull emails from databaes and send
add ability to delete judge account - soft-delete

make sure when logging in, only non-deleted accounts can be used.
2005-02-11 18:25:59 +00:00
james
5aac09ae15 remove unneeded module= from links 2005-01-25 17:00:23 +00:00
james
7368a22975 Add committee page and committees management
make committee management fully XHTML compliant
2005-01-25 16:44:25 +00:00
james
0bfb617804 add email output javascript functions 2005-01-25 15:58:36 +00:00
james
324433ef23 Add GPL headers to ALL PHP files 2005-01-24 18:00:03 +00:00
james
abf8f8d7a7 switch judge info to use province selector 2005-01-05 16:28:42 +00:00
james
726f466ac1 add a province selector
switch student registration to use province selector
2005-01-05 16:23:11 +00:00
james
d73ea11215 Add images directory and size 16 icons dir
Update $config array to store the icon extension to use, based on whether MSIE or not.
  (IE cant do transparent PNG's, all other browsers can, so for IE, use GIF, else use PNG)
2004-12-20 16:36:25 +00:00
james
1b393c1bb0 Commit all work from the weekend:
- judges registration
 - small changes to participant registraiton
2004-12-19 23:16:46 +00:00
james
880d5b0a82 - display status on project and student pages to show if the section is complete or not
- add a new function happy() for displaying 'good' things... also the CSS to go with it.
   now we have:		error() - displaying bad things (in red)
   			notice() - displaying neutral things (in grey/blue)
			happy() - displaying good things (in green)
2004-12-08 20:34:02 +00:00
james
3a212ae5d5 - refactor duplicate code in main, create an ouputStatus function to do the work
- add participants project file
- add checks for project completeness
- add new status 'empty' for if the section has not been started yet
2004-12-07 14:20:42 +00:00
james
0b46ebb808 update todo
allow removing of students IF studentnumber > minstudentsperproject
add a class 'caution' to ues on links, such as 'remove student'
add confirmClick javascript function
2004-12-06 21:37:49 +00:00
james
3a2d49c959 remove the brackets around the OTHER i18n output for non-translated strings :) 2004-12-03 04:30:50 +00:00
james
e091cb2e51 Add emit month/day/year functions to common
Make students page show the number of forms for the number of students
2004-12-03 04:28:18 +00:00
james
0111d59bdf Add counter
Fix CSS
fix XHTML
start of code for student info
2004-12-02 23:15:42 +00:00
james
c17447ed70 registration summary table
summarytable css class
2004-12-02 19:03:53 +00:00
james
1509632d22 remove the brackets from non-translated strings 2004-12-02 17:40:37 +00:00
james
404157df30 participant registration authentication 2004-11-30 22:59:27 +00:00
james
86bad4961b - set proper SFIABDIRECTORY on all menu links (so they work from inside subdirs)
- add config directory, update config.inc.php
2004-11-30 19:06:35 +00:00
james
efdf49d000 add registration pages 2004-11-30 18:55:39 +00:00
james
0e93f59524 add default language and language detection
xhtml 1.0 transitional compliance changes
2004-11-30 18:52:31 +00:00
james
23b938d6fb setup i18n and multi-language support 2004-11-30 18:34:25 +00:00
james
ace55ad45a setup the layout same as the SFIAB development page... for now at least 2004-11-30 17:46:39 +00:00
james
f52b4f3848 Make XHTML 1.0 transitional 2004-11-10 15:31:30 +00:00
james
5b65814e7c Initial sources
removed proposal - doesnt need to be made public
2004-11-10 13:52:01 +00:00