diff --git a/app/call_flows/app_languages.php b/app/call_flows/app_languages.php new file mode 100644 index 0000000000..a091d255b7 --- /dev/null +++ b/app/call_flows/app_languages.php @@ -0,0 +1,140 @@ + \ No newline at end of file diff --git a/app/call_flows/call_flow_delete.php b/app/call_flows/call_flow_delete.php index cccb609d65..747b7eaecd 100644 --- a/app/call_flows/call_flow_delete.php +++ b/app/call_flows/call_flow_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 "
| Call Flow | \n"; - echo "\n"; + echo " | "; + if ($action == "update") { + echo $text['header-call_flow-edit']; + } + if ($action == "add") { + echo $text['header-call_flow-add']; + } + echo " | \n"; + echo "\n"; echo " |
| \n"; - echo " Name:\n"; + echo " ".$text['label-name'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the name.\n"; + echo $text['description-name']."\n"; echo " | \n";
echo "||
| \n"; - echo " Extension:\n"; + echo " ".$text['label-extension'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the extension number.\n"; + echo $text['description-extension']."\n"; echo " | \n";
echo "||
| \n"; - echo " Feature Code:\n"; + echo " ".$text['label-feature_code'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the feature code.\n"; + echo $text['description-feature_code']."\n"; echo " | \n";
echo "||
| \n"; - echo " Context:\n"; + echo " ".$text['label-context'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the context.\n"; + echo $text['description-context']."\n"; echo " | \n";
echo "||
| \n"; - echo " Status:\n"; + echo " ".$text['label-status'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Select the status.\n"; + echo $text['description-status']."\n"; echo " | \n";
echo "||
| \n"; - echo " PIN Number:\n"; + echo " ".$text['label-pin_number'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the pin number\n"; + echo $text['description-pin_number']."\n"; echo " | \n";
echo "||
| \n"; - echo " Destination Label:\n"; + echo " ".$text['label-destination_label'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the destination label\n"; + echo $text['description-destination_label']."\n"; echo " | \n";
echo "||
| \n"; - echo " Destination:\n"; + echo " ".$text['label-destination'].":\n"; echo " | \n"; echo "\n";
$select_value = '';
@@ -562,24 +581,24 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
switch_select_destination("dialplan", $destination_label, "call_flow_destination", $select_value, "", $call_flow_data);
unset($select_value);
echo " \n"; - echo "Select the destination.\n"; + echo $text['description-destination']."\n"; echo " | \n";
echo "||
| \n"; - echo " Alternate Label:\n"; + echo " ".$text['label-alternate_label'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the alternate destination label\n"; + echo $text['description-alternate_label']."\n"; echo " | \n";
echo "||
| \n"; - echo " Alternate Destination:\n"; + echo " ".$text['label-alternate_destination'].":\n"; echo " | \n"; echo "\n";
//switch_select_destination($select_type, $select_label, $select_name, $select_value, $select_style, $action='')
@@ -590,18 +609,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
switch_select_destination("dialplan", $alternate_destination_label, "call_flow_alternate_destination", $select_value, "", $call_flow_anti_data);
unset($select_value);
echo " \n"; - echo "Select the alternate destination.\n"; + echo $text['description-alternate_destination']."\n"; echo " | \n";
echo "||
| \n"; - echo " Description:\n"; + echo " ".$text['label-description'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the description.\n"; + echo $text['description-description']."\n"; echo " | \n";
echo "
| Call Flows | \n"; + echo "".$text['header-call_flows']." | \n"; echo "\n"; echo " |
| \n";
- echo " Direct calls between two destinations by calling a feature code. \n"; + echo " ".$text['description-call_flows']." \n"; echo " | \n";
echo " ||
| Destination | \n"; - //echo "Alternate Destination | \n"; - echo th_order_by('call_flow_description', 'Description', $order_by, $order); + echo th_order_by('call_flow_status', $text['label-status'], $order_by, $order); + //echo th_order_by('call_flow_name', $text['label-name'], $order_by, $order); + echo th_order_by('call_flow_extension', $text['label-extension'], $order_by, $order); + echo th_order_by('call_flow_feature_code', $text['label-feature_code'], $order_by, $order); + //echo "".$text['label-destination']." | \n"; + //echo "".$text['label-alternate_destination']." | \n"; + echo th_order_by('call_flow_description', $text['label-description'], $order_by, $order); echo "\n"; if (permission_exists('call_flow_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } else { echo " \n"; @@ -138,10 +147,10 @@ require_once "includes/paging.php"; echo " | ".$row['call_flow_description']." | \n"; echo "\n"; if (permission_exists('call_flow_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('call_flow_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo " | \n"; echo "$paging_controls | \n"; echo "\n"; if (permission_exists('call_flow_add')) { - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; } else { echo " \n"; |
|---|