diff --git a/app/call_center/app_config.php b/app/call_center/app_config.php index 09aa0f37ec..5f202c3d11 100644 --- a/app/call_center/app_config.php +++ b/app/call_center/app_config.php @@ -13,10 +13,10 @@ $apps[$x]['description']['de-de'] = ""; $apps[$x]['description']['de-ch'] = ""; $apps[$x]['description']['de-at'] = ""; - $apps[$x]['description']['fr-fr'] = "Files d'attente d'appels entrants distribués aux agents disponibles."; + $apps[$x]['description']['fr-fr'] = "Files d'attente d'appels entrants distribués aux agents disponibles."; $apps[$x]['description']['fr-ca'] = "Queues pour envoyer les appels entrants vers les agents disponibles."; $apps[$x]['description']['fr-ch'] = ""; - $apps[$x]['description']['pt-pt'] = "As filas servem para gerenciamento de chamadas de entrada e encaminhamento das mesmas para os agentes disponíveis."; + $apps[$x]['description']['pt-pt'] = "As filas servem para gerenciamento de chamadas de entrada e encaminhamento das mesmas para os agentes disponíveis."; $apps[$x]['description']['pt-br'] = ""; //permission details @@ -137,6 +137,14 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "agent_id"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "agent_password"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z+ $apps[$x]['db'][$y]['fields'][$z]['name'] = "agent_contact"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; diff --git a/app/call_center/app_languages.php b/app/call_center/app_languages.php index ee955809c5..b56f00b7af 100644 --- a/app/call_center/app_languages.php +++ b/app/call_center/app_languages.php @@ -644,6 +644,24 @@ $text['label-call_timeout']['pl'] = "Limit czasu rozmowy"; $text['label-call_timeout']['sv-se'] = "Ring Tidsgräns"; $text['label-call_timeout']['uk'] = "Тайм-аут дзвінка"; +$text['label-agent_id']['en-us'] = "Agent ID"; +$text['label-agent_id']['es-cl'] = ""; +$text['label-agent_id']['pt-pt'] = ""; +$text['label-agent_id']['fr-fr'] = ""; +$text['label-agent_id']['pt-br'] = ""; +$text['label-agent_id']['pl'] = ""; +$text['label-agent_id']['sv-se'] = ""; +$text['label-agent_id']['uk'] = ""; + +$text['label-agent_password']['en-us'] = "Agent Password"; +$text['label-agent_password']['es-cl'] = ""; +$text['label-agent_password']['pt-pt'] = ""; +$text['label-agent_password']['fr-fr'] = ""; +$text['label-agent_password']['pt-br'] = ""; +$text['label-agent_password']['pl'] = ""; +$text['label-agent_password']['sv-se'] = ""; +$text['label-agent_password']['uk'] = ""; + $text['label-busy_delay_time']['en-us'] = "Busy Delay Time"; $text['label-busy_delay_time']['es-cl'] = "Tiempo de espera para ocupado"; $text['label-busy_delay_time']['pt-pt'] = "Tempo de espera para ocupado"; @@ -1033,6 +1051,24 @@ $text['description-call_timeout']['pl'] = "Wpisz limit czasu rozmowy"; $text['description-call_timeout']['sv-se'] = "Ange 'call timeout'"; $text['description-call_timeout']['uk'] = ""; +$text['description-agent_id']['en-us'] = "Enter the agent ID."; +$text['description-agent_id']['es-cl'] = ""; +$text['description-agent_id']['pt-pt'] = ""; +$text['description-agent_id']['fr-fr'] = ""; +$text['description-agent_id']['pt-br'] = ""; +$text['description-agent_id']['pl'] = ""; +$text['description-agent_id']['sv-se'] = ""; +$text['description-agent_id']['uk'] = ""; + +$text['description-agent_password']['en-us'] = "Enter the agent password."; +$text['description-agent_password']['es-cl'] = ""; +$text['description-agent_password']['pt-pt'] = ""; +$text['description-agent_password']['fr-fr'] = ""; +$text['description-agent_password']['pt-br'] = ""; +$text['description-agent_password']['pl'] = ""; +$text['description-agent_password']['sv-se'] = ""; +$text['description-agent_password']['uk'] = ""; + $text['description-call_center_queues']['en-us'] = "List of queues for the call center."; $text['description-call_center_queues']['es-cl'] = "Lista de Colas de Centro de Llamados."; $text['description-call_center_queues']['pt-pt'] = "Lista de Filas do Call Center."; diff --git a/app/call_center/call_center_agent_edit.php b/app/call_center/call_center_agent_edit.php index 9674e8c212..8e5621ff90 100644 --- a/app/call_center/call_center_agent_edit.php +++ b/app/call_center/call_center_agent_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2014 + Portions created by the Initial Developer are Copyright (C) 2008-2015 the Initial Developer. All Rights Reserved. Contributor(s): @@ -49,10 +49,12 @@ else { } //get http post variables and set them to php variables - if (count($_POST)>0) { + if (count($_POST) > 0) { $agent_name = check_str($_POST["agent_name"]); $agent_type = check_str($_POST["agent_type"]); $agent_call_timeout = check_str($_POST["agent_call_timeout"]); + $agent_id = check_str($_POST["agent_id"]); + $agent_password = check_str($_POST["agent_password"]); $agent_contact = check_str($_POST["agent_contact"]); $agent_status = check_str($_POST["agent_status"]); //$agent_logout = check_str($_POST["agent_logout"]); @@ -200,6 +202,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "agent_name, "; $sql .= "agent_type, "; $sql .= "agent_call_timeout, "; + $sql .= "agent_id, "; + $sql .= "agent_password, "; $sql .= "agent_contact, "; $sql .= "agent_status, "; //$sql .= "agent_logout, "; @@ -216,6 +220,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'$agent_name', "; $sql .= "'$agent_type', "; $sql .= "'$agent_call_timeout', "; + $sql .= "'$agent_id', "; + $sql .= "'$agent_password', "; $sql .= "'$agent_contact', "; $sql .= "'$agent_status', "; //$sql .= "'$agent_logout', "; @@ -241,6 +247,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "agent_name = '$agent_name', "; $sql .= "agent_type = '$agent_type', "; $sql .= "agent_call_timeout = '$agent_call_timeout', "; + $sql .= "agent_id = '$agent_id', "; + $sql .= "agent_password = '$agent_password', "; $sql .= "agent_contact = '$agent_contact', "; $sql .= "agent_status = '$agent_status', "; //$sql .= "agent_logout = '$agent_logout', "; @@ -277,6 +285,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $agent_name = $row["agent_name"]; $agent_type = $row["agent_type"]; $agent_call_timeout = $row["agent_call_timeout"]; + $agent_id = $row["agent_id"]; + $agent_password = $row["agent_password"]; $agent_contact = $row["agent_contact"]; $agent_status = $row["agent_status"]; //$agent_logout = $row["agent_logout"]; @@ -328,7 +338,7 @@ 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 " ".$text['label-agent_name']."\n"; echo "\n"; @@ -361,7 +371,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-type']."\n"; echo "\n"; @@ -372,7 +382,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-call_timeout']."\n"; echo "\n"; @@ -383,7 +393,29 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; + echo " ".$text['label-agent_id']."\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-agent_id']."\n"; + echo "
\n"; + echo " ".$text['label-agent_password']."\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-agent_password']."\n"; + echo "
\n"; echo " ".$text['label-contact']."\n"; echo "\n"; @@ -397,7 +429,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-status']."\n"; echo "\n"; @@ -433,7 +465,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-no_answer_delay_time']."\n"; echo "\n"; @@ -444,7 +476,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-max_no_answer']."\n"; echo "\n"; @@ -455,7 +487,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-wrap_up_time']."\n"; echo "\n"; @@ -466,7 +498,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-reject_delay_time']."\n"; echo "\n"; @@ -477,7 +509,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; + echo "\n"; echo " ".$text['label-busy_delay_time']."\n"; echo "\n"; @@ -489,7 +521,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { /* echo "
\n"; + echo "\n"; echo " ".$text['label-agent_logout']."\n"; echo "\n"; @@ -515,4 +547,5 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //footer require_once "resources/footer.php"; -?> + +?> \ No newline at end of file