Add record as an option to conference rooms

This commit is contained in:
Mark Crane 2012-10-13 19:26:45 +00:00
parent 642ff8b1ca
commit a372b64fb2
3 changed files with 38 additions and 0 deletions

View File

@ -170,6 +170,11 @@
$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']['text'] = 'record';
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'recording';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Select whether to record the conference.';
$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.';

View File

@ -48,6 +48,7 @@ else {
$conference_center_uuid = check_str($_POST["conference_center_uuid"]);
$member_pin = check_str($_POST["member_pin"]);
$member_type = check_str($_POST["member_type"]);
$record = check_str($_POST["record"]);
$user_uuid = check_str($_POST["user_uuid"]);
$max_members = check_str($_POST["max_members"]);
$wait_mod = check_str($_POST["wait_mod"]);
@ -161,6 +162,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "conference_room_uuid, ";
$sql .= "conference_center_uuid, ";
$sql .= "meeting_uuid, ";
$sql .= "record, ";
$sql .= "max_members, ";
$sql .= "wait_mod, ";
$sql .= "announce, ";
@ -177,6 +179,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$conference_room_uuid', ";
$sql .= "'$conference_center_uuid', ";
$sql .= "'$meeting_uuid', ";
$sql .= "'$record', ";
$sql .= "'$max_members', ";
$sql .= "'$wait_mod', ";
$sql .= "'$announce', ";
@ -220,6 +223,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 .= "record = '$record', ";
$sql .= "max_members = '$max_members', ";
$sql .= "wait_mod = '$wait_mod', ";
$sql .= "announce = '$announce', ";
@ -304,6 +308,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
foreach ($result as &$row) {
$conference_center_uuid = $row["conference_center_uuid"];
$meeting_uuid = $row["meeting_uuid"];
$record = $row["record"];
$max_members = $row["max_members"];
$wait_mod = $row["wait_mod"];
$announce = $row["announce"];
@ -319,6 +324,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
//set default values
if (strlen($record) == 0) { $record = 'false'; }
if (strlen($max_members) == 0) { $max_members = 0; }
if (strlen($wait_mod) == 0) { $wait_mod = 'false'; }
if (strlen($announce) == 0) { $announce = 'true'; }
@ -486,6 +492,31 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " </td>";
echo " </tr>";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " Record:\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='record'>\n";
echo " <option value=''></option>\n";
if ($record == "true") {
echo " <option value='true' selected='selected'>true</option>\n";
}
else {
echo " <option value='true'>true</option>\n";
}
if ($record == "false") {
echo " <option value='false' selected='selected'>false</option>\n";
}
else {
echo " <option value='false'>false</option>\n";
}
echo " </select>\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 " Max Members:\n";

View File

@ -98,6 +98,7 @@ require_once "includes/paging.php";
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_order_by('record', 'Record', $order_by, $order);
echo th_order_by('max_members', 'Max Members', $order_by, $order);
echo th_order_by('wait_mod', 'Wait for Moderator', $order_by, $order);
echo th_order_by('announce', 'Announce', $order_by, $order);
@ -122,6 +123,7 @@ require_once "includes/paging.php";
echo "<tr >\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['conference_center_uuid']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['meeting_uuid']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['record']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['max_members']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['wait_mod']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['announce']."&nbsp;</td>\n";