From 824f8c45edb20e27221e92805b0090f1768a2756 Mon Sep 17 00:00:00 2001 From: tcit Date: Sat, 27 Sep 2014 19:34:17 +0200 Subject: changed mpdf with tcpdf --- inc/3rdparty/libraries/mpdf/classes/meter.php | 224 -------------------------- 1 file changed, 224 deletions(-) delete mode 100644 inc/3rdparty/libraries/mpdf/classes/meter.php (limited to 'inc/3rdparty/libraries/mpdf/classes/meter.php') diff --git a/inc/3rdparty/libraries/mpdf/classes/meter.php b/inc/3rdparty/libraries/mpdf/classes/meter.php deleted file mode 100644 index 46fa9d5a..00000000 --- a/inc/3rdparty/libraries/mpdf/classes/meter.php +++ /dev/null @@ -1,224 +0,0 @@ - - ///////////////////////////////////////////////////////////////////////////////////// - $h = 10; - $w = 160; - $border_radius = 0.143; // Factor of Height - - $svg = ' - - - - - - - - - - - - - -'; - $svg .= ''; - - // LOW to HIGH region - //if ($low && $high && ($low != $min || $high != $max)) { - if ($low && $high) { - $barx = (($low-$min) / ($max-$min) ) * $w; - $barw = (($high-$low) / ($max-$min) ) * $w; - $svg .= ''; - } - - // OPTIMUM Marker (? AVERAGE) - if ($optimum) { - $barx = (($optimum-$min) / ($max-$min) ) * $w; - $barw = $h/2; - $barcol = '#888888'; - $svg .= ''; - } - - // VALUE Marker - if ($value) { - if ($min != $low && $value < $low) { $col = 'orange'; } - else if ($max != $high && $value > $high) { $col = 'orange'; } - else { $col = '#008800'; } - $cx = (($value-$min) / ($max-$min) ) * $w; - $cy = $h/2; - $rx = $h/3.5; - $ry = $h/2.2; - $svg .= ''; - } - - // BoRDER - $svg .= ''; - - $svg .= ''; - } - else { - ///////////////////////////////////////////////////////////////////////////////////// - ///////// DEFAULT - ///////////////////////////////////////////////////////////////////////////////////// - $h = 10; - $w = 50; - $border_radius = 0.143; // Factor of Height - - $svg = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -'; - - if ($value) { - $barw = (($value-$min) / ($max-$min) ) * $w; - if ($optimum < $low) { - if ($value < $low) { $barcol = 'url(#GrGREEN)'; } - else if ($value > $high) { $barcol = 'url(#GrRED)'; } - else { $barcol = 'url(#GrORANGE)'; } - } - else if ($optimum > $high) { - if ($value < $low) { $barcol = 'url(#GrRED)'; } - else if ($value > $high) { $barcol = 'url(#GrGREEN)'; } - else { $barcol = 'url(#GrORANGE)'; } - } - else { - if ($value < $low) { $barcol = 'url(#GrORANGE)'; } - else if ($value > $high) { $barcol = 'url(#GrORANGE)'; } - else { $barcol = 'url(#GrGREEN)'; } - } - $svg .= ''; - } - - - // Borders - //$svg .= ''; - if ($value) { - // $svg .= ''; - } - - - $svg .= ''; - } - } - else { // $tag == 'progress' - - if ($type=='2') { - ///////////////////////////////////////////////////////////////////////////////////// - ///////// CUSTOM - ///////////////////////////////////////////////////////////////////////////////////// - } - else { - ///////////////////////////////////////////////////////////////////////////////////// - ///////// DEFAULT - ///////////////////////////////////////////////////////////////////////////////////// - $h = 10; - $w = 100; - $border_radius = 0.143; // Factor of Height - - if ($value or $value==='0') { - $fill = 'url(#GrGRAY)'; - } - else { - $fill = '#f8f8f8'; - } - - $svg = ' - - - - - - - - - - - - - - - - - - - -'; - - if ($value) { - $barw = (($value-$min) / ($max-$min) ) * $w; - $barcol = 'url(#GrGREEN)'; - $svg .= ''; - } - - - // Borders - $svg .= ''; - if ($value) { - // $svg .= ''; - } - - - $svg .= ''; - - } - } - - return $svg; -} - - -} // end of class - -?> \ No newline at end of file -- cgit v1.2.3