Commit Graph

841 Commits

Author SHA1 Message Date
jacob
e3633a3cf4 Started on writing form viewing log files on the "Activity Log" tab 2009-10-05 22:01:06 +00:00
jacob
50eebd3245 Updated to allow the deleting of contacts
Cleaned up the layout of the contact info form to be smaller and more aesthetic
2009-10-05 19:00:00 +00:00
jacob
bfb4c1c586 Multiple contacts implemented in donors 2009-10-05 15:19:50 +00:00
james
abd5f1fcca Implement the fundraising goals editor on the setup screen 2009-10-02 20:47:04 +00:00
jacob
ce9446d66a Updated to use an accordion style form for entering contacts. There is an issue with the wrong data being submitted from the form. Working on that next 2009-10-02 20:39:34 +00:00
james
1fa368293f Create fundraising setup page
Move fundraising levels editor into the setup
Remove the old level editor
2009-10-02 19:21:43 +00:00
jacob
f140ce05a0 A rudimentary start on adding contacts 2009-10-02 18:10:55 +00:00
james
4f588a5859 show the search results div when you do a search 2009-10-02 18:08:32 +00:00
james
01fde584be Do a lot of database re-working, renaming and reorganization
Database now refers to everything by donor/donation .. and apparently just as i complete this, carolyn has decided to go to both donor/sponsor instead of just donor.. ugh..
2009-10-02 16:46:13 +00:00
jacob
55751e5da8 hide the list of donors after finding one
starting a form for adding contacts
2009-10-02 13:32:21 +00:00
james
1df3acd13d mockup of fundraising dashboard as provided by carolyn 2009-10-02 03:04:35 +00:00
james
2c316a1365 Start of the fundraising files
Switch background of the #main div to white instead of crappy light blue
2009-10-01 21:03:56 +00:00
james
3974636d1c DB update for donors add new fundraising main page 2009-10-01 16:52:36 +00:00
dave
21d3dcd054 - Replace class "tableedit" with class "editor", undo the alignment on class tableedit 2009-10-01 04:42:55 +00:00
james
40a49c8567 More renaming sponsors to donors and sponsorships to donations
Start on the donor management interface
Try to make the donor tab 'look pretty'
2009-09-30 22:38:38 +00:00
james
97887153b6 Start renaming sponsor to donor 2009-09-30 20:29:34 +00:00
james
9cee85a4f0 - chairemail -> chair_email 2009-09-27 08:38:44 +00:00
dave
5180c14b22 - Don't need this file either. 2009-09-27 03:08:05 +00:00
dave
aadf84754a - Rework the My Reports editor. with jquery it's 200 lines shorter now. :P 2009-09-27 03:07:39 +00:00
dave
fd045a51b4 - Make the report generator interface look a little saner 2009-09-27 01:20:12 +00:00
dave
c23ce973b1 - Change the default user list to show all users from all years
- Change the SQL query to use MAX(year), so that we really only show a single
  (non-deleted) entry for each user.
2009-09-26 17:59:50 +00:00
dave
22f75ffd1f Fix sponsor creation 2009-09-26 08:50:16 +00:00
dave
51eaad76a5 - Fix the trophy printing
- Fix the table updates on creating a new prize
2009-09-26 08:11:34 +00:00
dave
d77616a438 - Fix award info saving
- Fix clearing out divisons/categories
2009-09-26 00:10:57 +00:00
dave
74629b8b5b - Client side support for downloading additional materials (in generated PDF
form) from an upstream server.
2009-09-25 19:15:43 +00:00
dave
40789fc92c - remove the download all link.. for now, upload all as well.
- support the new 2 fields downloading awards
- send the download output into a div ont he same screen, rather than on a whole new screen.
2009-09-25 07:11:43 +00:00
dave
0f31f72f07 - Add two more fields:
- additional_materials: if there are additional materials required if a fair assigns a winner to this award.
	- register_winners: to tell the feeder fair that this award is for winners who will participate at the upstream fair
2009-09-25 04:29:41 +00:00
dave
25f19d9fbd - Enable the feeder_enable checkbox. There's no DB backend for it, it enables
the feeder fair input on click, or if a feeder fair ul/dl is already
  selected.
2009-09-24 01:39:05 +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
97c489646e - Turn the uploader into a popup window
- Add the ability to select category/division mappings specific for each upstream server
- Add some auto-determining code if the cat/div mappings don't exist
2009-09-23 05:53:33 +00:00
dave
32752f6e4e Rename the xmltransport to remote.php, we're not using XML at all. 2009-09-22 06:35:49 +00:00
dave
b7a30542d9 - Pretty it up a bit 2009-09-21 07:48:54 +00:00
dave
91338e7590 - Client-side award uploader for sfiab-sfiab. Hopfully I didn't break the YSC
XML transport (too badly).  Still needs client status messages, but it works,
  and matches projects and schools.  
--This line, and those below, will be  ignored--

M    admin/award_upload.php
M    admin/award_download.php
2009-09-21 07:18:39 +00:00
dave
0ce215b8bc - Remove debug line 2009-09-21 01:34:42 +00:00
dave
39fa2de7bd - Fix eligibility save 2009-09-21 01:33:55 +00:00
dave
fdeef1f273 - Ok, so jquery does do the right thing, we just have to be careful not to read
fields that may not exist.
2009-09-20 21:50:51 +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
1e1a7d6202 - Make the notice divs a bit easier to see (light yellow background)
- Don't reload tabs all the times, remember the current award_id for each tab
  and only reload if necessary
- Add a little notice for downloaded awards, telling the user why they can't edit some fields.
2009-09-20 18:45:32 +00:00
dave
5989a8c254 - More fixes for editting, we dont' actually download the description or award type, so let the user edit those. 2009-09-19 08:14:59 +00:00
dave
7a474046a5 - beginning of setting uneditable fields for downloaded awards. 2009-09-19 08:06:21 +00:00
dave
9e348d9b0c - For the first time probably ever, DELETE a config variable :O
- Rename the user/pass for fair type=ysc so it's more familiar (asks for YSC ID and pass)
- Convert cwsfregister to use the fair entry data.
2009-09-19 06:53:49 +00:00
dave
e141676259 - Implement the last 2 missing warnings from ysfstats.php
- Change the YSF 1click affiliation to point to fair_stats.php
- Add a hack in fair_stats.php to make it find and load the YSF stats on entry (on request).
- No need for ysfstats.php anymore.  The YSF fair has been added to everyone's
  SFIAB.  The last update ensures the password is there too. Verified that this
  works witht he GVRSF.  We could delete the YSF regionID and password now if we wanted from the config.
2009-09-19 06:36:22 +00:00
dave
b5430b08b3 - change ysf to ysc in the code too 2009-09-19 06:13:22 +00:00
james
8aabd98fe0 Use the happy_ and error_ functions and load the ajax into the debug div 2009-09-18 19:25:26 +00:00
james
c1d7b8fc24 Commit working stuff for fundraising so i can update on lightbox 2009-09-18 17:06:44 +00:00
james
17c3e4a732 Start fixing hte sponsor queries, add some debugging so we can see who's in the lists, commit so i can get daves help :) 2009-09-18 15:57:35 +00:00
james
51d3f692c7 Fix committee query in communication module 2009-09-18 15:16:39 +00:00
dave
2762a12eb0 - Add a notice_ javascript function for testing, yup, it works
- Reimplement the new award functionality
- Fix the reloading of the dialog by disabling all tabs and reselecting one.  It works properly now.
2009-09-18 07:50:32 +00:00
dave
7a2e0b2b7e - Add a feeder fair statisics report type and report 2009-09-18 05:35:13 +00:00
dave
6fb6b9b25f - Fix the two broken communication queries 2009-09-18 04:04:20 +00:00
dave
ec748865b4 - Fix the notice in stats select 2009-09-18 03:30:15 +00:00
dave
20fe1d8b13 - Switch to a global message status area 2009-09-18 03:29:13 +00:00
james
de7d7eb4a7 remove the old dialog include 2009-09-17 21:51:04 +00:00
james
7a9df90f34 Allow add sponsor to be linked from other pages to open the dialog 2009-09-17 21:49:39 +00:00
james
d51b2d9576 Update fundraising to use jquery dialogs instead of my homebrew dialogs 2009-09-17 21:48:57 +00:00
james
ca9b2bb5a1 List the sponsor contacts, all the links still go to the old sponsor_contacts page to be edited, its ugly and gross but at least its accessible 2009-09-17 20:37:44 +00:00
james
ed72fb3944 Add ability to create new sponsors usign the popup editor - basically it posts a sponsor_id=-1 and which causes it to insert a new record, then do the normal save, then it closes and re-opens the editor with the id that is returned by the save post via json 2009-09-17 20:03:56 +00:00
james
c3b532b161 Move awards management to the top - its what will be used the most from here
Rename award sponsors to just sponsors, as it now does all types of sponsors
Remove the sponsor contacts, they will shortly be accessible via a tab of the sponsors editor
2009-09-17 19:31:32 +00:00
james
99f1d4726c Make the default prize template editor work when accessed directly from the awards.php page 2009-09-17 19:30:32 +00:00
james
cb5bb16953 Disable all the other tabs if editing the default prize template 2009-09-17 19:25:14 +00:00
james
8269821a69 blank line 2009-09-17 19:06:31 +00:00
james
b88e10120a Set the datepicker z-indez so its above the dialogs (so when used within a dialog it wont be below it)
Change the width of the translations dialog, so when used from within another dialog (at 0.8) it looks more distinctly a different dialog (at 0.6)

First go at converting the sponsor editor to a tabbed interface, so far the sponsor info tab works and saves but thats it.
2009-09-17 19:05:17 +00:00
james
7b068cd83f Load the information into the tab when the dialog is opened (fixes it not reloading the data when you close and reopen the dialog) 2009-09-17 18:50:37 +00:00
james
715e72c0c8 Fix the buttons to work, remove the links 2009-09-17 17:10:02 +00:00
dave
1513645e4a Put in a link to the fair stats 2009-09-17 07:56:06 +00:00
dave
cb6740fa6f - Update the fair stats to use the new list
- Don't have curl dump debug info
2009-09-17 07:13:51 +00:00
dave
6bd4d03941 - Selection screen to select what stats to download from feeder fairs 2009-09-17 07:00:09 +00:00
dave
abd1fda6fe - Always scrub data before passing it to mysql 2009-09-17 05:53:47 +00:00
dave
0a9053181c - Fix a reference to the award external identifier
- Move the nubmer of available prizes to the top so it's harder to miss.
2009-09-14 05:34:31 +00:00
dave
347d2d5a86 - Use the prize name, rather than the external_identifier to identify the prize. It only has to be unique within each award, which it will be (all prizes should have a name). 2009-09-14 05:33:49 +00:00
dave
a3f8957d96 - add the html for the registration linkage button. does nothing else yet. 2009-09-13 22:23:19 +00:00
dave
1e830e47bc - Add support for setting the external identifier 2009-09-13 21:58:50 +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
e9d3d4ce03 - Database update for feeder fair award info
- Load/Save feeder fair awards in the award editor
- Fix all the POSTs in the award editor.   .load automatically does a POST if
  the data is an array, so we need to call .serializeArray() when we want a
  post to happen.
2009-09-13 07:08:12 +00:00
james
99ad03654a switch the table class for the school list 2009-09-11 16:18:47 +00:00
dave
5d5c91766a - Remove the order from the ajax save too 2009-09-11 06:36:16 +00:00
dave
1c70110680 Remove the order box from the award info, the main table supports drag and drop. 2009-09-11 06:35:49 +00:00
dave
986b762f4e - Move some GETs to POSTs
- Sort out the header sizes, I think.
2009-09-11 06:12:17 +00:00
dave
0cd1876f0f - Update the main theme to be a little more sane with fonts (i hope)
- remove all references to htabs, we dont' need them anymore.
2009-09-11 06:03:00 +00:00
dave
1a2839b5b2 - Hack up the user editor window to use jquery ui tabs and ajax, sorta. More
like a Frankenjax.  Needs MAJOR help.
2009-09-11 06:01:01 +00:00
james
d17de3f6e6 Updated and working translations dropdown - simply add class="translatable" anywhere you want something translated 2009-09-11 05:16:37 +00:00
dave
8b9b029e31 - Use jqueryui's tab system instead of our own
- Update the tab style so it doesn't look stupid.
2009-09-10 22:52:04 +00:00
james
174d658f2d Start of a new trasnlation dropdown, commit so maybe dave can help :) 2009-09-10 21:31:51 +00:00
dave
074d39171f - Implement the generic prize template editor (not fully tested)
- Doesn't launch from awards.php yet for some reason.
2009-09-10 17:32:16 +00:00
dave
2270593d65 - Make eligibility saving work. 2009-09-10 08:56:58 +00:00
dave
74ec5fdcfb - don't need this file anymore, all the functionality (except validation) is
implemented in award_awards.php
2009-09-10 08:30:07 +00:00
dave
d50debde12 - Make the main award table sortable by dragging
- Implement new/delete award (still needs some eyecandy)
- Update the order tables to recalc the order without fetching it from the server 
- Only thing left to do is make sure saving eligiblity works.
:
2009-09-10 08:29:16 +00:00
james
f7bddf5beb Get rid of all occurences of viewtable and replace with tableview 2009-09-10 04:40:18 +00:00
dave
80c743eb1a remove a debug statement 2009-09-10 01:24:57 +00:00
dave
aa1d88f7d2 - Prize editor with movable tables. It's still a bit rough, more work needs to be done with turning on /offthings at the right time, but it's all there, and it all works. 2009-09-10 01:23:58 +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
94ecb59321 Calculate the difference from the probability weighted totals 2009-09-09 03:12:53 +00:00
james
5ec6879149 A couple fundraising changes for readability 2009-09-09 02:39:22 +00:00
james
f963dbf276 Merge all changes from branch r1284:1498 into trunk 2009-09-09 00:26:12 +00:00
james
dc4b197ce9 SSL NOVERIFY on ysf affiliation stats as well 2009-04-06 16:02:40 +00:00
james
a48b121e15 Only show the awards to upload for the current year, and turn off the ssl certificate checking 2009-04-05 16:00:36 +00:00
james
518c53bd82 Turn off the certifiicate validation for the SSL on cwsfregister 2009-04-05 15:45:43 +00:00
justin
eb795267d7 Add original score information to the csv view 2009-04-04 17:09:00 +00:00
justin
0a4223baf4 Sort projects by number instead of title in score entry 2009-04-04 13:59:43 +00:00
justin
e3b440d8da Fix problem if not all score entries are entered in score entry; and move send_headers earlier to avoid conflict 2009-04-04 13:43:07 +00:00
justin
2328f54721 Modify fix in r1448 to select project state based on the config variable for it 2009-04-04 04:03:05 +00:00
justin
b37f0ef9cc Attempt to fix issue with IE downloading files 2009-04-04 03:53:48 +00:00
james
02d8723ab6 Allow projects to be manually assigned to judges teams even if their status is paymentpending 2009-04-03 15:12:12 +00:00
james
2f6683d014 Show language problems when a judge is assigned to judge projects in a different language 2009-04-02 16:35:02 +00:00
james
4d0f607981 Avoid divide by 0 2009-04-01 17:30:31 +00:00
james
e2b78cc707 Add a mouseover tooltip to the delete icon, and add a "login" button to login as that student to see waht the studnet sees 2009-03-30 20:06:25 +00:00
james
65e4d29c58 Fix the total check, and rename a variable to not be stupidly named 2009-03-27 20:35:33 +00:00
james
32222526a8 Add judge language criteria to judge scheduler check before allowing the scheduler to run 2009-03-27 20:31:57 +00:00
james
1b6b245e37 Create (and protect) a logs data/logs folder and store annealer logs there incase they're needed down the road 2009-03-24 16:58:02 +00:00
james
b3bbd801ef Committing a comment to the annealer to look at down the road, ideas from Kris to speed up the scheduler when the cost isnt changing, instead of waiting for the temperature to fall slowly, speed it up when the acceptance rate is really good or really bad 2009-03-24 16:52:10 +00:00
james
4b3455f730 Increase email field size
Fall back to projectnumber sorting after projectsort (incase people manually set the project numbers in the project number field, and leave the projectsort empty
2009-03-24 15:08:51 +00:00
james
666f4ce720 Add type pref to the judges list, so it cna be filtered on to generate nametag lists for only special awards judges 2009-03-19 18:54:34 +00:00
james
69849468ce Fix judges query for judges not active this year 2009-03-17 18:42:12 +00:00
james
35276b7475 Don't export deleted judges 2009-03-09 17:26:00 +00:00
james
3880628596 Sort the list of years in the report generator screen 2009-03-09 16:50:58 +00:00
james
6db3c8ef37 Dont include deleted judges in reports, ever. 2009-03-09 16:38:06 +00:00
james
7674cf3fbe Fix a divide by zero when "scale columns" was set to yes, but there were no scalable columns to scale 2009-03-05 20:55:06 +00:00
james
2fafcfd844 double negatives ftw... now do it properly -- do not email deleted judges! 2009-02-16 23:34:03 +00:00
james
7cbd70577e Oops missed an AND 2009-02-16 23:32:02 +00:00
james
b8c9d10be0 Never email judges that have been deleted. This will all change once branch gets merged in, but fixes the fairs for this year at least. 2009-02-16 23:28:47 +00:00
james
91270b79ac Don't verify the SSL certificate - temporary workaround for CURL's ca-cert bundle not properly authetnicating the YSF SSL cert. 2009-02-11 22:41:18 +00:00
justin
7bd94c3782 Add judging score entry for Renfrew County fair 2009-01-17 19:45:42 +00:00
james
544c6f4580 Allow upscaling widths as well as downscaling widths if they select "scale column widths to fit page width" 2008-11-20 18:21:56 +00:00
james
cc619e3422 Make summary scalable 2008-11-20 18:20:04 +00:00
james
3d30262af5 Only show the label layout if the type is label 2008-11-20 18:17:57 +00:00
james
065cb658bb Make the translations page much more compact
Backport translations dropdown fix from branch
2008-11-03 02:11:52 +00:00
james
b45ef040bb Make the translations manager much mroe user friendly:
1) can edit more than one translation at a time
2) can delete more than one translation at a time
2008-10-30 17:57:05 +00:00
james
fca6ce64b0 Show a sample of what the label is going to look like laid out using DIV's and HTML, this is the first start of implementing a full editor :) 2008-10-16 19:13:59 +00:00
james
b3bfb560f9 Add a bunch of missing i18n()'s 2008-10-06 19:09:00 +00:00
james
bfb471011a - Fix a bug where the special awards annealer would overwrite the last jteam
- Add an alternative (but commented out) array population for the annealer
- Leave in some of the debug statements, they don't hurt anything.
2008-09-17 18:04:50 +00:00
james
87841466e6 Hmm, re-add the "Internal Document Management" that somehow got left out from the conversion to icons! 2008-09-17 14:30:18 +00:00
james
642dac036f Add participants last year and participants all years to communications system 2008-09-17 14:23:30 +00:00
james
4d0ff8f327 properly fix the team naming/sorting issue 2008-09-16 19:38:27 +00:00
james
bed8cc9d9e If a jdiv has no projects, then it definitely doesnt need any judging teams to judge those 0 projects 2008-09-16 18:44:25 +00:00
james
de185f07f4 sort the divs and cats so the team names are consistent 2008-09-16 18:37:23 +00:00
james
c87ea3b37e Add administration and configuration icons 2008-08-26 21:42:17 +00:00
james
02e88f4f29 Re-order the admin page to make more sense. 2008-08-26 20:45:29 +00:00
james
ca5515a335 Put admin icons in the title of each page 2008-08-22 20:50:38 +00:00
james
32dfcda427 Fix website content management icon name 2008-08-22 20:48:50 +00:00
james
4f6749d5da Remove an extraneous <br /> 2008-08-22 20:18:17 +00:00
james
2d20b0887b Add about 1/2 the icons for the config page 2008-08-22 19:12:53 +00:00
james
cbf1c371ff Move cms from config to admin
Add icon and link it into the admin index
2008-08-22 17:21:35 +00:00
james
8b5fc1c905 Shrink the summarytable headers a bit in size
Add the content management front-end file
Add the content management back-end file - its not quite done yet
2008-08-20 20:25:42 +00:00
james
251138248d Show disabled icons 2008-07-24 17:27:59 +00:00
james
267d228aaf Add more icons 2008-07-24 17:15:42 +00:00
james
bfc32c305b Oops fix typos 2008-07-24 16:35:37 +00:00
james
cd24825e71 Add some more icons 2008-07-24 16:32:43 +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
a42812ce27 switch communication from using an echo to the at command now +1 minute to exec immediately piping the output to /dev/null and redirecrting stderr as well 2008-07-17 18:33:11 +00:00
james
651d6235a4 Add config options for Province/State and Postal Code/Zip Code 2008-07-16 17:23:53 +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
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
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
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
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
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
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
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
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
dave
10bf90f0db - Fix the total count on the cat/div summary. Several fairs have emailed me to
say the count is wrong.  It's not wrong, it's just not printing the number
  they expect.  This fixes that.

- Make it more obvious what status the stats are being displayed for.
2008-02-26 08:19:38 +00:00
dave
343d777aab - Restrict data in a committee report to actual committee members 2008-02-23 03:42:51 +00:00
dave
15a56ce13f - Add First Aid and CPR data collection to the user table.
- Modify the config so a committee can enable it for volutneers and committee
  members
2008-02-23 03:28:43 +00:00
dave
1d3ee3f83e - Judge autocomplete function, there's no menu link to it. This should work
for timmins and fraser valley
2008-02-22 06:19:22 +00:00
james
52fb9faed8 special awards communications should contact this year's contacts only.wq 2008-02-13 22:42:02 +00:00
dave
6a766ac59d - fix copy/paste error in the tour annealer 2008-02-12 01:11:21 +00:00
dave
482f2e6d3a - Sort the tour num+name column by number 2008-01-30 07:56:47 +00:00
dave
414a85ccb2 - Add number checking (and parsing) to the config editor
- Change the type of $config['regfee'] to 'number'
2008-01-28 21:48:44 +00:00
dave
8980275627 - Add mentor info to the student report generator 2008-01-26 19:46:16 +00:00
dave
4af449a2c4 - Implemnt scalable columns in the report generator.
- New report option to fit the width of the report to the page
- Columns in each reports_*.inc.php can be specified with
	'scalable' => true
  to indicate that they may be scaled if the report is too wide for the page
- Obviously, do no scaling if the option is off (off by default)
2008-01-26 19:14:24 +00:00
dave
fddce24de3 - Fix the paper type in system report 44
- Add 2 new paper types (Ledger 11x17 + landscape)
2008-01-25 05:31:27 +00:00
james
6a2683d92d Add ability to get registration list for previous years (only via appending &year=year to the URL) there is currently no user interface to access this feature. Also add the school board in brackets after the school name 2008-01-24 18:51:05 +00:00
dave
125437dd55 - More GVRSF stuff that I missed. Add two fields to the award_awards:
'self_nominate', and 'schedule_judges'.
- self_nominate defaults to 'yes' for all new and existing awards.  If turned
  off, the award will not appear in the student self-nomination pages.
- schedule_judges specifies whether an award should have judges or not, we have
  some special awards that students can nominate for but do not require judges
  to find the winner.  Similarly we have some awards students cannot nominate
  for but do require judges to determine a winner.  This allows both cases to
  be handled.
2008-01-24 07:46:12 +00:00
dave
df38d87b40 - Columns for school report 2008-01-23 19:30:05 +00:00
dave
b14ec011d4 - use the correct limit 2008-01-23 18:42:35 +00:00
dave
3f3475d407 - fix the limit on the special awards self nomination query
- add a rollover for regfee items
2008-01-23 18:40:59 +00:00
dave
58df28ba9a - Fix drawing label boxes around text items
- Add the ability to draw a static label box (without text)
- Add "self nominated award" 1 through 5 to the student reports
- Add a new report demonstrating how to use the above (this is of the format
  Sudbury sent us).
2008-01-23 18:32:31 +00:00
dave
735e5e0999 - Add a registration fee item editor
- Allow students to choose items from the optional registration items
2008-01-23 07:53: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
1464751fb7 If the registration list is sorted by project number, sneakily sort it by projectsort (then fall back to projectnumber) 2008-01-15 18:20:56 +00:00
james
1fed6629bd Use firstname for the names so they show in the "to" of the email 2008-01-09 17:28:11 +00:00
james
e7d436e409 Add ability to communicate (send emails to)
- school principals (via schools.schoolemail)
- school science heads (via schools.scienceheademail)
- teachers (via students.teacheremail) - this year, last year, or all years
2008-01-09 17:25:30 +00:00
dave
8c4b77cf41 - When saving committee orders, don't iterate through the order array if a
committee has no members.  Doing so just generates a PHP error.
2008-01-07 05:38:44 +00:00
dave
3cba628b51 - Disregard the year in award sponsors and contacts 2008-01-07 05:29:42 +00:00
dave
a364e9ea56 - Fix the Partner Name (first last) column 2007-12-30 23:02:41 +00:00
dave
f097559e9d - Fix some emergency contact headers 2007-12-30 22:32:58 +00:00
dave
7c5b53c268 - Fix the judges "Complete" header. Changed to "Cmpl" so it shows in the
header.
2007-12-30 22:30:28 +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
eaad48d6d0 - Change how the num students report column works. It was failing when awards
were added because of the row duplication.
2007-12-30 21:05:54 +00:00
dave
ca52174cfe - Fix the grouping logic to handle the case where the group by column is also
selected as part of the display columns
2007-12-30 20:03:05 +00:00
dave
5bcd7cd1e1 - Obey the pagesize settings when generating actual reports, not just labels.
This makes landscape reports work.  This still ignores the margins (just like
  regular reports ignore the margins on 8.5x11 pages anyway)
2007-12-30 07:28:06 +00:00
dave
aa1be324ad - The project number needs a titch more space for the GVRSF. :)
- Completely remove the old gvrsf_tablenumber report column.
2007-12-29 09:04:48 +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
james
a5998ca3dd Text update BUG239 2007-12-27 00:47:23 +00:00
james
8e91b16b63 Text update BUG238 2007-12-27 00:45:31 +00:00
james
67f3c2eda3 Text update BUG265 2007-12-27 00:43:40 +00:00
james
a13303afe9 text update BUG266 2007-12-27 00:40:59 +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
a912b7df99 - Clean up the award query.
- Fix a bug in the award query tha twas incorrectly linking judges teams with judges
- Add 'Judge Name' to the query so non mysql5 users can create an award report
  that lists the judge names for each award.
2007-12-24 21:18:08 +00:00
dave
1b0835a47f - Make the default report type 'student'. And load the necessary fields for that
- If the report type is changed, submit the form with a reload, to reload all the
  available fields.
2007-12-24 19:38:06 +00:00
dave
7ff0b4b104 - Add more fields to the committee report type
- Sort the report by the first field if no sort field is given
2007-12-24 19:20:01 +00:00
dave
b47ac24ed1 - Decrease the cost of students not from the same school +5 could lead to a
large penalty (5*20=100) which exceeds the cost of a 1st vs. 2nd choice tour.
  This could cause a student to be bumped to a 2nd choice tour for no reason
  other than to fix the schools.  The idea for duplicate schools is to only
  prefer to have 2 students from the same school on a tour if there's
  a choice that oculd go either way, this will break that tie.
2007-12-23 19:15:50 +00:00
dave
60df636517 - Reorder/Rename some of the judge columns for clarity
- Add an option to NOT filter a judge report by year if the report already
  includes a year filter.  This allows one to FITLER by judges.year!='0', and
  get every judge that has ever judged at the fair (should probably add a
  distinct(judges.name) or something, because a judge that has judged in two
  past years would appear twice in that list.
2007-12-22 22:16:12 +00:00
dave
0b782d467d - Unclutter the judge query
- Add project info, timeslots, and students to the judge query.
2007-12-22 21:50:25 +00:00
dave
edf26caf1e - Avoid a divde by zero in label generation
- Never allow the number of lines for text data to be zero in the first place.
2007-12-22 20:49:33 +00:00
dave
801e70cb0c - Fix the awards query
- Add prize amounts to the report editor
- Add a column to compute the number of students who worked on a project to the
  report editor
2007-12-22 19:12:43 +00:00
dave
8ef6f7ea45 - Update the admin judge page to make the order of things a bit more clear. 2007-12-22 10:17:16 +00:00
dave
1aadc76ebc - The awards store whether to schedule judges for a special award
(schedule_judges).  We should obey that even though it's always set to 'yes'
  and there's no way for a user to change it.. yet.
2007-12-22 09:36:23 +00:00
dave
7b7c6c0db2 - Use pdf_fit_image instead of pdf_place_image.
- The docs say pdf_place_image is deprecated (and so is
	  pdf_open_image_file.. apparently)
	- By using pdf_fit_image we can define a box where we would like the
	  image to fit, then use the highest quality image (logo.gif) and tell
	  pdflib to scale and center the image within that box.
2007-12-22 03:31:02 +00:00
justin
2f443868d0 equality, not assignment operators would help I guess 2007-12-21 00:35:31 +00:00
james
e4fb689d58 Add prize value, and the trophy stuff to the generic prize template divisional awards creator
When creating divisional awards using the generic prize template, obey config option to filter divisions by category
When managing jdivs, obey config option to filter divisions by category
Add an option to the jdivs (at the bottom) to completely whipe out all jdivs so they can be recreated (eg if age categories / divisions are deleted or changed, or if ones were created that shouldnt have been due to the filter divisions by category not being obeyed
2007-12-20 20:45:18 +00:00
dave
0db1467da7 - Fix errors, crashes, infinite loops caused by jdivs with no projects. 2007-12-20 19:52:15 +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
348647208f put the type and stock checks back in, to make sure we get the right stuff. 2007-12-20 18:38:17 +00:00
james
312808bc8f Dont disable the type & stock so the default values (selectedIndex=0) still gets POSTED, even though the dropdowns are not displayed. 2007-12-20 18:35:47 +00:00
james
a352886ca6 And remove my print_r debug :) 2007-12-20 18:18:06 +00:00
james
a69ad4ae71 Oops use the right fields for type and stock 2007-12-20 18:17:40 +00:00
james
515a92dda7 Dont use JSON anymore, we really dont need the entire report object, we just need the 3 fields type, stock and desc, so return them on their own line, so we can just split on \n 2007-12-20 18:13:06 +00:00
dave
f17f07ff94 - Don't open the info window until it is requested. 2007-12-20 18:07:39 +00:00
james
87f1452919 Fix invalid type. type="" is valid because of custom reports.
Same for stock.
2007-12-20 18:00:30 +00:00
james
d9f6b8c330 Remove the warning about only being able to submit once.. it doesnt make sense for stats. 2007-12-20 16:01:39 +00:00
james
647456ae69 judges_data.php ?? how baout judges_schedulerconfig.php :) 2007-12-20 15:58:07 +00:00
james
e0a77c6fd6 Sort the 'Projects and Judges' listing by jdiv_id 2007-12-20 15:53:11 +00:00
james
93f610c214 Make judges_jdiv groupings obey the filterdivisionsbycategory config option and dont show div/cat's that shouldnt exist 2007-12-20 15:47:19 +00:00
dave
71166d3e6b - Add the easyparse student names option 2007-12-20 09:51:08 +00:00
dave
6c61595cb9 - Add an option to print ALL student names for a project (will work for more
than 2 students).
2007-12-20 09:43:22 +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
984c9776ef - Separte the action handler from the config emitter (but tie them together so
that the old functionality remains)
- Run the action handler separately in the tour annealer and judge annealer
  config so that the page can be refreshed immediately after an update, so
  the  config variables (that may have changed) are reloaded.
- Skip updating config variables that haven't changed.
2007-12-20 08:20:29 +00:00