Update dialplan_outbound_add.php (#3299)

This commit is contained in:
AlexanderDCrane 2018-08-27 20:35:50 -06:00 committed by FusionPBX
parent eb1cc5f7ee
commit 01917176ca
1 changed files with 14 additions and 14 deletions

View File

@ -847,18 +847,18 @@ function type_onchange(dialplan_detail_type) {
echo "<optgroup label='&nbsp; &nbsp;".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."'>"; echo "<optgroup label='&nbsp; &nbsp;".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."'>";
} }
if ($row['gateway'] == $gateway_2_name) { if ($row['gateway'] == $gateway_2_name) {
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\" selected=\"selected\">&nbsp; &nbsp;".$row['gateway']."</option>\n"; echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\" selected=\"selected\">&nbsp; &nbsp;".escape($row['gateway'])."</option>\n";
} }
else { else {
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\">&nbsp; &nbsp;".$row['gateway']."</option>\n"; echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\">&nbsp; &nbsp;".escape($row['gateway'])."</option>\n";
} }
} }
else { else {
if ($row['gateway'] == $gateway_2_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 { 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']; $previous_domain_uuid = $row['domain_uuid'];
@ -907,18 +907,18 @@ function type_onchange(dialplan_detail_type) {
echo "<optgroup label='&nbsp; &nbsp;".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."'>"; echo "<optgroup label='&nbsp; &nbsp;".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."'>";
} }
if ($row['gateway'] == $gateway_3_name) { if ($row['gateway'] == $gateway_3_name) {
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\" selected=\"selected\">&nbsp; &nbsp;".$row['gateway']."</option>\n"; echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\" selected=\"selected\">&nbsp; &nbsp;".escape($row['gateway'])."</option>\n";
} }
else { else {
echo "<option value=\"".$row['gateway_uuid'].":".$row['gateway']."\">&nbsp; &nbsp;".$row['gateway']."</option>\n"; echo "<option value=\"".escape($row['gateway_uuid']).":".escape($row['gateway'])."\">&nbsp; &nbsp;".escape($row['gateway'])."</option>\n";
} }
} }
else { else {
if ($row['gateway'] == $gateway_3_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 { 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']; $previous_domain_uuid = $row['domain_uuid'];
@ -998,7 +998,7 @@ function type_onchange(dialplan_detail_type) {
echo " ".$text['label-prefix']."\n"; echo " ".$text['label-prefix']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td colspan='4' class='vtable' align='left'>\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 "<br />\n";
echo $text['description-enter-prefix']."\n"; echo $text['description-enter-prefix']."\n";
echo "</td>\n"; echo "</td>\n";
@ -1009,7 +1009,7 @@ function type_onchange(dialplan_detail_type) {
echo " ".$text['label-limit']."\n"; echo " ".$text['label-limit']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td colspan='4' class='vtable' align='left'>\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 "<br />\n";
echo $text['description-limit']."\n"; echo $text['description-limit']."\n";
echo "</td>\n"; echo "</td>\n";
@ -1020,7 +1020,7 @@ function type_onchange(dialplan_detail_type) {
echo " ".$text['label-accountcode']."\n"; echo " ".$text['label-accountcode']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td colspan='4' class='vtable' align='left'>\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 "<br />\n";
echo $text['description-accountcode']."\n"; echo $text['description-accountcode']."\n";
echo "</td>\n"; echo "</td>\n";
@ -1031,7 +1031,7 @@ function type_onchange(dialplan_detail_type) {
echo " ".$text['label-toll_allow']."\n"; echo " ".$text['label-toll_allow']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td colspan='4' class='vtable' align='left'>\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 "<br />\n";
echo $text['description-enable-toll_allow']."\n"; echo $text['description-enable-toll_allow']."\n";
echo "</td>\n"; echo "</td>\n";
@ -1106,7 +1106,7 @@ function type_onchange(dialplan_detail_type) {
echo " ".$text['label-description']."\n"; echo " ".$text['label-description']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td colspan='4' class='vtable' align='left'>\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 "<br />\n";
echo $text['description-description']."\n"; echo $text['description-description']."\n";
echo "</td>\n"; echo "</td>\n";
@ -1115,7 +1115,7 @@ function type_onchange(dialplan_detail_type) {
echo "<tr>\n"; echo "<tr>\n";
echo " <td colspan='5' align='right'>\n"; echo " <td colspan='5' align='right'>\n";
if ($action == "update") { 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 " <br>";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n"; echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";