Finish the translation infrastructure for conference center sessions.

This commit is contained in:
Mark Crane 2012-11-09 08:27:55 +00:00
parent e86b2b81dc
commit b5eb517cda
3 changed files with 119 additions and 32 deletions

View File

@ -150,4 +150,77 @@
$text['button-save']['en-us'] = 'Save';
$text['button-save']['pt-pt'] = 'Guardar';
//Conference Sessions
$text['title-conference-sessions']['en-us'] = 'Conference Sessions';
$text['title-conference-sessions']['pt-pt'] = '';
$text['description-conference-sessions']['en-us'] = 'Conference Sessions are log details about the conferences.';
$text['description-conference-sessions']['pt-pt'] = '';
$text['label-time']['en-us'] = 'Time';
$text['label-time']['pt-pt'] = '';
$text['label-start']['en-us'] = 'Start';
$text['label-start']['pt-pt'] = '';
$text['label-end']['en-us'] = 'End';
$text['label-end']['pt-pt'] = '';
$text['label-profile']['en-us'] = 'Profile';
$text['label-profile']['pt-pt'] = '';
$text['label-recording']['en-us'] = 'Recording';
$text['label-recording']['pt-pt'] = '';
$text['label-tools']['en-us'] = 'Tools';
$text['label-tools']['pt-pt'] = '';
$text['label-details']['en-us'] = 'Details';
$text['label-details']['pt-pt'] = '';
$text['label-play']['en-us'] = 'Play';
$text['label-play']['pt-pt'] = '';
$text['label-download']['en-us'] = 'Download';
$text['label-download']['pt-pt'] = '';
//Conference Sessions Details
$text['title-conference-session-details']['en-us'] = 'Conference Session Details';
$text['title-conference-session-details']['pt-pt'] = '';
$text['description-conference-session-details']['en-us'] = 'Conference Sessions are log details of the conferences calls.';
$text['description-conference-session-details']['pt-pt'] = '';
$text['label-username']['en-us'] = 'Username';
$text['label-username']['pt-pt'] = '';
$text['label-uuid']['en-us'] = 'UUID';
$text['label-uuid']['pt-pt'] = '';
$text['label-caller-id-name']['en-us'] = 'Caller ID Name';
$text['label-caller-id-name']['pt-pt'] = '';
$text['label-caller-id-number']['en-us'] = 'Caller ID Number';
$text['label-caller-id-number']['pt-pt'] = '';
$text['label-moderator']['en-us'] = 'Moderator';
$text['label-moderator']['pt-pt'] = '';
$text['label-network-address']['en-us'] = 'Network Address';
$text['label-network-address']['pt-pt'] = '';
$text['label-time']['en-us'] = 'Time';
$text['label-time']['pt-pt'] = '';
$text['label-start']['en-us'] = 'Start';
$text['label-start']['pt-pt'] = '';
$text['label-end']['en-us'] = 'End';
$text['label-end']['pt-pt'] = '';
$text['label-details']['en-us'] = 'Details';
$text['label-details']['pt-pt'] = '';
$text['label-cdr']['en-us'] = 'CDR';
$text['label-cdr']['pt-pt'] = '';
?>

View File

@ -32,8 +32,16 @@ else {
echo "access denied";
exit;
}
require_once "includes/header.php";
require_once "includes/paging.php";
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//additional includes
require_once "includes/header.php";
require_once "includes/paging.php";
//set variables from the http values
$order_by = check_str($_GET["order_by"]);
@ -49,12 +57,12 @@ require_once "includes/paging.php";
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>Conference Session Details</b></td>\n";
echo " <td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='conference_sessions.php'\" value='Back'></td>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>".$text['title-conference-session-details']."</b></td>\n";
echo " <td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='conference_sessions.php'\" value='".$text['button-back']."'></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' colspan='2'>\n";
echo " Conference Sessions are log details about the conferences.<br /><br />\n";
echo " ".$text['description-conference-session-details']."<br /><br />\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";
@ -109,16 +117,16 @@ require_once "includes/paging.php";
echo "<tr>\n";
//echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order);
//echo th_order_by('conference_uuid', 'Conference UUID', $order_by, $order);
//echo th_order_by('username', 'Username', $order_by, $order);
//echo th_order_by('uuid', 'UUID', $order_by, $order);
echo th_order_by('caller_id_name', 'Caller ID Name', $order_by, $order);
echo th_order_by('caller_id_number', 'Caller ID Number', $order_by, $order);
echo th_order_by('moderator', 'Moderator', $order_by, $order);
echo th_order_by('network_addr', 'Network Address', $order_by, $order);
echo "<th>Time</th>\n";
echo th_order_by('start_epoch', 'Start', $order_by, $order);
echo th_order_by('end_epoch', 'End', $order_by, $order);
echo "<th>Details</th>\n";
//echo th_order_by('username', $text['label-username'], $order_by, $order);
//echo th_order_by('uuid', $text['label-uuid'], $order_by, $order);
echo th_order_by('caller_id_name', $text['label-caller-id-name'], $order_by, $order);
echo th_order_by('caller_id_number', $text['label-caller-id-number'], $order_by, $order);
echo th_order_by('moderator', $text['label-moderator'], $order_by, $order);
echo th_order_by('network_addr', $text['label-network-address'], $order_by, $order);
echo "<th>".$text['label-time']."</th>\n";
echo th_order_by('start_epoch', $text['label-start'], $order_by, $order);
echo th_order_by('end_epoch', $text['label-end'], $order_by, $order);
echo "<th>".$text['label-details']."</th>\n";
echo "<tr>\n";
if ($result_count > 0) {
@ -145,7 +153,7 @@ require_once "includes/paging.php";
echo " <td valign='top' class='".$row_style[$c]."'>".$time_difference."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$start_date."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$end_date."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='/app/xml_cdr/xml_cdr_details.php?uuid=".$row['uuid']."'>CDR</a>&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='/app/xml_cdr/xml_cdr_details.php?uuid=".$row['uuid']."'>".$text['label-cdr']."</a>&nbsp;</td>\n";
echo "</tr>\n";
if ($c==0) { $c=1; } else { $c=0; }
} //end foreach

View File

@ -32,8 +32,16 @@ else {
echo "access denied";
exit;
}
require_once "includes/header.php";
require_once "includes/paging.php";
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//additional includes
require_once "includes/header.php";
require_once "includes/paging.php";
//set variables from the http values
$meeting_uuid = check_str($_GET["id"]);
@ -49,12 +57,12 @@ require_once "includes/paging.php";
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>Conference Sessions</b></td>\n";
echo " <td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='conference_rooms.php'\" value='Back'></td>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>".$text['title-conference-sessions']."</b></td>\n";
echo " <td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='conference_rooms.php'\" value='".$text['button-back']."'></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' colspan='2'>\n";
echo " Conference Sessions are log details about the conferences.<br /><br />\n";
echo " ".$text['description-conference-sessions']."<br /><br />\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";
@ -107,13 +115,12 @@ require_once "includes/paging.php";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
//echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order);
echo "<th>Time</th>\n";
echo th_order_by('start_epoch', 'Start', $order_by, $order);
echo th_order_by('end_epoch', 'End', $order_by, $order);
echo th_order_by('profile', 'Profile', $order_by, $order);
//echo th_order_by('recording', 'Recording', $order_by, $order);
echo "<th>Tools</th>\n";
echo "<th>".$text['label-time']."</th>\n";
echo th_order_by('start_epoch', $text['label-start'], $order_by, $order);
echo th_order_by('end_epoch', $text['label-end'], $order_by, $order);
echo th_order_by('profile', $text['label-profile'], $order_by, $order);
//echo th_order_by('recording', $text['label-recording'], $order_by, $order);
echo "<th>".$text['label-tools']."</th>\n";
echo "<tr>\n";
if ($result_count > 0) {
@ -136,7 +143,6 @@ require_once "includes/paging.php";
}
echo "<tr >\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['meeting_uuid']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$time_difference."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$start_date."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$end_date."&nbsp;</td>\n";
@ -150,14 +156,14 @@ require_once "includes/paging.php";
$tmp_name = $row['conference_session_uuid'].".mp3";
}
echo " <td valign='top' class='".$row_style[$c]."'>\n";
echo " <a href='conference_session_details.php?uuid=".$row['conference_session_uuid']."'>Details</a>&nbsp;\n";
echo " <a href='conference_session_details.php?uuid=".$row['conference_session_uuid']."'>".$text['label-details']."</a>&nbsp;\n";
if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) {
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/v_recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
echo " Play\n";
echo " ".$text['label-play']."\n";
echo " </a>\n";
echo " &nbsp;\n";
echo " <a href=\"../recordings/v_recordings.php?a=download&type=rec&t=bin&filename=".base64_encode("archive/".$tmp_year."/".$tmp_month."/".$tmp_day."/".$tmp_name)."\">\n";
echo " Download\n";
echo " ".$text['label-download']."\n";
echo " </a>\n";
echo " &nbsp;\n";
}