Update dialplan_outbound_add.php
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
require_once "resources/paging.php";
|
require_once "resources/paging.php";
|
||||||
|
|
||||||
//get the http post values and set theme as php variables
|
//get the http post values and set theme as php variables
|
||||||
if (count($_POST) > 0) {
|
if (is_array($_POST) > 0) {
|
||||||
//set the variables
|
//set the variables
|
||||||
$dialplan_name = check_str($_POST["dialplan_name"]);
|
$dialplan_name = check_str($_POST["dialplan_name"]);
|
||||||
$dialplan_order = check_str($_POST["dialplan_order"]);
|
$dialplan_order = check_str($_POST["dialplan_order"]);
|
||||||
@@ -67,8 +67,6 @@
|
|||||||
$accountcode = check_str($_POST["accountcode"]);
|
$accountcode = check_str($_POST["accountcode"]);
|
||||||
$toll_allow = check_str($_POST["toll_allow"]);
|
$toll_allow = check_str($_POST["toll_allow"]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//set the default type
|
//set the default type
|
||||||
$gateway_type = 'gateway';
|
$gateway_type = 'gateway';
|
||||||
$gateway_2_type = 'gateway';
|
$gateway_2_type = 'gateway';
|
||||||
@@ -561,7 +559,6 @@
|
|||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';
|
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($gateway_type == "transfer") { $dialplan_detail_type = 'transfer'; } else { $dialplan_detail_type = 'bridge'; }
|
if ($gateway_type == "transfer") { $dialplan_detail_type = 'transfer'; } else { $dialplan_detail_type = 'bridge'; }
|
||||||
$y++;
|
$y++;
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid();
|
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid();
|
||||||
@@ -797,7 +794,6 @@ function type_onchange(dialplan_detail_type) {
|
|||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$text['label-alt1']."\n";
|
echo " ".$text['label-alt1']."\n";
|
||||||
@@ -1017,7 +1013,6 @@ function type_onchange(dialplan_detail_type) {
|
|||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$text['label-order']."\n";
|
echo " ".$text['label-order']."\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user