Interactive Conference: Simplified layout a bit, added icons.

This commit is contained in:
Nate Jones 2015-02-25 20:38:24 +00:00
parent 2cef65a708
commit f047fd90b1
8 changed files with 85 additions and 122 deletions

View File

@ -90,12 +90,12 @@
$text['label-id']['pt-pt'] = "ID";
$text['label-id']['fr-fr'] = "ID";
$text['label-cid-name']['en-us'] = "Caller ID Name";
$text['label-cid-name']['en-us'] = "CID Name";
$text['label-cid-name']['es-cl'] = "Nombre de Caller ID";
$text['label-cid-name']['pt-pt'] = "Nome do Chamador";
$text['label-cid-name']['fr-fr'] = "Nom d'appelant";
$text['label-cid-num']['en-us'] = "Caller ID Number";
$text['label-cid-num']['en-us'] = "CID Number";
$text['label-cid-num']['es-cl'] = "Número de Caller ID";
$text['label-cid-num']['pt-pt'] = "Número do Chamador";
$text['label-cid-num']['fr-fr'] = "Numéro d'appelant";
@ -105,11 +105,21 @@
$text['label-moderator']['pt-pt'] = "Moderador";
$text['label-moderator']['fr-fr'] = "Modérateur";
$text['label-participant']['en-us'] = "Participant";
$text['label-participant']['es-cl'] = "Participante";
$text['label-participant']['pt-pt'] = "Participante";
$text['label-participant']['fr-fr'] = "Participant";
$text['label-joined']['en-us'] = "Joined";
$text['label-joined']['es-cl'] = "Unido";
$text['label-joined']['pt-pt'] = "Entrou";
$text['label-joined']['fr-fr'] = "a joint";
$text['label-capabilities']['en-us'] = "Capabilities";
$text['label-capabilities']['es-cl'] = "Capacidades";
$text['label-capabilities']['pt-pt'] = "Capacidades";
$text['label-capabilities']['fr-fr'] = "Capacités";
$text['label-hear']['en-us'] = "Hear";
$text['label-hear']['es-cl'] = "Escuchar";
$text['label-hear']['pt-pt'] = "Ouvir";
@ -120,20 +130,20 @@
$text['label-speak']['pt-pt'] = "Falar";
$text['label-speak']['fr-fr'] = "parler";
$text['label-video']['en-us'] = "Video";
$text['label-video']['es-cl'] = "Video";
$text['label-video']['pt-pt'] = "Vídeo";
$text['label-video']['fr-fr'] = "Vidéo";
$text['label-talking']['en-us'] = "Talking";
$text['label-talking']['es-cl'] = "Hablando";
$text['label-talking']['pt-pt'] = "Falando";
$text['label-talking']['fr-fr'] = "parle";
$text['label-last-talk']['en-us'] = "Last Talked";
$text['label-last-talk']['es-cl'] = "Último Hablando";
$text['label-last-talk']['pt-pt'] = "Último a falar";
$text['label-last-talk']['fr-fr'] = "dernier parlant";
$text['label-video']['en-us'] = "Video";
$text['label-video']['es-cl'] = "Video";
$text['label-video']['pt-pt'] = "Vídeo";
$text['label-video']['fr-fr'] = "Vidéo";
$text['label-quiet']['en-us'] = "Quiet";
$text['label-quiet']['es-cl'] = "Tranquilo";
$text['label-quiet']['pt-pt'] = "Tranquilo";
$text['label-quiet']['fr-fr'] = "Calme";
$text['label-floor']['en-us'] = "Has Floor";
$text['label-floor']['es-cl'] = "Tiene Piso";
@ -145,14 +155,14 @@
$text['label-tool']['pt-pt'] = "Ferramentas";
$text['label-tool']['fr-fr'] = "Outils";
$text['label-yes']['en-us'] = "yes";
$text['label-yes']['es-cl'] = "si";
$text['label-yes']['pt-pt'] = "sim";
$text['label-yes']['en-us'] = "Yes";
$text['label-yes']['es-cl'] = "Si";
$text['label-yes']['pt-pt'] = "Sim";
$text['label-yes']['fr-fr'] = "Oui";
$text['label-no']['en-us'] = "no";
$text['label-no']['es-cl'] = "no";
$text['label-no']['pt-pt'] = "não";
$text['label-no']['en-us'] = "No";
$text['label-no']['es-cl'] = "No";
$text['label-no']['pt-pt'] = "Não";
$text['label-no']['fr-fr'] = "Non";
$text['label-energy']['en-us'] = "Energy";
@ -185,7 +195,7 @@
$text['label-mute-all']['pt-pt'] = "Silenciar tudo";
$text['label-mute-all']['fr-fr'] = "tous muets";
$text['label-mute-all-alt']['en-us'] = "Mute all but moderator.";
$text['label-mute-all-alt']['en-us'] = "Mute all Participants.";
$text['label-mute-all-alt']['es-cl'] = "Silenciar a todos excepto al moderador.";
$text['label-mute-all-alt']['pt-pt'] = "Silenciar tudo menos o moderador.";
$text['label-mute-all-alt']['fr-fr'] = "muets sauf le moderateur.";
@ -195,6 +205,16 @@
$text['label-unmute-all']['pt-pt'] = "Todos com som";
$text['label-unmute-all']['fr-fr'] = "tous sonore";
$text['message-click_to_mute']['en-us'] = "Click to mute Member";
$text['message-click_to_mute']['es-cl'] = "Haga clic en silencio miembro";
$text['message-click_to_mute']['pt-pt'] = "Clique para silenciar Estados";
$text['message-click_to_mute']['fr-fr'] = "Cliquez sur muet Membres";
$text['message-click_to_unmute']['en-us'] = "Click to Unmute Member";
$text['message-click_to_unmute']['es-cl'] = "Haga clic para desactivar el silencio miembro";
$text['message-click_to_unmute']['pt-pt'] = "Clique para microf Estados";
$text['message-click_to_unmute']['fr-fr'] = "Cliquez pour Réactiver membres";
$text['label-end-conference']['en-us'] = "End Conference";
$text['label-end-conference']['es-cl'] = "Terminar Conferencia";
$text['label-end-conference']['pt-pt'] = "Terminar conferência";
@ -245,4 +265,11 @@
$text['label-participant-pin']['pt-pt'] = "Participante PIN";
$text['label-participant-pin']['fr-fr'] = "Code Participant";
$text['label-members']['en-us'] = "Members";
$text['label-members']['es-cl'] = "Miembros";
$text['label-members']['pt-pt'] = "Deputados";
$text['label-members']['fr-fr'] = "Membres";
?>

View File

@ -99,15 +99,10 @@ else {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='3' >\n";
echo " <strong>\n";
echo " Members: ".$member_count."\n";
echo " </strong>\n";
echo "</td>\n";
echo "<td colspan='2'>\n";
echo " &nbsp;\n";
echo "</td>\n";
echo "<td colspan='7' align='right'>\n";
echo " <td>";
echo " <strong style='color: #000;'>".$text['label-members'].": ".$member_count."</strong>\n";
echo " </td>\n";
echo "<td align='right'>\n";
$recording_dir = $_SESSION['switch']['recordings']['dir'].'/archive/'.date("Y").'/'.date("M").'/'.date("d");
$recording_name = '';
@ -121,43 +116,30 @@ else {
echo "<img src='resources/images/".(($recording == "true") ? "recording.png" : "not_recording.png")."' style='width: 16px; height: 16px; border: none;' align='absmiddle' title=\"".$text['label-'.(($recording == "true") ? 'recording' : 'not-recording')]."\">&nbsp;&nbsp;";
if (permission_exists('conference_interactive_lock')) {
if ($locked == "true") {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=unlock');\" value='".$text['label-unlock']."'>\n";
$action_locked = ($locked == "true") ? 'unlock' : 'lock';
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=".$action_locked."');\" value='".$text['label-'.$action_locked]."'>\n";
}
else {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=lock');\" value='".$text['label-lock']."'>\n";
if (permission_exists('conference_interactive_mute')) {
$action_mute_all = ($mute_all == "true") ? 'unmute' : 'mute';
echo " <input type='button' class='btn' title=\"".$text['label-mute-all-alt']."\" onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=".$action_mute_all."+non_moderator');\" value='".$text['label-'.$action_mute_all.'-all']."'>\n";
}
}
if ($mute_all == "true") {
echo " <input type='button' class='btn' title=\"".$text['label-mute-all-alt']."\" onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=unmute+non_moderator');\" value='".$text['label-unmute-all']."'>\n";
}
else {
echo " <input type='button' class='btn' title=\"".$text['label-mute-all-alt']."\" onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=mute+non_moderator');\" value='".$text['label-mute-all']."'>\n";
}
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick+all');\" value='".$text['label-end-conference']."'>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr><td colspan='30'>&nbsp;</td></tr>\n";
echo "</table>\n";
echo "<br />\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>".$text['label-id']."</th>\n";
//echo "<th>UUID</th>\n";
echo "<th width='1'>&nbsp;</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-capabilities']."</th>\n";
echo "<th>".$text['label-joined']."</th>\n";
echo "<th>".$text['label-hear']."</th>\n";
echo "<th>".$text['label-speak']."</th>\n";
echo "<th>".$text['label-talking']."</th>\n";
echo "<th>".$text['label-last-talk']."</th>\n";
if (permission_exists('conference_interactive_video')) {
echo "<th>".$text['label-video']."</th>\n";
}
echo "<th>".$text['label-quiet']."</th>\n";
echo "<th>".$text['label-floor']."</th>\n";
echo "<th>".$text['label-tool']."</th>\n";
echo "<th>&nbsp;</th>\n";
echo "</tr>\n";
foreach ($xml->conference->members->member as $row) {
@ -180,106 +162,60 @@ else {
//format the seconds
$join_time_formatted = sprintf("%02s", floor($join_time/3600)).":".sprintf("%02s",floor($join_time/60)).":".sprintf("%02s",($join_time - (floor($join_time/60))*60));
$last_talking_formatted = sprintf("%02s",floor($last_talking/3600)).":".sprintf("%02s",floor($last_talking/60)).":".sprintf("%02s",($last_talking - (floor($last_talking/60))*60));
$flag_has_video = 'true';
if (strlen($record_path) == 0) {
if (permission_exists('conference_interactive_mute')) {
$action_mute = ($flag_can_speak == "true") ? 'mute' : 'unmute';
$td_onclick = "onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=".$action_mute."&id=".$id."');\"";
$td_title = "title=\"".$text['message-click_to_'.$action_mute]."\"";
}
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>$id</td>\n";
//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";
}
else {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-no']."</td>\n";
}
if ($flag_can_speak == "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";
}
if ($flag_talking == "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]."'>$last_talking_formatted</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title." style='padding: 4px 6px;'><img src='resources/images/".(($is_moderator == "true") ? 'moderator' : 'participant').".png' style='width: 16px; height: 16px; border: none;' title=\"".$text['label-'.(($is_moderator == "true") ? 'moderator' : 'participant')]."\"></td>\n";
$talking_icon = ($flag_talking == "true") ? "<img src='resources/images/talking.png' style='width: 16px; height: 16px; border: none; margin: -2px 10px -2px 15px;' align='absmiddle' title=\"".$text['label-talking']."\">" : null;
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title.">".$caller_id_name.$talking_icon."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title.">".$caller_id_number."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title." style='padding-top: 5px;'>";
echo ($flag_can_hear == "true") ? "<img src='resources/images/hear.png' style='width: 16px; height: 16px; border: none; margin: 0px 4px -2px 0px;' align='absmiddle' title=\"".$text['label-hear']."\">" : null;
echo ($flag_can_speak == "true") ? "<img src='resources/images/speak.png' style='width: 16px; height: 16px; border: none; margin: 0px 6px -2px 0px;' align='absmiddle' title=\"".$text['label-speak']."\">" : null;
if (permission_exists('conference_interactive_video')) {
if ($flag_has_video == "true") {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-yes']."</td>\n";
echo ($flag_has_video == "true") ? "<img src='resources/images/video.png' style='width: 16px; height: 16px; border: none; margin: 0px 4px -2px 0px;' align='absmiddle' title=\"".$text['label-video']."\">" : null;
}
else {
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-no']."</td>\n";
}
}
if ($flag_has_floor == "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]."' style='text-align:right;'>\n";
echo "</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title.">".$join_time_formatted."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title.">".$last_talking_formatted."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' ".$td_onclick." ".$td_title.">".$text['label-'.(($flag_has_floor == "true") ? 'yes' : 'no')]."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' style='text-align: right; padding: 1px 2px; white-space: nowrap;'>\n";
//energy
if (permission_exists('conference_interactive_energy')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\" value='+".$text['label-energy']."'>\n";
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\" value='-".$text['label-energy']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\">+".$text['label-energy']."</a>&nbsp;\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\">-".$text['label-energy']."</a>&nbsp;\n";
}
//volume
if (permission_exists('conference_interactive_volume')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."%&data=volume_in&id=".$id."');\" value='+".$text['label-volume']."'>\n";
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_in&id=".$id."');\" value='-".$text['label-volume']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."%&data=volume_in&id=".$id."');\">+".$text['label-volume']."</a>&nbsp;\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_in&id=".$id."');\">-".$text['label-volume']."</a>&nbsp;\n";
}
if (permission_exists('conference_interactive_gain')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\" value='+".$text['label-gain']."'>\n";
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\" value='-".$text['label-gain']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\">+".$text['label-gain']."</a>&nbsp;\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\">-".$text['label-gain']."</a>&nbsp;\n";
}
//mute and unmute
if (permission_exists('conference_interactive_mute')) {
if ($flag_can_speak == "true") {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=mute&id=".$id."');\" value='".$text['label-mute']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('');\">".$text['label-mute']."</a>&nbsp;\n";
}
else {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=unmute&id=".$id."');\" value='".$text['label-unmute']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=unmute&id=".$id."');\">".$text['label-unmute']."</a>&nbsp;\n";
}
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=".$action_mute."&id=".$id."');\" value='".$text['label-'.$action_mute]."'>\n";
}
//deaf and undeaf
if (permission_exists('conference_interactive_deaf')) {
if ($flag_can_hear == "true") {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=deaf&id=".$id."');\" value='".$text['label-deaf']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=deaf&id=".$id."');\">".$text['label-deaf']."</a>&nbsp;\n";
}
else {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=undeaf&id=".$id."');\" value='".$text['label-undeaf']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=undeaf&id=".$id."');\">".$text['label-undeaf']."</a>&nbsp;\n";
}
$action_deaf = ($flag_can_hear == "true") ? 'deaf' : 'undeaf';
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=".$action_deaf."&id=".$id."');\" value='".$text['label-'.$action_deaf]."'>\n";
}
//kick someone from the conference
if (permission_exists('conference_interactive_kick')) {
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick&id=".$id."&uuid=".$uuid."');\" value='".$text['label-kick']."'>\n";
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick&id=".$id."&uuid=".$uuid."');\">".$text['label-kick']."</a>&nbsp;\n";
}
echo " &nbsp;";
echo "</td>\n";
echo "</tr>\n";
}
if ($c==0) { $c=1; } else { $c=0; }
$c = ($c == 0) ? 1 : 0;
}
echo "</table>\n";
echo "<br /><br />";

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B