diff --git a/app/call_center/call_center_agent_delete.php b/app/call_center/call_center_agent_delete.php index c43d4c93d3..5c5749c96f 100644 --- a/app/call_center/call_center_agent_delete.php +++ b/app/call_center/call_center_agent_delete.php @@ -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']]; + } + if (count($_GET)>0) { $id = check_str($_GET["id"]); } @@ -74,7 +80,7 @@ if (count($_GET)>0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Delete Complete\n"; + echo $text['message-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/call_center/call_center_agent_edit.php b/app/call_center/call_center_agent_edit.php index b86517d33c..c3929b6222 100644 --- a/app/call_center/call_center_agent_edit.php +++ b/app/call_center/call_center_agent_edit.php @@ -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"; @@ -67,18 +73,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //check for all required data - //if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid
\n"; } - //if (strlen($agent_name) == 0) { $msg .= "Please provide: Agent Name
\n"; } - //if (strlen($agent_type) == 0) { $msg .= "Please provide: Type
\n"; } - //if (strlen($agent_call_timeout) == 0) { $msg .= "Please provide: Call Timeout
\n"; } - //if (strlen($agent_contact) == 0) { $msg .= "Please provide: Contact
\n"; } - //if (strlen($agent_status) == 0) { $msg .= "Please provide: Status
\n"; } - //if (strlen($agent_logout) == 0) { $msg .= "Please provide: Logout
\n"; } - //if (strlen($agent_no_answer_delay_time) == 0) { $msg .= "Please provide: No Answer Delay Time
\n"; } - //if (strlen($agent_max_no_answer) == 0) { $msg .= "Please provide: Max No Answer
\n"; } - //if (strlen($agent_wrap_up_time) == 0) { $msg .= "Please provide: Wrap Up Time
\n"; } - //if (strlen($agent_reject_delay_time) == 0) { $msg .= "Please provide: Reject Delay Time
\n"; } - //if (strlen($agent_busy_delay_time) == 0) { $msg .= "Please provide: Busy Delay Time
\n"; } + //if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; } + //if (strlen($agent_name) == 0) { $msg .= $text['message-required'].$text['label-agent_name']."
\n"; } + //if (strlen($agent_type) == 0) { $msg .= $text['message-required'].$text['label-type']."
\n"; } + //if (strlen($agent_call_timeout) == 0) { $msg .= $text['message-required'].$text['label-call_timeout']."
\n"; } + //if (strlen($agent_contact) == 0) { $msg .= $text['message-required'].$text['label-contact']."
\n"; } + //if (strlen($agent_status) == 0) { $msg .= $text['message-required'].$text['label-status']."
\n"; } + //if (strlen($agent_logout) == 0) { $msg .= $text['message-required'].$text['label-agent_logout']."
\n"; } + //if (strlen($agent_no_answer_delay_time) == 0) { $msg .= $text['message-required'].$text['label-no_answer_delay_time']."
\n"; } + //if (strlen($agent_max_no_answer) == 0) { $msg .= $text['message-required'].$text['label-max_no_answer']."
\n"; } + //if (strlen($agent_wrap_up_time) == 0) { $msg .= $text['message-required'].$text['label-wrap_up_time']."
\n"; } + //if (strlen($agent_reject_delay_time) == 0) { $msg .= $text['message-required'].$text['label-reject_delay_time']."
\n"; } + //if (strlen($agent_busy_delay_time) == 0) { $msg .= $text['message-required'].$text['label-busy_delay_time']."
\n"; } if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; require_once "includes/persistformvar.php"; @@ -114,7 +120,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //add the call_timeout $tmp_pos = strrpos($agent_contact, "}"); $tmp_first = substr($agent_contact, 0, $tmp_pos); - $tmp_last = substr($agent_contact, $tmp_pos); + $tmp_last = substr($agent_contact, $tmp_pos); $tmp_agent_contact = $tmp_first.',call_timeout='.$agent_call_timeout.$tmp_last; } else { @@ -228,7 +234,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Add Complete\n"; + echo $text['message-add']."\n"; echo "
\n"; require_once "includes/footer.php"; return; @@ -258,12 +264,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Update Complete\n"; + echo $text['message-update']."\n"; echo "
\n"; require_once "includes/footer.php"; return; } //if ($action == "update") - } //if ($_POST["persistformvar"] != "true") + } //if ($_POST["persistformvar"] != "true") } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) //pre-populate the form @@ -303,6 +309,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_agent_add']; + } + if ($action == "update") { + $page["title"] = $text['title-call_center_agent_edit']; + } //show the content echo "
"; @@ -316,12 +328,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; if ($action == "add") { - echo "\n"; + echo "\n"; } if ($action == "update") { - echo "\n"; + echo "\n"; } - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -506,7 +518,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
Call Center Agent Add".$text['header-call_center_agent_add']."Call Center Agent Edit".$text['header-call_center_agent_edit']."
\n"; @@ -331,7 +343,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Agent Name:\n"; + echo " ".$text['label-agent_name'].":\n"; echo "\n"; //---- Begin Select List -------------------- @@ -358,35 +370,35 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { unset($sql, $result); //---- End Select List -------------------- echo "
\n"; - echo "Select the agents name.\n"; + echo $text['description-agent_name']."\n"; echo "
\n"; - echo " Type:\n"; + echo " ".$text['label-type'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the agent type.\n"; + echo $text['description-type']."\n"; echo "
\n"; - echo " Call Timeout:\n"; + echo " ".$text['label-call_timeout'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the call timeout.\n"; + echo $text['description-call_timeout']."\n"; echo "
\n"; - echo " Contact:\n"; + echo " ".$text['label-contact'].":\n"; echo "\n"; @@ -394,110 +406,110 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { switch_select_destination("call_center_contact", "", "agent_contact", $agent_contact, "", ""); echo "
\n"; - echo "Select the contact number.\n"; + echo $text['description-contact']."\n"; echo "
\n"; - echo " Status:\n"; + echo " ".$text['label-status'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Select the agent status.\n"; + echo $text['description-status']."\n"; echo "
\n"; - echo " No Answer Delay Time:\n"; + echo " ".$text['label-no_answer_delay_time'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the agent no answer delay time in seconds.\n"; + echo $text['description-no_answer_delay_time']."\n"; echo "
\n"; - echo " Max No Answer:\n"; + echo " ".$text['label-max_no_answer'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter max no answer.\n"; + echo $text['description-max_no_answer']."\n"; echo "
\n"; - echo " Wrap Up Time:\n"; + echo " ".$text['label-wrap_up_time'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the wrap up time.\n"; + echo $text['description-wrap_up_time']."\n"; echo "
\n"; - echo " Reject Delay Time:\n"; + echo " ".$text['label-reject_delay_time'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the reject delay time.\n"; + echo $text['description-reject_delay_time']."\n"; echo "
\n"; - echo " Busy Delay Time:\n"; + echo " ".$text['label-busy_delay_time'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the agent busy delay time.\n"; + echo $text['description-busy_delay_time']."\n"; echo "
\n"; - echo " Agent Logout:\n"; + echo " ".$text['label-agent_logout'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the auto agent logout time in 00:00 format. Requires a service to enforce the logout time.\n"; + echo $text['description-agent_logout']."\n"; echo "
"; diff --git a/app/call_center/call_center_agent_status.php b/app/call_center/call_center_agent_status.php index 538eddfb5a..b175cb8aeb 100644 --- a/app/call_center/call_center_agent_status.php +++ b/app/call_center/call_center_agent_status.php @@ -33,7 +33,16 @@ else { echo "access denied"; exit; } + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + require_once "includes/header.php"; +$page["title"] = $text['title-call_center_agent_status']; + require_once "includes/paging.php"; //setup the event socket connection @@ -154,15 +163,15 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Call Center Agent Status".$text['header-call_center_agent_status']."\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo "List all the call center agents with the option to change the status of one or more agents.

\n"; + echo $text['description-call_center_agent_status']."

\n"; echo "
\n"; @@ -175,9 +184,9 @@ require_once "includes/paging.php"; echo "
\n"; echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; $x = 0; @@ -190,12 +199,12 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; } if ($c==0) { $c=1; } else { $c=0; } @@ -211,7 +220,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo " \n"; echo "
AgentStatusOptions".$text['label-agent']."".$text['label-status']."".$text['label-options']."
".$row['status']." "; echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
$paging_controls\n"; echo "
\n"; - echo " \n"; + echo " \n"; echo "
\n"; diff --git a/app/call_center/call_center_agents.php b/app/call_center/call_center_agents.php index d42ec88bd9..3515dd2035 100644 --- a/app/call_center/call_center_agents.php +++ b/app/call_center/call_center_agents.php @@ -33,7 +33,16 @@ else { echo "access denied"; exit; } + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + require_once "includes/header.php"; +$page["title"] = $text['title-call_center_agents']; + require_once "includes/paging.php"; //get http values and set them to php variables @@ -49,15 +58,15 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Call Center Agent List".$text['header-call_center_agents']."\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo "List of call center agents.

\n"; + echo $text['description-call_center_agents']."

\n"; echo "
\n"; @@ -79,9 +88,9 @@ require_once "includes/paging.php"; $rows_per_page = 100; $param = ""; $page = $_GET['page']; - if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } - list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); - $offset = $rows_per_page * $page; + if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } + list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); + $offset = $rows_per_page * $page; $sql = "select * from v_call_center_agents "; $sql .= "where domain_uuid = '$domain_uuid' "; @@ -109,18 +118,18 @@ require_once "includes/paging.php"; echo "\n"; //echo th_order_by('domain_uuid', 'domain_uuid', $order_by, $order); - echo th_order_by('agent_name', 'Agent Name', $order_by, $order); - echo th_order_by('agent_type', 'Type', $order_by, $order); - echo th_order_by('agent_call_timeout', 'Call Timeout', $order_by, $order); - echo th_order_by('agent_contact', 'Contact', $order_by, $order); - echo th_order_by('agent_max_no_answer', 'Max No Answer', $order_by, $order); - echo th_order_by('agent_status', 'Status', $order_by, $order); - //echo th_order_by('agent_wrap_up_time', 'Wrap Up Time', $order_by, $order); - //echo th_order_by('agent_reject_delay_time', 'Reject Delay Time', $order_by, $order); - //echo th_order_by('agent_busy_delay_time', 'Busy Delay Time', $order_by, $order); + echo th_order_by('agent_name', $text['label-agent_name'], $order_by, $order); + echo th_order_by('agent_type', $text['label-type'], $order_by, $order); + echo th_order_by('agent_call_timeout', $text['label-call_timeout'], $order_by, $order); + echo th_order_by('agent_contact', $text['label-contact'], $order_by, $order); + echo th_order_by('agent_max_no_answer', $text['label-max_no_answer'], $order_by, $order); + echo th_order_by('agent_status', $text['label-status'], $order_by, $order); + //echo th_order_by('agent_wrap_up_time', $text['label-wrap_up_time'], $order_by, $order); + //echo th_order_by('agent_reject_delay_time', $text['label-reject_delay_time'], $order_by, $order); + //echo th_order_by('agent_busy_delay_time', $text['label-busy_delay_time'], $order_by, $order); echo "\n"; if (permission_exists('call_center_agents_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "\n"; echo "\n"; @@ -136,16 +145,16 @@ require_once "includes/paging.php"; echo " ".$row[agent_call_timeout]." \n"; echo " ".$row[agent_contact]." \n"; echo " ".$row[agent_max_no_answer]." \n"; - echo " ".$row[agent_status]." \n"; + echo " ".$row[agent_status]." \n"; //echo " ".$row[agent_wrap_up_time]." \n"; //echo " ".$row[agent_reject_delay_time]." \n"; //echo " ".$row[agent_busy_delay_time]." \n"; echo " \n"; if (permission_exists('call_center_agents_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('call_center_agents_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } //echo " \n"; //echo " \n"; @@ -164,7 +173,7 @@ require_once "includes/paging.php"; echo " $paging_controls\n"; echo " \n"; if (permission_exists('call_center_agents_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo " \n"; echo " \n"; diff --git a/app/call_center/call_center_queue_delete.php b/app/call_center/call_center_queue_delete.php index abf227056b..2a83db9609 100644 --- a/app/call_center/call_center_queue_delete.php +++ b/app/call_center/call_center_queue_delete.php @@ -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']]; + } + if (count($_GET) > 0) { $id = check_str($_GET["id"]); } @@ -90,7 +96,7 @@ if (strlen($id) > 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Delete Complete\n"; + echo $text['message-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/call_center/call_center_queue_edit.php b/app/call_center/call_center_queue_edit.php index a6ee93b2d8..b602ebb952 100644 --- a/app/call_center/call_center_queue_edit.php +++ b/app/call_center/call_center_queue_edit.php @@ -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
\n"; } - if (strlen($queue_name) == 0) { $msg .= "Please provide: Queue Name
\n"; } - if (strlen($queue_extension) == 0) { $msg .= "Please provide: Extension
\n"; } - if (strlen($queue_strategy) == 0) { $msg .= "Please provide: Strategy
\n"; } - //if (strlen($queue_moh_sound) == 0) { $msg .= "Please provide: Music on Hold
\n"; } - //if (strlen($queue_record_template) == 0) { $msg .= "Please provide: Record Template
\n"; } - //if (strlen($queue_time_base_score) == 0) { $msg .= "Please provide: Time Base Score
\n"; } - //if (strlen($queue_max_wait_time) == 0) { $msg .= "Please provide: Max Wait Time
\n"; } - //if (strlen($queue_max_wait_time_with_no_agent) == 0) { $msg .= "Please provide: Max Wait Time with no Agent
\n"; } - //if (strlen($queue_max_wait_time_with_no_agent_time_reached) == 0) { $msg .= "Please provide: Max Wait Time with no Agent Time Reached.
\n"; } - //if (strlen($queue_tier_rules_apply) == 0) { $msg .= "Please provide: Tier Rules Apply
\n"; } - //if (strlen($queue_tier_rule_wait_second) == 0) { $msg .= "Please provide: Tier Rule Wait Second
\n"; } - //if (strlen($queue_tier_rule_wait_multiply_level) == 0) { $msg .= "Please provide: Tier Rule Wait Multiply Level
\n"; } - //if (strlen($queue_tier_rule_no_agent_no_wait) == 0) { $msg .= "Please provide: Tier Rule No Agent No Wait
\n"; } - //if (strlen($queue_timeout_action) == 0) { $msg .= "Please provide: Timeout Action
\n"; } - //if (strlen($queue_discard_abandoned_after) == 0) { $msg .= "Please provide: Discard Abandoned After
\n"; } - //if (strlen($queue_abandoned_resume_allowed) == 0) { $msg .= "Please provide: Abandoned Resume Allowed
\n"; } - //if (strlen($queue_cid_prefix) == 0) { $msg .= "Please provide: Caller ID Prefix
\n"; } - //if (strlen($queue_description) == 0) { $msg .= "Please provide: Description
\n"; } + if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; } + if (strlen($queue_name) == 0) { $msg .= $text['message-required'].$text['label-queue_name']."
\n"; } + if (strlen($queue_extension) == 0) { $msg .= $text['message-required'].$text['label-extension']."
\n"; } + if (strlen($queue_strategy) == 0) { $msg .= $text['message-required'].$text['label-strategy']."
\n"; } + //if (strlen($queue_moh_sound) == 0) { $msg .= $text['message-required'].$text['label-music_on_hold']."
\n"; } + //if (strlen($queue_record_template) == 0) { $msg .= $text['message-required'].$text['label-record_template']."
\n"; } + //if (strlen($queue_time_base_score) == 0) { $msg .= $text['message-required'].$text['label-time_base_score']."
\n"; } + //if (strlen($queue_max_wait_time) == 0) { $msg .= $text['message-required'].$text['label-max_wait_time']."
\n"; } + //if (strlen($queue_max_wait_time_with_no_agent) == 0) { $msg .= $text['message-required'].$text['label-max_wait_time_with_no_agent']."
\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']."
\n"; } + //if (strlen($queue_tier_rules_apply) == 0) { $msg .= $text['message-required'].$text['label-tier_rules_apply']."
\n"; } + //if (strlen($queue_tier_rule_wait_second) == 0) { $msg .= $text['message-required'].$text['label-tier_rule_wait_second']."
\n"; } + //if (strlen($queue_tier_rule_wait_multiply_level) == 0) { $msg .= $text['message-required'].$text['label-tier_rule_wait_multiply_level']."
\n"; } + //if (strlen($queue_tier_rule_no_agent_no_wait) == 0) { $msg .= $text['message-required'].$text['label-tier_rule_no_agent_no_wait']."
\n"; } + //if (strlen($queue_timeout_action) == 0) { $msg .= $text['message-required'].$text['label-timeout_action']."
\n"; } + //if (strlen($queue_discard_abandoned_after) == 0) { $msg .= $text['message-required'].$text['label-discard_abandoned_after']."
\n"; } + //if (strlen($queue_abandoned_resume_allowed) == 0) { $msg .= $text['message-required'].$text['label-abandoned_resume_allowed']."
\n"; } + //if (strlen($queue_cid_prefix) == 0) { $msg .= $text['message-required'].$text['label-caller_id_name_prefix']."
\n"; } + //if (strlen($queue_description) == 0) { $msg .= $text['message-required'].$text['label-description']."
\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 "\n"; echo "
\n"; - echo "Add Complete\n"; + echo $text['message-add']."\n"; echo "
\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 "\n"; echo "
\n"; - echo "Update Complete\n"; + echo $text['message-update']."\n"; echo "
\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 "
"; @@ -297,19 +309,19 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; if ($action == "add") { - echo "\n"; + echo "\n"; } if ($action == "update") { - echo "\n"; + echo "\n"; } echo "\n"; echo "\n"; echo "\n"; @@ -320,97 +332,97 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -654,7 +666,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
Call Center Queue Add".$text['header-call_center_queue_add']."Call Center Queue Edit".$text['header-call_center_queue_edit']."\n"; if ($action == "update") { - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; } - echo " \n"; + echo " \n"; echo "
\n"; - echo " Queue Name:\n"; + echo " ".$text['label-queue_name'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the queue name.\n"; + echo $text['description-queue_name']."\n"; echo "
\n"; - echo " Extension:\n"; + echo " ".$text['label-extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the extension number.\n"; + echo $text['description-extension']."\n"; echo "
\n"; - echo " Strategy:\n"; + echo " ".$text['label-strategy'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the queue strategy.\n"; + echo $text['description-strategy']."\n"; echo "
\n"; - echo " Music on Hold:\n"; + echo " ".$text['label-music_on_hold'].":\n"; echo "\n"; @@ -421,232 +433,232 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo $moh->select(); echo "
\n"; - echo "Enter the music on hold information.\n"; + echo $text['description-music_on_hold']."\n"; echo "
\n"; - echo " Record Template:\n"; + echo " ".$text['label-record_template'].":\n"; echo "\n"; echo " \n"; echo "
\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 "
\n"; - echo " Time Base Score:\n"; + echo " ".$text['label-time_base_score'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the time base score.\n"; + echo $text['description-time_base_score']."\n"; echo "
\n"; - echo " Max Wait Time:\n"; + echo " ".$text['label-max_wait_time'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the max wait time.\n"; + echo $text['description-max_wait_time']."\n"; echo "
\n"; - echo " Max Wait Time with no Agent:\n"; + echo " ".$text['label-max_wait_time_with_no_agent'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the max wait time with no agent.\n"; + echo $text['description-max_wait_time_with_no_agent']."\n"; echo "
\n"; - echo " Max Wait Time with no Agent time reached:\n"; + echo " ".$text['label-max_wait_time_with_no_agent_time_reached'].":\n"; echo "\n"; echo " \n"; echo "
\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 "
\n"; - echo " Timeout Action:\n"; + echo " ".$text['label-timeout_action'].":\n"; echo "\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 "
\n"; - echo "Set the action to perform when the max wait time is reached.\n"; + echo $text['description-timeout_action']."\n"; echo "
\n"; - echo " Tier Rules Apply:\n"; + echo " ".$text['label-tier_rules_apply'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Set the tier rule rules apply to true or false.\n"; + echo $text['description-tier_rules_apply']."\n"; echo "
\n"; - echo " Tier Rule Wait Second:\n"; + echo " ".$text['label-tier_rule_wait_second'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the tier rule wait seconds.\n"; + echo $text['description-tier_rule_wait_second']."\n"; echo "
\n"; - echo " Tier Rule Wait Multiply Level:\n"; + echo " ".$text['label-tier_rule_wait_multiply_level'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Set the tier rule wait multiply level to true or false.\n"; + echo $text['description-tier_rule_wait_multiply_level']."\n"; echo "
\n"; - echo " Tier Rule No Agent No Wait:\n"; + echo " ".$text['label-tier_rule_no_agent_no_wait'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the tier rule no agent no wait.\n"; + echo $text['description-tier_rule_no_agent_no_wait']."\n"; echo "
\n"; - echo " Discard Abandoned After:\n"; + echo " ".$text['label-discard_abandoned_after'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Set the discard abandoned after seconds.\n"; + echo $text['description-discard_abandoned_after']."\n"; echo "
\n"; - echo " Abandoned Resume Allowed:\n"; + echo " ".$text['label-abandoned_resume_allowed'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Set the abandoned resume allowed to true or false.\n"; + echo $text['description-abandoned_resume_allowed']."\n"; echo "
\n"; - echo " CID Prefix:\n"; + echo " ".$text['label-caller_id_name_prefix'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Set a prefix on the caller ID name.\n"; + echo $text['description-caller_id_name_prefix']."\n"; echo "
\n"; - echo " Description:\n"; + echo " ".$text['label-description'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the description.\n"; + echo $text['description-description']."\n"; echo "
"; diff --git a/app/call_center/call_center_queues.php b/app/call_center/call_center_queues.php index 89484a2a53..ff8a886ced 100644 --- a/app/call_center/call_center_queues.php +++ b/app/call_center/call_center_queues.php @@ -33,7 +33,16 @@ else { echo "access denied"; exit; } + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + require_once "includes/header.php"; +$page["title"] = $text['title-call_center_queues']; + require_once "includes/paging.php"; //get http variables and set as php variables @@ -49,15 +58,15 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Call Center Queue".$text['header-call_center_queues']."\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo "List of queues for the call center.

\n"; + echo $text['description-call_center_queues']."

\n"; echo "
\n"; @@ -79,9 +88,9 @@ require_once "includes/paging.php"; $rows_per_page = 100; $param = ""; $page = $_GET['page']; - if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } - list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); - $offset = $rows_per_page * $page; + if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } + list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); + $offset = $rows_per_page * $page; $sql = "select * from v_call_center_queues "; $sql .= "where domain_uuid = '$domain_uuid' "; @@ -106,24 +115,24 @@ require_once "includes/paging.php"; echo "
\n"; echo "\n"; echo "\n"; - echo th_order_by('queue_name', 'Queue Name', $order_by, $order); - echo th_order_by('queue_extension', 'Extension', $order_by, $order); - echo th_order_by('queue_strategy', 'Strategy', $order_by, $order); - //echo th_order_by('queue_moh_sound', 'Music On Hold', $order_by, $order); - //echo th_order_by('queue_record_template', 'Record Template', $order_by, $order); - //echo th_order_by('queue_time_base_score', 'Time Base Score', $order_by, $order); - //echo th_order_by('queue_max_wait_time', 'Max Wait Time', $order_by, $order); - //echo th_order_by('queue_max_wait_time_with_no_agent', 'Max Wait Time With No Agent', $order_by, $order); - echo th_order_by('queue_tier_rules_apply', 'Tier Rules Apply', $order_by, $order); - //echo th_order_by('queue_tier_rule_wait_second', 'Tier Rule Wait Second', $order_by, $order); - //echo th_order_by('queue_tier_rule_no_agent_no_wait', 'Tier Rule No Agent No Wait', $order_by, $order); - //echo th_order_by('queue_discard_abandoned_after', 'Discard Abandoned After', $order_by, $order); - //echo th_order_by('queue_abandoned_resume_allowed', 'Abandoned Resume Allowed', $order_by, $order); - //echo th_order_by('queue_tier_rule_wait_multiply_level', 'Tier Rule Wait Multiply Level', $order_by, $order); - echo th_order_by('queue_description', 'Description', $order_by, $order); + echo th_order_by('queue_name', $text['label-queue_name'], $order_by, $order); + echo th_order_by('queue_extension', $text['label-extension'], $order_by, $order); + echo th_order_by('queue_strategy', $text['label-strategy'], $order_by, $order); + //echo th_order_by('queue_moh_sound', $text['label-music_on_hold'], $order_by, $order); + //echo th_order_by('queue_record_template', $text['label-record_template'], $order_by, $order); + //echo th_order_by('queue_time_base_score', $text['label-time_base_score'], $order_by, $order); + //echo th_order_by('queue_max_wait_time', $text['label-max_wait_time'], $order_by, $order); + //echo th_order_by('queue_max_wait_time_with_no_agent', $text['label-max_wait_time_with_no_agent'], $order_by, $order); + echo th_order_by('queue_tier_rules_apply', $text['label-tier_rules_apply'], $order_by, $order); + //echo th_order_by('queue_tier_rule_wait_second', $text['label-tier_rule_wait_second'], $order_by, $order); + //echo th_order_by('queue_tier_rule_no_agent_no_wait', $text['label-tier_rule_no_agent_no_wait'], $order_by, $order); + //echo th_order_by('queue_discard_abandoned_after', $text['label-discard_abandoned_after'], $order_by, $order); + //echo th_order_by('queue_abandoned_resume_allowed', $text['label-abandoned_resume_allowed'], $order_by, $order); + //echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order); + echo th_order_by('queue_description', $text['label-description'], $order_by, $order); echo "\n"; echo "\n"; @@ -148,10 +157,10 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo "\n"; @@ -168,7 +177,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo " \n"; diff --git a/app/call_center/call_center_tier_delete.php b/app/call_center/call_center_tier_delete.php index c84e7f4bd1..f57ebee664 100644 --- a/app/call_center/call_center_tier_delete.php +++ b/app/call_center/call_center_tier_delete.php @@ -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']]; + } + //get the id if (count($_GET)>0) { $id = check_str($_GET["id"]); @@ -79,7 +85,7 @@ else { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Delete Complete\n"; + echo $text['message-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/call_center/call_center_tier_edit.php b/app/call_center/call_center_tier_edit.php index de83d2d3dc..b742bc5296 100644 --- a/app/call_center/call_center_tier_edit.php +++ b/app/call_center/call_center_tier_edit.php @@ -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"; @@ -59,11 +65,11 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //check for all required data - //if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid
\n"; } - //if (strlen($agent_name) == 0) { $msg .= "Please provide: Agent Name
\n"; } - //if (strlen($queue_name) == 0) { $msg .= "Please provide: Queue Name
\n"; } - //if (strlen($tier_level) == 0) { $msg .= "Please provide: Tier Level
\n"; } - //if (strlen($tier_position) == 0) { $msg .= "Please provide: Tier Position
\n"; } + //if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; } + //if (strlen($agent_name) == 0) { $msg .= $text['message-required'].$text['label-agent_name']."
\n"; } + //if (strlen($queue_name) == 0) { $msg .= $text['message-required'].$text['label-queue_name']."
\n"; } + //if (strlen($tier_level) == 0) { $msg .= $text['message-required'].$text['label-tier_level']."
\n"; } + //if (strlen($tier_position) == 0) { $msg .= $text['message-required'].$text['label-tier_position']."
\n"; } if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; require_once "includes/persistformvar.php"; @@ -134,7 +140,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Add Complete\n"; + echo $text['message-add']."\n"; echo "
\n"; require_once "includes/footer.php"; return; @@ -157,12 +163,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Update Complete\n"; + echo $text['message-update']."\n"; echo "
\n"; require_once "includes/footer.php"; return; } //if ($action == "update") - } //if ($_POST["persistformvar"] != "true") + } //if ($_POST["persistformvar"] != "true") } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) //pre-populate the form @@ -187,6 +193,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_tier_add']; + } + if ($action == "update") { + $page["title"] = $text['title-call_center_tier_edit']; + } //show the content echo "
"; @@ -201,22 +213,22 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; if (permission_exists('call_center_queues_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "
".$row[queue_description]." \n"; if (permission_exists('call_center_queues_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('call_center_queues_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
$paging_controls\n"; if (permission_exists('call_center_queues_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "
\n"; echo "\n"; if ($action == "add") { - echo "\n"; + echo "\n"; } if ($action == "update") { - echo "\n"; + echo "\n"; } - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -421,7 +433,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
Call Center Tier Add".$text['header-call_center_tier_add']."Call Center Tier Edit".$text['header-call_center_tier_edit']."
\n"; - echo "List all tiers. Tiers assign agents to queues.

\n"; + echo $text['description-call_center_tiers']."

\n"; echo "
\n"; - echo " Agent Name:\n"; + echo " ".$text['label-agent_name'].":\n"; echo "\n"; @@ -245,13 +257,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //---- End Select List -------------------- echo "
\n"; - echo "Select the agent name.\n"; + echo $text['description-agent']."\n"; echo "
\n"; - echo " Queue Name:\n"; + echo " ".$text['label-queue_name'].":\n"; echo "\n"; @@ -279,66 +291,66 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //---- End Select List -------------------- echo "
\n"; - echo "Select the queue name.\n"; + echo $text['description-options']."\n"; echo "
\n"; - echo " Tier Level:\n"; + echo " ".$text['label-tier_level'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Select the tier level.\n"; + echo $text['description-tier_level']."\n"; echo "
\n"; - echo " Tier Position:\n"; + echo " ".$text['label-tier_position'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Select the tier position.\n"; + echo $text['description-tier_position']."\n"; echo "
"; diff --git a/app/call_center/call_center_tiers.php b/app/call_center/call_center_tiers.php index e9a79419de..487ac92092 100644 --- a/app/call_center/call_center_tiers.php +++ b/app/call_center/call_center_tiers.php @@ -33,7 +33,16 @@ else { echo "access denied"; exit; } + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + require_once "includes/header.php"; +$page["title"] = $text['title-call_center_tiers']; + require_once "includes/paging.php"; //get http variables and set as php variables @@ -49,14 +58,14 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Call Center Tier List".$text['header-call_center_tiers']."\n"; - echo " \n"; + echo " \n"; echo "
\n"; - echo "List all tiers. Tiers assign agents to queues.

\n"; + echo $text['description-call_center_tiers']."

\n"; echo "
\n"; @@ -78,9 +87,9 @@ require_once "includes/paging.php"; $rows_per_page = 100; $param = ""; $page = $_GET['page']; - if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } - list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); - $offset = $rows_per_page * $page; + if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } + list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); + $offset = $rows_per_page * $page; $sql = "select * from v_call_center_tiers "; $sql .= "where domain_uuid = '$domain_uuid' "; @@ -106,13 +115,13 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - echo th_order_by('agent_name', 'Agent Name', $order_by, $order); - echo th_order_by('queue_name', 'Queue Name', $order_by, $order); - echo th_order_by('tier_level', 'Tier Level', $order_by, $order); - echo th_order_by('tier_position', 'Tier Position', $order_by, $order); + echo th_order_by('agent_name', $text['label-agent_name'], $order_by, $order); + echo th_order_by('queue_name', $text['label-queue_name'], $order_by, $order); + echo th_order_by('tier_level', $text['label-tier_level'], $order_by, $order); + echo th_order_by('tier_position', $text['label-tier_position'], $order_by, $order); echo "\n"; echo "\n"; @@ -128,10 +137,10 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo "\n"; @@ -149,7 +158,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo " \n"; diff --git a/app/call_center_active/call_center_active.php b/app/call_center_active/call_center_active.php index 7568494d10..d0ff857431 100644 --- a/app/call_center_active/call_center_active.php +++ b/app/call_center_active/call_center_active.php @@ -34,11 +34,19 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //get the queue_name and set it as a variable $queue_name = $_GET[queue_name]; //get the header require_once "includes/header.php"; + $page["title"] = $text['title-call_center_queue_activity']; + ?>
\n"; if (permission_exists('call_center_tiers_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "
".$row[tier_position]." \n"; if (permission_exists('call_center_tiers_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('call_center_tiers_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
$paging_controls\n"; if (permission_exists('call_center_tiers_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "