5
----------------------------------------------------------------------------
7
net-based application engine
8
----------------------------------------------------------------------------
9
(C) direct Netware Group - All rights reserved
10
http://www.direct-netware.de/redirect.php?swg
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
----------------------------------------------------------------------------
24
* Welcome to the default embedded theme for the sWG.
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
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
35
* @subpackage output_theme
36
* @uses direct_product_iversion
38
* @license http://www.direct-netware.de/redirect.php?licenses;w3c
39
* W3C (R) Software License
42
/* -------------------------------------------------------------------------
43
All comments will be removed in the "production" packages (they will be in
44
all development packets)
45
------------------------------------------------------------------------- */
47
//j// Basic configuration
49
/* -------------------------------------------------------------------------
50
Direct calls will be honored with an "exit ()"
51
------------------------------------------------------------------------- */
53
if (!defined ("direct_product_iversion")) { exit (); }
55
//j// Functions and classes
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; }
61
if ($g_continue_check)
63
//c// direct_output_theme_embedded
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.
68
* @author direct Netware Group
69
* @copyright (C) direct Netware Group - All rights reserved
71
* @subpackage output_theme
72
* @uses CLASS_direct_output_control
74
* @license http://www.direct-netware.de/redirect.php?licenses;w3c
75
* W3C (R) Software License
77
class direct_output_theme_embedded extends direct_output_theme
79
/* -------------------------------------------------------------------------
80
Extend the class using old and new behavior
81
------------------------------------------------------------------------- */
83
//f// direct_output_theme_embedded->__construct () and direct_output_theme_embedded->direct_output_theme_embedded ()
85
* Constructor (PHP5) __construct (direct_output_theme_embedded)
87
* @uses direct_debug()
88
* @uses USE_debug_reporting
91
/*#ifndef(PHP4) */public /* #*/function __construct ()
93
if (USE_debug_reporting) { direct_debug (5,"sWG/#echo(__FILEPATH__)# -output_theme_class->__construct (direct_output_theme_embedded)- (#echo(__LINE__)#)"); }
95
/* -------------------------------------------------------------------------
96
My parent should be on my side to get the work done
97
------------------------------------------------------------------------- */
99
parent::__construct ();
101
/* -------------------------------------------------------------------------
102
Informing the system about available functions
103
------------------------------------------------------------------------- */
105
$this->functions['theme_page'] = true;
109
* Constructor (PHP4) direct_output_theme_embedded
110
* (direct_output_theme_embedded)
114
function direct_output_theme_embedded () { $this->__construct (); }
116
//f// direct_output_theme_embedded->theme_page ($f_title)
118
* Prepare an output for a XHTML encoded embedded page with the standard sWG
121
* @param string $f_title Valid XHTML page title
122
* @uses direct_debug()
123
* @uses USE_debug_reporting
126
/*#ifndef(PHP4) */public /* #*/function theme_page ($f_title)
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__)#)"); }
131
$direct_settings['theme_xhtml_type'] = "application/xhtml+xml; charset=".$direct_local['lang_charset'];
132
header ("Content-Type: ".$direct_settings['theme_xhtml_type'],true);
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'>
139
<title>$f_title</title>");
141
if (strlen ($direct_cachedata['output_p3purl'])) { $this->page .= "\n<link rel='P3Pv1' href='{$direct_cachedata['output_p3purl']}'>"; }
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 }
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 }
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 }
162
table { margin:0px;border:0px }
165
.pagebg { background-color:#ECECED }
167
.pageborder1 { background-color:#CCCCCC }
168
.pageborder2 { border:1px solid #CCCCCC;background-color:#FFFFFF;padding:5px }
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 }
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 }
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 }
188
.pagehide { display:none }
189
.pagehighlightborder1 { background-color:#FF0000 }
190
.pagehighlightborder2 { border:1px solid #FF0000;background-color:#FBF6CD;padding:4px }
192
.pagehr { height:1px;border-top:1px solid #FFAD65 }
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 }
198
".($direct_classes['output']->header_elements ())."
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%'>
206
<td valign='middle' align='left' class='pagebg' style='padding:5px'>".$direct_classes['output']->page_content."</td>
216
$direct_classes['@names']['output_theme'] = "direct_output_theme_embedded";
217
define ("CLASS_direct_output_theme_embedded",true);
'\\ No newline at end of file'