Multilinguified Call Center and Active Call Center.
This commit is contained in:
@@ -34,6 +34,12 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//action add or update
|
||||
if (isset($_REQUEST["id"])) {
|
||||
$action = "update";
|
||||
@@ -81,25 +87,25 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
}
|
||||
|
||||
//check for all required data
|
||||
if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid<br>\n"; }
|
||||
if (strlen($queue_name) == 0) { $msg .= "Please provide: Queue Name<br>\n"; }
|
||||
if (strlen($queue_extension) == 0) { $msg .= "Please provide: Extension<br>\n"; }
|
||||
if (strlen($queue_strategy) == 0) { $msg .= "Please provide: Strategy<br>\n"; }
|
||||
//if (strlen($queue_moh_sound) == 0) { $msg .= "Please provide: Music on Hold<br>\n"; }
|
||||
//if (strlen($queue_record_template) == 0) { $msg .= "Please provide: Record Template<br>\n"; }
|
||||
//if (strlen($queue_time_base_score) == 0) { $msg .= "Please provide: Time Base Score<br>\n"; }
|
||||
//if (strlen($queue_max_wait_time) == 0) { $msg .= "Please provide: Max Wait Time<br>\n"; }
|
||||
//if (strlen($queue_max_wait_time_with_no_agent) == 0) { $msg .= "Please provide: Max Wait Time with no Agent<br>\n"; }
|
||||
//if (strlen($queue_max_wait_time_with_no_agent_time_reached) == 0) { $msg .= "Please provide: Max Wait Time with no Agent Time Reached.<br>\n"; }
|
||||
//if (strlen($queue_tier_rules_apply) == 0) { $msg .= "Please provide: Tier Rules Apply<br>\n"; }
|
||||
//if (strlen($queue_tier_rule_wait_second) == 0) { $msg .= "Please provide: Tier Rule Wait Second<br>\n"; }
|
||||
//if (strlen($queue_tier_rule_wait_multiply_level) == 0) { $msg .= "Please provide: Tier Rule Wait Multiply Level<br>\n"; }
|
||||
//if (strlen($queue_tier_rule_no_agent_no_wait) == 0) { $msg .= "Please provide: Tier Rule No Agent No Wait<br>\n"; }
|
||||
//if (strlen($queue_timeout_action) == 0) { $msg .= "Please provide: Timeout Action<br>\n"; }
|
||||
//if (strlen($queue_discard_abandoned_after) == 0) { $msg .= "Please provide: Discard Abandoned After<br>\n"; }
|
||||
//if (strlen($queue_abandoned_resume_allowed) == 0) { $msg .= "Please provide: Abandoned Resume Allowed<br>\n"; }
|
||||
//if (strlen($queue_cid_prefix) == 0) { $msg .= "Please provide: Caller ID Prefix<br>\n"; }
|
||||
//if (strlen($queue_description) == 0) { $msg .= "Please provide: Description<br>\n"; }
|
||||
if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid<br>\n"; }
|
||||
if (strlen($queue_name) == 0) { $msg .= $text['message-required'].$text['label-queue_name']."<br>\n"; }
|
||||
if (strlen($queue_extension) == 0) { $msg .= $text['message-required'].$text['label-extension']."<br>\n"; }
|
||||
if (strlen($queue_strategy) == 0) { $msg .= $text['message-required'].$text['label-strategy']."<br>\n"; }
|
||||
//if (strlen($queue_moh_sound) == 0) { $msg .= $text['message-required'].$text['label-music_on_hold']."<br>\n"; }
|
||||
//if (strlen($queue_record_template) == 0) { $msg .= $text['message-required'].$text['label-record_template']."<br>\n"; }
|
||||
//if (strlen($queue_time_base_score) == 0) { $msg .= $text['message-required'].$text['label-time_base_score']."<br>\n"; }
|
||||
//if (strlen($queue_max_wait_time) == 0) { $msg .= $text['message-required'].$text['label-max_wait_time']."<br>\n"; }
|
||||
//if (strlen($queue_max_wait_time_with_no_agent) == 0) { $msg .= $text['message-required'].$text['label-max_wait_time_with_no_agent']."<br>\n"; }
|
||||
//if (strlen($queue_max_wait_time_with_no_agent_time_reached) == 0) { $msg .= $text['message-required'].$text['label-max_wait_time_with_no_agent_time_reached']."<br>\n"; }
|
||||
//if (strlen($queue_tier_rules_apply) == 0) { $msg .= $text['message-required'].$text['label-tier_rules_apply']."<br>\n"; }
|
||||
//if (strlen($queue_tier_rule_wait_second) == 0) { $msg .= $text['message-required'].$text['label-tier_rule_wait_second']."<br>\n"; }
|
||||
//if (strlen($queue_tier_rule_wait_multiply_level) == 0) { $msg .= $text['message-required'].$text['label-tier_rule_wait_multiply_level']."<br>\n"; }
|
||||
//if (strlen($queue_tier_rule_no_agent_no_wait) == 0) { $msg .= $text['message-required'].$text['label-tier_rule_no_agent_no_wait']."<br>\n"; }
|
||||
//if (strlen($queue_timeout_action) == 0) { $msg .= $text['message-required'].$text['label-timeout_action']."<br>\n"; }
|
||||
//if (strlen($queue_discard_abandoned_after) == 0) { $msg .= $text['message-required'].$text['label-discard_abandoned_after']."<br>\n"; }
|
||||
//if (strlen($queue_abandoned_resume_allowed) == 0) { $msg .= $text['message-required'].$text['label-abandoned_resume_allowed']."<br>\n"; }
|
||||
//if (strlen($queue_cid_prefix) == 0) { $msg .= $text['message-required'].$text['label-caller_id_name_prefix']."<br>\n"; }
|
||||
//if (strlen($queue_description) == 0) { $msg .= $text['message-required'].$text['label-description']."<br>\n"; }
|
||||
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
require_once "includes/persistformvar.php";
|
||||
@@ -181,7 +187,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_queues.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo $text['message-add']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
@@ -227,7 +233,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_queues.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo $text['message-update']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
@@ -284,6 +290,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//show the header
|
||||
require_once "includes/header.php";
|
||||
if ($action == "add") {
|
||||
$page["title"] = $text['title-call_center_queue_add'];
|
||||
}
|
||||
if ($action == "update") {
|
||||
$page["title"] = $text['title-call_center_queue_edit'];
|
||||
}
|
||||
|
||||
//show the content
|
||||
echo "<div align='center'>";
|
||||
@@ -297,19 +309,19 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
if ($action == "add") {
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>Call Center Queue Add</b></td>\n";
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['header-call_center_queue_add']."</b></td>\n";
|
||||
}
|
||||
if ($action == "update") {
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>Call Center Queue Edit</b></td>\n";
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['header-call_center_queue_edit']."</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
if ($action == "update") {
|
||||
echo " <input type='button' class='btn' value='View' onclick=\"document.location.href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=$queue_name';\" />\n";
|
||||
echo " <input type='button' class='btn' value='Load' onclick=\"document.location.href='cmd.php?cmd=api+callcenter_config+queue+load+$queue_name@".$_SESSION['domain_name']."';\" />\n";
|
||||
echo " <input type='button' class='btn' value='Unload' onclick=\"document.location.href='cmd.php?cmd=api+callcenter_config+queue+unload+$queue_name@".$_SESSION['domain_name']."';\" />\n";
|
||||
echo " <input type='button' class='btn' value='Reload' onclick=\"document.location.href='cmd.php?cmd=api+callcenter_config+queue+reload+$queue_name@".$_SESSION['domain_name']."';\" />\n";
|
||||
echo " <input type='button' class='btn' value='".$text['button-view']."' onclick=\"document.location.href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=$queue_name';\" />\n";
|
||||
echo " <input type='button' class='btn' value='".$text['button-load']."' onclick=\"document.location.href='cmd.php?cmd=api+callcenter_config+queue+load+$queue_name@".$_SESSION['domain_name']."';\" />\n";
|
||||
echo " <input type='button' class='btn' value='".$text['button-unload']."' onclick=\"document.location.href='cmd.php?cmd=api+callcenter_config+queue+unload+$queue_name@".$_SESSION['domain_name']."';\" />\n";
|
||||
echo " <input type='button' class='btn' value='".$text['button-reload']."' onclick=\"document.location.href='cmd.php?cmd=api+callcenter_config+queue+reload+$queue_name@".$_SESSION['domain_name']."';\" />\n";
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='call_center_queues.php'\" value='Back'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='call_center_queues.php'\" value='".$text['button-back']."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -320,97 +332,97 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Queue Name:\n";
|
||||
echo " ".$text['label-queue_name'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_name' maxlength='255' value=\"$queue_name\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the queue name.\n";
|
||||
echo $text['description-queue_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Extension:\n";
|
||||
echo " ".$text['label-extension'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_extension' maxlength='255' value=\"$queue_extension\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the extension number.\n";
|
||||
echo $text['description-extension']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Strategy:\n";
|
||||
echo " ".$text['label-strategy'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='queue_strategy'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($queue_strategy == "ring-all") {
|
||||
echo " <option value='ring-all' selected='selected' >ring-all</option>\n";
|
||||
echo " <option value='ring-all' selected='selected' >".$text['option-ring_all']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='ring-all'>ring-all</option>\n";
|
||||
echo " <option value='ring-all'>".$text['option-ring_all']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "longest-idle-agent") {
|
||||
echo " <option value='longest-idle-agent' selected='selected' >longest-idle-agent</option>\n";
|
||||
echo " <option value='longest-idle-agent' selected='selected' >".$text['option-longest_idle_agent']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='longest-idle-agent'>longest-idle-agent</option>\n";
|
||||
echo " <option value='longest-idle-agent'>".$text['option-longest_idle_agent']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "round-robin") {
|
||||
echo " <option value='round-robin' selected='selected'>round-robin</option>\n";
|
||||
echo " <option value='round-robin' selected='selected'>".$text['option-round_robin']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='round-robin'>round-robin</option>\n";
|
||||
echo " <option value='round-robin'>".$text['option-round_robin']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "top-down") {
|
||||
echo " <option value='top-down' selected='selected'>top-down</option>\n";
|
||||
echo " <option value='top-down' selected='selected'>".$text['option-top_down']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='top-down'>top-down</option>\n";
|
||||
echo " <option value='top-down'>".$text['option-top_down']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "agent-with-least-talk-time") {
|
||||
echo " <option value='agent-with-least-talk-time' selected='selected'>agent-with-least-talk-time</option>\n";
|
||||
echo " <option value='agent-with-least-talk-time' selected='selected'>".$text['option-agent_with_least_talk_time']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='agent-with-least-talk-time'>agent-with-least-talk-time</option>\n";
|
||||
echo " <option value='agent-with-least-talk-time'>".$text['option-agent_with_least_talk_time']."</option>\n";
|
||||
}
|
||||
|
||||
if ($queue_strategy == "agent-with-fewest-calls") {
|
||||
echo " <option value='agent-with-fewest-calls' selected='selected'>agent-with-fewest-calls</option>\n";
|
||||
echo " <option value='agent-with-fewest-calls' selected='selected'>".$text['option-agent_with_fewest_calls']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='agent-with-fewest-calls'>agent-with-fewest-calls</option>\n";
|
||||
echo " <option value='agent-with-fewest-calls'>".$text['option-agent_with_fewest_calls']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "sequentially-by-agent-order") {
|
||||
echo " <option value='sequentially-by-agent-order' selected='selected'>sequentially-by-agent-order</option>\n";
|
||||
echo " <option value='sequentially-by-agent-order' selected='selected'>".$text['option-sequentially_by_agent_order']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='sequentially-by-agent-order'>sequentially-by-agent-order</option>\n";
|
||||
echo " <option value='sequentially-by-agent-order'>".$text['option-sequentially_by_agent_order']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "sequentially-by-next-agent-order") {
|
||||
echo " <option value='sequentially-by-next-agent-order' selected='selected'>sequentially-by-next-agent-order</option>\n";
|
||||
echo " <option value='sequentially-by-next-agent-order' selected='selected'>".$text['option-sequentially_by_next_agent_order']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='sequentially-by-next-agent-order'>sequentially-by-next-agent-order</option>\n";
|
||||
echo " <option value='sequentially-by-next-agent-order'>".$text['option-sequentially_by_next_agent_order']."</option>\n";
|
||||
}
|
||||
if ($queue_strategy == "random") {
|
||||
echo " <option value='random' selected='selected'>random</option>\n";
|
||||
echo " <option value='random' selected='selected'>".$text['option-random']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='random'>random</option>\n";
|
||||
echo " <option value='random'>".$text['option-random']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the queue strategy.\n";
|
||||
echo $text['description-strategy']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Music on Hold:\n";
|
||||
echo " ".$text['label-music_on_hold'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
||||
@@ -421,232 +433,232 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo $moh->select();
|
||||
|
||||
echo "<br />\n";
|
||||
echo "Enter the music on hold information.\n";
|
||||
echo $text['description-music_on_hold']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Record Template:\n";
|
||||
echo " ".$text['label-record_template'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_record_template' maxlength='255' value=\"$queue_record_template\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter a record template. \$\${base_dir}/recordings/archive/\${strftime(%Y)}/\${strftime(%b)}/\${strftime(%d)}/\${uuid}.wav\n";
|
||||
echo $text['description-record_template']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Time Base Score:\n";
|
||||
echo " ".$text['label-time_base_score'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='queue_time_base_score'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($queue_time_base_score == "system") {
|
||||
echo " <option value='system' selected='selected' >system</option>\n";
|
||||
echo " <option value='system' selected='selected' >".$text['option-system']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='system'>system</option>\n";
|
||||
echo " <option value='system'>".$text['option-system']."</option>\n";
|
||||
}
|
||||
if ($queue_time_base_score == "queue") {
|
||||
echo " <option value='queue' selected='selected' >queue</option>\n";
|
||||
echo " <option value='queue' selected='selected' >".$text['option-queue']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='queue'>queue</option>\n";
|
||||
echo " <option value='queue'>".$text['option-queue']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the time base score.\n";
|
||||
echo $text['description-time_base_score']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Max Wait Time:\n";
|
||||
echo " ".$text['label-max_wait_time'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_max_wait_time' maxlength='255' value='$queue_max_wait_time'>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the max wait time.\n";
|
||||
echo $text['description-max_wait_time']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Max Wait Time with no Agent:\n";
|
||||
echo " ".$text['label-max_wait_time_with_no_agent'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_max_wait_time_with_no_agent' maxlength='255' value='$queue_max_wait_time_with_no_agent'>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the max wait time with no agent.\n";
|
||||
echo $text['description-max_wait_time_with_no_agent']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Max Wait Time with no Agent time reached:\n";
|
||||
echo " ".$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='text' name='queue_max_wait_time_with_no_agent_time_reached' maxlength='255' value='$queue_max_wait_time_with_no_agent_time_reached'>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the max wait time with no agent time reached.\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 " Timeout Action:\n";
|
||||
echo " ".$text['label-timeout_action'].":\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", "", "queue_timeout_action", $queue_timeout_action, "", "");
|
||||
echo "<br />\n";
|
||||
echo "Set the action to perform when the max wait time is reached.\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 " Tier Rules Apply:\n";
|
||||
echo " ".$text['label-tier_rules_apply'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='queue_tier_rules_apply'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($queue_tier_rules_apply == "true") {
|
||||
echo " <option value='true' selected='selected' >true</option>\n";
|
||||
echo " <option value='true' selected='selected' >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>true</option>\n";
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
if ($queue_tier_rules_apply == "false") {
|
||||
echo " <option value='false' selected='selected' >false</option>\n";
|
||||
echo " <option value='false' selected='selected' >".$text['option-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>false</option>\n";
|
||||
echo " <option value='false'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "Set the tier rule rules apply to true or false.\n";
|
||||
echo $text['description-tier_rules_apply']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Tier Rule Wait Second:\n";
|
||||
echo " ".$text['label-tier_rule_wait_second'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_tier_rule_wait_second' maxlength='255' value='$queue_tier_rule_wait_second'>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the tier rule wait seconds.\n";
|
||||
echo $text['description-tier_rule_wait_second']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Tier Rule Wait Multiply Level:\n";
|
||||
echo " ".$text['label-tier_rule_wait_multiply_level'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='queue_tier_rule_wait_multiply_level'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($queue_tier_rule_wait_multiply_level == "true") {
|
||||
echo " <option value='true' selected='selected' >true</option>\n";
|
||||
echo " <option value='true' selected='selected' >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>true</option>\n";
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
if ($queue_tier_rule_wait_multiply_level == "false") {
|
||||
echo " <option value='false' selected='selected' >false</option>\n";
|
||||
echo " <option value='false' selected='selected' >".$text['option-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>false</option>\n";
|
||||
echo " <option value='false'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "Set the tier rule wait multiply level to true or false.\n";
|
||||
echo $text['description-tier_rule_wait_multiply_level']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Tier Rule No Agent No Wait:\n";
|
||||
echo " ".$text['label-tier_rule_no_agent_no_wait'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='queue_tier_rule_no_agent_no_wait'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($queue_tier_rule_no_agent_no_wait == "true") {
|
||||
echo " <option value='true' selected='selected' >true</option>\n";
|
||||
echo " <option value='true' selected='selected' >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>true</option>\n";
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
if ($queue_tier_rule_no_agent_no_wait == "false") {
|
||||
echo " <option value='false' selected='selected' >false</option>\n";
|
||||
echo " <option value='false' selected='selected' >".$text['option-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>false</option>\n";
|
||||
echo " <option value='false'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the tier rule no agent no wait.\n";
|
||||
echo $text['description-tier_rule_no_agent_no_wait']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Discard Abandoned After:\n";
|
||||
echo " ".$text['label-discard_abandoned_after'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_discard_abandoned_after' maxlength='255' value='$queue_discard_abandoned_after'>\n";
|
||||
echo "<br />\n";
|
||||
echo "Set the discard abandoned after seconds.\n";
|
||||
echo $text['description-discard_abandoned_after']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Abandoned Resume Allowed:\n";
|
||||
echo " ".$text['label-abandoned_resume_allowed'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='queue_abandoned_resume_allowed'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($queue_abandoned_resume_allowed == "true") {
|
||||
echo " <option value='true' selected='selected' >true</option>\n";
|
||||
echo " <option value='true' selected='selected' >".$text['option-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>true</option>\n";
|
||||
echo " <option value='true'>".$text['option-true']."</option>\n";
|
||||
}
|
||||
if ($queue_abandoned_resume_allowed == "false") {
|
||||
echo " <option value='false' selected='selected' >false</option>\n";
|
||||
echo " <option value='false' selected='selected' >".$text['option-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>false</option>\n";
|
||||
echo " <option value='false'>".$text['option-false']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo "Set the abandoned resume allowed to true or false.\n";
|
||||
echo $text['description-abandoned_resume_allowed']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " CID Prefix:\n";
|
||||
echo " ".$text['label-caller_id_name_prefix'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_cid_prefix' maxlength='255' value='$queue_cid_prefix'>\n";
|
||||
echo "<br />\n";
|
||||
echo "Set a prefix on the caller ID name.\n";
|
||||
echo $text['description-caller_id_name_prefix']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Description:\n";
|
||||
echo " ".$text['label-description'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='queue_description' maxlength='255' value=\"$queue_description\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the description.\n";
|
||||
echo $text['description-description']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo " <tr>\n";
|
||||
@@ -654,7 +666,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
if ($action == "update") {
|
||||
echo " <input type='hidden' name='call_center_queue_uuid' value='$call_center_queue_uuid'>\n";
|
||||
}
|
||||
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
||||
Reference in New Issue
Block a user