MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
themetoolkit.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 toolkit elements definitions |
15
// | |
16
// | Created: 2001/08/14 Vilson Cristiano Gärtner, |
17
// | Thomas Spriestersbach |
18
// | |
19
// | History: Initial Revision |
20
// +-----------------------------------------------------------------+
21
29
class
ThemeToolkit
30
{
44
function
GenerateImageBorderBox
($borders,
$title
=
' '
, $content =
' '
, $width =
'100%'
)
45
{
46
$tlc = $borders[
'top-left'
];
47
$tc = $borders[
'top-center'
];
48
$trc = $borders[
'top-right'
];
49
50
$lb = $borders[
'center-left'
];
51
$rb = $borders[
'center-right'
];
52
53
$blc = $borders[
'bottom-left'
];
54
$bc = $borders[
'bottom-center'
];
55
$brc = $borders[
'bottom-right'
];
56
57
echo
"<table cellspacing=0 cellpadding=0 border=0 width=\"$width\">\n"
;
58
59
//Top line
60
echo
" <tr>\n"
;
61
echo
" <td><img src=\"$tlc\"></td>\n"
;
62
echo
" <td width=\"100%\" background=\"$tc\">$title</td>\n"
;
63
echo
" <td><img src=\"$trc\"></td>\n"
;
64
echo
" </tr>\n"
;
65
66
//Center line
67
echo
" <tr>\n"
;
68
echo
" <td background=\"$lb\"><img src=\"$lb\"></td>\n"
;
69
echo
" <td width=\"100%\">$content</td>\n"
;
70
echo
" <td background=\"$rb\"><img src=\"$rb\"></td>\n"
;
71
echo
" </tr>\n"
;
72
73
//Bottom line
74
echo
" <tr>\n"
;
75
echo
" <td><img src=\"$blc\"></td>\n"
;
76
echo
" <td width=\"100%\" background=\"$bc\"><img src=\"$bc\"></td>\n"
;
77
echo
" <td><img src=\"$brc\"></td>\n"
;
78
echo
" </tr>\n"
;
79
80
echo
"</table>\n"
;
81
}
82
97
function
GenerateSimpleBox
($colors,
$title
=
false
, $content =
' '
, $width =
'100%'
, $borderWidth = 1)
98
{
99
// outer table for border
100
echo
"<table width=\"$width\" cellspacing=\"0\" cellpadding=\"$borderWidth\" border=\"0\" bgcolor=\"{$colors[border]}\">\n"
;
101
echo
" <tr>\n"
;
102
echo
" <td><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">\n"
;
103
104
if
(
$title
)
105
{
106
echo
" <tr>\n"
;
107
echo
" <td bgcolor=\"{$colors[title]}\">$title</td>\n"
;
108
echo
" </tr>\n"
;
109
}
110
111
echo
" <tr>\n"
;
112
echo
" <td bgcolor=\"{$colors[content]}\">$content</td>\n"
;
113
echo
" </tr>\n"
;
114
echo
" </table>\n"
;
115
echo
" </tr>\n"
;
116
echo
"</table>\n"
;
117
}
118
131
function
GenerateFormBox
(
$title
, $filter, $body, $footer)
132
{
133
echo
" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\""
.
"align=\"center\" width=\"100%\">\n"
;
134
echo
" <tr>\n"
;
135
echo
" <td>\n"
;
136
echo
$title
;
137
echo
" </td>\n"
;
138
echo
" </tr>\n"
;
139
140
if
($filter)
141
{
142
echo
" <tr>\n"
;
143
echo
" <td>\n"
;
144
echo $filter;
145
echo
" </td>\n"
;
146
echo
" </tr>\n"
;
147
}
148
149
echo
" <tr>\n"
;
150
echo
" <td>\n"
;
151
echo $body;
152
echo
" </td>\n"
;
153
echo
" </tr>\n"
;
154
echo
" <tr>\n"
;
155
echo
" <td>\n"
;
156
echo $footer;
157
echo
" </td>\n"
;
158
echo
" </tr>\n"
;
159
echo
" </td>\n"
;
160
echo
" </tr>\n"
;
161
echo
" </table>\n"
;
162
}
163
}
164
?>
ThemeToolkit
Definição
themetoolkit.class:30
ThemeToolkit\GenerateImageBorderBox
GenerateImageBorderBox($borders, $title=' ', $content=' ', $width='100%')
Definição
themetoolkit.class:44
ThemeToolkit\GenerateSimpleBox
GenerateSimpleBox($colors, $title=false, $content=' ', $width='100%', $borderWidth=1)
Definição
themetoolkit.class:97
ThemeToolkit\GenerateFormBox
GenerateFormBox($title, $filter, $body, $footer)
Definição
themetoolkit.class:131
$title
$title
Definição
base.php:3
classes
ui
controls
themetoolkit.class
Gerado por
1.10.0