Commit Graph

33 Commits

Author SHA1 Message Date
james
70d359c15b PHP 5.3 DEPRECATED split() so, convert all split()'s to explode()'s 2010-09-10 19:38:56 +00:00
james
dfb6112e66 Split committee management out 2010-09-03 16:59:05 +00:00
jacob
f090e957c6 Modified events table to filter properly by event and handle URLs properly
Slight change in tableeditor to allow it to properly filter a value of zero (not treating it as null)
2010-06-14 19:43:10 +00:00
james
e98ec8751b add event types
schedule shows event types in different colours
add tabs to schedule editor windor for each event type
forward port ENUM changes to tableeditor
fix bug in emit_minute_selector
2010-06-14 19:25:49 +00:00
dave
446b54f693 - Properly construct the WHERE clause in the table editor 2008-01-23 20:20:54 +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
1b83ff4c12 - Add a bit more error reporting, and do the error report before attempting to
use the result.
2007-12-18 19:50:12 +00:00
james
25c6251c65 Fix dave's typo on inputttype (inputtype) so 'date' fields will work again! 2007-12-14 15:38:03 +00:00
james
a2105c30f4 Make website fields into links 2007-11-29 18:26:37 +00:00
dave
3e78e8d97d - add support for 'datetime' to the tableeditor 2007-11-16 17:41:34 +00:00
dave
358bc4e177 - Print a textarea for tinytext fields, instead of a textbox 2007-11-15 20:14:37 +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
c92736229c Changes to tableeditor to make it backwards compatible with the "simple" (non class) abilities that it was originally intended for 2007-10-31 19:09:50 +00:00
dave
e71d3c0bbb - Allow the tableeditor subclass to return an empty array for the WHERE clause,
and handle that case.
2007-01-30 20:00:17 +00:00
dave
57dfb7df27 - Fix the is_callable calls. 2007-01-30 19:58:26 +00:00
dave
972f05b58e - Remove PHP5-isms 2007-01-28 07:56:52 +00:00
dave
3da0ba87e2 - Update the table editor, instead of doing all that funky stuff for listing
the table, we call a method in the table helper class.  That method returns 3
  things.. an array of SELECT columns, an array of FROM tables, and an array of
  WHERE clauses.  The table editor takes these, adds ORDER, LIMIT, etc, and
  runs the sql.
- Update the table editor to allow variables to be set.  THe helper class reads
  these variables to do pretty much anything it wants.. In this commit, it
  reads the judges_show_what variable, to determine how to format the SQL for
  selecting the table of judges (so the calling php can now know NOTHIGN about
  the database, it just sets a variable and expects the data to be formatted
  correctly.
- Update the judge manager, show all judges should now SHOW ALL JUDGES.
2007-01-28 07:53:14 +00:00
james
8ed5dd3dfc Try this version.. Removed the quotes from sortField, added them to
the table headers when the table is printed.
2007-01-10 17:19:15 +00:00
dave
e43bcb1a7d - Quote the field in the ORDER part of the sql, in case it happens to be an sql
keyword.
2007-01-10 07:28:12 +00:00
james
35e4e3cf22 Remove a wackload of debugging stuff from the judge class and remove a few fields that should not be editable 2006-10-25 18:49:06 +00:00
james
ff9c78d5a2 Make tableeditor PHP4 compatiable 2006-10-18 19:33:04 +00:00
james
d1db2cceda Fix daves typo's :) 2006-10-18 17:25:41 +00:00
dave
9f9b612e5d - Added an option for the tableeditor to construct a LEFT JOIN when listing a
table
- Add complete and year options to the judge manager, filter by ALL, active and
  inactive for the current year, or active only.
- Add the "complete" status the the judge info page (the judge info popup page
  needs to be integrated with the new judge manager, somehow.. so we can remove
  the judges_judges list page).
2006-10-18 17:05:18 +00:00
dave
29a772ae5e - Add the judge manager to the judges admin page
- Put a total at the top of the judge manager list
- Add to the table editor:
	- Change the filter to accept a single argument, so we're not
	  restricted to the `$k`='$v' syntax, we want to be able to filter on a
	  table JOIN.
	- Add a additionalListTable variable, and additionalListTable()
	  function, to specify additional tables that should be part of the
	  table select statement.  I guess ideally the class would implmenent
	  their own if alternative behaviour was desired.  But this way is
	  pretty generic.  The table editor can now, for example, select judges
	  by year.
2006-10-18 07:50:23 +00:00
dave
3a4d919691 - Implement judge insert and delete. Still needs work, the "delete" should
only remove the judge from the current year.  The editor needs a field to say
  if the judge is registered for the current year or not.
- Delete also needs to somehow express that the judge will be deleted for the
  current year only.  Which means we should probably implement a Purge, to
  completely wipe a judge out of the system.
2006-10-18 05:57:20 +00:00
dave
5e26bd1395 - Missed an i18n(); 2006-10-17 07:04:11 +00:00
dave
e3abff348b - The table editor detects a pipe character in the field name now, and if it
exsits, it separates the field at that point, and prints the text after the
  pipe in the data area, not the header area of the edit table.
2006-10-17 07:01:55 +00:00
dave
29e14c2514 - Fix the tableeditor to do a string compare for determining if something
should be SELECTED in the select type.  If the keys are 0, and there is no
  data, PHP does a numeric compare and matches them, when they shouldn't
  actually be matched.
- Add Load/Save for the judge category preferences
- Enable saving to mysql.  It works.
- Update the tableeditor css to use the same colours as sfiab
2006-10-17 06:44:27 +00:00
dave
1a2b3d7faf - Implemented save functionality in the judge class
- Moved the tableeditor class to accept a generic class, no longer a person
  class
- Restored the original functionality where everything is specified in the
  constructor, but added a 'class' which can be a dummy class to return to the
  original tableeditor functionality.  The tableeditor checks for
  class->tableEditorLoad() now, and if that exists it calls it.  If it doesn't
  then it calls a default Load() routine which contains the original code from
  the tableeditor.  Same with save.

Still needs work, but it's getting there.
2006-10-16 06:21:20 +00:00
dave
335330dd35 Minor update to the person class 2006-10-15 18:43:46 +00:00
dave
0f26d12fe7 - Update the multicheck layout
- Remove the mysql query on EditSave and NewSave
- Unify the EditSave and NewSave code.  Now that this is done, I will move the
  SQL generation task to the group class, so all the editor has to do is
  instantiate a person class, set some values, and call the save() function.
2006-10-11 16:35:36 +00:00
dave
373b876b1b Hacked up the editor a bit more.
- Added a "multicheck" input type for languages (english, french)
- Added a proof of concept cross reference to the judge class, it pulls the
  languages out of the judges_language database
- Completely broke the save mechanism.
- Converted the tableeditor edit routines to read from the input class
- Converted the tableeditor edit routines to use assoc arrays, instead of ->
  (easier to pull from mysql and then add cross references to it.
2006-10-11 07:21:35 +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