예제 #1
0
        echo "\t\t\t\t\t</td>\n";
        echo "\t\t\t\t\t<td class='list_control_icons'>";
        echo "<a href='ivr_menu_option_edit.php?id=" . $field['ivr_menu_option_uuid'] . "&ivr_menu_uuid=" . $field['ivr_menu_uuid'] . "' alt='edit'>{$v_link_label_edit}</a>";
        echo "<a href='ivr_menu_option_delete.php?id=" . $field['ivr_menu_option_uuid'] . "&ivr_menu_uuid=" . $field['ivr_menu_uuid'] . "&a=delete' alt='delete' onclick=\"return confirm('" . $text['confirm-delete'] . "')\">{$v_link_label_delete}</a>";
        echo "\t\t\t\t\t</td>\n";
        echo "\t\t\t\t</tr>\n";
    }
}
unset($sql, $result);
for ($c = 0; $c < 1; $c++) {
    echo "\t\t\t\t<tr>\n";
    echo "<td class='vtable' align='left'>\n";
    echo "  <input class='formfld' style='width:70px' type='text' name='ivr_menu_options[" . $c . "][ivr_menu_option_digits]' maxlength='255' value='{$ivr_menu_option_digits}'>\n";
    echo "</td>\n";
    echo "<td class='vtable' align='left' nowrap='nowrap'>\n";
    echo $destination->select('ivr', 'ivr_menu_options[' . $c . '][ivr_menu_option_param]', $destination_action);
    echo "</td>\n";
    echo "<td class='vtable' align='left'>\n";
    echo "\t<select name='ivr_menu_options[" . $c . "][ivr_menu_option_order]' class='formfld' style='width:55px'>\n";
    //echo "	<option></option>\n";
    if (strlen(htmlspecialchars($ivr_menu_option_order)) > 0) {
        echo "\t<option selected='yes' value='" . htmlspecialchars($ivr_menu_option_order) . "'>" . htmlspecialchars($ivr_menu_option_order) . "</option>\n";
    }
    $i = 0;
    while ($i <= 999) {
        if (strlen($i) == 1) {
            echo "\t<option value='00{$i}'>00{$i}</option>\n";
        }
        if (strlen($i) == 2) {
            echo "\t<option value='0{$i}'>0{$i}</option>\n";
        }
        echo "\t<input type=\"button\" class=\"btn\" name=\"\" alt=\"" . $text['button-add'] . "\" onclick=\"window.location='" . PROJECT_PATH . "/app/destinations/destinations.php'\" value='" . $text['button-add'] . "'>\n";
    }
    unset($prep_statement);
    echo "</td>\n";
    echo "</tr>\n";
}
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
if (permission_exists("inbound_route_edit") && $action == "advanced") {
    echo "    " . $text['label-action_1'] . "\n";
} else {
    echo "    " . $text['label-action'] . "\n";
}
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo $destination->select('dialplan', 'action_1', $action_1);
echo "</td>\n";
echo "</tr>\n";
echo "</td>\n";
echo "</tr>\n";
if (permission_exists("inbound_route_edit") && $action == "advanced") {
    echo "<tr>\n";
    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";
    echo $destination->select('dialplan', 'action_2', $action_2);
    echo "</td>\n";
    echo "</tr>\n";
}
echo "<tr>\n";
예제 #3
0
        if ($row["dialplan_detail_tag"] == "action" && $row["dialplan_detail_type"] == "set" && strpos($row["dialplan_detail_data"], "accountcode") == 0) {
            continue;
        }
        //exclude set:accountcode actions
        echo "\t\t\t\t<tr>\n";
        echo "\t\t\t\t\t<td style='padding-top: 5px; padding-right: 3px; white-space: nowrap;'>\n";
        if (strlen($row['dialplan_detail_uuid']) > 0) {
            echo "\t<input name='dialplan_details[" . $x . "][dialplan_detail_uuid]' type='hidden' value=\"" . $row['dialplan_detail_uuid'] . "\">\n";
        }
        echo "\t<input name='dialplan_details[" . $x . "][dialplan_detail_type]' type='hidden' value=\"" . $row['dialplan_detail_type'] . "\">\n";
        echo "\t<input name='dialplan_details[" . $x . "][dialplan_detail_order]' type='hidden' value=\"" . $order . "\">\n";
        $data = $row['dialplan_detail_data'];
        $label = explode("XML", $data);
        $divider = $row['dialplan_detail_type'] != '' ? ":" : null;
        $detail_action = $row['dialplan_detail_type'] . $divider . $row['dialplan_detail_data'];
        echo $destination->select('dialplan', 'dialplan_details[' . $x . '][dialplan_detail_data]', $detail_action);
        echo "\t\t\t\t\t</td>\n";
        echo "\t\t\t\t\t<td class='list_control_icons' style='width: 25px;'>";
        if (strlen($row['destination_uuid']) > 0) {
            echo "<a href='destination_delete.php?id=" . $row['destination_uuid'] . "&destination_uuid=" . $row['destination_uuid'] . "&a=delete' alt='delete' onclick=\"return confirm('" . $text['confirm-delete'] . "')\">{$v_link_label_delete}</a>";
        }
        echo "\t\t\t\t\t</td>\n";
        echo "\t\t\t\t</tr>\n";
    }
    $order = $order + 10;
    $x++;
}
echo "\t\t\t</table>\n";
echo "</td>\n";
echo "</tr>\n";
if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/fax/app_config.php")) {
예제 #4
0
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-max_wait_time_with_no_agent_time_reached'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "  <input class='formfld' type='number' name='queue_max_wait_time_with_no_agent_time_reached' maxlength='255' min='0' step='1' value='{$queue_max_wait_time_with_no_agent_time_reached}'>\n";
echo "<br />\n";
echo $text['description-max_wait_time_with_no_agent_time_reached'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo "    " . $text['label-timeout_action'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo $destination->select('dialplan', 'queue_timeout_action', $queue_timeout_action);
echo "<br />\n";
echo $text['description-timeout_action'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-tier_rules_apply'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "\t<select class='formfld' name='queue_tier_rules_apply'>\n";
if ($queue_tier_rules_apply == "true") {
    echo "\t<option value='true' selected='selected' >" . $text['option-true'] . "</option>\n";
} else {
    echo "\t<option value='true'>" . $text['option-true'] . "</option>\n";
}
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "\t" . $text['label-agent_password'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "  <input class='formfld' type='password' name='agent_password' autocomplete='off' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!\$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' min='1' step='1' value='{$agent_password}'>\n";
echo "<br />\n";
echo $text['description-agent_password'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo "\t" . $text['label-contact'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo $destination->select('user_contact', 'agent_contact', $agent_contact);
echo "<br />\n";
echo $text['description-contact'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "\t" . $text['label-status'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "\t<select class='formfld' name='agent_status'>\n";
if ($agent_status == "Logged Out") {
    echo "\t<option value='Logged Out' SELECTED >" . $text['option-logged_out'] . "</option>\n";
} else {
    echo "\t<option value='Logged Out'>" . $text['option-logged_out'] . "</option>\n";
}
예제 #6
0
echo "<br />\n";
echo $text['description-destination_label'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-destination'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$select_value = '';
//set the selected value
if (strlen($call_flow_app . $call_flow_data) > 0) {
    $select_value = $call_flow_app . ':' . $call_flow_data;
}
//show the destination list
echo $destination->select('dialplan', 'call_flow_destination', $select_value);
unset($select_value);
echo "<br />\n";
echo $text['description-destination'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "\t" . $text['label-alternate_label'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "\t<input class='formfld' type='text' name='call_flow_anti_label' maxlength='255' value=\"{$call_flow_anti_label}\">\n";
echo "<br />\n";
echo $text['description-alternate_label'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<td class='vtable' align='left'>\n";
echo "  <input class='formfld' type='text' name='voicemail_option_digits' maxlength='255' value='{$voicemail_option_digits}'>\n";
echo "<br />\n";
echo $text['description-option'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-destination'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$tmp_select_value = '';
if (strlen($voicemail_option_action . $voicemail_option_param) > 0) {
    $tmp_select_value = $voicemail_option_action . ':' . $voicemail_option_param;
}
echo $destination->select('ivr', 'voicemail_option_param', $tmp_select_value);
unset($tmp_select_value);
echo "<br />\n";
echo $text['description-destination'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-order'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "\t<select name='voicemail_option_order' class='formfld'>\n";
$i = 0;
while ($i <= 999) {
    $selected = $voicemail_option_order == $i ? "selected" : null;
    if (strlen($i) == 1) {
예제 #8
0
        echo "\t\t\t\t\t</td>\n";
        echo "\t\t\t\t\t<td class='list_control_icons'>";
        echo "<a href='voicemail_option_edit.php?id=" . $field['voicemail_option_uuid'] . "&voicemail_uuid=" . $field['voicemail_uuid'] . "' alt='" . $text['button-edit'] . "'>" . $v_link_label_edit . "</a>";
        echo "<a href='voicemail_option_delete.php?id=" . $field['voicemail_option_uuid'] . "&voicemail_uuid=" . $field['voicemail_uuid'] . "&a=delete' alt='" . $text['button-delete'] . "' onclick=\"return confirm('" . $text['confirm-delete'] . "')\">" . $v_link_label_delete . "</a>";
        echo "\t\t\t\t\t</td>\n";
        echo "\t\t\t\t</tr>\n";
    }
}
unset($sql, $result);
for ($c = 0; $c < 1; $c++) {
    echo "\t\t\t\t<tr>\n";
    echo "<td class='vtable' align='left'>\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 class='vtable' align='left' nowrap='nowrap'>\n";
    echo $destination->select('ivr', 'voicemail_options[' . $c . '][voicemail_option_param]', '');
    echo "</td>\n";
    echo "<td class='vtable' align='left'>\n";
    echo "\t<select name='voicemail_options[" . $c . "][voicemail_option_order]' class='formfld' style='width:55px'>\n";
    //echo "	<option></option>\n";
    if (strlen(htmlspecialchars($voicemail_option_order)) > 0) {
        echo "\t<option selected='yes' value='" . htmlspecialchars($voicemail_option_order) . "'>" . htmlspecialchars($voicemail_option_order) . "</option>\n";
    }
    $i = 0;
    while ($i <= 999) {
        if (strlen($i) == 1) {
            echo "\t<option value='00{$i}'>00{$i}</option>\n";
        }
        if (strlen($i) == 2) {
            echo "\t<option value='0{$i}'>0{$i}</option>\n";
        }
예제 #9
0
    }
    echo "\t\t\t\t</td>\n";
    echo "\t\t\t</tr>\n";
    $x++;
}
echo "\t\t\t</table>\n";
echo "\t\t\t" . $text['description-destinations'] . "\n";
echo "\t\t\t<br />\n";
echo "\t\t</td>";
echo "\t</tr>";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "\t" . $text['label-timeout_destination'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo $destination->select('dialplan', 'ring_group_timeout_action', $ring_group_timeout_action);
echo "\t<br />\n";
echo "\t" . $text['description-timeout_destination'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "\t" . $text['label-cid-name-prefix'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "  <input class='formfld' type='text' name='ring_group_cid_name_prefix' maxlength='255' value='{$ring_group_cid_name_prefix}'>\n";
echo "<br />\n";
echo $text['description-cid-name-prefix'] . " \n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
	echo "<br />\n";
	echo "The type is required when a custom destination is defined. \n";
	echo "</td>\n";
	echo "</tr>\n";
}
*/
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-destination'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$destination_action = '';
if (strlen($ivr_menu_option_action . $ivr_menu_option_param) > 0) {
    $destination_action = $ivr_menu_option_action . ':' . $ivr_menu_option_param;
}
echo $destination->select('ivr', 'ivr_menu_option_param', $destination_action);
unset($destination_action);
echo "<br />\n";
echo $text['description-destination'] . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-order'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "\t<select name='ivr_menu_option_order' class='formfld'>\n";
$i = 0;
while ($i <= 999) {
    $selected = $ivr_menu_option_order == $i ? "selected" : null;
    if (strlen($i) == 1) {