MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mstatusbar.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
22
class
MStatusBar
extends
MControl
23
{
24
var
$cols
;
25
26
function
__construct
(
$cols
=
null
)
27
{
28
parent::__construct();
29
$this->AddStyleFile(
'm_themeelement.css'
);
30
$this->cols =
$cols
;
31
32
$login = $this->manager->GetLogin();
33
34
if
($login)
35
{
36
$online = (time() - $login->time) / 60;
37
$this->
AddInfo
(
'Usuário:'
.
' '
. $login->id);
38
$this->
AddInfo
(
'Entrada às:'
.
' '
. Date(
'H:i'
, $login->time) .
' ('
. sprintf(
'%02d:%02d'
, $online / 60, $online % 60) .
')'
);
39
$this->
AddInfo
(
'Data:'
.
' '
. Date(
'd/m/Y'
, $login->time));
40
}
41
else
42
{
43
$this->
AddInfo
(
'Usuário: -'
);
44
$this->
AddInfo
(
'Entrada às: --:--'
);
45
$this->
AddInfo
(
'Data: --/--/----'
);
46
}
47
48
$this->
AddInfo
(
MIOLO_VERSION
);
49
$this->
AddInfo
(
MIOLO_AUTHOR
);
50
}
51
52
function
AddInfo
($info)
53
{
54
$this->cols[] = $info;
55
}
56
57
function
Clear
()
58
{
59
unset($this->cols);
60
}
61
62
function
Generate
()
63
{
64
$ul =
new
MUnOrderedList
();
65
$ul->AddOptions($this->cols);
66
$div =
new
MDiv
(
''
, $ul,
'm-statusbar'
);
67
return
$div->Generate();
68
}
69
}
70
71
?>
MControl
Definição
mcontrol.class:35
MDiv
Definição
blockcontrols.class:23
MStatusBar
Definição
mstatusbar.class:23
MStatusBar\__construct
__construct($cols=null)
Definição
mstatusbar.class:26
MStatusBar\Generate
Generate()
Definição
mstatusbar.class:62
MStatusBar\Clear
Clear()
Definição
mstatusbar.class:57
MStatusBar\$cols
$cols
Definição
mstatusbar.class:24
MStatusBar\AddInfo
AddInfo($info)
Definição
mstatusbar.class:52
MUnOrderedList
Definição
munorderedlist.class:4
MIOLO_AUTHOR
const MIOLO_AUTHOR
Definição
miolo.class:4
MIOLO_VERSION
const MIOLO_VERSION
Definição
miolo.class:3
classes
ui
controls
mstatusbar.class
Gerado por
1.10.0