From 47de6ff37551e780f2ed92905b18df0647dadb20 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 24 Nov 2012 02:59:17 +0000 Subject: [PATCH] Update the file names in call center. --- app/call_center/app_config.php | 4 ++-- app/call_center/call_center_agent_delete.php | 2 +- app/call_center/call_center_agent_edit.php | 9 ++++---- app/call_center/call_center_agent_status.php | 4 ++-- app/call_center/call_center_agents.php | 24 +++++++++----------- app/call_center/call_center_queue_delete.php | 2 +- app/call_center/call_center_queue_edit.php | 8 +++---- app/call_center/call_center_queues.php | 18 +++++++-------- app/call_center/call_center_tier_delete.php | 4 ++-- app/call_center/call_center_tier_edit.php | 12 ++++------ app/call_center/call_center_tiers.php | 20 +++++++--------- app/call_center/cmd.php | 2 +- 12 files changed, 49 insertions(+), 60 deletions(-) diff --git a/app/call_center/app_config.php b/app/call_center/app_config.php index 889d1a3daf..d97d806d36 100644 --- a/app/call_center/app_config.php +++ b/app/call_center/app_config.php @@ -32,7 +32,7 @@ $apps[$x]['menu'][0]['uuid'] = '6c072b29-5b6c-49fc-008e-95e24c77de99'; $apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5'; $apps[$x]['menu'][0]['category'] = 'internal'; - $apps[$x]['menu'][0]['path'] = '/app/call_center/v_call_center_queue.php'; + $apps[$x]['menu'][0]['path'] = '/app/call_center/call_center_queues.php'; $apps[$x]['menu'][0]['groups'][] = 'agent'; $apps[$x]['menu'][0]['groups'][] = 'admin'; $apps[$x]['menu'][0]['groups'][] = 'superadmin'; @@ -50,7 +50,7 @@ $apps[$x]['menu'][1]['uuid'] = '597c483a-51a9-f95a-8d54-ea7d87ada2b8'; $apps[$x]['menu'][1]['parent_uuid'] = '0438b504-8613-7887-c420-c837ffb20cb1'; $apps[$x]['menu'][1]['category'] = 'internal'; - $apps[$x]['menu'][1]['path'] = '/app/call_center/v_call_center_agent_status.php'; + $apps[$x]['menu'][1]['path'] = '/app/call_center/call_center_agent_status.php'; $apps[$x]['menu'][1]['groups'][] = 'agent_admin'; $apps[$x]['menu'][1]['groups'][] = 'admin'; $apps[$x]['menu'][1]['groups'][] = 'superadmin'; diff --git a/app/call_center/call_center_agent_delete.php b/app/call_center/call_center_agent_delete.php index 329f1f7211..c43d4c93d3 100644 --- a/app/call_center/call_center_agent_delete.php +++ b/app/call_center/call_center_agent_delete.php @@ -72,7 +72,7 @@ if (count($_GET)>0) { //redirect the user require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Delete Complete\n"; echo "
\n"; diff --git a/app/call_center/call_center_agent_edit.php b/app/call_center/call_center_agent_edit.php index 755ab9d558..b86517d33c 100644 --- a/app/call_center/call_center_agent_edit.php +++ b/app/call_center/call_center_agent_edit.php @@ -226,7 +226,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //redirect the user require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Add Complete\n"; echo "
\n"; @@ -256,7 +256,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { save_call_center_xml(); require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Update Complete\n"; echo "
\n"; @@ -269,8 +269,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //pre-populate the form if (count($_GET)>0 && $_POST["persistformvar"] != "true") { $call_center_agent_uuid = $_GET["id"]; - $sql = ""; - $sql .= "select * from v_call_center_agents "; + $sql = "select * from v_call_center_agents "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and call_center_agent_uuid = '$call_center_agent_uuid' "; $prep_statement = $db->prepare(check_sql($sql)); @@ -322,7 +321,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo "Call Center Agent Edit\n"; } - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/app/call_center/call_center_agent_status.php b/app/call_center/call_center_agent_status.php index 46a768d8f1..8af66734e0 100644 --- a/app/call_center/call_center_agent_status.php +++ b/app/call_center/call_center_agent_status.php @@ -156,8 +156,8 @@ require_once "includes/paging.php"; echo "\n"; echo "Call Center Agent Status\n"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \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 8387e886f7..d42ec88bd9 100644 --- a/app/call_center/call_center_agents.php +++ b/app/call_center/call_center_agents.php @@ -51,8 +51,8 @@ require_once "includes/paging.php"; echo "\n"; echo "Call Center Agent List\n"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; echo "\n"; @@ -62,8 +62,7 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - $sql = ""; - $sql .= "select * from v_call_center_agents "; + $sql = "select * from v_call_center_agents "; $sql .= "where domain_uuid = '$domain_uuid' "; if (strlen($order_by) == 0) { $order_by = 'agent_name'; @@ -84,8 +83,7 @@ require_once "includes/paging.php"; list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); $offset = $rows_per_page * $page; - $sql = ""; - $sql .= " select * from v_call_center_agents "; + $sql = "select * from v_call_center_agents "; $sql .= "where domain_uuid = '$domain_uuid' "; if (strlen($order_by) == 0) { $order_by = 'agent_name'; @@ -122,7 +120,7 @@ require_once "includes/paging.php"; //echo th_order_by('agent_busy_delay_time', '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"; @@ -144,13 +142,13 @@ require_once "includes/paging.php"; //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"; + //echo " \n"; + //echo " \n"; echo " \n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; } @@ -166,7 +164,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"; @@ -187,4 +185,4 @@ require_once "includes/paging.php"; //show the footer require_once "includes/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/call_center/call_center_queue_delete.php b/app/call_center/call_center_queue_delete.php index 5b24229cca..abf227056b 100644 --- a/app/call_center/call_center_queue_delete.php +++ b/app/call_center/call_center_queue_delete.php @@ -88,7 +88,7 @@ if (strlen($id) > 0) { //redirect the browser require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Delete Complete\n"; echo "
\n"; diff --git a/app/call_center/call_center_queue_edit.php b/app/call_center/call_center_queue_edit.php index a71aa83f52..dbe021ec0f 100644 --- a/app/call_center/call_center_queue_edit.php +++ b/app/call_center/call_center_queue_edit.php @@ -172,7 +172,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //redirect the user require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Add Complete\n"; echo "
\n"; @@ -211,7 +211,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //redirect the user require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Update Complete\n"; echo "
\n"; @@ -290,12 +290,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } 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"; diff --git a/app/call_center/call_center_queues.php b/app/call_center/call_center_queues.php index 902b08d276..89484a2a53 100644 --- a/app/call_center/call_center_queues.php +++ b/app/call_center/call_center_queues.php @@ -51,8 +51,8 @@ require_once "includes/paging.php"; echo "\n"; echo "Call Center Queue\n"; echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "\n"; echo "\n"; echo "\n"; @@ -62,8 +62,7 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - $sql = ""; - $sql .= "select * from v_call_center_queues "; + $sql = "select * from v_call_center_queues "; $sql .= "where domain_uuid = '$domain_uuid' "; if (strlen($order_by) == 0) { $order_by = 'queue_name'; @@ -84,8 +83,7 @@ require_once "includes/paging.php"; list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); $offset = $rows_per_page * $page; - $sql = ""; - $sql .= "select * from v_call_center_queues "; + $sql = "select * from v_call_center_queues "; $sql .= "where domain_uuid = '$domain_uuid' "; if (strlen($order_by) == 0) { $order_by = 'queue_name'; @@ -125,7 +123,7 @@ require_once "includes/paging.php"; echo th_order_by('queue_description', 'Description', $order_by, $order); echo "\n"; if (permission_exists('call_center_queues_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "\n"; echo "\n"; @@ -150,10 +148,10 @@ require_once "includes/paging.php"; echo " ".$row[queue_description]." \n"; echo " \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 " \n"; echo "\n"; @@ -170,7 +168,7 @@ require_once "includes/paging.php"; echo " $paging_controls\n"; echo " \n"; if (permission_exists('call_center_queues_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_tier_delete.php b/app/call_center/call_center_tier_delete.php index cfaea2e463..c84e7f4bd1 100644 --- a/app/call_center/call_center_tier_delete.php +++ b/app/call_center/call_center_tier_delete.php @@ -77,11 +77,11 @@ else { //redirect the user require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Delete Complete\n"; echo "
\n"; require_once "includes/footer.php"; return; -?> +?> \ No newline at end of file diff --git a/app/call_center/call_center_tier_edit.php b/app/call_center/call_center_tier_edit.php index 1a9f780069..de83d2d3dc 100644 --- a/app/call_center/call_center_tier_edit.php +++ b/app/call_center/call_center_tier_edit.php @@ -132,7 +132,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { save_call_center_xml(); require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Add Complete\n"; echo "
\n"; @@ -155,7 +155,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { save_call_center_xml(); require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
\n"; echo "Update Complete\n"; echo "
\n"; @@ -168,8 +168,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //pre-populate the form if (count($_GET)>0 && $_POST["persistformvar"] != "true") { $call_center_tier_uuid = $_GET["id"]; - $sql = ""; - $sql .= "select * from v_call_center_tiers "; + $sql = "select * from v_call_center_tiers "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and call_center_tier_uuid = '$call_center_tier_uuid' "; $prep_statement = $db->prepare(check_sql($sql)); @@ -207,7 +206,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo "Call Center Tier Edit\n"; } - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -433,6 +432,5 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo ""; echo ""; - require_once "includes/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/call_center/call_center_tiers.php b/app/call_center/call_center_tiers.php index a9bc27c086..e9a79419de 100644 --- a/app/call_center/call_center_tiers.php +++ b/app/call_center/call_center_tiers.php @@ -51,7 +51,7 @@ require_once "includes/paging.php"; echo "\n"; echo "Call Center Tier List\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "\n"; echo "\n"; echo "\n"; @@ -61,8 +61,7 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - $sql = ""; - $sql .= "select * from v_call_center_tiers "; + $sql = "select * from v_call_center_tiers "; $sql .= "where domain_uuid = '$domain_uuid' "; if (strlen($order_by) == 0) { $order_by = 'queue_name'; @@ -83,8 +82,7 @@ require_once "includes/paging.php"; list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); $offset = $rows_per_page * $page; - $sql = ""; - $sql .= "select * from v_call_center_tiers "; + $sql = "select * from v_call_center_tiers "; $sql .= "where domain_uuid = '$domain_uuid' "; if (strlen($order_by) == 0) { $order_by = 'queue_name'; @@ -114,7 +112,7 @@ require_once "includes/paging.php"; echo th_order_by('tier_position', 'Tier Position', $order_by, $order); echo "\n"; if (permission_exists('call_center_tiers_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "\n"; echo "\n"; @@ -130,10 +128,10 @@ require_once "includes/paging.php"; echo " ".$row[tier_position]." \n"; echo " \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 " \n"; echo "\n"; @@ -151,7 +149,7 @@ require_once "includes/paging.php"; echo " $paging_controls\n"; echo " \n"; if (permission_exists('call_center_tiers_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo " \n"; echo " \n"; @@ -159,13 +157,11 @@ require_once "includes/paging.php"; echo "\n"; echo "\n"; - echo ""; echo ""; echo "

"; echo "

"; - echo ""; echo ""; echo ""; @@ -174,4 +170,4 @@ require_once "includes/paging.php"; //show the footer require_once "includes/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/call_center/cmd.php b/app/call_center/cmd.php index 08cf654fb8..e70a822d81 100644 --- a/app/call_center/cmd.php +++ b/app/call_center/cmd.php @@ -52,6 +52,6 @@ if ($rdr == "false") { echo $response; } else { - header("Location: v_call_center_queue.php?savemsg=".urlencode($response)); + header("Location: call_center_queues.php?savemsg=".urlencode($response)); } ?> \ No newline at end of file