Commit ee88c4084d8e41cd23b7e6fe92d4bef075055917
1 parent
20a9c81e
Exists in
master
and in
1 other branch
Reducao da fonte constante das Estatisticas do CACIC, na pagina principal.
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@209 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
2 changed files
with
23 additions
and
12 deletions
Show diff stats
include/piechart.php
... | ... | @@ -36,12 +36,16 @@ function FilledArc(&$im, $CenterX, $CenterY, $DiameterX, $DiameterY, $Start, $En |
36 | 36 | function phPie($data, $width, $height, $CenterX, $CenterY, $DiameterX, $DiameterY, $MinDisplayPct, $DisplayColors, $BackgroundColor, $LineColor, $Legend, $FontNumber, $CreatePie, $Sort, $DisplaySequence, $ShowText, $strTypeIMG='PNG') |
37 | 37 | { |
38 | 38 | // Ajustes necessários ao redimencionamento das pizzas... |
39 | - $width += 80; | |
40 | - $height += 55; | |
41 | - $CenterX += 60; | |
42 | - $TamanhoLinha = 250; // Tamanho Padrão | |
43 | - | |
44 | - $MinDisplayPct = 0; | |
39 | + $width += 95; | |
40 | + $height += 95; | |
41 | + $CenterX += 80; | |
42 | + $TamanhoLinha = 215; // Tamanho Padrão | |
43 | + | |
44 | + $FontNumber = 2; // Fixo o código da fonte em 2, reduzindo-a | |
45 | + // devido à saturação gerada pelas legendas nas estatísticas | |
46 | + // Acho legal tornar esse código flexível no futuro!... Anderson Peterle 07/11/2007 12:42PM | |
47 | + | |
48 | + $MinDisplayPct = 0; | |
45 | 49 | |
46 | 50 | $DisplayColors .= 'FF0000;'; |
47 | 51 | $DisplayColors .= '3333FF;'; |
... | ... | @@ -122,7 +126,7 @@ function phPie($data, $width, $height, $CenterX, $CenterY, $DiameterX, $Diameter |
122 | 126 | if ((count($data) <= 0) and ($Legend)) |
123 | 127 | { |
124 | 128 | // ImageString($im, $FontNumber, 5, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))), 'Total: 0', '9933FF'); |
125 | - ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))), ' ***** Nenhum Registro Encontrado *****', '9933FF'); | |
129 | + ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.1 * ImageFontHeight($FontNumber))), ' ***** Nenhum Registro Encontrado *****', '9933FF'); | |
126 | 130 | } |
127 | 131 | else |
128 | 132 | { |
... | ... | @@ -141,7 +145,7 @@ function phPie($data, $width, $height, $CenterX, $CenterY, $DiameterX, $Diameter |
141 | 145 | if ($DisplaySequence) |
142 | 146 | { |
143 | 147 | $key = str_pad(($valuecounter + 1),$DisplaySequence,' ',STR_PAD_LEFT).') '.$key; |
144 | - $TamanhoLinha = 280; | |
148 | + $TamanhoLinha = 240; | |
145 | 149 | } |
146 | 150 | $ValuesSoFar += $value; |
147 | 151 | |
... | ... | @@ -154,7 +158,8 @@ function phPie($data, $width, $height, $CenterX, $CenterY, $DiameterX, $Diameter |
154 | 158 | } |
155 | 159 | if ($Legend) |
156 | 160 | { |
157 | - $MeuY = round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))); | |
161 | +// $MeuY = round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))); | |
162 | + $MeuY = round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.1 * ImageFontHeight($FontNumber))); | |
158 | 163 | ImageString($im, $FontNumber, 1, $MeuY, $key . ': ' . str_pad($value,6,' ',STR_PAD_LEFT) . '('.str_pad(number_format(($value / $TotalArrayValues) * 100, 1),5,' ',STR_PAD_LEFT).'%)', $label_color[$valuecounter % count($label_color)]); |
159 | 164 | if ($CreatePie) |
160 | 165 | { |
... | ... | @@ -174,7 +179,8 @@ function phPie($data, $width, $height, $CenterX, $CenterY, $DiameterX, $Diameter |
174 | 179 | } |
175 | 180 | if ($Legend) |
176 | 181 | { |
177 | - ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))), 'Other ('.str_pad(number_format((($TotalArrayValues - $ValuesSoFar) / $TotalArrayValues) * 100, 1),4,' ',STR_PAD_LEFT).'%)', $line_color); | |
182 | +// ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))), 'Other ('.str_pad(number_format((($TotalArrayValues - $ValuesSoFar) / $TotalArrayValues) * 100, 1),4,' ',STR_PAD_LEFT).'%)', $line_color); | |
183 | + ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.1 * ImageFontHeight($FontNumber))), 'Other ('.str_pad(number_format((($TotalArrayValues - $ValuesSoFar) / $TotalArrayValues) * 100, 1),4,' ',STR_PAD_LEFT).'%)', $line_color); | |
178 | 184 | } |
179 | 185 | break; |
180 | 186 | } |
... | ... | @@ -191,7 +197,8 @@ function phPie($data, $width, $height, $CenterX, $CenterY, $DiameterX, $Diameter |
191 | 197 | } |
192 | 198 | ImageLine($im, 1, $MeuYLinha, $TamanhoLinha, $MeuYLinha, '999999'); |
193 | 199 | ImageLine($im, 1, $MeuYLinha+1, $TamanhoLinha, $MeuYLinha+1, '999999'); |
194 | - ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))), str_pad('Total',strlen($key),'.',STR_PAD_RIGHT) . ': ' . str_pad($TotalArrayValues,6,' ',STR_PAD_LEFT) . '(100.0%)', '999999'); | |
200 | +// ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.5 * ImageFontHeight($FontNumber))), str_pad('Total',strlen($key),'.',STR_PAD_RIGHT) . ': ' . str_pad($TotalArrayValues,6,' ',STR_PAD_LEFT) . '(100.0%)', '999999'); | |
201 | + ImageString($im, $FontNumber, 1, round((ImageFontHeight($FontNumber) * .5) + ($valuecounter * 1.1 * ImageFontHeight($FontNumber))), str_pad('Total',strlen($key),'.',STR_PAD_RIGHT) . ': ' . str_pad($TotalArrayValues,6,' ',STR_PAD_LEFT) . '(100.0%)', '999999'); | |
195 | 202 | } |
196 | 203 | } |
197 | 204 | if ($strTypeIMG=='PNG') | ... | ... |
top.php
... | ... | @@ -14,8 +14,12 @@ |
14 | 14 | Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
15 | 15 | */ |
16 | 16 | session_start(); |
17 | -$v_versao = '2.2.3-RC5'; | |
17 | +$v_versao = '2.2.3-RC6'; | |
18 | 18 | /* |
19 | +2.2.3-RC6 (Anderson Peterle - Dataprev/ES - Novembro/2007) | |
20 | + * Apenas redução da fonte constante (de 3 para 2) das legendas das Estatísticas do CACIC, na página principal, | |
21 | + visando melhor distribuição dos dados relativos aos nomes dos locais quando essa quantidade for superior a 25. | |
22 | + | |
19 | 23 | 2.2.3-RC5 (Anderson Peterle - Dataprev/ES - Outubro/2007) |
20 | 24 | + Implementado o destaque para os computadores com mais de 5 dias sem acesso ao gerente WEB; (Computadores/Navegação) |
21 | 25 | + Implementada a seleção de Locais para as opções de Log de Acessos e Log de Atividades; (Administração/Log de Acessos e Administração/Log de Atividades) | ... | ... |