MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mmiolostatus.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
29
class
MMioloStatus
extends
MControl
30
{
38
function
Generate
()
39
{
40
global
$MIOLO
, $HTTP_USER_AGENT;
41
42
$MIOLO
->ProfileExit(
'miolo.php'
);
43
44
if
(strstr($HTTP_USER_AGENT,
"Konqueror"
))
45
{
46
$layerTag =
'div'
;
47
$visibility =
'hidden'
;
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 .=
' :: '
;
64
65
$control .=
"<a href=\"javascript:toggleLayer('stats1')\">Parsing 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\">"
.
"<div class=\"statisticsText\">\n"
71
.
"<div align=\"right\"><a href=\"javascript:toggleLayer('stats1')\">"
72
.
"<img src=\"images/close.gif\" border=\"0\"></a></div>\n"
.
$MIOLO
->ProfileDump()
73
.
"<br/></div>\n"
.
"</$layerTag>\n"
;
74
75
$left += $width + 10;
76
}
77
78
if
($dump[
'uses'
])
79
{
80
if
($control)
81
$control .=
' :: '
;
82
83
$control .=
"<a href=\"javascript:toggleLayer('stats2')\">Include Usage</a>"
;
84
85
$style
=
"position:absolute; visibility:$visibility; left:{$left}; "
86
.
"width:{$width}px; height:200px; overflow:scroll;"
;
87
88
$html .=
"<$layerTag name=\"stats2\" style=\"$style\">"
.
"<div class=\"statisticsText\">\n"
89
.
"<div align=\"right\"><a href=\"javascript:toggleLayer('stats2')\">"
90
.
"<img src=\"images/close.gif\" border=\"0\"></a></div>\n"
.
$MIOLO
->UsesDump()
91
.
"<br/></div>\n"
.
"</$layerTag>\n"
;
92
93
$left += $width + 10;
94
}
95
96
if
($dump[
'trace'
])
97
{
98
if
($control)
99
$control .=
' :: '
;
100
101
$control .=
"<a href=\"javascript:toggleLayer('stats3')\">Tracing </a>"
;
102
103
$style
=
"position:absolute; visibility:$visibility; left:{$left}px; "
104
.
"width:{$width}px; height:200px; overflow:scroll;"
;
105
106
$html .=
"<$layerTag name=\"stats3\" style=\"$style\">"
.
"<div class=\"statisticsText\">\n"
107
.
"<div align=\"right\"><a href=\"javascript:toggleLayer('stats3')\">"
108
.
"<img src=\"images/close.gif\" border=\"0\"></a></div>\n"
.
$MIOLO
->TraceDump()
109
.
"<br/></div>\n"
.
"</$layerTag>\n"
;
110
}
111
112
if
($html)
113
{
114
echo
"<!-- START STATISTIC INFORMATION -->\n"
;
115
echo
"<p><img src=\"images/information.gif\" border=\"0\""
.
"width=\"24\" align=\"absolutemiddle\"> "
116
. $control .
"</p>\n"
;
117
echo
"<$layerTag style=\"position:relative; visibility:visible; width:100%; height:280px; "
118
.
"overflow:visible;\">\n"
;
119
echo $html;
120
echo
"</$layerTag>\n"
;
121
echo
"<!-- END STATISTIC INFORMATION -->\n"
;
122
echo
"<p> </p>\n"
;
123
}
124
}
125
}
126
?>
MControl
Definição
mcontrol.class:35
MControl\$style
$style
Definição
mcontrol.class:90
MMioloStatus
Definição
mmiolostatus.class:30
MMioloStatus\Generate
Generate()
Definição
mmiolostatus.class:38
$MIOLO
$MIOLO
Definição
mdatetimefield.class:25
classes
ui
controls
mmiolostatus.class
Gerado por
1.10.0