Update active conference add a column to identifier the moderator.

This commit is contained in:
Mark Crane
2013-01-25 15:42:52 +00:00
parent f6825bb786
commit 1a2e661391
3 changed files with 18 additions and 9 deletions

View File

@@ -53,19 +53,19 @@
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
$apps[$x]['permissions'][4]['name'] = 'conferences_active_energy';
$apps[$x]['permissions'][4]['groups'][] = 'user';
$apps[$x]['permissions'][4]['groups'][] = 'admin';
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][4]['groups'][] = 'user';
//$apps[$x]['permissions'][4]['groups'][] = 'admin';
//$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
$apps[$x]['permissions'][5]['name'] = 'conferences_active_volume';
$apps[$x]['permissions'][5]['groups'][] = 'user';
$apps[$x]['permissions'][5]['groups'][] = 'admin';
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][5]['groups'][] = 'user';
//$apps[$x]['permissions'][5]['groups'][] = 'admin';
//$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
$apps[$x]['permissions'][6]['name'] = 'conferences_active_gain';
$apps[$x]['permissions'][6]['groups'][] = 'user';
$apps[$x]['permissions'][6]['groups'][] = 'admin';
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][6]['groups'][] = 'user';
//$apps[$x]['permissions'][6]['groups'][] = 'admin';
//$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
$apps[$x]['permissions'][7]['name'] = 'conferences_active_mute';
$apps[$x]['permissions'][7]['groups'][] = 'user';

View File

@@ -39,6 +39,7 @@
$text['label-id']['en-us'] = 'ID';
$text['label-cid-name']['en-us'] = 'Caller ID Name';
$text['label-cid-num']['en-us'] = 'Caller ID Number';
$text['label-moderator']['en-us'] = 'Moderator';
$text['label-joined']['en-us'] = 'Joined';
$text['label-hear']['en-us'] = 'Hear';
$text['label-speak']['en-us'] = 'Speak';

View File

@@ -165,6 +165,7 @@ else {
//echo "<th>UUID</th>\n";
echo "<th>".$text['label-cid-name']."</th>\n";
echo "<th>".$text['label-cid-num']."</th>\n";
echo "<th>".$text['label-moderator']."</th>\n";
echo "<th>".$text['label-joined']."</th>\n";
echo "<th>".$text['label-hear']."</th>\n";
echo "<th>".$text['label-speak']."</th>\n";
@@ -185,6 +186,7 @@ else {
$join_time = $row->join_time;
$flag_has_video = $row->flags->has_video;
$flag_has_floor = $row->flags->has_floor;
$is_moderator = $row->flags->is_moderator;
$uuid = $row->uuid;
$caller_id_name = $row->caller_id_name;
$caller_id_name = str_replace("%20", " ", $caller_id_name);
@@ -200,6 +202,12 @@ else {
//echo "<td valign='top' class='".$row_style[$c]."'>$uuid</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>$caller_id_name</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>$caller_id_number</td>\n";
if ($is_moderator == "true") {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-yes']."</td>\n";
}
else {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-no']."</td>\n";
}
echo "<td valign='top' class='".$row_style[$c]."'>".$join_time_formatted."</td>\n";
if ($flag_can_hear == "true") {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-yes']."</td>\n";