From a721ef8a05a0789c9060aec0e6a763ebc7130629 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 13 Oct 2012 17:04:53 +0000 Subject: [PATCH] Add conference sessions. Move conference rooms into the conference center directory. --- app/conference_centers/app_config.php | 232 ++++++++++++++++-- app/conference_centers/conference_centers.php | 4 +- .../conference_room_delete.php | 0 .../conference_room_edit.php | 0 .../conference_rooms.php | 0 .../conference_session_details.php | 180 ++++++++++++++ .../conference_sessions.php | 171 +++++++++++++ app/conference_rooms/app_config.php | 125 ---------- app/conference_rooms/root.php | 50 ---- 9 files changed, 568 insertions(+), 194 deletions(-) rename app/{conference_rooms => conference_centers}/conference_room_delete.php (100%) rename app/{conference_rooms => conference_centers}/conference_room_edit.php (100%) rename app/{conference_rooms => conference_centers}/conference_rooms.php (100%) create mode 100644 app/conference_centers/conference_session_details.php create mode 100644 app/conference_centers/conference_sessions.php delete mode 100644 app/conference_rooms/app_config.php delete mode 100644 app/conference_rooms/root.php diff --git a/app/conference_centers/app_config.php b/app/conference_centers/app_config.php index 7c09c00dbe..8729633d74 100644 --- a/app/conference_centers/app_config.php +++ b/app/conference_centers/app_config.php @@ -19,23 +19,41 @@ $apps[$x]['description']['pt-br'] = ''; //menu details - $apps[$x]['menu'][0]['title']['en-us'] = 'Conference Center'; - $apps[$x]['menu'][0]['title']['es-mx'] = ''; - $apps[$x]['menu'][0]['title']['de'] = ''; - $apps[$x]['menu'][0]['title']['de-ch'] = ''; - $apps[$x]['menu'][0]['title']['de-at'] = ''; - $apps[$x]['menu'][0]['title']['fr'] = ''; - $apps[$x]['menu'][0]['title']['fr-ca'] = ''; - $apps[$x]['menu'][0]['title']['fr-ch'] = ''; - $apps[$x]['menu'][0]['title']['pt-pt'] = 'Conferencias'; - $apps[$x]['menu'][0]['title']['pt-br'] = ''; - $apps[$x]['menu'][0]['uuid'] = '95f88726-4706-43f0-b52b-9504a0b8046f'; - $apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5'; - $apps[$x]['menu'][0]['category'] = 'internal'; - $apps[$x]['menu'][0]['path'] = '/app/conference_centers/conference_centers.php'; - $apps[$x]['menu'][0]['groups'][] = 'user'; - $apps[$x]['menu'][0]['groups'][] = 'admin'; - $apps[$x]['menu'][0]['groups'][] = 'superadmin'; + $y = 0; + $apps[$x]['menu'][$y]['title']['en-us'] = 'Conference Center'; + $apps[$x]['menu'][$y]['title']['es-mx'] = ''; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = 'Conferencias'; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = '95f88726-4706-43f0-b52b-9504a0b8046f'; + $apps[$x]['menu'][$y]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5'; + $apps[$x]['menu'][$y]['category'] = 'internal'; + $apps[$x]['menu'][$y]['path'] = '/app/conference_centers/conference_centers.php'; + $apps[$x]['menu'][$y]['groups'][] = 'admin'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; + $y++; + $apps[$x]['menu'][$y]['title']['en-us'] = 'Conference Rooms'; + $apps[$x]['menu'][$y]['title']['es-mx'] = ''; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = ''; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = '0daea9eb-5555-4325-be57-e3b6a30d5253'; + $apps[$x]['menu'][$y]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5'; + $apps[$x]['menu'][$y]['category'] = 'internal'; + $apps[$x]['menu'][$y]['path'] = '/app/conference_centers/conference_rooms.php'; + $apps[$x]['menu'][$y]['groups'][] = 'user'; + $apps[$x]['menu'][$y]['groups'][] = 'admin'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; //permission details $y = 0; @@ -57,6 +75,26 @@ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; $apps[$x]['permissions'][$y]['groups'][] = 'admin'; $y++; + $apps[$x]['permissions'][$y]['name'] = 'conference_room_view'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = 'admin'; + $y++; + $apps[$x]['permissions'][$y]['name'] = 'conference_room_add'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = 'admin'; + $y++; + $apps[$x]['permissions'][$y]['name'] = 'conference_room_edit'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = 'admin'; + $y++; + $apps[$x]['permissions'][$y]['name'] = 'conference_room_delete'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = 'admin'; + $y++; + $apps[$x]['permissions'][$y]['name'] = 'conference_session_view'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = 'admin'; + $y++; //schema details $y = 0; //table array index @@ -105,6 +143,166 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enable or disable the conference center.'; + $y = 1; //table array index + $z = 0; //field array index + $apps[$x]['db'][$y]['table'] = 'v_conference_rooms'; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_room_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Conference UUID'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Meeting UUID'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'max_members'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Limit number of people in the conference.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'wait_mod'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Wait for the moderator to join before starting the conference.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'announce'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Introduce participants as they enter the conference.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enter_sound'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'The sound played when someone enters the conference.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'mute'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Mute participants on entering the conference.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'created'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Date when the conference was created.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'created_by'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'The user that created the conference session.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Select to enable or disable the session.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'description'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Description.for the conference session.'; + $z++; + + $y = 2; //table array index + $z = 0; //field array index + $apps[$x]['db'][$y]['table'] = 'v_conference_sessions'; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_session_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'meeting_uuid'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'recording'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Conference Recording'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_epoch'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'start_epoch'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_epoch'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'end_epoch'; + $z++; + + $y = 4; //table array index + $z = 0; //field array index + $apps[$x]['db'][$y]['table'] = 'v_conference_session_details'; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_session_detail_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_session_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'meeting_uuid'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'username'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Extension number.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_name'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'caller_id_name'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_number'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'caller_id_number'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Call UUID'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'moderator'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Moderator'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'network_addr'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'network address'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_epoch'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'start_epoch'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_epoch'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'end_epoch'; + $z++; + /* $y = 1; //table array index $z = 0; //field array index diff --git a/app/conference_centers/conference_centers.php b/app/conference_centers/conference_centers.php index fdd61bfdc8..a7310ec098 100644 --- a/app/conference_centers/conference_centers.php +++ b/app/conference_centers/conference_centers.php @@ -49,8 +49,8 @@ require_once "includes/paging.php"; echo "\n"; echo " \n"; - echo " \n"; - echo " \n"; + echo "\n"; + echo "\n"; echo " \n"; echo " \n"; echo "
Conference Centers Conference Centers
\n"; diff --git a/app/conference_rooms/conference_room_delete.php b/app/conference_centers/conference_room_delete.php similarity index 100% rename from app/conference_rooms/conference_room_delete.php rename to app/conference_centers/conference_room_delete.php diff --git a/app/conference_rooms/conference_room_edit.php b/app/conference_centers/conference_room_edit.php similarity index 100% rename from app/conference_rooms/conference_room_edit.php rename to app/conference_centers/conference_room_edit.php diff --git a/app/conference_rooms/conference_rooms.php b/app/conference_centers/conference_rooms.php similarity index 100% rename from app/conference_rooms/conference_rooms.php rename to app/conference_centers/conference_rooms.php diff --git a/app/conference_centers/conference_session_details.php b/app/conference_centers/conference_session_details.php new file mode 100644 index 0000000000..49d2159370 --- /dev/null +++ b/app/conference_centers/conference_session_details.php @@ -0,0 +1,180 @@ + + Copyright (C) 2008-2012 All Rights Reserved. + + Contributor(s): + Mark J Crane +*/ +require_once "root.php"; +require_once "includes/require.php"; +require_once "includes/checkauth.php"; +if (permission_exists('conference_session_view')) { + //access granted +} +else { + echo "access denied"; + exit; +} +require_once "includes/header.php"; +require_once "includes/paging.php"; + +//set variables from the http values + $order_by = check_str($_GET["order_by"]); + $order = check_str($_GET["order"]); + $conference_session_uuid = check_str($_GET["uuid"]); + +//show the content + echo "
"; + echo "\n"; + echo "\n"; + echo " "; + echo ""; + echo "
\n"; + echo "
"; + + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
Conference Session Details
\n"; + echo " Conference Sessions are log details about the conferences.

\n"; + echo "
\n"; + + //prepare to page the results + $sql = "select count(*) as num_rows from v_conference_session_details "; + $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "and conference_session_uuid = '$conference_session_uuid' "; + $prep_statement = $db->prepare($sql); + if ($prep_statement) { + $prep_statement->execute(); + $row = $prep_statement->fetch(PDO::FETCH_ASSOC); + if ($row['num_rows'] > 0) { + $num_rows = $row['num_rows']; + } + else { + $num_rows = '0'; + } + } + + //prepare to page the results + $rows_per_page = 500; + $param = ""; + $page = $_GET['page']; + if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } + list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page); + $offset = $rows_per_page * $page; + + //get the list + $sql = "select * from v_conference_session_details "; + $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "and conference_session_uuid = '$conference_session_uuid' "; + if (strlen($order_by) == 0) { + $sql .= "order by start_epoch asc "; + } + else { + $sql .= "order by $order_by $order "; + } + $sql .= "limit $rows_per_page offset $offset "; + $prep_statement = $db->prepare(check_sql($sql)); + $prep_statement->execute(); + $result = $prep_statement->fetchAll(); + $result_count = count($result); + unset ($prep_statement, $sql); + + $c = 0; + $row_style["0"] = "row_style0"; + $row_style["1"] = "row_style1"; + + echo "
\n"; + echo "\n"; + echo "\n"; + //echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order); + //echo th_order_by('conference_uuid', 'Conference UUID', $order_by, $order); + //echo th_order_by('username', 'Username', $order_by, $order); + //echo th_order_by('uuid', 'UUID', $order_by, $order); + echo th_order_by('caller_id_name', 'Caller ID Name', $order_by, $order); + echo th_order_by('caller_id_number', 'Caller ID Number', $order_by, $order); + echo th_order_by('network_addr', 'Network Address', $order_by, $order); + echo "\n"; + echo th_order_by('start_epoch', 'Start', $order_by, $order); + echo th_order_by('end_epoch', 'End', $order_by, $order); + echo "\n"; + echo "\n"; + + if ($result_count > 0) { + foreach($result as $row) { + if (defined('TIME_24HR') && TIME_24HR == 1) { + $start_date = date("j M Y H:i:s", $row['start_epoch']); + $end_date = date("j M Y H:i:s", $row['end_epoch']); + } else { + $start_date = date("j M Y h:i:sa", $row['start_epoch']); + $end_date = date("j M Y h:i:sa", $row['end_epoch']); + } + $time_difference = ''; + if (strlen($row['end_epoch']) > 0) { + $time_difference = $row['end_epoch'] - $row['start_epoch']; + $time_difference = gmdate("G:i:s", $time_difference); + } + echo "\n"; + //echo " \n"; + //echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "\n"; + if ($c==0) { $c=1; } else { $c=0; } + } //end foreach + unset($sql, $result, $row_count); + } //end if results + + echo "\n"; + echo "\n"; + echo "\n"; + + echo "
TimeDetails
".$row['meeting_uuid']." ".$row['conference_session_uuid']." ".$row['caller_id_name']." ".$row['caller_id_number']." ".$row['network_addr']." ".$time_difference." ".$start_date." ".$end_date." CDR 
\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
 $paging_controls\n"; + echo "  \n"; + echo "
\n"; + echo "
"; + echo "
"; + echo "

"; + echo "

"; + + echo "
"; + echo "
"; + echo "

"; + +//include the footer + require_once "includes/footer.php"; +?> \ No newline at end of file diff --git a/app/conference_centers/conference_sessions.php b/app/conference_centers/conference_sessions.php new file mode 100644 index 0000000000..bfa5052eaf --- /dev/null +++ b/app/conference_centers/conference_sessions.php @@ -0,0 +1,171 @@ + + Copyright (C) 2008-2012 All Rights Reserved. + + Contributor(s): + Mark J Crane +*/ +require_once "root.php"; +require_once "includes/require.php"; +require_once "includes/checkauth.php"; +if (permission_exists('conference_session_view')) { + //access granted +} +else { + echo "access denied"; + exit; +} +require_once "includes/header.php"; +require_once "includes/paging.php"; + +//set variables from the http values + $order_by = check_str($_GET["order_by"]); + $order = check_str($_GET["order"]); + +//show the content + echo "
"; + echo "\n"; + echo "\n"; + echo " "; + echo ""; + echo "
\n"; + echo "
"; + + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
Conference Sessions
\n"; + echo " Conference Sessions are log details about the conferences.

\n"; + echo "
\n"; + + //prepare to page the results + $sql = "select count(*) as num_rows from v_conference_sessions "; + $sql .= "where domain_uuid = '$domain_uuid' "; + $prep_statement = $db->prepare($sql); + if ($prep_statement) { + $prep_statement->execute(); + $row = $prep_statement->fetch(PDO::FETCH_ASSOC); + if ($row['num_rows'] > 0) { + $num_rows = $row['num_rows']; + } + else { + $num_rows = '0'; + } + } + + //prepare to page the results + $rows_per_page = 150; + $param = ""; + $page = $_GET['page']; + if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } + list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page); + $offset = $rows_per_page * $page; + + //get the list + $sql = "select * from v_conference_sessions "; + $sql .= "where domain_uuid = '$domain_uuid' "; + if (strlen($order_by) == 0) { + $sql .= "order by start_epoch desc "; + } + else { + $sql .= "order by $order_by $order "; + } + $sql .= "limit $rows_per_page offset $offset "; + $prep_statement = $db->prepare(check_sql($sql)); + $prep_statement->execute(); + $result = $prep_statement->fetchAll(); + $result_count = count($result); + unset ($prep_statement, $sql); + + $c = 0; + $row_style["0"] = "row_style0"; + $row_style["1"] = "row_style1"; + + echo "
\n"; + echo "\n"; + echo "\n"; + //echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order); + echo "\n"; + echo th_order_by('start_epoch', 'Start', $order_by, $order); + echo th_order_by('end_epoch', 'End', $order_by, $order); + echo th_order_by('moderator', 'Moderator', $order_by, $order); + echo th_order_by('recording', 'Recording', $order_by, $order); + echo "\n"; + echo "\n"; + + if ($result_count > 0) { + foreach($result as $row) { + if (defined('TIME_24HR') && TIME_24HR == 1) { + $start_date = date("j M Y H:i:s", $row['start_epoch']); + $end_date = date("j M Y H:i:s", $row['end_epoch']); + } else { + $start_date = date("j M Y h:i:sa", $row['start_epoch']); + $end_date = date("j M Y h:i:sa", $row['end_epoch']); + } + $time_difference = ''; + if (strlen($row['end_epoch']) > 0) { + $time_difference = $row['end_epoch'] - $row['start_epoch']; + $time_difference = gmdate("G:i:s", $time_difference); + } + echo "\n"; + //echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "\n"; + if ($c==0) { $c=1; } else { $c=0; } + } //end foreach + unset($sql, $result, $row_count); + } //end if results + + echo "\n"; + echo "\n"; + echo "\n"; + + echo "
TimeTool
".$row['meeting_uuid']." ".$time_difference." ".$start_date." ".$end_date." ".$row['moderator']." ".$row['recording']." Details 
\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
 $paging_controls\n"; + echo "  \n"; + echo "
\n"; + echo "
"; + echo "
"; + echo "

"; + echo "

"; + + echo "
"; + echo "
"; + echo "

"; + +//include the footer + require_once "includes/footer.php"; +?> \ No newline at end of file diff --git a/app/conference_rooms/app_config.php b/app/conference_rooms/app_config.php deleted file mode 100644 index c9c21f48c9..0000000000 --- a/app/conference_rooms/app_config.php +++ /dev/null @@ -1,125 +0,0 @@ - \ No newline at end of file diff --git a/app/conference_rooms/root.php b/app/conference_rooms/root.php deleted file mode 100644 index 7b882438ea..0000000000 --- a/app/conference_rooms/root.php +++ /dev/null @@ -1,50 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2012 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -// make sure the PATH_SEPARATOR is defined - if (!defined("PATH_SEPARATOR")) { - if ( strpos( $_ENV[ "OS" ], "Win" ) !== false ) { define("PATH_SEPARATOR", ";"); } else { define("PATH_SEPARATOR", ":"); } - } - -// make sure the document_root is set - $_SERVER["SCRIPT_FILENAME"] = str_replace("\\", "/", $_SERVER["SCRIPT_FILENAME"]); - $_SERVER["DOCUMENT_ROOT"] = str_replace($_SERVER["PHP_SELF"], "", $_SERVER["SCRIPT_FILENAME"]); - $_SERVER["DOCUMENT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"]); - //echo "DOCUMENT_ROOT: ".$_SERVER["DOCUMENT_ROOT"]."
\n"; - //echo "PHP_SELF: ".$_SERVER["PHP_SELF"]."
\n"; - //echo "SCRIPT_FILENAME: ".$_SERVER["SCRIPT_FILENAME"]."
\n"; - -// if the project directory exists then add it to the include path otherwise add the document root to the include path - if (is_dir($_SERVER["DOCUMENT_ROOT"].'/fusionpbx')){ - if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', '/fusionpbx'); } - set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"].'/fusionpbx' ); - } - else { - if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', ''); } - set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] ); - } - -?> \ No newline at end of file