fixed dialplan copy

This commit is contained in:
Nuno Miguel Reis
2014-01-21 04:22:10 +00:00
parent b531bcc450
commit 93eec4554b
2 changed files with 15 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";
require_once "resources/classes/logging.php";
if (permission_exists('dialplan_add')
|| permission_exists('dialplan_edit')
|| permission_exists('inbound_route_add')
@@ -50,6 +51,9 @@ else {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//logger
$log = new Logging();
//set the action as an add or an update
if (isset($_REQUEST["id"])) {
$action = "update";
@@ -309,7 +313,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " </td>\n";
echo " <td width='70%' align='right'>\n";
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-copy']."' onclick=\"if (confirm('".$text['confirm-copy']."')){window.location='dialplan_copy.php?id=".$row['dialplan_uuid']."';}\" value='".$text['button-copy']."'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-copy']."' onclick=\"if (confirm('".$text['confirm-copy']."')){window.location='dialplan_copy.php?id=".$dialplan_uuid."';}\" value='".$text['button-copy']."'>\n";
if (strlen($app_uuid) > 0) {
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='dialplans.php?app_uuid=$app_uuid'\" value='".$text['button-back']."'>\n";
}
@@ -776,4 +780,4 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the footer
require_once "resources/footer.php";
?>
?>