From 3da0ba87e2bed4411a4c210a7834ae16a37bfb6a Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 28 Jan 2007 07:53:14 +0000 Subject: [PATCH] - 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. --- admin/judges_manager.php | 13 ++--- judge.class.php | 65 ++++++++++++++++----- register_participants_students.php | 1 - tableeditor.class.php | 90 ++++++++++++++++++++++++------ 4 files changed, 127 insertions(+), 42 deletions(-) diff --git a/admin/judges_manager.php b/admin/judges_manager.php index 44b57fe8..8c0b4b82 100644 --- a/admin/judges_manager.php +++ b/admin/judges_manager.php @@ -56,7 +56,7 @@ function openjudgeinfo(id) if(isset($_POST['show_what'])) { $show_what = $_POST['show_what']; } else { - $show_what = "all"; + $show_what = "cy_complete"; } print("
"); print("