From b95436887039bcaa2e6e930d655a1e115c20bcf8 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 24 Oct 2019 20:18:20 -0600 Subject: [PATCH] CDR adjustments. --- app/xml_cdr/xml_cdr.php | 40 ++++++++++++++++++---------------------- themes/default/css.php | 5 +++++ 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php index ccc8ada081..a967f18213 100644 --- a/app/xml_cdr/xml_cdr.php +++ b/app/xml_cdr/xml_cdr.php @@ -638,7 +638,7 @@ } $content .= "\n"; if (permission_exists('xml_cdr_delete')) { - $content .= " \n"; + $content .= " \n"; $content .= " \n"; $content .= " \n"; $content .= " \n"; @@ -646,7 +646,7 @@ //determine call result and appropriate icon if (permission_exists('xml_cdr_direction')) { - $content .= "\n"; + $content .= "\n"; if ($theme_cdr_images_exist) { if ($row['direction'] == 'inbound' || $row['direction'] == 'local') { if ($row['answer_stamp'] != '' && $row['bridge_uuid'] != '') { $call_result = 'answered'; } @@ -673,23 +673,19 @@ } //extension if (permission_exists('xml_cdr_extension')) { - $content .= " "; - $content .= $row['extension'].' '; - $content .= " \n"; + $content .= " ".$row['extension']."\n"; } //domain name if (permission_exists('xml_cdr_all') && $_REQUEST['show'] == "all") { - $content .= " "; - $content .= $row['domain_name'].' '; - $content .= " \n"; + $content .= " ".$row['domain_name']."\n"; } //caller id name if (permission_exists('xml_cdr_caller_id_name')) { - $content .= " ".escape($row['caller_id_name'])."\n"; + $content .= " ".escape($row['caller_id_name'])."\n"; } //source if (permission_exists('xml_cdr_caller_id_number')) { - $content .= " "; + $content .= " "; $content .= " \n"; if (is_numeric($row['caller_id_number'])) { $content .= " ".format_phone(substr($row['caller_id_number'], 0, 20)).' '; @@ -702,7 +698,7 @@ } //caller destination if (permission_exists('xml_cdr_caller_destination')) { - $content .= " "; + $content .= " "; $content .= " \n"; if (is_numeric($row['caller_destination'])) { $content .= " ".format_phone(escape(substr($row['caller_destination'], 0, 20))).' '; @@ -731,7 +727,7 @@ } } } - $content .= " "; + $content .= " "; $content .= " \n"; if (is_numeric($row['destination_number'])) { if ($prefix) { @@ -764,7 +760,7 @@ //recording if (permission_exists('xml_cdr_recording') && (permission_exists('recording_play') || permission_exists('recording_download'))) { if ($record_path != '' && file_exists($record_path.'/'.$record_name)) { - $content .= " "; + $content .= " "; if (permission_exists('recording_play')) { $content .= ""; $content .= button::create(['type'=>'button','label'=>$text['button-label'],'icon'=>$_SESSION['theme']['button_icon_play'],'id'=>'recording_button_'.escape($row['xml_cdr_uuid']),'onclick'=>"recording_play('".escape($row['xml_cdr_uuid'])."')",'title'=>$text['label-play'].' / '.$text['label-pause']]); @@ -785,27 +781,27 @@ $array = explode(",", $field); $field_name = $array[count($array) - 1]; if ($field_name != "destination_number") { - $content .= " ".escape($row[$field_name])."\n"; + $content .= " ".escape($row[$field_name])."\n"; } } } } //start if (permission_exists('xml_cdr_start')) { - $content .= " ".$tmp_start_epoch_date."\n"; - $content .= " ".$tmp_start_epoch_time."\n"; + $content .= " ".$tmp_start_epoch_date."\n"; + $content .= " ".$tmp_start_epoch_time."\n"; } //tta (time to answer) if (permission_exists('xml_cdr_tta')) { - $content .= " ".(($row['tta'] > 0) ? $row['tta']."s" : " ")."\n"; + $content .= " ".(($row['tta'] > 0) ? $row['tta']."s" : " ")."\n"; } //duration if (permission_exists('xml_cdr_duration')) { - $content .= " ".gmdate("G:i:s", $seconds)."\n"; + $content .= " ".gmdate("G:i:s", $seconds)."\n"; } //pdd (post dial delay) if (permission_exists("xml_cdr_pdd")) { - $content .= " ".number_format(escape($row['pdd_ms'])/1000,2)."s\n"; + $content .= " ".number_format(escape($row['pdd_ms'])/1000,2)."s\n"; } //mos (mean opinion score) if (permission_exists("xml_cdr_mos")) { @@ -813,14 +809,14 @@ $title = " title='".$text['label-mos_score-'.round($row['rtp_audio_in_mos'])]."'"; $value = $row['rtp_audio_in_mos']; } - $content .= " ".$value."\n"; + $content .= " ".$value."\n"; } //hangup cause/call result if (permission_exists('xml_cdr_hangup_cause')) { - $content .= " ".escape($hangup_cause)."\n"; + $content .= " ".escape($hangup_cause)."\n"; } else { - $content .= " ".ucwords(escape($call_result))."\n"; + $content .= " ".ucwords(escape($call_result))."\n"; } //action icon //if (permission_exists('xml_cdr_details')) { diff --git a/themes/default/css.php b/themes/default/css.php index 363c9ec869..067eb964e1 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -2296,6 +2296,11 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false; text-align: right !important; } + .list-header > .middle, + .list-row > .middle { + vertical-align: middle !important; + } + .list-header > .no-wrap, .list-row > .no-wrap { white-space: nowrap;