From 93eda07575eedfb297896d2230f6a9a4706d3f73 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 30 Mar 2016 12:49:15 +0000 Subject: [PATCH] Fixed issue with names and non-latin setting in two agent reports git-svn-id: svn://192.168.202.10@2499 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/AST_agent_status_detail.php | 5 +++-- www/vicidial/AST_agent_time_detail.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/www/vicidial/AST_agent_status_detail.php b/www/vicidial/AST_agent_status_detail.php index 963bd873..7d62cff1 100644 --- a/www/vicidial/AST_agent_status_detail.php +++ b/www/vicidial/AST_agent_status_detail.php @@ -31,6 +31,7 @@ # 160121-2209 - Added report title header, default report format, cleaned up formatting # 160301-2051 - Expanded full name to 25 characters on text display # 160310-2115 - Fixed bug in HTML display +# 160330-0648 - Fixed issue with names and non-latin setting # $startMS = microtime(); @@ -741,8 +742,8 @@ else } else { - $Sfull_name= sprintf("%-45s", $Sfull_name); - while(mb_strlen($Sfull_name,'utf-8')>15) {$Sfull_name = mb_substr("$Sfull_name", 0, -1,'utf-8');} + $Sfull_name= sprintf("%-75s", $Sfull_name); + while(mb_strlen($Sfull_name,'utf-8')>25) {$Sfull_name = mb_substr("$Sfull_name", 0, -1,'utf-8');} $Suser = sprintf("%-24s", $Suser); while(mb_strlen($Suser,'utf-8')>8) {$Suser = mb_substr("$Suser", 0, -1,'utf-8');} diff --git a/www/vicidial/AST_agent_time_detail.php b/www/vicidial/AST_agent_time_detail.php index 51ab6069..ac31cd26 100644 --- a/www/vicidial/AST_agent_time_detail.php +++ b/www/vicidial/AST_agent_time_detail.php @@ -47,6 +47,7 @@ # 151112-1335 - Added option to search archived tables # 160121-2037 - Added report title header, default report format, cleaned up formatting # 160301-2051 - Expanded full name to 25 characters on text display +# 160330-0649 - Fixed issue with names and non-latin setting # $startMS = microtime(); @@ -1059,8 +1060,8 @@ else } else { - $Sname[$m]= sprintf("%-45s", $Sname[$m]); - while(mb_strlen($Sname[$m],'utf-8')>15) {$Sname[$m] = mb_substr("$Sname[$m]", 0, -1,'utf-8');} + $Sname[$m]= sprintf("%-75s", $Sname[$m]); + while(mb_strlen($Sname[$m],'utf-8')>25) {$Sname[$m] = mb_substr("$Sname[$m]", 0, -1,'utf-8');} $Suser[$m] = sprintf("%-24s", $Suser[$m]); while(mb_strlen($Suser[$m],'utf-8')>8) {$Suser[$m] = mb_substr("$Suser[$m]", 0, -1,'utf-8');} }