Update dialplan_outbound_add.php (#3299)
This commit is contained in:
parent
eb1cc5f7ee
commit
01917176ca
|
|
@ -847,18 +847,18 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo "<optgroup label=' ".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."'>";
|
||||
}
|
||||
if ($row['gateway'] == $gateway_2_name) {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\" selected=\"selected\"> ".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\" selected=\"selected\"> ".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\"> ".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\"> ".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($row['gateway'] == $gateway_2_name) {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\" selected=\"selected\">".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\" selected=\"selected\">".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\">".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\">".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
}
|
||||
$previous_domain_uuid = $row['domain_uuid'];
|
||||
|
|
@ -907,18 +907,18 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo "<optgroup label=' ".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."'>";
|
||||
}
|
||||
if ($row['gateway'] == $gateway_3_name) {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\" selected=\"selected\"> ".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\" selected=\"selected\"> ".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\"> ".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\"> ".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($row['gateway'] == $gateway_3_name) {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\" selected=\"selected\">".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\" selected=\"selected\">".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\">".$row['gateway']."</option>\n";
|
||||
echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\">".escape($row['gateway'])."</option>\n";
|
||||
}
|
||||
}
|
||||
$previous_domain_uuid = $row['domain_uuid'];
|
||||
|
|
@ -998,7 +998,7 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo " ".$text['label-prefix']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td colspan='4' class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='prefix_number' maxlength='255' value=\"$prefix_number\">\n";
|
||||
echo " <input class='formfld' type='text' name='prefix_number' maxlength='255' value=\"".escape($prefix_number)."\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-enter-prefix']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
@ -1009,7 +1009,7 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo " ".$text['label-limit']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td colspan='4' class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='limit' maxlength='255' value=\"$limit\">\n";
|
||||
echo " <input class='formfld' type='text' name='limit' maxlength='255' value=\"".escape($limit)."\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-limit']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
@ -1020,7 +1020,7 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo " ".$text['label-accountcode']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td colspan='4' class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='accountcode' maxlength='255' value=\"$accountcode\">\n";
|
||||
echo " <input class='formfld' type='text' name='accountcode' maxlength='255' value=\"".escape($accountcode)."\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-accountcode']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
@ -1031,7 +1031,7 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo " ".$text['label-toll_allow']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td colspan='4' class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='toll_allow' maxlength='255' value=\"$toll_allow\">\n";
|
||||
echo " <input class='formfld' type='text' name='toll_allow' maxlength='255' value=\"".escape($toll_allow)."\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-enable-toll_allow']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
@ -1106,7 +1106,7 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo " ".$text['label-description']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td colspan='4' class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='dialplan_description' maxlength='255' value=\"$dialplan_description\">\n";
|
||||
echo " <input class='formfld' type='text' name='dialplan_description' maxlength='255' value=\"".escape($dialplan_description)."\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-description']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
@ -1115,7 +1115,7 @@ function type_onchange(dialplan_detail_type) {
|
|||
echo "<tr>\n";
|
||||
echo " <td colspan='5' align='right'>\n";
|
||||
if ($action == "update") {
|
||||
echo " <input type='hidden' name='dialplan_uuid' value='$dialplan_uuid'>\n";
|
||||
echo " <input type='hidden' name='dialplan_uuid' value='".escape($dialplan_uuid)."'>\n";
|
||||
}
|
||||
echo " <br>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue