Conference Center: Added room name field.

This commit is contained in:
Nate Jones
2014-11-30 03:43:04 +00:00
parent bbd8c183ef
commit bd6f243190
5 changed files with 59 additions and 86 deletions

View File

@@ -252,6 +252,10 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "meeting_uuid";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Meeting UUID";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "conference_room_name";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the conference room name.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "profile";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the conference profile.";

View File

@@ -198,6 +198,16 @@
$text['label-conference-name']['pt-pt'] = "Nome da Conferência";
$text['label-conference-name']['fr-fr'] = "Nom de la Conférence";
$text['label-room-name']['en-us'] = "Room Name";
$text['label-room-name']['es-cl'] = "Nombre de la Sala";
$text['label-room-name']['pt-pt'] = "Nome da Sala";
$text['label-room-name']['fr-fr'] = "Nom de Chambre";
$text['description-room-name']['en-us'] = "Enter a name for the conference room.";
$text['description-room-name']['es-cl'] = "Introduzca un nombre para la sala de conferencias.";
$text['description-room-name']['pt-pt'] = "Digite um nome para a sala de conferências.";
$text['description-room-name']['fr-fr'] = "Entrez un nom pour la salle de conférence.";
$text['label-greeting']['en-us'] = "Greeting";
$text['label-greeting']['es-cl'] = "Mensaje";
$text['label-greeting']['pt-pt'] = "Saudaçãoa";

View File

@@ -53,6 +53,7 @@ else {
if (count($_POST) > 0) {
$conference_center_uuid = check_str($_POST["conference_center_uuid"]);
$meeting_uuid = check_str($_POST["meeting_uuid"]);
$conference_room_name = check_str($_POST['conference_room_name']);
$moderator_pin = check_str($_POST["moderator_pin"]);
$participant_pin = check_str($_POST["participant_pin"]);
$profile = check_str($_POST["profile"]);
@@ -286,6 +287,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "conference_room_uuid, ";
$sql .= "conference_center_uuid, ";
$sql .= "meeting_uuid, ";
$sql .= "conference_room_name, ";
$sql .= "profile, ";
$sql .= "record, ";
$sql .= "max_members, ";
@@ -306,6 +308,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$conference_room_uuid', ";
$sql .= "'$conference_center_uuid', ";
$sql .= "'$meeting_uuid', ";
$sql .= "'$conference_room_name', ";
$sql .= "'$profile', ";
$sql .= "'$record', ";
$sql .= "'$max_members', ";
@@ -378,6 +381,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql = "update v_conference_rooms set ";
$sql .= "conference_center_uuid = '$conference_center_uuid', ";
//$sql .= "meeting_uuid = '$meeting_uuid', ";
$sql .= "conference_room_name = '$conference_room_name', ";
if (strlen($profile) > 0) {
$sql .= "profile = '$profile', ";
}
@@ -458,6 +462,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$meeting_uuid = $row["meeting_uuid"];
$moderator_pin = $row["moderator_pin"];
$participant_pin = $row["participant_pin"];
$conference_room_name = $row["conference_room_name"];
$profile = $row["profile"];
$record = $row["record"];
$max_members = $row["max_members"];
@@ -525,9 +530,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-conference-name'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-conference-name']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='conference_center_uuid'>\n";
foreach ($conference_centers as &$row) {
@@ -546,27 +549,34 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</tr>\n";
echo " <tr>";
echo " <td class='vncell' valign='top'>".$text['label-moderator-pin'].":</td>";
echo " <td class='vncell' valign='top'>".$text['label-room-name']."</td>";
echo " <td class='vtable' align='left'>";
echo " <input class='formfld' type='text' name='conference_room_name' maxlength='255' value='$conference_room_name'>\n";
echo " <br />\n";
echo " ".$text['description-room-name']."\n";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td class='vncell' valign='top'>".$text['label-moderator-pin']."</td>";
echo " <td class='vtable' align='left'>";
echo " <input class='formfld' type='text' name='moderator_pin' maxlength='255' value='$moderator_pin'>\n";
echo " <br />\n";
echo " ".$text['description-moderator-pin']."\n";
echo " <br />\n";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td class='vncell' valign='top'>".$text['label-participant-pin'].":</td>";
echo " <td class='vncell' valign='top'>".$text['label-participant-pin']."</td>";
echo " <td class='vtable' align='left'>";
echo " <input class='formfld' type='text' name='participant_pin' maxlength='255' value='$participant_pin'>\n";
echo " <br />\n";
echo " ".$text['description-participant-pin']."\n";
echo " <br />\n";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td class='vncell' valign='top'>".$text['label-users'].":</td>";
echo " <td class='vncell' valign='top'>".$text['label-users']."</td>";
echo " <td class='vtable' align='left'>";
if ($action == "update") {
echo " <table border='0' style='width : 235px;'>\n";
@@ -611,15 +621,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql, $result);
echo " <br>\n";
echo " ".$text['description-users']."\n";
echo " <br />\n";
echo " </td>";
echo " </tr>";
if (permission_exists('conference_room_profile')) {
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-profile'].":\n";
echo "</td>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>".$text['label-profile']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='profile' maxlength='255' value='$profile'>\n";
echo " <br />\n";
@@ -630,9 +637,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (permission_exists('conference_room_record')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-record'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-record']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='record'>\n";
echo " <option value=''></option>\n";
@@ -650,16 +655,13 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
}
if (permission_exists('conference_room_max_members')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-max-members'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-max-members']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='max_members' maxlength='255' value='$max_members'>\n";
echo "<br />\n";
@@ -669,9 +671,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo "<tr>\n";
echo "<td class='vncell' valign='top' nowrap='nowrap' width='30%'>\n";
echo " ".$text['label-schedule']."\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' nowrap='nowrap' width='30%'>".$text['label-schedule']."</td>\n";
echo "<td class='vtable' width='70%' align='left' style='white-space: nowrap;'>\n";
echo " <input type='text' class='formfld' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_datetime' id='start_datetime' data-calendar=\"{format: '%Y-%m-%d %H:%M', listYears: true, hideOnPick: false, fxName: null, showButtons: true}\" placeholder='".$text['label-from']."' value='".$start_datetime."'>\n";
echo " <input type='text' class='formfld' style='min-width: 115px; width: 115px; max-width: 115px;' name='stop_datetime' id='stop_datetime' data-calendar=\"{format: '%Y-%m-%d %H:%M', listYears: true, hideOnPick: false, fxName: null, showButtons: true}\" placeholder='".$text['label-to']."' value='".$stop_datetime."'>\n";
@@ -681,9 +681,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (permission_exists('conference_room_wait_mod')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-wait-for-moderator'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-wait-for-moderator']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='wait_mod'>\n";
echo " <option value=''></option>\n";
@@ -701,16 +699,13 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
}
if (permission_exists('conference_room_announce')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-announce'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-announce']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='announce'>\n";
echo " <option value=''></option>\n";
@@ -728,7 +723,6 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
}
@@ -746,9 +740,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (permission_exists('conference_room_mute')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-mute'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-mute']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='mute'>\n";
echo " <option value=''></option>\n";
@@ -771,42 +763,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</tr>\n";
}
/*
if ($action == "update" && permission_exists('conference_room_edit')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " Created:\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <table border='0' width='100%' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td valign='top' align='top'><input name='created' readonly class='formfld' value='$created' type='text' class='formfld' onclick='popUpCalendar(this, this, \"mm/dd/yyyy\");'></td>\n";
echo " <td valign='middle' align='top' width='20' align='right'><img src='/images/icon_calendar.gif' onclick='popUpCalendar(this, frm.created, \"mm/dd/yyyy\");'></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " Created By:\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='created_by' maxlength='255' value=\"$created_by\">\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
}
*/
if (permission_exists('conference_room_profile')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-enabled'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-enabled']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='enabled'>\n";
echo " <option value=''></option>\n";
@@ -831,9 +790,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (permission_exists('conference_room_sounds')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-sounds'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-sounds']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='sounds'>\n";
echo " <option value=''></option>\n";
@@ -857,26 +814,26 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-description'].":\n";
echo "</td>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>".$text['label-description']."</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='description' maxlength='255' value=\"$description\">\n";
echo "<br />\n";
echo "\n";
echo "</td>\n";
echo "</tr>\n";
echo " <tr>\n";
echo " <td colspan='2' align='right'>\n";
echo " <br>";
echo "<tr>\n";
echo " <td colspan='2' align='right'>\n";
echo " <br>";
if ($action == "update") {
echo " <input type='hidden' name='conference_center_uuid' value='$conference_center_uuid'>\n";
echo " <input type='hidden' name='meeting_uuid' value='$meeting_uuid'>\n";
echo " <input type='hidden' name='conference_room_uuid' value='$conference_room_uuid'>\n";
echo " <input type='hidden' name='conference_center_uuid' value='$conference_center_uuid'>\n";
echo " <input type='hidden' name='meeting_uuid' value='$meeting_uuid'>\n";
echo " <input type='hidden' name='conference_room_uuid' value='$conference_room_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo "</tr>";
echo "</table>";
echo "<br>";

View File

@@ -208,17 +208,16 @@ else {
echo "<tr>\n";
//echo th_order_by('conference_center_uuid', 'Conference UUID', $order_by, $order);
//echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order);
echo "<th nowrap='nowrap'>".$text['label-name']."</th>\n";
echo "<th nowrap='nowrap'>".$text['label-moderator-pin']."</th>\n";
echo "<th nowrap='nowrap'>".$text['label-participant-pin']."</th>\n";
//echo th_order_by('profile', $text['label-profile'], $order_by, $order);
echo th_order_by('record', $text['label-record'], $order_by, $order);
//echo th_order_by('max_members', 'Max', $order_by, $order);
echo th_order_by('wait_mod', $text['label-moderator'], $order_by, $order);
echo th_order_by('wait_mod', $text['label-wait-moderator'], $order_by, $order);
echo th_order_by('announce', $text['label-announce'], $order_by, $order);
//echo th_order_by('enter_sound', 'Enter Sound', $order_by, $order);
echo th_order_by('mute', $text['label-mute'], $order_by, $order);
//echo th_order_by('created', 'Created', $order_by, $order);
//echo th_order_by('created_by', 'Created By', $order_by, $order);
echo th_order_by('sounds', $text['label-sounds'], $order_by, $order);
echo "<th>".$text['label-members']."</th>\n";
echo "<th>".$text['label-tools']."</th>\n";
@@ -240,6 +239,7 @@ else {
if ($result_count > 0) {
foreach($result as $row) {
$meeting_uuid = $row['meeting_uuid'];
$conference_room_name = $row['conference_room_name'];
$moderator_pin = $row['moderator_pin'];
$participant_pin = $row['participant_pin'];
if (strlen($moderator_pin) == 9) {
@@ -251,6 +251,7 @@ else {
$tr_link = (permission_exists('conference_room_edit')) ? "href='conference_room_edit.php?id=".$row['conference_room_uuid']."'" : null;
echo "<tr ".$tr_link.">\n";
echo " <td valign='middle' class='".$row_style[$c]."'>".(($conference_room_name != '') ? "<a ".$tr_link.">".$conference_room_name."</a>" : "&nbsp;")."</td>\n";
echo " <td valign='middle' class='".$row_style[$c]."'>".$moderator_pin."</td>\n";
echo " <td valign='middle' class='".$row_style[$c]."'>".$participant_pin."</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['conference_center_uuid']."&nbsp;</td>\n";

View File

@@ -64,7 +64,7 @@
public function rooms() {
//get the list of rooms
$fields = "r.domain_uuid, r.conference_room_uuid, r.conference_center_uuid, r.meeting_uuid, max_members, ";
$fields = "r.domain_uuid, r.conference_room_uuid, r.conference_center_uuid, r.meeting_uuid, r.conference_room_name, max_members, ";
$fields .= "wait_mod, announce, mute, sounds, created, created_by, r.enabled, r.description, record, ";
$fields .= "profile, meeting_user_uuid, user_uuid, moderator_pin, participant_pin ";
$sql = "select ".$fields." from v_conference_rooms as r, v_meeting_users as u, v_meetings as p ";
@@ -101,6 +101,7 @@
$result[$x]["conference_room_uuid"] = $row["conference_room_uuid"];
$result[$x]["conference_center_uuid"] = $row["conference_center_uuid"];
$result[$x]["meeting_uuid"] = $row["meeting_uuid"];
$result[$x]["conference_room_name"] = $row["conference_room_name"];
$result[$x]["max_members"] = $row["max_members"];
$result[$x]["wait_mod"] = $row["wait_mod"];
$result[$x]["announce"] = $row["announce"];