diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index a668223528..5e47b2b3d0 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -114,7 +114,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $x++; } - //check to see if the dialplan exists + //check to see if the dialplan exists if (strlen($dialplan_uuid) > 0) { $sql = "select dialplan_uuid from v_dialplans "; $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; @@ -174,7 +174,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $actions = explode(":", $row["dialplan_detail_data"]); $dialplan_detail_type = array_shift($actions); $dialplan_detail_data = join(':', $actions); - if (strlen($dialplan_detail_type) > 1) { + if (strlen($dialplan_detail_type) > 1) { if (isset($row["dialplan_detail_uuid"])) { $dialplan["dialplan_details"][$y]["dialplan_detail_uuid"] = $row["dialplan_detail_uuid"]; } @@ -192,7 +192,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $y++; } } - + //save the dialplan $orm = new orm; $orm->name('dialplans'); @@ -201,12 +201,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } $orm->save($dialplan); $dialplan_response = $orm->message; - + //get the destination_uuid if (strlen($dialplan_response['uuid']) > 0) { $_POST["dialplan_uuid"] = $dialplan_response['uuid']; } - + //save the destination $orm = new orm; $orm->name('destinations'); @@ -215,7 +215,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } $orm->save($_POST); $destination_response = $orm->message; - + //get the destination_uuid if (strlen($destination_response['uuid']) > 0) { $destination_uuid = $destination_response['uuid']; @@ -325,7 +325,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo "".$text['header-destination-edit']."\n"; } - echo "\n"; + echo ""; + echo " "; + echo " \n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index f04bc8d5e1..bd95f48d59 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -386,11 +386,11 @@ require_once "resources/require.php"; echo "\n"; echo "".$text['header-device']."\n"; echo "\n"; - echo " \n"; + echo " \n"; if ($action != "add") { echo " \n"; } - echo " \n"; + echo " \n"; echo "\n"; echo "\n"; diff --git a/app/dialplan/dialplan_add.php b/app/dialplan/dialplan_add.php index 6113c6e639..7dbf466349 100644 --- a/app/dialplan/dialplan_add.php +++ b/app/dialplan/dialplan_add.php @@ -308,6 +308,7 @@ echo " ".$text['header-dialplan-add']."\n"; echo " \n"; echo " \n"; echo " \n"; +echo " \n"; echo " \n"; echo " \n"; diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index c3d92883ff..e47c50139c 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -326,14 +326,14 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo" ".$text['title-dialplan_edit']."
\n"; echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; if (strlen($app_uuid) > 0) { echo " \n"; } else { echo " \n"; } + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 5223da59c5..e617ac58d8 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -592,6 +592,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " ".$text['title-dialplan-inbound-add']."\n"; echo " \n"; echo " \n"; + echo " \n"; if (permission_exists("inbound_route_advanced")) { if (permission_exists("inbound_route_edit") && $action == "advanced") { echo " \n"; @@ -600,7 +601,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; } } - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index b5307a700f..3aa50becfb 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -564,6 +564,7 @@ function type_onchange(dialplan_detail_type) { echo " \n"; echo " \n"; echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 981ed256df..d3bddfbfd5 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -794,11 +794,11 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo "".$text['header-extension-edit']."\n"; } echo "\n"; - echo " \n"; + echo " \n"; if ($action != "add") { echo " \n"; } - echo " \n"; + echo " \n"; echo "

\n"; echo "\n"; echo "\n"; diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index 0ea98249cd..5d3a3979a6 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -534,6 +534,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo " \n"; echo " \n"; + echo " \n"; echo "\n"; echo "\n"; diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index 26ba806810..d4d6f6648b 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -374,11 +374,11 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " ".$text['title-gateway']."
\n"; echo " "; echo " \n"; - echo " \n"; + echo " \n"; if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo " "; diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php index 5d4217439b..7826d0859f 100644 --- a/app/modules/module_edit.php +++ b/app/modules/module_edit.php @@ -189,7 +189,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo "".$text['header-module_edit']."\n"; } - echo "\n"; + echo ""; + echo " "; + echo " \n"; + echo "\n"; echo "\n"; echo "\n"; diff --git a/app/settings/setting_edit.php b/app/settings/setting_edit.php index 8b849f3002..58c4d9a31a 100644 --- a/app/settings/setting_edit.php +++ b/app/settings/setting_edit.php @@ -226,12 +226,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; if ($action == "add") { - echo "".$text['title-settings-add']."\n"; + echo "".$text['title-settings-add']."

\n"; } if ($action == "update") { - echo "".$text['title-settings-update']."\n"; + echo "".$text['title-settings-update']."

\n"; } - //echo "\n"; + echo ""; + if (permission_exists('setting_edit')) { + echo " \n"; + } + echo "

\n"; echo "\n"; echo "\n"; diff --git a/app/vars/var_edit.php b/app/vars/var_edit.php index b0f4535f9e..a0904ccafe 100644 --- a/app/vars/var_edit.php +++ b/app/vars/var_edit.php @@ -199,7 +199,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo "".$text['header-var_edit']."\n"; } - echo "\n"; + echo ""; + echo " "; + echo " \n"; + echo "\n"; echo "\n"; echo "\n"; diff --git a/app/xmpp/profile_edit.php b/app/xmpp/profile_edit.php index 30305dc016..35bf9e98be 100644 --- a/app/xmpp/profile_edit.php +++ b/app/xmpp/profile_edit.php @@ -44,8 +44,8 @@ function hide_advanced_config() { ?>
- '> '> + '> diff --git a/core/menu/menu_edit.php b/core/menu/menu_edit.php index bcc9519c7f..4bc8934edf 100644 --- a/core/menu/menu_edit.php +++ b/core/menu/menu_edit.php @@ -181,13 +181,15 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "".$text['header-menu-edit']."\n"; } echo "\n"; + echo " \n"; if (permission_exists('menu_restore') && $action == "update") { echo " "; } if (permission_exists('menu_restore') && $action == "update") { echo " "; } - echo " \n"; + echo " \n"; + echo ""; echo "\n"; echo "\n"; echo "\n"; diff --git a/core/menu/menu_item_edit.php b/core/menu/menu_item_edit.php index 9b5c0e4316..209dcfba40 100644 --- a/core/menu/menu_item_edit.php +++ b/core/menu/menu_item_edit.php @@ -325,7 +325,11 @@ else { echo $text['header-menu_item-add']; } echo "\n"; - echo "

\n"; + echo ""; + echo " "; + echo " \n"; + echo "

"; + echo "\n"; echo "\n"; echo " "; @@ -405,7 +409,7 @@ else { $sql .= "where domain_uuid = '".$domain_uuid."' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); - echo "\n"; echo "\n"; $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach($result as $field) { diff --git a/core/user_settings/user_edit.php b/core/user_settings/user_edit.php index f7a8239d5a..bdd296d67c 100644 --- a/core/user_settings/user_edit.php +++ b/core/user_settings/user_edit.php @@ -236,8 +236,8 @@ else { echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/core/users/usersupdate.php b/core/users/usersupdate.php index 1db64eb832..f97a1ce47b 100644 --- a/core/users/usersupdate.php +++ b/core/users/usersupdate.php @@ -345,8 +345,8 @@ else { echo "
".$text['title']."\n"; - echo " "; echo " "; + echo " "; echo "
"; echo "\n"; echo "\n"; echo "\n"; echo "\n";
".$text['header-user_edit']."\n"; - echo " "; echo " "; + echo " "; echo "