MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
customcontrols.class
Ir para a documentação deste ficheiro.
1<?php
2class MButtonClose extends MLink
3{
5 {
6 global $MIOLO;
7
8 parent::__construct('', '', '','&nbsp;');
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
31class MButtonMinimize extends MDiv
32{
34 {
35 global $MIOLO;
36
37 //parent::__construct('', '', '','&nbsp;');
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
65class 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
89{
90 function __construct($action = '')
91 {
92 parent::__construct('', '', $action);
93 $this->SetClass('m-button-find');
94 }
95}
96
97class 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
110class 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
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?>
__construct($action)
__construct($action='')
__construct($name=NULL, $label=NULL, $href=NULL, $target='')
getRender( $method)
Definição mcontrol.class:833
__construct($text='Voltar', $href='')
__construct($name=NULL, $label=NULL, $href=NULL, $target='')
$action
Definição base.php:4