MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
status.class
Ir para a documentação deste ficheiro.
1<?php
2// +-----------------------------------------------------------------+
3// | MIOLO - Miolo Development Team - UNIVATES Centro Universitário |
4// +-----------------------------------------------------------------+
5// | CopyLeft (L) 2001-2002 UNIVATES, Lajeado/RS - Brasil |
6// +-----------------------------------------------------------------+
7// | Licensed under GPL: see COPYING.TXT or FSF at www.fsf.org for |
8// | further details |
9// | |
10// | Site: http://miolo.codigolivre.org.br |
11// | E-mail: vgartner@univates.br |
12// | ts@interact2000.com.br |
13// +-----------------------------------------------------------------+
14// | Abstract: This file contains the statusbar elements definitions |
15// | |
16// | Created: 2001/08/14 Vilson Cristiano Gärtner, |
17// | Thomas Spriestersbach |
18// | |
19// | History: Initial Revision |
20// +-----------------------------------------------------------------+
21
29class MioloStatus extends MControl
30{
38 function Generate()
39 { global $MIOLO, $HTTP_USER_AGENT;
40
41 $MIOLO->ProfileExit('miolo.php');
42
43 if ( strstr($HTTP_USER_AGENT,"Konqueror") )
44 {
45 $layerTag = 'div';
46 $visibility = 'hidden';
47 }
48
49 else
50 {
51 $layerTag = 'ilayer';
52 $visibility = 'visible';
53 }
54
55 $left = 10;
56 $width = 200;
57
58 $dump = $MIOLO->dump->Get();
59
60 if ( $dump['profile'] )
61 {
62 if ( $control )
63 $control .= '&nbsp;::&nbsp;';
64
65 $control .= "<a href=\"javascript:toggleLayer('stats1')\">Parsing&nbsp;Profile</a>";
66
67 $style = "position:absolute; visibility:$visibility; left:{$left}px; " .
68 "width:{$width}px; height:200px; overflow:scroll;";
69
70 $html .= "<$layerTag name=\"stats1\" style=\"$style\">" .
71 "<div class=\"statisticsText\">\n" .
72 "<div align=\"right\"><a href=\"javascript:toggleLayer('stats1')\">" .
73 "<img src=\"images/close.gif\" border=\"0\"></a></div>\n" .
74 $MIOLO->ProfileDump() .
75 "<br/></div>\n" .
76 "</$layerTag>\n";
77
78 $left += $width + 10;
79 }
80
81 if ( $dump['uses'] )
82 {
83 if ( $control )
84 $control .= '&nbsp;::&nbsp;';
85
86 $control .= "<a href=\"javascript:toggleLayer('stats2')\">Include&nbsp;Usage</a>";
87
88 $style = "position:absolute; visibility:$visibility; left:{$left}; " .
89 "width:{$width}px; height:200px; overflow:scroll;";
90
91 $html .= "<$layerTag name=\"stats2\" style=\"$style\">" .
92 "<div class=\"statisticsText\">\n" .
93 "<div align=\"right\"><a href=\"javascript:toggleLayer('stats2')\">" .
94 "<img src=\"images/close.gif\" border=\"0\"></a></div>\n" .
95 $MIOLO->UsesDump() .
96 "<br/></div>\n" .
97 "</$layerTag>\n";
98
99 $left += $width + 10;
100 }
101
102 if ( $dump['trace'] )
103 {
104 if ( $control )
105 $control .= '&nbsp;::&nbsp;';
106
107 $control .= "<a href=\"javascript:toggleLayer('stats3')\">Tracing&nbsp;</a>";
108
109 $style = "position:absolute; visibility:$visibility; left:{$left}px; " .
110 "width:{$width}px; height:200px; overflow:scroll;";
111
112 $html .= "<$layerTag name=\"stats3\" style=\"$style\">" .
113 "<div class=\"statisticsText\">\n" .
114 "<div align=\"right\"><a href=\"javascript:toggleLayer('stats3')\">" .
115 "<img src=\"images/close.gif\" border=\"0\"></a></div>\n" .
116 $MIOLO->TraceDump() .
117 "<br/></div>\n" .
118 "</$layerTag>\n";
119 }
120
121 if ( $html )
122 {
123 echo "<!-- START STATISTIC INFORMATION -->\n";
124 echo "<p><img src=\"images/information.gif\" border=\"0\"" .
125 "width=\"24\" align=\"absolutemiddle\">&nbsp;" . $control ."</p>\n";
126 echo "<$layerTag style=\"position:relative; visibility:visible; width:100%; height:280px; " .
127 "overflow:visible;\">\n";
128 echo $html;
129 echo "</$layerTag>\n";
130 echo "<!-- END STATISTIC INFORMATION -->\n";
131 echo "<p>&nbsp;</p>\n";
132 }
133 }
134}
135
136?>