Conference, announce that the conference is being recorded for active conferences when its changed in the gui. Add a pin search tool for conference rooms. Finish conference center templates.

This commit is contained in:
Mark Crane
2013-02-28 18:55:36 +00:00
parent 103fa44a5a
commit e446847537
9 changed files with 63 additions and 436 deletions

View File

@@ -162,6 +162,9 @@
$text['button-save']['en-us'] = 'Save';
$text['button-save']['pt-pt'] = 'Guardar';
$text['button-search']['en-us'] = 'Search';
$text['button-search']['pt-pt'] = '';
//Conference Sessions
$text['title-conference-sessions']['en-us'] = 'Conference Sessions';
$text['title-conference-sessions']['pt-pt'] = '';

View File

@@ -44,8 +44,22 @@ else {
require_once "includes/header.php";
require_once "includes/paging.php";
//get the meeting_uuid using the pin number
$search = check_str($_GET["search"]);
if (strlen($search) > 0) {
$sql = "select * from v_meeting_pins ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and member_pin = '".$search."' ";
$prep_statement = $db->prepare(check_sql($sql));
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
$meeting_uuid = $row['meeting_uuid'];
}
}
//if the $_GET array exists then process it
if (count($_GET) > 0) {
if (count($_GET) > 0 && strlen($_GET["search"]) == 0) {
//get http GET variables and set them as php variables
$conference_room_uuid = check_str($_GET["conference_room_uuid"]);
$record = check_str($_GET["record"]);
@@ -56,7 +70,7 @@ else {
$enabled = check_str($_GET["enabled"]);
$meeting_uuid = check_str($_GET["meeting_uuid"]);
//record announcment
//record announcement
if ($record == "true") {
//prepare the values
$default_language = 'en';
@@ -143,8 +157,13 @@ else {
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>".$text['title-conference-rooms']."</b></td>\n";
echo " <td width='50%' align='right'>&nbsp;</td>\n";
echo " <form method='get' action=''>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>".$text['title-conference-rooms']."</b></td>\n";
echo " <td width='50%' align='right'>\n";
echo " <input type='text' class='txt' style='width: 150px' name='search' value='$search'>";
echo " <input type='submit' class='btn' name='submit' value='".$text['button-search']."'>";
echo " </td>\n";
echo " </form>\n";
echo " </tr>\n";
echo "</table>\n";
@@ -155,6 +174,12 @@ else {
$conference_center->domain_uuid = $_SESSION['domain_uuid'];
$conference_center->voicemail_uuid = $voicemail_uuid;
$conference_center->voicemail_id = $voicemail_id;
if (strlen($meeting_uuid) > 0) {
$conference_center->meeting_uuid = $meeting_uuid;
}
if (strlen($search) > 0) {
$conference_center->search = $search;
}
$row_count = $conference_center->room_count() * 2;
//prepare to page the results
@@ -171,6 +196,12 @@ else {
$conference_center->offset = $offset;
$conference_center->order_by = $order_by;
$conference_center->order = $order;
if (strlen($meeting_uuid) > 0) {
$conference_center->meeting_uuid = $meeting_uuid;
}
if (strlen($search) > 0) {
$conference_center->search = $search;
}
$result = $conference_center->rooms();
$result_count = $conference_center->count;

View File

@@ -28,21 +28,31 @@
class conference_center {
public $db;
public $domain_uuid;
public $meeting_uuid;
public $order_by;
public $order;
public $rows_per_page;
public $offset;
private $fields;
public $search;
public $count;
public function room_count() {
//get the room count
$sql = "select count(*) as num_rows from v_conference_rooms as r, v_meeting_users as u ";
$sql = "select count(*) as num_rows from v_conference_rooms as r, v_meeting_users as u, v_meeting_pins as p ";
$sql .= "where r.domain_uuid = '".$this->domain_uuid."' ";
$sql .= "and r.meeting_uuid = u.meeting_uuid ";
$sql .= "and r.meeting_uuid = p.meeting_uuid ";
$sql .= "and p.member_type = 'moderator' ";
if (!if_group("admin") && !if_group("superadmin")) {
$sql .= "and u.user_uuid = '".$_SESSION["user_uuid"]."' ";
}
//if (is_numeric($this->search)) {
// $sql .= "and p.member_pin = '".$this->search."' ";
//}
if (isset($this->search)) {
$sql .= "and r.meeting_uuid = '".$this->meeting_uuid."' ";
}
$prep_statement = $this->db->prepare(check_sql($sql));
if ($prep_statement) {
$prep_statement->execute();
@@ -68,6 +78,12 @@
if (!if_group("admin") && !if_group("superadmin")) {
$sql .= "and u.user_uuid = '".$_SESSION["user_uuid"]."' ";
}
//if (is_numeric($this->search)) {
// $sql .= "and p.member_pin = '".$this->search."' ";
//}
if (isset($this->search)) {
$sql .= "and r.meeting_uuid = '".$this->meeting_uuid."' ";
}
if (strlen($this->order_by) == 0) {
$sql .= "order by description, meeting_uuid asc ";
} else {