Update module_edit.php

Add module order to module_edit.php.
This commit is contained in:
FusionPBX 2016-05-24 23:16:30 -06:00
parent e1e3ad0ba9
commit e5af4a09fe
1 changed files with 17 additions and 1 deletions

View File

@ -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 "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-module_order']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='module_order' maxlength='255' value=\"$module_order\">\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-module_category']."\n";
@ -292,4 +308,4 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</form>";
require_once "resources/footer.php";
?>
?>