Misc CDR/other adjustments.

This commit is contained in:
Nate
2019-10-24 18:27:48 -06:00
parent c2c0f54561
commit 724f697cf6
6 changed files with 88 additions and 20 deletions
+20
View File
@@ -1500,6 +1500,26 @@ $text['label-extension']['ru-ru'] = "Внутренний номер";
$text['label-extension']['sv-se'] = "Anknytning";
$text['label-extension']['uk-ua'] = "Розширення (Extention)";
$text['label-ext']['en-us'] = "Ext.";
$text['label-ext']['ar-eg'] = "";
$text['label-ext']['de-at'] = "Dur"; //copied from de-de
$text['label-ext']['de-ch'] = "Dur"; //copied from de-de
$text['label-ext']['de-de'] = "Dur";
$text['label-ext']['es-cl'] = "Ext";
$text['label-ext']['es-mx'] = "Ext"; //copied from es-cl
$text['label-ext']['fr-ca'] = "Ext"; //copied from fr-fr
$text['label-ext']['fr-fr'] = "Ext";
$text['label-ext']['he-il'] = "";
$text['label-ext']['it-it'] = "Int";
$text['label-ext']['nl-nl'] = "";
$text['label-ext']['pl-pl'] = "Num";
$text['label-ext']['pt-br'] = "Ram";
$text['label-ext']['pt-pt'] = "Ext";
$text['label-ext']['ro-ro'] = "";
$text['label-ext']['ru-ru'] = "Вну";
$text['label-ext']['sv-se'] = "Ank";
$text['label-ext']['uk-ua'] = "Роз";
$text['label-end_stamp']['en-us'] = "End";
$text['label-end_stamp']['ar-eg'] = "";
$text['label-end_stamp']['de-at'] = "Ende"; //copied from de-de
+19 -11
View File
@@ -490,11 +490,11 @@
//column headings
if (permission_exists('xml_cdr_direction')) {
echo "<th>&nbsp;</th>\n";
echo "<th class='shrink'>&nbsp;</th>\n";
$col_count++;
}
if (permission_exists('xml_cdr_extension')) {
echo "<th>".$text['label-extension']."</th>\n";
echo "<th class='shrink'>".$text['label-ext']."</th>\n";
$col_count++;
}
if (permission_exists('xml_cdr_all') && $_REQUEST['show'] == "all") {
@@ -502,7 +502,7 @@
$col_count++;
}
if (permission_exists('xml_cdr_caller_id_name')) {
echo "<th class='hide-md-dn'>".$text['label-caller_id_name']."</th>\n";
echo "<th class='hide-md-dn' style='min-width: 90px;'>".$text['label-caller_id_name']."</th>\n";
$col_count++;
}
if (permission_exists('xml_cdr_caller_id_number')) {
@@ -510,7 +510,7 @@
$col_count++;
}
if (permission_exists('xml_cdr_caller_destination')) {
echo "<th class='hide-md-dn'>".$text['label-caller_destination']."</th>\n";
echo "<th class='no-wrap hide-md-dn'>".$text['label-caller_destination']."</th>\n";
$col_count++;
}
if (permission_exists('xml_cdr_destination')) {
@@ -518,7 +518,7 @@
$col_count++;
}
if (permission_exists('xml_cdr_recording') && (permission_exists('recording_play') || permission_exists('recording_download'))) {
echo "<th class='center'>".$text['label-recording']."</th>\n";
echo "<th class='center shrink'>".$text['label-recording']."</th>\n";
$col_count++;
}
if (permission_exists('xml_cdr_custom_fields')) {
@@ -536,8 +536,9 @@
}
}
if (permission_exists('xml_cdr_start')) {
echo "<th class='center'>".$text['label-start']."</th>\n";
$col_count++;
echo "<th class='right'>".$text['label-date']."</th>\n";
echo "<th class='right hide-md-dn'>".$text['label-time']."</th>\n";
$col_count += 2;
}
if (permission_exists('xml_cdr_tta')) {
echo "<th class='right hide-md-dn' title=\"".$text['description-tta']."\">".$text['label-tta']."</th>\n";
@@ -556,7 +557,7 @@
$col_count++;
}
if (permission_exists('xml_cdr_hangup_cause')) {
echo "<th class='hide-sm-dn'>".$text['label-hangup_cause']."</th>\n";
echo "<th class='hide-sm-dn shrink'>".$text['label-hangup_cause']."</th>\n";
$col_count++;
}
else {
@@ -594,7 +595,13 @@
$tmp_year = date("Y", strtotime($row['start_stamp']));
$tmp_month = date("M", strtotime($row['start_stamp']));
$tmp_day = date("d", strtotime($row['start_stamp']));
$tmp_start_epoch = ($_SESSION['domain']['time_format']['text'] == '12h') ? escape(date("j M Y", $row['start_epoch']))." <span class='hide-md-dn'>".escape(date("g:i:sa", $row['start_epoch']))."</span>" : escape(date("j M Y", $row['start_epoch']))." <span class='hide-md-dn'>".escape(date("H:i:s", $row['start_epoch']))."</span>";
$tmp_start_epoch_date = escape(date("j M Y", $row['start_epoch']));
if ($_SESSION['domain']['time_format']['text'] == '12h') {
$tmp_start_epoch_time = escape(date("g:i:sa", $row['start_epoch']));
}
else {
$tmp_start_epoch_time = escape(date("H:i:s", $row['start_epoch']));
}
//get the hangup cause
$hangup_cause = $row['hangup_cause'];
@@ -678,7 +685,7 @@
}
//caller id name
if (permission_exists('xml_cdr_caller_id_name')) {
$content .= " <td class='overflow hide-md-dn'>".escape($row['caller_id_name'])."&nbsp;</td>\n";
$content .= " <td class='overflow hide-md-dn' title=\"".escape($row['caller_id_name'])."\">".escape($row['caller_id_name'])."</td>\n";
}
//source
if (permission_exists('xml_cdr_caller_id_number')) {
@@ -785,7 +792,8 @@
}
//start
if (permission_exists('xml_cdr_start')) {
$content .= " <td class='center no-wrap'>".$tmp_start_epoch."</td>\n";
$content .= " <td class='right no-wrap'>".$tmp_start_epoch_date."</td>\n";
$content .= " <td class='right no-wrap hide-md-dn'>".$tmp_start_epoch_time."</td>\n";
}
//tta (time to answer)
if (permission_exists('xml_cdr_tta')) {