From 709b02659a6c226b35e4e22ea00dfc046cb9398d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Apr 2010 13:18:06 +0000 Subject: [PATCH] Made code readable Fixed encoding problems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17464 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/faxreports/class_faxreport.inc | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc index aaaaf02e9..25de0a2e3 100644 --- a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc +++ b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc @@ -310,41 +310,41 @@ class faxreport extends plugin } /* Create entry html str */ - $str = "".$line["uid"].""; - $str.= "".$str_date.""; + $str = " \n".$line["uid"].""; + $str.= " \n".$str_date.""; /* Add Status td */ if(preg_match("/r/",$statusACL)){ - $str.="".$this->status[$line["status"]].""; + $str.=" \n".$this->status[$line["status"]].""; }else{ - $str.="".$no_acl.""; + $str.=" \n".$no_acl.""; } /* Add sender_id td */ if(preg_match("/r/",$senderidACL)){ - $str.="".$line["sender_id"].""; + $str.=" \n".htmlentities($line["sender_id"],ENT_COMPAT,'UTF-8').""; }else{ - $str.="".$no_acl.""; + $str.=" \n".$no_acl.""; } /* Add receiver_id td */ if(preg_match("/r/",$receiveridACL)){ - $str.="".$line["receiver_id"].""; + $str.=" \n".htmlentities($line["receiver_id"],ENT_COMPAT,'UTF-8').""; }else{ - $str.="".$no_acl.""; + $str.=" \n".$no_acl.""; } /* Add receiver_id td */ if(preg_match("/r/",$pagesACL)){ - $str.="".$line["pages"].""; + $str.=" \n".$line["pages"].""; }else{ - $str.="".$no_acl.""; + $str.=" \n".$no_acl.""; } /* Create entry html str */ if(preg_match("/r/",$detailedViewACL)){ - $str.= "".image('images/info_small.png', 'detail_'.postEncode($line["id"])).""; + $str.= " \n".image('images/info_small.png', 'detail_'.postEncode($line["id"])).""; }else{ - $str.= " "; + $str.= " \n "; } $this->report_list[] = $str; } @@ -355,7 +355,7 @@ class faxreport extends plugin $mod= 0; $output= ""; foreach ($this->report_list as $val){ - $output.= "{$val}"; + $output.= "\n{$val}"; } $smarty->assign("search_result", $output); $smarty->assign("range_selector", -- 2.30.2