Commit Graph

73 Commits

Author SHA1 Message Date
james
974d42fa91 Fix "Try Report" from report editor - if no conference id passed in, use the current conference id, which it was set to do, but $conference wasnt global'd in the function 2011-03-29 18:27:12 +00:00
james
23d8765fa6 Fix all participant emails in communication module
Make queries for communications easier, all you need is a users.id queried, the system will find everything else for you
Add ability to use [PASSWORD], [USERNAME], [EMAIL] (tries accounts.email first, if its not there, it uses accounts.pendingemail), in _ANY_ email.  [REGNUM] also added but will obviously only work for participants
Add "all" section to the tabs list for user editor, so a user without any roles can still get the basic pages like "account",  "roles", and "personal info"
Put count on participant invitations for teachers (and superusers)
Fix a bug where changing a password for a different user didnt work (it changed YOURS!)
2011-03-22 04:37:51 +00:00
james
d59908033e Always put the app text under the barcode so people know what its for :p
Fix the naming of the barcode function for consistency
2011-03-19 21:05:18 +00:00
james
12bb399d48 Fix the conference logo not working on reports (FINALLY! god for such a stupid bug it took me forever to realize it), also tweaked the barcode code a bit 2011-03-19 20:49:06 +00:00
james
c493120128 INcrease the size of the barcode slightly. 2011-03-17 23:16:44 +00:00
james
047dd2c86f Oops missed one (IMPORTANT) barcode commit 2011-03-17 23:13:51 +00:00
james
9c080c76f5 Add some trimming to username/passwords/emails (to prevent people from putting spaces before and/or after their email address causing it to be invalid)
Updated report system to read students from users table instead of students table
Fix tcpdf tables spanning multiple pages spilling into the header area
Fix calling an invalid add_table function (its addTable yo!)
2011-03-14 20:59:16 +00:00
james
4ba97420ee Forward port the new 'custom - judges - all years' report 2011-02-23 23:12:42 +00:00
james
7eb89d98a2 use addTable instead of add_table for consistency between interfaces 2011-02-22 15:24:19 +00:00
jacob
54070f1836 Several updates on migrating from fair years to conference id's 2010-11-02 20:35:47 +00:00
jacob
b9bcb127a6 Updated these tables to include the conference id:
award_awards
	award_prizes
	award_types
	award_awards_projectcategories
	award_awards_projectdivisions
	winners
	students
	projects
	registrations

Also modified all code that uses those tables to work with the conference id
instead of the year, with the exception of these files:
	communication.inc.php
	reports_students.inc.php
	rerollprizes.php
	remote.php
The "rerollprizes.php" probably doesn't matter, having been a one-time usage
file anyway.  The others will need to be modified in the future to correctly
use the conference id instead of the year.
2010-10-20 21:58:26 +00:00
dave
0567451a58 Implement fair name/logo as fields in a report instead of special
options.  This way, the logo/fairname can be moved around and
resized.   Ensure those fields exist in each report.  Convert name/logo
preferences in all existing reports, and adjust the yloc/height of
existing fields to make way for the headers if they exist.
2010-06-09 07:43:59 +00:00
dave
76e8f8c3e2 Convert everythign to millimeters 2010-06-09 05:21:40 +00:00
dave
8438c48e4b Remove lpdf setup routines 2010-06-09 05:21:35 +00:00
dave
180550f15e Fix load/save now that face and lines are gone. Change TCPDF report
types to use the old types.
2010-06-08 18:57:01 +00:00
dave
d67500fe1a Mostly working TCPDF conversion for both labels and reports 2010-06-08 18:49:20 +00:00
jacob
6504d09886 Added updates for converting from Latin1 to utf8 character encoding 2010-06-04 20:23:59 +00:00
dave
9d79e2fe98 Add TCPDF label, but call it experimental to discourage use.
Convert ISO-8859 -> UTF-8 before printing text on the TCPDF label... happily only the GVRSF is using this right now so we don't need to update everyone.
2010-04-08 07:38:22 +00:00
dave
9b10cdcdc0 Don't let anyone even turn on this option 2010-03-25 04:34:22 +00:00
dave
8ee1f36f90 TCPDF support library and label generation code that uses TCPDF. All
other stuff still works, this only adds on.  And on second thought, I
should probably disable the report type that would let someone use this.
2010-03-25 04:27:33 +00:00
james
ea58b4b6a8 Add a "setDefaultFontSize" function to lpdf, and set it to something reasonable for backwards compatability
Update lpdf's table functions to honour the default font size setting.

(this works great, except for the column widths -  if you choose a font-size too big, its not oging to fit in the pre-defined column widths.)
2010-03-23 16:42:59 +00:00
james
f558a5d8b8 If a group by column has a exec_function, call the exec_function on the table group heading before outputting it 2010-02-11 21:36:11 +00:00
dave
355447ac76 Add highest cat pref selection (for LRSF). Pass the $field into the
report column function so the same function can be used for multiple
fields with different return values.
2010-02-02 18:19:11 +00:00
james
9bad26096d Tweak the avery 5162 template a bit, lines up perfectly now 2009-11-30 18:46:48 +00:00
dave
bf3485c24a - Add an advanced options tab to the report generator
- Add an advanced option: Include Incompelete Registrations - Ignores the
  registrations.status and just includes everyone.  Downside: registrations
  must have a division and category selected because the mysql query matches on
  cat.year and div.year too.
2009-11-06 08:57:13 +00:00
james
9e0ea3bafd - Properly specify the filter for reports 2009-10-16 18:18:38 +00:00
dave
4efb335654 - Add a report for fundraising mail labels
- Add the ability to specify a filter when calling for a report generation
  (e.g., so we can dynamically filter a report for a specific fundraising
  campaign)
2009-10-16 17:17:45 +00:00
james
9cee85a4f0 - chairemail -> chair_email 2009-09-27 08:38:44 +00:00
dave
7a2e0b2b7e - Add a feeder fair statisics report type and report 2009-09-18 05:35:13 +00:00
james
f963dbf276 Merge all changes from branch r1284:1498 into trunk 2009-09-09 00:26:12 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
james
13ef318f27 eliminate an array_keys warning if $$fieldvar isnt set 2007-12-14 15:28:54 +00:00
james
89f074052c correct & combine same-size label templates 2007-12-13 17:03:35 +00:00