MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
customcontrols.class
Ir para a documentação deste ficheiro.
1
<?php
2
class
MButtonClose
extends
MLink
3
{
4
function
__construct
(
$action
)
5
{
6
global
$MIOLO
;
7
8
parent::__construct(
''
,
''
,
''
,
' '
);
9
$history = $this->manager->history;
10
11
if
(
$action
==
'back'
)
12
$action
= $history->Back(
'action'
);
13
14
elseif (
$action
==
'backContext'
)
15
$action
= $history->Back(
'context'
);
16
17
$this->SetHREF(
$action
);
18
$div =
new
MDiv
(
''
,
''
,
'm-button-close-up'
);
19
$div->GetBox()->SetAttribute(
"onmousedown"
,
"this.className='m-button-close-down'"
);
20
$div->GetBox()->SetAttribute(
"onmouseout"
,
"this.className='m-button-close-up'"
);
21
$this->caption = $div->Generate();
22
}
23
24
function
GenerateInner
()
25
{
26
$this->inner = $this->GetRender(
'anchor'
);
27
}
28
29
}
30
31
class
MButtonMinimize
extends
MDiv
32
{
33
function
__construct
(
$action
)
34
{
35
global
$MIOLO
;
36
37
//parent::__construct('', '', '',' ');
38
/*
39
$history = $this->manager->history;
40
41
if ($action == 'back')
42
$action = $history->Back('action');
43
44
elseif ($action == 'backContext')
45
$action = $history->Back('context');
46
47
$this->SetHREF($action);
48
*/
49
//$div = new MDiv('','','m-button-minimize-up');
50
parent::__construct(
''
,
''
,
'm-button-minimize-up'
);
51
$this->GetBox()->SetAttribute(
"onmousedown"
,
"this.className='m-button-minimize-down';"
);
52
$this->GetBox()->SetAttribute(
"onmouseup"
,
"MIOLO_closeBox( event, this.parentNode.parentNode.parentNode);"
);
53
//$box->addAttribute('onDblClick' , 'MIOLO_hideBoxContent(this.parentNode)');
54
$this->GetBox()->SetAttribute(
"onmouseout"
,
"this.className='m-button-minimize-up'"
);
55
//$this->caption = $div->Generate();
56
}
57
58
function
GenerateInner
()
59
{
60
$this->inner = $this->GetRender(
'anchor'
);
61
}
62
63
}
64
65
class
MButtonHelp
extends
MDiv
66
{
67
function
__construct
($help)
68
{
69
global
$MIOLO
;
70
71
parent::__construct(
''
,
''
,
'm-button-help-up'
);
72
73
$this->
getBox
()->setAttribute(
"onmousedown"
,
"this.className='m-button-help-down';"
);
74
$this->
getBox
()->setAttribute(
"onmouseup"
, $help);
75
$this->
getBox
()->setAttribute(
"onmouseout"
,
"this.className='m-button-help-up'"
);
76
$this->page->addScript(
'm_help.js'
);
77
$this->page->addStyle(
'm_help.css'
);
78
}
79
80
function
generateInner
()
81
{
82
$this->inner = $this->
getRender
(
'anchor'
);
83
}
84
}
85
86
87
88
class
MButtonFind
extends
MInputButton
89
{
90
function
__construct
(
$action
=
''
)
91
{
92
parent::__construct(
''
,
''
,
$action
);
93
$this->SetClass(
'm-button-find'
);
94
}
95
}
96
97
class
MLinkBack
extends
MLink
98
{
99
function
__construct
($text =
'Voltar'
,
$href
=
''
)
100
{
101
global $history;
102
103
if
(
$href
==
''
)
104
$href
= $history->Back(
'action'
);
105
106
parent::__construct(
''
,
''
,
$href
, $text);
107
}
108
}
109
110
class
MOpenWindow
extends
MLink
111
{
112
function
__construct
(
$name
= NULL,
$label
= NULL,
$href
= NULL,
$target
=
''
)
113
{
114
parent::__construct(
$name
,
$label
,
$href
);
115
$this->target = (
$target
==
''
) ?
'mioloWindow'
:
$target
;
116
$this->SetOnClick(
"return MIOLO_Window(this.href,'{$this->target}')"
);
117
$this->page->AddScript(
'x/x_win.js'
);
118
}
119
}
120
121
class
MButtonWindow
extends
MButton
122
{
123
function
__construct
(
$name
= NULL,
$label
= NULL, $href = NULL,
$target
=
''
)
124
{
125
parent::__construct(
$name
,
$label
, $href);
126
$this->target = (
$target
==
''
) ?
'mioloWindow'
:
$target
;
127
$this->action =
"MIOLO_Window('{$href}','{$this->target}')"
;
128
$this->page->AddScript(
'x/x_win.js'
);
129
}
130
}
131
?>
MButtonClose
Definição
customcontrols.class:3
MButtonClose\GenerateInner
GenerateInner()
Definição
customcontrols.class:24
MButtonClose\__construct
__construct($action)
Definição
customcontrols.class:4
MButtonFind
Definição
customcontrols.class:89
MButtonFind\__construct
__construct($action='')
Definição
customcontrols.class:90
MButtonHelp
Definição
customcontrols.class:66
MButtonHelp\generateInner
generateInner()
Definição
customcontrols.class:80
MButtonHelp\__construct
__construct($help)
Definição
customcontrols.class:67
MButtonMinimize
Definição
customcontrols.class:32
MButtonMinimize\GenerateInner
GenerateInner()
Definição
customcontrols.class:58
MButtonMinimize\__construct
__construct($action)
Definição
customcontrols.class:33
MButtonWindow
Definição
customcontrols.class:122
MButtonWindow\__construct
__construct($name=NULL, $label=NULL, $href=NULL, $target='')
Definição
customcontrols.class:123
MButton
Definição
buttoncontrols.class:4
MButton\$target
$target
Definição
buttoncontrols.class:8
MButton\$action
$action
Definição
buttoncontrols.class:5
MComponent\$name
$name
Definição
mcomponent.class:17
MControl\getBox
getBox()
Definição
mcontrol.class:778
MControl\getRender
getRender( $method)
Definição
mcontrol.class:833
MDiv
Definição
blockcontrols.class:23
MFormControl\$label
$label
Definição
mformcontrol.class:5
MInputButton
Definição
buttoncontrols.class:198
MLinkBack
Definição
customcontrols.class:98
MLinkBack\__construct
__construct($text='Voltar', $href='')
Definição
customcontrols.class:99
MLink
Definição
linkcontrols.class:4
MLink\$target
$target
Definição
linkcontrols.class:5
MLink\$href
$href
Definição
linkcontrols.class:6
MOpenWindow
Definição
customcontrols.class:111
MOpenWindow\__construct
__construct($name=NULL, $label=NULL, $href=NULL, $target='')
Definição
customcontrols.class:112
$MIOLO
$MIOLO
Definição
mdatetimefield.class:25
$action
$action
Definição
base.php:4
classes
ui
controls
customcontrols.class
Gerado por
1.10.0