From 76966f0f62a16a9e07102608ca6427f781643ce8 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 2 Apr 2008 17:27:10 +0000 Subject: [PATCH] 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.... --- admin/project_editor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/project_editor.php b/admin/project_editor.php index 6db675c..b3dd1b0 100644 --- a/admin/project_editor.php +++ b/admin/project_editor.php @@ -85,7 +85,8 @@ "req_electricity='".mysql_escape_string(stripslashes($_POST['req_electricity']))."', ". "req_special='".mysql_escape_string(stripslashes($_POST['req_special']))."', ". "summary='".mysql_escape_string(stripslashes($_POST['summary']))."', ". - "summarycountok='$summarycountok'". + "summarycountok='$summarycountok',". + "projectsort='".mysql_escape_string(stripslashes($_POST['projectsort']))."'". "WHERE id='".$_POST['id']."'"); echo mysql_error(); echo notice(i18n("Project information successfully updated")); @@ -184,6 +185,7 @@ if($projectinfo) echo i18n("(Max %1 characters)",array($config['participant_project_title_charmax'])); echo "\n"; echo "".i18n("Project Number").": projectnumber\" />"; + echo "".i18n("Project Sort").": projectsort\" />"; echo "".i18n("Age Category").": "; echo i18n($agecategories[$projectcategories_id]['category']); echo " (".i18n("Grades %1-%2",array($agecategories[$projectcategories_id]['mingrade'],$agecategories[$projectcategories_id]['maxgrade'])).")";