diff --git a/app/conference_centers/app_languages.php b/app/conference_centers/app_languages.php index 9aa24aba1b..c125969093 100644 --- a/app/conference_centers/app_languages.php +++ b/app/conference_centers/app_languages.php @@ -4,11 +4,50 @@ $text['title-conference-centers']['en-us'] = 'Conference Centers'; $text['title-conference-centers']['pt-pt'] = ''; + $text['description-conference-centers']['en-us'] = 'Conference Centers are a group of conference rooms. They can be organized by cost center, geographically, or other criteria.'; + $text['description-conference-centers']['pt-pt'] = ''; + + $text['title-conference-center']['en-us'] = 'Conference Center'; + $text['title-conference-center']['pt-pt'] = ''; + + $text['description-conference-center']['en-us'] = 'Conference Center is used to setup one or more conference rooms with a name, extension number, a required pin number length, and a description.'; + $text['description-conference-center']['pt-pt'] = ''; + + $text['label-name']['en-us'] = 'Name'; + $text['label-name']['pt-pt'] = ''; + + $text['label-extension']['en-us'] = 'Extension'; + $text['label-extension']['pt-pt'] = ''; + + $text['label-pin-length']['en-us'] = 'PIN Length'; + $text['label-pin-length']['pt-pt'] = ''; + + $text['label-delete']['en-us'] = 'Delete'; + $text['label-delete']['pt-pt'] = ''; + + $text['label-edit']['en-us'] = 'Edit'; + $text['label-edit']['pt-pt'] = ''; + + $text['description-name']['en-us'] = 'Enter the conference center name.'; + $text['description-name']['pt-pt'] = ''; + + $text['description-extension']['en-us'] = 'Enter the conference center extension number.'; + $text['description-extension']['pt-pt'] = ''; + + $text['description-pin-length']['en-us'] = 'Enter the required PIN length.'; + $text['description-pin-length']['pt-pt'] = ''; + + $text['description-enabled']['en-us'] = 'Select whether to enable or disable the conference center.'; + $text['description-enabled']['pt-pt'] = ''; + + $text['description-description']['en-us'] = 'Enter the description.'; + $text['description-description']['pt-pt'] = ''; + //conference rooms $text['title-conference-rooms']['en-us'] = 'Conference Rooms'; $text['title-conference-rooms']['pt-pt'] = ''; - $text['title-conference-room']['en-us'] = 'Conference Room3'; + $text['title-conference-room']['en-us'] = 'Conference Room'; $text['title-conference-room']['pt-pt'] = ''; $text['label-profile']['en-us'] = 'Profile'; @@ -51,6 +90,9 @@ $text['label-description']['pt-pt'] = 'Descrição'; //conference room edit + $text['button-rooms']['en-us'] = 'Rooms'; + $text['button-rooms']['pt-pt'] = ''; + $text['button-sessions']['en-us'] = 'Sessions'; $text['button-sessions']['pt-pt'] = ''; diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php index 1e5d5ef5e1..a72e864e2b 100644 --- a/app/conference_centers/conference_center_edit.php +++ b/app/conference_centers/conference_center_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"; @@ -310,110 +316,63 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; echo "
\n"; - echo "
"; + echo "
"; 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"; - /* - if (if_group("admin") || if_group("superadmin")) { - if ($action == "update") { - echo " "; - echo " "; - echo " "; - echo " "; - } - } - */ - echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -453,7 +412,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
Conference Center".$text['title-conference-center']."\n"; + if (permission_exists('conferences_active_advanced_view')) { + echo " \n"; + } + echo " \n"; + echo "
\n"; - echo "Conference Center is used to setup one or more conference rooms with a name, description, and optional pin number. \n"; - echo "Click on Active Conference \n"; - echo "to monitor and interact with the conference room.

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

\n"; echo "
\n"; - echo " Name:\n"; + echo " ".$text['label-name'].":\n"; echo "\n"; echo " \n"; - echo "
\n"; - echo "Enter the conference center name.\n"; + echo "
\n"; + echo " ".$text['description-name']."\n"; echo "
\n"; - echo " Extension:\n"; + echo " ".$text['label-extension'].":\n"; echo "\n"; echo " \n"; - echo "
\n"; - echo "Enter the conference center extension number.\n"; + echo "
\n"; + echo " ".$text['description-extension']."\n"; echo "
\n"; - echo " PIN Length:\n"; + echo " ".$text['label-pin-length'].":\n"; echo "\n"; echo " \n"; - echo "
\n"; - echo "Enter the required PIN length.\n"; + echo "
\n"; + echo " ".$text['description-pin-length']."\n"; echo "
User List:"; - - echo " \n"; - $sql = "SELECT * FROM v_conference_center_users as e, v_users as u "; - $sql .= "where e.user_uuid = u.user_uuid "; - $sql .= "and u.user_enabled = 'true' "; - $sql .= "and e.domain_uuid = '".$_SESSION['domain_uuid']."' "; - $sql .= "and e.conference_center_uuid = '".$conference_center_uuid."' "; - $prep_statement = $db->prepare(check_sql($sql)); - $prep_statement->execute(); - $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC); - $result_count = count($result); - foreach($result as $field) { - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - } - echo "
".$field['username']."\n"; - echo " $v_link_label_delete\n"; - echo "
\n"; - - echo "
\n"; - $sql = "SELECT * FROM v_users "; - $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; - $sql .= "and user_enabled = 'true' "; - $prep_statement = $db->prepare(check_sql($sql)); - $prep_statement->execute(); - echo " "; - echo " \n"; - unset($sql, $result); - echo "
\n"; - echo " Assign the users that are can manage this conference center extension.\n"; - echo "
\n"; - echo "
\n"; - echo " Enabled:\n"; + echo " ".$text['label-enabled'].":\n"; echo "\n"; echo " \n"; - echo "
\n"; - echo "Select whether to enable or disable the conference center.\n"; + echo "
\n"; + echo " ".$text['description-enabled']."\n"; echo "
\n"; - echo " Description:\n"; + echo " ".$text['label-description'].":\n"; echo "\n"; echo " \n"; - echo "
\n"; - echo "Enter the description.\n"; + echo "
\n"; + echo " ".$text['description-description']."\n"; echo "
"; diff --git a/app/conference_centers/conference_centers.php b/app/conference_centers/conference_centers.php index fda33833a4..e3aa1d8b66 100644 --- a/app/conference_centers/conference_centers.php +++ b/app/conference_centers/conference_centers.php @@ -39,8 +39,16 @@ else { exit; } } -require_once "includes/header.php"; -require_once "includes/paging.php"; + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + +//additional includes + require_once "includes/header.php"; + require_once "includes/paging.php"; //get variables used to control the order $order_by = $_GET["order_by"]; @@ -55,15 +63,17 @@ 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"; echo "
Conference Centers".$text['title-conference-centers']."\n"; + if (permission_exists('conferences_active_advanced_view')) { + echo " \n"; + } + echo " \n"; + echo "
\n"; - echo " Conference Center are a location that can have one or more conference rooms.\n"; - if (permission_exists('conferences_active_advanced_view')) { - echo " Show Active Conferences and then select a conference to monitor and interact with it.

\n"; - } + echo " ".$text['description-conference-centers']."\n"; echo "
\n"; @@ -130,11 +140,11 @@ require_once "includes/paging.php"; echo "
\n"; echo "\n"; echo "\n"; - echo th_order_by('conference_center_name', 'Name', $order_by, $order); - echo th_order_by('conference_center_extension', 'Extension', $order_by, $order); + echo th_order_by('conference_center_name', $text['label-name'], $order_by, $order); + echo th_order_by('conference_center_extension', $text['label-extension'], $order_by, $order); //echo th_order_by('conference_center_order', 'Order', $order_by, $order); - echo th_order_by('conference_center_enabled', 'Enabled', $order_by, $order); - echo th_order_by('conference_center_description', 'Description', $order_by, $order); + echo th_order_by('conference_center_enabled', $text['label-enabled'], $order_by, $order); + echo th_order_by('conference_center_description', $text['label-description'], $order_by, $order); echo "\n"; echo " \n"; echo "\n";
\n"; if (permission_exists('conference_center_add')) { echo " $v_link_label_add\n"; @@ -157,10 +167,10 @@ require_once "includes/paging.php"; echo " ".$row['conference_center_description']." \n"; if (permission_exists('conference_center_edit')) { - echo " $v_link_label_edit\n"; + echo " $v_link_label_edit\n"; } if (permission_exists('conference_center_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "