135 |
|
|
136 |
$res = xmlcp_parse($xml); |
$res = xmlcp_parse($xml); |
137 |
|
|
138 |
common_benchmark_addstep('otd_html1: render: xmlpc_parse() = ' . $res); |
common_benchmark_addstep('otd_html1: render: xmlcp_parse() = ' . $res); |
139 |
|
|
140 |
/* |
if($common['hostsetup']['devstate']) { |
|
otd_html1_headline('$list array, readable:'); |
|
|
otd_html1_codeparagraph('$list = ' . nl2br(htmlentities(print_r($list, true)))); |
|
141 |
|
|
142 |
otd_html1_headline('$contentdata array, readable:'); |
otd_html1_headline('$list array, readable:'); |
143 |
otd_html1_codeparagraph('$contentdata = ' . nl2br(htmlentities(print_r($contentdata, true)))); |
otd_html1_codeparagraph('$list = ' . nl2br(htmlentities(print_r($list, true)))); |
144 |
|
|
145 |
otd_html1_headline('$common array, readable:'); |
otd_html1_headline('$contentdata array, readable:'); |
146 |
otd_html1_codeparagraph('$common = ' . nl2br(htmlentities(print_r($common, true)))); |
otd_html1_codeparagraph('$contentdata = ' . nl2br(htmlentities(print_r($contentdata, true)))); |
147 |
|
|
148 |
otd_html1_headline('$common_sessiondata array, readable:'); |
otd_html1_headline('Content XML:'); |
149 |
otd_html1_codeparagraph('$common_sessiondata = ' . nl2br(htmlentities(print_r($common_sessiondata, true)))); |
otd_html1_codeparagraph(nl2br(htmlentities($xml))); |
150 |
|
|
151 |
otd_html1_headline('Content XML:'); |
/* |
152 |
otd_html1_codeparagraph(nl2br(htmlentities($xml))); |
otd_html1_headline('$common array, readable:'); |
153 |
|
otd_html1_codeparagraph('$common = ' . nl2br(htmlentities(print_r($common, true)))); |
154 |
|
|
155 |
|
otd_html1_headline('$common_sessiondata array, readable:'); |
156 |
|
otd_html1_codeparagraph('$common_sessiondata = ' . nl2br(htmlentities(print_r($common_sessiondata, true)))); |
157 |
*/ |
*/ |
158 |
|
|
159 |
|
} |
160 |
|
|
161 |
// Only show the informations when "devstate" is set: |
// Only show the informations when "devstate" is set: |
162 |
// if($common['hostsetup']['devstate']) { |
// if($common['hostsetup']['devstate']) { |
163 |
|
|
164 |
otd_html1_paragraph('<small> |
otd_html1_paragraph('<small> |
165 |
<b>Content informations:</b><br /> |
"<b>' . $contentdata['description'] . '</b>" (language: "<b>' . $contentdata['language_name'] . '</b>") created by <b>' . $contentdata['creator_name'] . '</b> on <b>' . date('d.m.Y, H:i:s', $contentdata['unixtime']) . '</b>.<br /> |
166 |
<br /> |
Last changes by <b>' . $contentdata['creator_name'] . '</b> on <b>' . date('d.m.Y, H:i:s', $contentdata['unixtime']) . '</b>. |
167 |
Description: "<b>' . $contentdata['description'] . '</b>" (Type: "xmlpage")<br /> |
</small>', 'box1'); |
|
Creator: "<b>' . $contentdata['creator_name'] . '</b>"<br /> |
|
|
Date, Time: "<b>' . date('d.m.Y, H:i:s', $contentdata['unixtime']) . '</b>"<br /> |
|
|
Language: "<b>' . $contentdata['language_name'] . '</b>"<br /> |
|
|
XML content size: <b>' . strlen($xml) . '</b> bytes |
|
|
</small>', 'box2'); |
|
168 |
|
|
169 |
// } |
// } |
170 |
|
|
208 |
echo '<table cellspacing="0" cellpadding="2" class="f22" width="' . $boxwidth . '"> |
echo '<table cellspacing="0" cellpadding="2" class="f22" width="' . $boxwidth . '"> |
209 |
<tr> |
<tr> |
210 |
<th class="box2" height="' . $boxheight . '" width="44"><b>User<br />login</b></th> |
<th class="box2" height="' . $boxheight . '" width="44"><b>User<br />login</b></th> |
211 |
<td valign="top" style="padding:4px;"> |
<td align="center" valign="top" style="padding:4px;"> |
212 |
<small> |
<small> |
213 |
You are logged in the ' . $common_sessiondata['userdata']['logincount'] . '. time as <b>' . $common_sessiondata['userdata']['name'] . '</b>. Login time was <b>' . date('H:i:s (d.m.Y)', $common_sessiondata['userdata']['logintime']) . '</b>.<br/ > |
You are logged in the ' . $common_sessiondata['userdata']['logincount'] . '. time as <b>' . $common_sessiondata['userdata']['name'] . '</b>. Login time was <b>' . date('H:i:s, d.m.Y', $common_sessiondata['userdata']['logintime']) . '</b>.<br/ > |
214 |
Your rights are "<b>' . $common_sessiondata['userdata']['rights'] . '</b>". |
Your rights are "<b>' . $common_sessiondata['userdata']['rights'] . '</b>". |
215 |
</small> |
</small> |
216 |
</td> |
</td> |
272 |
otd_html1_paragraph('<small> |
otd_html1_paragraph('<small> |
273 |
<b>Partial execution times:</b><br /> |
<b>Partial execution times:</b><br /> |
274 |
<br /> |
<br /> |
275 |
' . $contents . '</small>', 'box2'); |
' . $contents . '</small>', 'box1'); |
276 |
|
|
277 |
} |
} |
278 |
|
|
279 |
function otd_html1_codeparagraph($contents) { |
function otd_html1_codeparagraph($contents) { |
280 |
|
|
281 |
echo '<p align="justify" class="hl11"> |
echo '<p align="justify" class="hl12"> |
282 |
<code> |
<code> |
283 |
' . $contents . ' |
' . $contents . ' |
284 |
</code> |
</code> |
318 |
<td class="bg11" width="8" rowspan="2" style="padding:0;"></td> |
<td class="bg11" width="8" rowspan="2" style="padding:0;"></td> |
319 |
</tr> |
</tr> |
320 |
<tr> |
<tr> |
321 |
<td class="bg11" nowrap="nowrap" style="border-bottom:2px solid #40e8e0;" valign="bottom"> |
<td class="bg11" nowrap="nowrap" style="border-bottom:2px solid #40a080;" valign="bottom"> |
322 |
<div class="box2" style="margin-bottom:8px;"><big>Tools</big></div> |
<div class="box2" style="margin-bottom:8px;"><big>Tools:</big></div> |
323 |
• Benchmark list: [' . ($devstate ? '<a href="?devstate=0">off</a>' : '<a href="?devstate=1">on</a>') . '] |
• Benchmark list: [' . ($devstate ? '<a href="?devstate=0">off</a>' : '<a href="?devstate=1">on</a>') . '] |
324 |
</td> |
</td> |
325 |
</tr> |
</tr> |
352 |
body { margin:0; } |
body { margin:0; } |
353 |
body, input, table { font: 10pt verdana, serif; } |
body, input, table { font: 10pt verdana, serif; } |
354 |
input { border:1px; } |
input { border:1px; } |
355 |
.bg11, .box1, .f11, .hl11 { background-color:#50f8f0; } |
.bg11, .f11, .hl11 { background-color:#40d8c0; } |
356 |
.bg12, .f12 { background-color:#40e8e0; } |
.bg12, .box1, .f12, .hl12 { background-color:#40e8e0; } |
357 |
.bg13 { background-color:#20a0c0; } |
.bg13 { background-color:#20a0c0; } |
358 |
.bg21, .box2, .f21, .hl21 { background-color:#90fff0; } |
.bg21, .box2, .f21, .hl21 { background-color:#a0c090; } |
359 |
.bg22, .f22 { background-color:#80f0e0; } |
.bg22, .f22 { background-color:#40c8b0; } |
360 |
.bg23 { background-color:#40c080; } |
.bg23 { background-color:#40c080; } |
361 |
.box1, .f11, .f12 { border:2px solid #20a0c0; } |
.box1, .f11, .f12 { border:1px solid #20a0b0; } |
362 |
.box2, .f21, .f22 { border:1px solid #40c080; } |
.box2, .f21, .f22 { border:1px solid #40a080; } |
363 |
.box1, .box2, .hl11, .hl21 { padding:4px; } |
.box1, .box2, .hl11, .hl12, .hl21 { padding:4px; } |
364 |
--></style> |
--></style> |
365 |
</head> |
</head> |
366 |
|
|
371 |
|
|
372 |
function otd_html1_pageheader() { |
function otd_html1_pageheader() { |
373 |
|
|
374 |
echo '<table cellspacing="0" cellpadding="8" style="border-bottom:2px solid #40e8e0;" width="100%"> |
echo '<table cellspacing="0" cellpadding="8" style="border-bottom:2px solid #40a080;" width="100%"> |
375 |
<tr> |
<tr> |
376 |
<td class="bg11" colspan="3"> |
<td class="bg11" colspan="3"> |
377 |
<table cellspacing="0" cellpadding="0" width="100%"> |
<table cellspacing="0" cellpadding="0" width="100%"> |
395 |
</td> |
</td> |
396 |
</tr> |
</tr> |
397 |
<tr> |
<tr> |
398 |
<td class="bg11" nowrap="nowrap" style="border-top:2px solid #40e8e0;" valign="top" width="160"> |
<td class="bg11" nowrap="nowrap" style="border-top:2px solid #40a080;" valign="top" width="160"> |
399 |
'; |
'; |
400 |
|
|
401 |
echo '<div class="box2" style="margin-bottom:8px;"><big>Navigation</big></div> |
echo '<div class="box2" style="margin-bottom:8px;"><big>Navigation:</big></div> |
402 |
<a href="">Home page</a> |
• <a href="">Home page</a> |
403 |
</td> |
</td> |
404 |
<td rowspan="2" style="border:2px solid #20a0c0; padding:8px;"> |
<td rowspan="2" style="border:2px solid #3090a8; padding:8px;"> |
405 |
'; |
'; |
406 |
|
|
407 |
} |
} |
408 |
|
|
409 |
function otd_html1_pagetitle($title, $additionalcontents = '') { |
function otd_html1_pagetitle($title, $additionalcontents = '') { |
410 |
|
|
411 |
echo '<p class="box2"> |
echo '<p class="box1"> |
412 |
<big><b>• ' . $title . '</b> </big> |
<big><b>• ' . $title . '</b> </big> |
413 |
' . ($additionalcontents ? $additionalcontents . ' |
' . ($additionalcontents ? $additionalcontents . ' |
414 |
' : '') . '</p> |
' : '') . '</p> |