mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update voicemail to use the destination php class.
This commit is contained in:
@@ -249,6 +249,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|
||||||
|
//initialize the destinations object
|
||||||
|
$destination = new destinations;
|
||||||
|
|
||||||
//pre-populate the form
|
//pre-populate the form
|
||||||
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
|
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
|
||||||
$voicemail_uuid = check_str($_GET["id"]);
|
$voicemail_uuid = check_str($_GET["id"]);
|
||||||
@@ -395,9 +398,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
echo " <input class='formfld' style='width:70px' type='text' name='voicemail_options[".$c."][voicemail_option_digits]' maxlength='255' value='".$voicemail_option_digits."'>\n";
|
echo " <input class='formfld' style='width:70px' type='text' name='voicemail_options[".$c."][voicemail_option_digits]' maxlength='255' value='".$voicemail_option_digits."'>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left' nowrap='nowrap'>\n";
|
echo "<td class='vtable' align='left' nowrap='nowrap'>\n";
|
||||||
$tmp_select_value = '';
|
//switch_select_destination("ivr", $voicemail_options_label, 'voicemail_options['.$c.'][voicemail_option_param]', $tmp_select_value, "width:175px", $voicemail_option_action);
|
||||||
switch_select_destination("ivr", $voicemail_options_label, 'voicemail_options['.$c.'][voicemail_option_param]', $tmp_select_value, "width:175px", $voicemail_option_action);
|
echo $destination->select('ivr', 'voicemail_options['.$c.'][voicemail_option_param]', '');
|
||||||
unset($tmp_select_value);
|
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <select name='voicemail_options[".$c."][voicemail_option_order]' class='formfld' style='width:55px'>\n";
|
echo " <select name='voicemail_options[".$c."][voicemail_option_order]' class='formfld' style='width:55px'>\n";
|
||||||
|
|||||||
@@ -112,6 +112,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|
||||||
|
//initialize the destinations object
|
||||||
|
$destination = new destinations;
|
||||||
|
|
||||||
//pre-populate the form
|
//pre-populate the form
|
||||||
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
|
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
|
||||||
$voicemail_option_uuid = $_GET["id"];
|
$voicemail_option_uuid = $_GET["id"];
|
||||||
@@ -184,7 +187,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
if (strlen($voicemail_option_action.$voicemail_option_param) > 0) {
|
if (strlen($voicemail_option_action.$voicemail_option_param) > 0) {
|
||||||
$tmp_select_value = $voicemail_option_action.':'.$voicemail_option_param;
|
$tmp_select_value = $voicemail_option_action.':'.$voicemail_option_param;
|
||||||
}
|
}
|
||||||
switch_select_destination("ivr", $voicemail_options_label, "voicemail_option_param", $tmp_select_value, "width: 350px;", $voicemail_option_action);
|
//switch_select_destination("ivr", $voicemail_options_label, "voicemail_option_param", $tmp_select_value, "width: 350px;", $voicemail_option_action);
|
||||||
|
echo $destination->select('ivr', 'voicemail_option_param', $tmp_select_value);
|
||||||
unset($tmp_select_value);
|
unset($tmp_select_value);
|
||||||
|
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user