Conference Center: Added schedule (start/stop) fields to Conference Room edit gui. Back end forthcoming.

This commit is contained in:
Nate Jones 2014-11-29 21:21:26 +00:00
parent 836ee32400
commit 0464366e8f
4 changed files with 71 additions and 35 deletions

View File

@ -112,6 +112,11 @@
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$apps[$x]['permissions'][$y]['groups'][] = "user";
$y++;
$apps[$x]['permissions'][$y]['name'] = "conference_room_schedule";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$apps[$x]['permissions'][$y]['groups'][] = "user";
$y++;
$apps[$x]['permissions'][$y]['name'] = "conference_room_announce";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
@ -260,6 +265,14 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Limit number of people in the conference.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "start_datetime";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Open the conference room at the start time.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "stop_datetime";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Close the conference room at the stop time.";
$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-us'] = "Wait for the moderator to join before starting the conference.";

View File

@ -268,6 +268,26 @@
$text['label-max-members']['pt-pt'] = "Nº máximo de membros";
$text['label-max-members']['fr-fr'] = "Membres Max";
$text['label-schedule']['en-us'] = "Schedule";
$text['label-schedule']['es-cl'] = "Horario";
$text['label-schedule']['pt-pt'] = "Horário";
$text['label-schedule']['fr-fr'] = "Calendrier";
$text['description-schedule']['en-us'] = "Set a start and stop date/time for this room.";
$text['description-schedule']['es-cl'] = "Establezca un inicio y parada de fecha/hora para esta sala.";
$text['description-schedule']['pt-pt'] = "Definir uma partida e parada de data/hora para este quarto.";
$text['description-schedule']['fr-fr'] = "Définir un démarrage et d'arrêt de date/heure pour cette chambre.";
$text['label-from']['en-us'] = "From";
$text['label-from']['es-cl'] = "Desde";
$text['label-from']['pt-pt'] = "A Partir De";
$text['label-from']['fr-fr'] = "A Partir De";
$text['label-to']['en-us'] = "To";
$text['label-to']['es-cl'] = "Final";
$text['label-to']['pt-pt'] = "Final";
$text['label-to']['fr-fr'] = "Fin";
$text['label-wait-for-moderator']['en-us'] = "Wait for Moderator";
$text['label-wait-for-moderator']['es-cl'] = "Esperar un Moderador";
$text['label-wait-for-moderator']['pt-pt'] = "Esperar pelo Moderador";

View File

@ -59,6 +59,8 @@ else {
$record = check_str($_POST["record"]);
$user_uuid = check_str($_POST["user_uuid"]);
$max_members = check_str($_POST["max_members"]);
$start_datetime = check_str($_POST["start_datetime"]);
$stop_datetime = check_str($_POST["stop_datetime"]);
$wait_mod = check_str($_POST["wait_mod"]);
$announce = check_str($_POST["announce"]);
$sounds = check_str($_POST["sounds"]);
@ -214,6 +216,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//check for all required data
//if (strlen($conference_center_uuid) == 0) { $msg .= "Please provide: Conference UUID<br>\n"; }
//if (strlen($max_members) == 0) { $msg .= "Please provide: Max Members<br>\n"; }
//if (strlen($start_datetime) == 0) { $msg .= "Please provide: Start Date/Time<br>\n"; }
//if (strlen($stop_datetime) == 0) { $msg .= "Please provide: Stop Date/Time<br>\n"; }
//if (strlen($wait_mod) == 0) { $msg .= "Please provide: Wait for the Moderator<br>\n"; }
//if (strlen($profile) == 0) { $msg .= "Please provide: Conference Profile<br>\n"; }
//if (strlen($announce) == 0) { $msg .= "Please provide: Announce<br>\n"; }
@ -285,6 +289,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "profile, ";
$sql .= "record, ";
$sql .= "max_members, ";
$sql .= "start_datetime, ";
$sql .= "stop_datetime, ";
$sql .= "wait_mod, ";
$sql .= "announce, ";
$sql .= "sounds, ";
@ -303,6 +309,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$profile', ";
$sql .= "'$record', ";
$sql .= "'$max_members', ";
$sql .= "'$start_datetime', ";
$sql .= "'$stop_datetime', ";
$sql .= "'$wait_mod', ";
$sql .= "'$announce', ";
$sql .= "'$sounds', ";
@ -379,6 +387,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (strlen($max_members) > 0) {
$sql .= "max_members = '$max_members', ";
}
if (strlen($start_datetime) > 0) {
$sql .= "start_datetime = '".$start_datetime."', ";
}
if (strlen($stop_datetime) > 0) {
$sql .= "stop_datetime = '".$stop_datetime."', ";
}
if (strlen($wait_mod) > 0) {
$sql .= "wait_mod = '$wait_mod', ";
}
@ -451,6 +465,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$profile = $row["profile"];
$record = $row["record"];
$max_members = $row["max_members"];
$start_datetime = $row["start_datetime"];
$stop_datetime = $row["stop_datetime"];
$wait_mod = $row["wait_mod"];
$announce = $row["announce"];
$sounds = $row["sounds"];
@ -495,18 +511,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing=''>\n";
echo "<tr class='border'>\n";
echo " <td align=\"left\">\n";
echo " <br>";
echo "<form method='post' name='frm' action=''>\n";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['title-conference-rooms']."</b></td>\n";
echo "<td width='70%' align='right'>\n";
echo "<td align='left' valign='top' width='30%' nowrap='nowrap'><b>".$text['title-conference-rooms']."</b></td>\n";
echo "<td width='70%' align='right' valign='top'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='conference_rooms.php'\" value='".$text['button-back']."'>\n";
if (strlen($meeting_uuid) > 0) {
echo " <input type='button' class='btn' name='' alt='".$text['button-sessions']."' onclick=\"window.location='conference_sessions.php?id=".$meeting_uuid."'\" value='".$text['button-sessions']."'>\n";
@ -662,6 +672,17 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</tr>\n";
}
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='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";
echo " <br>".$text['description-schedule'];
echo "</td>\n";
echo "</tr>\n";
if (permission_exists('conference_room_wait_mod')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
@ -860,12 +881,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " </td>\n";
echo " </tr>";
echo "</table>";
echo "</form>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</div>";
//include the footer
require_once "resources/footer.php";

View File

@ -150,24 +150,18 @@ else {
$order = $_GET["order"];
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
echo "<tr class='border'>\n";
echo " <td align=\"center\">\n";
echo " <br />";
echo "<table width='100%' border='0'>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
echo " <tr>\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 " <td width='50%' align='left' valign='top' nowrap='nowrap'><b>".$text['title-conference-rooms']."</b></td>\n";
echo " <td width='50%' align='right' valign='top'>\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";
echo "<br />\n";
echo "<br /><br>\n";
//get the conference room count
require_once "app/conference_centers/resources/classes/conference_center.php";
@ -210,7 +204,6 @@ else {
$row_style["1"] = "row_style1";
//table header
echo "<div align='center'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
//echo th_order_by('conference_center_uuid', 'Conference UUID', $order_by, $order);
@ -220,7 +213,7 @@ else {
//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-wait-moderator'], $order_by, $order);
echo th_order_by('wait_mod', $text['label-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);
@ -373,15 +366,7 @@ else {
//close the tables
echo "</table>";
echo "</div>";
echo "<br /><br />";
echo "<br /><br />";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<br /><br />";
echo "<br><br>";
//include the footer
require_once "resources/footer.php";