From 1e9f68a35e0bd5f80de6c26a356d43abd09c3361 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 11 Oct 2006 00:28:58 +0000 Subject: [PATCH] - 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. --- admin/judges_manager.php | 61 ++ common.inc.php | 2 + judge.class.php | 51 ++ tableeditor.class.php | 1243 ++++++++++++++++++++++++++++++++++++++ tableeditor.css | 80 +++ 5 files changed, 1437 insertions(+) create mode 100644 admin/judges_manager.php create mode 100644 judge.class.php create mode 100644 tableeditor.class.php create mode 100644 tableeditor.css diff --git a/admin/judges_manager.php b/admin/judges_manager.php new file mode 100644 index 0000000..077e988 --- /dev/null +++ b/admin/judges_manager.php @@ -0,0 +1,61 @@ + + Copyright (C) 2005 James Grant + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation, version 2. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ +?> + + + +<< ".i18n("Back to Administration")."\n"; + echo "<< ".i18n("Back to Judges")."\n"; + + $icon_path = $config['SFIABDIRECTORY']."/images/16/"; + $icon_exitension = $config['icon_extension']; + + $editor = new TableEditor('judge'); + $editor->setDebug(true); + $editor->execute(); + + + send_footer(); +?> diff --git a/common.inc.php b/common.inc.php index 2792ebb..2cd0783 100644 --- a/common.inc.php +++ b/common.inc.php @@ -344,6 +344,7 @@ function send_header($title="") <?=i18n($title)?> +