From 10b852cdbcd8db58ed5e3ecc2a4dc3707753d544 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sun, 9 Jun 2013 05:44:19 +0000 Subject: [PATCH] Multilinguified Queues (FIFO). Fixed permission issue in fifo_detail_delete.php. Fixed JS issue in fifo_detail_edit.php. --- app/fifo/app_languages.php | 70 ++++++++++++++++++++ app/fifo/fifo.php | 46 ++++++++----- app/fifo/fifo_add.php | 73 +++++++++++---------- app/fifo/fifo_delete.php | 8 ++- app/fifo/fifo_detail_delete.php | 10 ++- app/fifo/fifo_detail_edit.php | 107 +++++++++++++++++-------------- app/fifo/fifo_edit.php | 110 ++++++++++++++------------------ 7 files changed, 258 insertions(+), 166 deletions(-) create mode 100644 app/fifo/app_languages.php diff --git a/app/fifo/app_languages.php b/app/fifo/app_languages.php new file mode 100644 index 0000000000..a5ee208e34 --- /dev/null +++ b/app/fifo/app_languages.php @@ -0,0 +1,70 @@ + \ No newline at end of file diff --git a/app/fifo/fifo.php b/app/fifo/fifo.php index 091dcbfe1d..b06d75be32 100644 --- a/app/fifo/fifo.php +++ b/app/fifo/fifo.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-queues']; + require_once "includes/paging.php"; //get http values and set them as variables @@ -49,9 +58,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; @@ -59,7 +66,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo "\n"; @@ -88,12 +95,12 @@ require_once "includes/paging.php"; } unset($prep_statement, $result); -//paging prep +//paging prep $rows_per_page = 20; $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); + 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; //get the dialplans @@ -116,13 +123,13 @@ require_once "includes/paging.php"; echo "
\n"; echo "
Queues\n"; - echo " \n"; - echo " ".$text['header-queues']."\n"; //echo " \n"; echo "
\n"; echo " \n"; - echo " Queues are used to setup waiting lines for callers. Also known as FIFO Queues.\n"; + echo " ".$text['description-queues']."\n"; echo " \n"; echo "
\n"; echo "\n"; - echo th_order_by('dialplan_name', 'Extension Name', $order_by, $order); - echo th_order_by('dialplan_order', 'Order', $order_by, $order); - echo th_order_by('dialplan_enabled', 'Enabled', $order_by, $order); - echo th_order_by('dialplan_description', 'Description', $order_by, $order); + echo th_order_by('dialplan_name', $text['label-name'], $order_by, $order); + echo th_order_by('dialplan_order', $text['label-order'], $order_by, $order); + echo th_order_by('dialplan_enabled', $text['label-enabled'], $order_by, $order); + echo th_order_by('dialplan_description', $text['label-description'], $order_by, $order); echo "\n"; echo "\n"; @@ -132,14 +139,21 @@ require_once "includes/paging.php"; echo "\n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "\n"; @@ -156,7 +170,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo " \n"; diff --git a/app/fifo/fifo_add.php b/app/fifo/fifo_add.php index 24da5b7040..059cc2d2a2 100644 --- a/app/fifo/fifo_add.php +++ b/app/fifo/fifo_add.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-queue_add']; + require_once "includes/paging.php"; //get http values and set them as variables @@ -43,7 +52,7 @@ require_once "includes/paging.php"; $extension_name = check_str($_POST["extension_name"]); $queue_extension_number = check_str($_POST["queue_extension_number"]); $agent_queue_extension_number = check_str($_POST["agent_queue_extension_number"]); - $agent_login_logout_extension_number = check_str($_POST["agent_login_logout_extension_number"]); + $agent_login_logout_extension_number = check_str($_POST["agent_login_logout_extension_number"]); $dialplan_order = check_str($_POST["dialplan_order"]); $pin_number = check_str($_POST["pin_number"]); $profile = check_str($_POST["profile"]); @@ -55,16 +64,9 @@ require_once "includes/paging.php"; 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($extension_name) == 0) { $msg .= "Please provide: Extension Name
\n"; } - if (strlen($queue_extension_number) == 0) { $msg .= "Please provide: Extension Number 1
\n"; } - //if (strlen($agent_queue_extension_number) == 0) { $msg .= "Please provide: Queue Extension Number
\n"; } - //if (strlen($agent_queue_extension_number) == 0) { $msg .= "Please provide: Agent Login Logout Extension Number
\n"; } - //if (strlen($pin_number) == 0) { $msg .= "Please provide: PIN Number
\n"; } - //if (strlen($profile) == 0) { $msg .= "Please provide: profile
\n"; } - //if (strlen($flags) == 0) { $msg .= "Please provide: Flags
\n"; } - //if (strlen($dialplan_enabled) == 0) { $msg .= "Please provide: Enabled True or False
\n"; } - //if (strlen($dialplan_description) == 0) { $msg .= "Please provide: Description
\n"; } + if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; } + if (strlen($extension_name) == 0) { $msg .= $text['message-required'].$text['label-name']."
\n"; } + if (strlen($queue_extension_number) == 0) { $msg .= $text['message-required'].$text['label-extension']."
\n"; } if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; require_once "includes/persistformvar.php"; @@ -258,7 +260,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; @@ -275,18 +277,15 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "
\n"; if (permission_exists('fifo_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "
  ".$row['dialplan_name']."  ".$row['dialplan_order']."  ".$row['dialplan_enabled']."  "; + if ($row['dialplan_enabled'] == 'true') { + echo $text['option-true']; + } + else { + echo $text['option-false']; + } + echo "".$row['dialplan_description']." \n"; if (permission_exists('fifo_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('fifo_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
$paging_controls\n"; if (permission_exists('fifo_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "
\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -298,29 +297,29 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Queues\n"; - echo " \n"; - echo " ".$text['header-queue_add']."\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo " \n"; - echo " In simple terms queues are holding patterns for callers to wait until someone is available to take the call. Also known as FIFO Queues.\n"; + echo " ".$text['description-queue_add']."\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 " Queue Name:\n"; + echo " ".$text['label-name'].":\n"; echo " \n"; echo " \n"; echo "
\n"; - echo " The name the queue will be assigned.\n"; + echo " ".$text['description-name']."\n"; echo "
\n"; - echo " Extension Number:\n"; + echo " ".$text['label-extension'].":\n"; echo " \n"; echo " \n"; echo "
\n"; - echo " The number that will be assigned to the queue.\n"; + echo " ".$text['description-extension']."\n"; echo "
\n"; - echo " Order:\n"; + echo " ".$text['label-order'].":\n"; echo "\n"; echo "
\n"; - echo " Enabled:\n"; + echo " ".$text['label-enabled'].":\n"; echo "\n"; echo " \n"; echo "
\n"; @@ -366,7 +365,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Description:\n"; + echo " ".$text['label-description'].":\n"; echo "\n"; echo " \n"; @@ -378,7 +377,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; echo "

\n"; - echo " Agent Details\n"; + echo " ".$text['header-agent_details']."\n"; echo "
\n"; echo "  \n"; @@ -387,23 +386,23 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Queue Extension Number:\n"; + echo " ".$text['label-agent_queue_extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "The extension number for the Agent FIFO Queue. This is the holding pattern for agents wating to service calls in the caller FIFO queue.\n"; + echo $text['description-agent_queue_extension']."\n"; echo "
\n"; - echo " Login/Logout Extension Number:\n"; + echo " ".$text['label-agent_loginout_extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Agents use this extension number to login or logout of the Queue. After logging into the agent will be ready to receive calls from the Queue. \n"; + echo $text['description-agent_loginout_extension']."\n"; echo "
\n"; @@ -415,7 +414,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo ""; echo ""; diff --git a/app/fifo/fifo_delete.php b/app/fifo/fifo_delete.php index 500881a309..33e54f33df 100644 --- a/app/fifo/fifo_delete.php +++ b/app/fifo/fifo_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 = $_GET["id"]; @@ -80,7 +86,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/fifo/fifo_detail_delete.php b/app/fifo/fifo_detail_delete.php index 288481f1d8..43e4627ae3 100644 --- a/app/fifo/fifo_detail_delete.php +++ b/app/fifo/fifo_detail_delete.php @@ -26,7 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -if (if_group("fifo_delete")) { +if (permission_exists("fifo_delete")) { //access granted } else { @@ -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 = $_GET["id"]; $dialplan_uuid = check_str($_REQUEST["id2"]); @@ -63,7 +69,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"; //show the footer diff --git a/app/fifo/fifo_detail_edit.php b/app/fifo/fifo_detail_edit.php index 44ab7b9092..ec4d8c8ac0 100644 --- a/app/fifo/fifo_detail_edit.php +++ b/app/fifo/fifo_detail_edit.php @@ -33,7 +33,12 @@ else { echo "access denied"; exit; } -//if (permission_exists('fifo_add')) { + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } //set the action as an add or an update if (isset($_REQUEST["id"])) { @@ -67,11 +72,9 @@ 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($dialplan_detail_tag) == 0) { $msg .= "Please provide: Tag
\n"; } - if (strlen($dialplan_detail_order) == 0) { $msg .= "Please provide: Order
\n"; } - //if (strlen($dialplan_detail_type) == 0) { $msg .= "Please provide: Type
\n"; } - //if (strlen($dialplan_detail_data) == 0) { $msg .= "Please provide: Data
\n"; } + if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; } + if (strlen($dialplan_detail_tag) == 0) { $msg .= $text['message-required'].$text['label-tag']."
\n"; } + if (strlen($dialplan_detail_order) == 0) { $msg .= $text['message-required'].$text['label-order']."
\n"; } if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; require_once "includes/persistformvar.php"; @@ -125,7 +128,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,7 +160,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; @@ -188,6 +191,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //show the header require_once "includes/header.php"; + if ($action == "add") { + $page["title"] = $text['title-queue_detail_add']; + } + if ($action == "update") { + $page["title"] = $text['title-queue_detail_edit']; + } //show the content echo "
"; @@ -201,12 +210,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"; ?> @@ -214,65 +223,65 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { function public_include_details_tag_onchange() { var dialplan_detail_tag = document.getElementById("form_tag").value; if (dialplan_detail_tag == "condition") { - document.getElementById("label_field_type").innerHTML = "Field"; - document.getElementById("label_field_data").innerHTML = "Expression"; + document.getElementById("label_field_type").innerHTML = ""; + document.getElementById("label_field_data").innerHTML = ""; } else if (dialplan_detail_tag == "action") { - document.getElementById("label_field_type").innerHTML = "Application"; - document.getElementById("label_field_data").innerHTML = "Data"; + document.getElementById("label_field_type").innerHTML = ""; + document.getElementById("label_field_data").innerHTML = ""; } else if (dialplan_detail_tag == "anti-action") { - document.getElementById("label_field_type").innerHTML = "Application"; - document.getElementById("label_field_data").innerHTML = "Data"; + document.getElementById("label_field_type").innerHTML = ""; + document.getElementById("label_field_data").innerHTML = ""; } else if (dialplan_detail_tag == "param") { - document.getElementById("label_field_type").innerHTML = "Name"; - document.getElementById("label_field_data").innerHTML = "Value"; + document.getElementById("label_field_type").innerHTML = ""; + document.getElementById("label_field_data").innerHTML = ""; } if (dialplan_detail_tag == "") { - document.getElementById("label_field_type").innerHTML = "Type"; - document.getElementById("label_field_data").innerHTML = "Data"; + document.getElementById("label_field_type").innerHTML = ""; + document.getElementById("label_field_data").innerHTML = ""; } } \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo "\n"; echo " "; echo "
Queue Detail Add".$text['header-queue_detail_add']."Queue Detail Update".$text['header-queue_detail_edit']."
\n"; - echo " Tag:\n"; + echo " ".$text['label-tag'].":\n"; echo "\n"; echo " \n"; @@ -295,7 +304,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Order:\n"; + echo " ".$text['label-order'].":\n"; echo "\n"; echo "
\n"; - echo " Type:\n"; + echo "\n"; + echo " ".$text['label-type'].":\n"; echo "\n"; echo " \n"; @@ -335,8 +344,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Data:\n"; + echo "\n"; + echo " ".$text['label-data'].":\n"; echo "\n"; echo " \n"; @@ -350,7 +359,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo "
"; @@ -364,7 +373,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($v_path_show) { echo "
\n"; echo "
\n"; - echo "Additional Information\n"; + echo "".$text['header-additional_information']."\n"; echo "
\n"; echo "
\n"; diff --git a/app/fifo/fifo_edit.php b/app/fifo/fifo_edit.php index 177cb55fd0..2d073d6c40 100644 --- a/app/fifo/fifo_edit.php +++ b/app/fifo/fifo_edit.php @@ -35,6 +35,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //set the action to an add or an update if (isset($_REQUEST["id"])) { $action = "update"; @@ -63,12 +69,10 @@ 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($dialplan_name) == 0) { $msg .= "Please provide: Extension Name
\n"; } - if (strlen($dialplan_order) == 0) { $msg .= "Please provide: Order
\n"; } - //if (strlen($dialplan_context) == 0) { $msg .= "Please provide: Context
\n"; } - if (strlen($dialplan_enabled) == 0) { $msg .= "Please provide: Enabled
\n"; } - //if (strlen($dialplan_description) == 0) { $msg .= "Please provide: Description
\n"; } + if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; } + if (strlen($dialplan_name) == 0) { $msg .= $text['message-required'].$text['label-name']."
\n"; } + if (strlen($dialplan_order) == 0) { $msg .= $text['message-required'].$text['label-order']."
\n"; } + if (strlen($dialplan_enabled) == 0) { $msg .= $text['message-required'].$text['label-enabled']."
\n"; } if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; require_once "includes/persistformvar.php"; @@ -130,7 +134,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; @@ -163,7 +167,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; @@ -195,6 +199,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //show the header require_once "includes/header.php"; + $page["title"] = $text['title-queue_edit']; //show the content echo "
"; @@ -208,15 +213,12 @@ 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"; @@ -227,7 +229,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 " "; echo "

\n"; - echo " Queues
\n"; - echo "
\n"; - echo "

".$text['header-queue_edit']."

\n"; - echo " Queues are used to setup waiting lines for callers. Also known as FIFO Queues.\n"; + echo " ".$text['description-queue_edit']."\n"; echo "

\n"; echo "
\n"; - echo " Name:\n"; + echo " ".$text['label-name'].":\n"; echo "\n"; echo " \n"; @@ -238,7 +240,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Order:\n"; + echo " ".$text['label-order'].":\n"; echo "\n"; echo "
\n"; - //echo " Context:\n"; - //echo "\n"; - //echo " \n"; - //echo "
\n"; - //echo "\n"; - //echo "
\n"; - echo " Continue:\n"; + echo " ".$text['label-continue'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Extension Continue in most cases is false.\n"; + echo $text['description-continue']."\n"; echo "
\n"; - echo " Enabled:\n"; + echo " ".$text['label-enabled'].":\n"; echo "\n"; echo " \n"; echo "
\n"; @@ -330,7 +321,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " Description:\n"; + echo " ".$text['label-description'].":\n"; echo "\n"; echo " \n"; @@ -343,7 +334,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo "
"; @@ -365,11 +356,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo " \n"; - echo " \n"; echo " \n"; echo "

Conditions and Actions
\n"; - echo "
\n"; - echo " The following conditions, actions and anti-actions are used in the dialplan to direct \n"; - echo " call flow. Each is processed in order until you reach the action dialplan_detail_tag which tells what action to perform. \n"; - echo " You are not limited to only one condition or action dialplan_detail_tag for a given extension.\n"; + echo "

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

"; @@ -395,13 +383,13 @@ 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"; @@ -415,10 +403,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo "\n"; @@ -448,10 +436,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo "\n"; @@ -484,10 +472,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo "\n"; @@ -504,7 +492,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo " \n";
TagTypeDataOrder".$text['label-tag']."".$text['label-type']."".$text['label-data']."".$text['label-order']."\n"; if (permission_exists('fifo_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "
  ".$row[dialplan_detail_order]."\n"; if (permission_exists('fifo_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('fifo_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
  ".$row[dialplan_detail_order]."\n"; if (permission_exists('fifo_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('fifo_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
  ".$row[dialplan_detail_order]."\n"; if (permission_exists('fifo_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('fifo_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
$paging_controls\n"; if (permission_exists('fifo_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } echo "