Remove switch_select_destination function from the remaining features that used it and replace with the destination php class.

This commit is contained in:
markjcrane
2015-08-07 15:06:07 -05:00
parent 6a767846e6
commit e9b93fd426
9 changed files with 18 additions and 986 deletions

View File

@@ -259,6 +259,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
return;
} //end if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
//initialize the destinations object
$destination = new destinations;
?><script type="text/javascript">
<!--
function type_onchange(dialplan_detail_type) {
@@ -530,10 +533,7 @@ echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-action_1']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
//switch_select_destination(select_type, select_label, select_name, select_value, select_style, action);
switch_select_destination("dialplan", "", "action_1", $action_1, "", "");
echo $destination->select('dialplan', 'action_1', $action_1);
echo "</td>\n";
echo "</tr>\n";
@@ -545,10 +545,7 @@ echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-action_2']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
//switch_select_destination(select_type, select_label, select_name, select_value, select_style, action);
switch_select_destination("dialplan", "", "action_2", $action_2, "", "");
echo $destination->select('dialplan', 'action_2', $action_2);
echo "</td>\n";
echo "</tr>\n";