RSS

(root)/phpwe/sWG_basic : 2 : data/themes/swg/swg_theme_embedded.php

« back to all changes in this revision

Viewing changes to data/themes/swg/swg_theme_embedded.php

@4u
2009-06-17 10:25:56
Revision ID: @4u-20090617102556-9i7k61py79uu57lc
Initial commit
Trivial: We are working with Bazaar not CVS

Show diffs side-by-side

added added

removed removed

 
1
<?php
 
2
//j// BOF
 
3
 
 
4
/*n// NOTE
 
5
----------------------------------------------------------------------------
 
6
secured WebGine
 
7
net-based application engine
 
8
----------------------------------------------------------------------------
 
9
(C) direct Netware Group - All rights reserved
 
10
http://www.direct-netware.de/redirect.php?swg
 
11
 
 
12
This work is distributed under the W3C (R) Software License, but without any
 
13
warranty; without even the implied warranty of merchantability or fitness
 
14
for a particular purpose.
 
15
----------------------------------------------------------------------------
 
16
http://www.direct-netware.de/redirect.php?licenses;w3c
 
17
----------------------------------------------------------------------------
 
18
$Id: swg_theme_embedded.php,v 1.4 2007/07/11 17:43:36 s4u Exp $
 
19
#echo(sWGbasicVersion)#
 
20
sWG/#echo(__FILEPATH__)#
 
21
----------------------------------------------------------------------------
 
22
NOTE_END //n*/
 
23
/**
 
24
* Welcome to the default embedded theme for the sWG.
 
25
*
 
26
* @internal   We are using phpDocumentor to automate the documentation process
 
27
*             for creating the Developer's Manual. All sections including
 
28
*             these special comments will be removed from the release source
 
29
*             code.
 
30
*             Use the following line to ensure 76 character sizes:
 
31
* ----------------------------------------------------------------------------
 
32
* @author     direct Netware Group
 
33
* @copyright  (C) direct Netware Group - All rights reserved
 
34
* @package    sWG_basic
 
35
* @subpackage output_theme
 
36
* @uses       direct_product_iversion
 
37
* @since      v0.1.00
 
38
* @license    http://www.direct-netware.de/redirect.php?licenses;w3c
 
39
*             W3C (R) Software License
 
40
*/
 
41
 
 
42
/* -------------------------------------------------------------------------
 
43
All comments will be removed in the "production" packages (they will be in
 
44
all development packets)
 
45
------------------------------------------------------------------------- */
 
46
 
 
47
//j// Basic configuration
 
48
 
 
49
/* -------------------------------------------------------------------------
 
50
Direct calls will be honored with an "exit ()"
 
51
------------------------------------------------------------------------- */
 
52
 
 
53
if (!defined ("direct_product_iversion")) { exit (); }
 
54
 
 
55
//j// Functions and classes
 
56
 
 
57
$g_continue_check = true;
 
58
if (defined ("CLASS_direct_output_theme_embedded")) { $g_continue_check = false; }
 
59
if (!defined ("CLASS_direct_output_theme")) { $g_continue_check = false; }
 
60
 
 
61
if ($g_continue_check)
 
62
{
 
63
//c// direct_output_theme_embedded
 
64
/**
 
65
* The theme support is "incremental". Our inline theme will be overwritten by
 
66
* the default sWG one. This embedded subtype will overwrite the default one.
 
67
*
 
68
* @author     direct Netware Group
 
69
* @copyright  (C) direct Netware Group - All rights reserved
 
70
* @package    sWG_basic
 
71
* @subpackage output_theme
 
72
* @uses       CLASS_direct_output_control
 
73
* @since      v0.1.00
 
74
* @license    http://www.direct-netware.de/redirect.php?licenses;w3c
 
75
*             W3C (R) Software License
 
76
*/
 
77
class direct_output_theme_embedded extends direct_output_theme
 
78
{
 
79
/* -------------------------------------------------------------------------
 
80
Extend the class using old and new behavior
 
81
------------------------------------------------------------------------- */
 
82
 
 
83
        //f// direct_output_theme_embedded->__construct () and direct_output_theme_embedded->direct_output_theme_embedded ()
 
84
/**
 
85
        * Constructor (PHP5) __construct (direct_output_theme_embedded)
 
86
        *
 
87
        * @uses  direct_debug()
 
88
        * @uses  USE_debug_reporting
 
89
        * @since v0.1.00
 
90
*/
 
91
        /*#ifndef(PHP4) */public /* #*/function __construct ()
 
92
        {
 
93
                if (USE_debug_reporting) { direct_debug (5,"sWG/#echo(__FILEPATH__)# -output_theme_class->__construct (direct_output_theme_embedded)- (#echo(__LINE__)#)"); }
 
94
 
 
95
/* -------------------------------------------------------------------------
 
96
My parent should be on my side to get the work done
 
97
------------------------------------------------------------------------- */
 
98
 
 
99
                parent::__construct ();
 
100
 
 
101
/* -------------------------------------------------------------------------
 
102
Informing the system about available functions 
 
103
------------------------------------------------------------------------- */
 
104
 
 
105
                $this->functions['theme_page'] = true;
 
106
        }
 
107
/*#ifdef(PHP4):
 
108
/**
 
109
        * Constructor (PHP4) direct_output_theme_embedded
 
110
        * (direct_output_theme_embedded)
 
111
        *
 
112
        * @since v0.1.00
 
113
*\/
 
114
        function direct_output_theme_embedded () { $this->__construct (); }
 
115
:#*/
 
116
        //f// direct_output_theme_embedded->theme_page ($f_title)
 
117
/**
 
118
        * Prepare an output for a XHTML encoded embedded page with the standard sWG
 
119
        * theme.
 
120
        *
 
121
        * @param string $f_title Valid XHTML page title
 
122
        * @uses  direct_debug()
 
123
        * @uses  USE_debug_reporting
 
124
        * @since v0.1.00
 
125
*/
 
126
        /*#ifndef(PHP4) */public /* #*/function theme_page ($f_title)
 
127
        {
 
128
                global $direct_cachedata,$direct_classes,$direct_local,$direct_settings;
 
129
                if (USE_debug_reporting) { direct_debug (5,"sWG/#echo(__FILEPATH__)# -output_theme_class->theme_page ($f_title)- (#echo(__LINE__)#)"); }
 
130
 
 
131
                $direct_settings['theme_xhtml_type'] = "application/xhtml+xml; charset=".$direct_local['lang_charset'];
 
132
                header ("Content-Type: ".$direct_settings['theme_xhtml_type'],true);
 
133
 
 
134
$this->page = ("<?xml version='1.0' encoding='$direct_local[lang_charset]' ?>
 
135
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
 
136
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
 
137
 
 
138
<head>
 
139
<title>$f_title</title>");
 
140
 
 
141
                if (strlen ($direct_cachedata['output_p3purl'])) { $this->page .= "\n<link rel='P3Pv1' href='{$direct_cachedata['output_p3purl']}'>"; }
 
142
 
 
143
$this->page .= ("\n<meta http-equiv='Content-Type' content='$direct_settings[theme_xhtml_type]' />
 
144
<meta name='author' content='direct Netware Group' />
 
145
<meta name='creator' content='$direct_settings[product_lcode_txt] by the direct Netware Group' />
 
146
<meta name='description' content='$direct_settings[product_lcode_subtitle_txt]' />
 
147
<style type='text/css'><![CDATA[
 
148
p, td { cursor:default }
 
149
 
 
150
a { cursor:pointer }
 
151
a:link { text-decoration:underline }
 
152
a:active { text-decoration:none }
 
153
a:visited { text-decoration:underline }
 
154
a:hover { text-decoration:none }
 
155
a:focus { text-decoration:underline }
 
156
 
 
157
body { height:100%;margin:0px;padding:0px;background-color:#FFFFFF }
 
158
body { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;line-height:normal;font-weight:normal }
 
159
form { margin:0px;padding:0px }
 
160
html { height:100% }
 
161
img { border:0px }
 
162
table { margin:0px;border:0px }
 
163
td { padding:0px }
 
164
 
 
165
.pagebg { background-color:#ECECED }
 
166
 
 
167
.pageborder1 { background-color:#CCCCCC }
 
168
.pageborder2 { border:1px solid #CCCCCC;background-color:#FFFFFF;padding:5px }
 
169
 
 
170
.pagecontent { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#000000 }
 
171
.pagecontent a, .pagecontent a:link, .pagecontent a:active, .pagecontent a:visited, .pagecontent a:hover, .pagecontent a:focus { color:#000000 }
 
172
.pagecontentinputbutton { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#000000;background-color:#FFFFFF }
 
173
.pagecontentinputcheckbox { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#000000;background-color:#EEEEEE }
 
174
.pagecontentinputtextnpassword { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#000000;background-color:#FFFFFF }
 
175
.pagecontentselect { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#000000;background-color:#EEEEEE }
 
176
.pagecontenttextarea { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#000000;background-color:#FFFFFF }
 
177
.pagecontenttitle { border:1px solid #4C6C8F;background-color:#FFFFFF;padding:5px }
 
178
.pagecontenttitle { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#000000 }
 
179
.pagecontenttitle a, .pagecontenttitle a:link, .pagecontenttitle a:active, .pagecontenttitle a:visited, .pagecontenttitle a:hover, .pagecontenttitle a:focus { color:#444444 }
 
180
 
 
181
.pageerrorcontent { font-weight:bold;color:#FF0000 }
 
182
.pageerrorcontent a, .pageerrorcontent a:link, .pageerrorcontent a:active, .pageerrorcontent a:visited, .pageerrorcontent a:hover, .pageerrorcontent a:focus { color:#CC0000 }
 
183
 
 
184
.pageextrabg { background-color:#FFFFFF }
 
185
.pageextracontent { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#222222 }
 
186
.pageextracontent a, .pageextracontent a:link, .pageextracontent a:active, .pageextracontent a:visited, .pageextracontent a:hover, .pageextracontent a:focus { color:#000000 }
 
187
 
 
188
.pagehide { display:none }
 
189
.pagehighlightborder1 { background-color:#FF0000 }
 
190
.pagehighlightborder2 { border:1px solid #FF0000;background-color:#FBF6CD;padding:4px }
 
191
 
 
192
.pagehr { height:1px;border-top:1px solid #FFAD65 }
 
193
 
 
194
.pagetitlecellbg { padding:5px;background-color:#FFFFFF }
 
195
.pagetitlecellcontent { font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#000000 }
 
196
.pagetitlecellcontent a, .pagetitlecellcontent a:link, .pagetitlecellcontent a:active, .pagetitlecellcontent a:visited, .pagetitlecellcontent a:hover, .pagetitlecellcontent a:focus { color:#444444 }
 
197
]]></style>
 
198
".($direct_classes['output']->header_elements ())."
 
199
</head>
 
200
 
 
201
<body onload='djs_run_onload ();'><div id='swgAJAX_loading_point' style='display:none'><!-- iPoint // --></div><script language='JavaScript1.5' type='text/javascript'><![CDATA[
 
202
djs_swgAJAX_loading_writeln ('center');
 
203
]]></script><table cellspacing='1' summary='' style='width:100%;height:100%'>
 
204
<tbody>
 
205
<tr>
 
206
<td valign='middle' align='left' class='pagebg' style='padding:5px'>".$direct_classes['output']->page_content."</td>
 
207
</tr>
 
208
</tbody>
 
209
</table>
 
210
</body>
 
211
 
 
212
</html>");
 
213
        }
 
214
}
 
215
 
 
216
$direct_classes['@names']['output_theme'] = "direct_output_theme_embedded";
 
217
define ("CLASS_direct_output_theme_embedded",true);
 
218
}
 
219
 
 
220
//j// EOF
 
221
?>
 
 
'\\ No newline at end of file'

Loggerhead 1.17 is a web-based interface for Bazaar branches