diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php index 67722e612d..30d6b6430b 100644 --- a/app/modules/module_edit.php +++ b/app/modules/module_edit.php @@ -53,6 +53,7 @@ else { $module_name = check_str($_POST["module_name"]); $module_description = check_str($_POST["module_description"]); $module_category = check_str($_POST["module_category"]); + $module_order = check_str($_POST["module_order"]); $module_enabled = check_str($_POST["module_enabled"]); $module_default_enabled = check_str($_POST["module_default_enabled"]); } @@ -95,6 +96,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "module_name, "; $sql .= "module_description, "; $sql .= "module_category, "; + $sql .= "module_order, "; $sql .= "module_enabled, "; $sql .= "module_default_enabled "; $sql .= ")"; @@ -105,6 +107,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'$module_name', "; $sql .= "'$module_description', "; $sql .= "'$module_category', "; + $sql .= "'$module_order', "; $sql .= "'$module_enabled', "; $sql .= "'$module_default_enabled' "; $sql .= ")"; @@ -124,6 +127,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "module_name = '$module_name', "; $sql .= "module_description = '$module_description', "; $sql .= "module_category = '$module_category', "; + $sql .= "module_order = '$module_order', "; $sql .= "module_enabled = '$module_enabled', "; $sql .= "module_default_enabled = '$module_default_enabled' "; $sql .= "where module_uuid = '$module_uuid' "; @@ -152,6 +156,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $module_name = $row["module_name"]; $module_description = $row["module_description"]; $module_category = $row["module_category"]; + $module_order = $row["module_order"]; $module_enabled = $row["module_enabled"]; $module_default_enabled = $row["module_default_enabled"]; break; //limit to 1 row @@ -207,6 +212,17 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo " ".$text['label-module_order']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo " ".$text['label-module_category']."\n"; @@ -292,4 +308,4 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo ""; require_once "resources/footer.php"; -?> \ No newline at end of file +?>