richtig
Was in der letzen Zeile steht ist unten includet. Aber die Ausgabe ist doch wieder leider oben
Die Test.PHP: <?php
eval ("\$site_body.=\"".getTemplate("crew/modwrite/test")."\";");
?>
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
<head>
<meta http-equiv="refresh" content="30;URL=http://www.liveantenne.de/include.php?path=crew/radiator/radiator.php">
<script type="text/javascript" language="JavaScript">
<!--
// W. Jansen - clickstert.de
// hier die beiden Angaben eintragen
Verzeichnis = "crew/radiator/images/";
Dateiendung = ".gif";
Digits = new Array()
Vorladen = new Array()
for(i=0; i < 11; i++){
Digits[i]= i + ".gif";
}
for(i=0; i < Digits.length; i++){
Vorladen[i]=new Image();
Vorladen[i].src = Verzeichnis + Digits[i];
}
function imageclock(){
Jetzt=new Date();
Sek = Jetzt.getSeconds();
Min = Jetzt.getMinutes();
Std = Jetzt.getHours();
// zweistellige Werte ermitteln
var Zeitstring = ((Std < 10)?"0"+Std:Std)+''+((Min < 10)?"0"+Min:Min)+''+((Sek < 10)?"0"+Sek:Sek);
for (i=0; i < Zeitstring.length; i++){
document.getElementById('z'+i).src = Verzeichnis + Zeitstring.charAt(i) + Dateiendung;
}
setTimeout('imageclock()',1000);
}
window.onload=imageclock;
//-->
</script>
<table class="userbody" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="heads" colspan="2">Radiator </td> <td class="heads" ALIGN=right>
<?php include_once ('crew/modwrite/ausgabe.php'); //ARTIKEL EINBINDEN ?>
</td>
</tr>
</table>
<TABLE width="100%" BORDER=0>
<TR>
<TD COLSPAN=3 ALIGN=left>
<?
if (date(D) == "Mon") {include("crew/radiator/short_montag.php");}
if (date(D) == "Tue") {include("crew/radiator/short_dienstag.php");}
if (date(D) == "Wed") {include("crew/radiator/short_mittwoch.php");}
if (date(D) == "Thu") {include("crew/radiator/short_donnerstag.php");}
if (date(D) == "Fri") {include("crew/radiator/short_freitag.php");}
if (date(D) == "Sat") {include("crew/radiator/short_samstag.php");}
if (date(D) == "Sun") {include("crew/radiator/short_sonntag.php");}
?>
</td>
<TD COLSPAN=3 ALIGN=right><table border="0" cellpadding="0" cellspacing="0"><tr align="center" valign="middle">
<td><img id="z0" src="crew/radiator/images/0.gif" width="15" height="20" border="0" alt=""></td>
<td><img id="z1" src="crew/radiator/images/0.gif" width="15" height="20" border="0" alt=""></td>
<td><img src="crew/radiator/images/11.gif" width="11" height="20" border="0" alt=""></td>
<td><img id="z2" src="crew/radiator/images/0.gif" width="15" height="20" border="0" alt=""></td>
<td><img id="z3" src="crew/radiator/images/0.gif" width="15" height="20" border="0" alt=""></td>
<td><img src="crew/radiator/images/11.gif" width="11" height="20" border="0" alt=""></td>
<td><img id="z4" src="crew/radiator/images/0.gif" width="15" height="20" border="0" alt=""></td>
<td><img id="z5" src="crew/radiator/images/0.gif" width="15" height="20" border="0" alt=""></td>
</tr></table>
<html>
<body>
<script type="text/javascript">
var Datum2 = new (Date);
var Tag2 = Datum2.getDate();
var Wochentag = Datum2.getDay();
var Monat2 = Datum2.getMonth();
var Jahr2 = Datum2.getFullYear();
var Tagname = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
var Monatname = new
Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
</script>
<script language="JavaScript">document.write(Tagname[Wochentag]+", "+Tag2+". "+Monatname[Monat2]+" "+Jahr2+" ");</script>
</body>
</html></td>
</tr>
</table>
<!-- Platzhalter -->
<div style="padding: 3px;"></div>
<!-- Platzhalter -->
<?
if (date(D) == "Mon") {include("crew/radiator/montag.php");}
if (date(D) == "Tue") {include("crew/radiator/dienstag.php");}
if (date(D) == "Wed") {include("crew/radiator/mittwoch.php");}
if (date(D) == "Thu") {include("crew/radiator/donnerstag.php");}
if (date(D) == "Fri") {include("crew/radiator/freitag.php");}
if (date(D) == "Sat") {include("crew/radiator/samstag.php");}
if (date(D) == "Sun") {include("crew/radiator/sonntag.php");}
?>
<?php include_once ('crew/modwrite/test.php'); //ARTIKEL EINBINDEN ?>
|
Was in der letzen Zeile steht ist unten includet. Aber die Ausgabe ist doch wieder leider oben
Die Test.PHP: <?php
eval ("\$site_body.=\"".getTemplate("crew/modwrite/test")."\";");
?>
dann versuchs einfach mal so:
und anstelle von:
das
mfg
|
|
PHP-Quelltext |
1 |
<?php include_once ('crew/modwrite/test.php'); echo $MeinTemplate;//ARTIKEL EINBINDEN ?>
|
und anstelle von:
|
|
PHP-Quelltext |
1 |
eval ("\$site_body.=\"".getTemplate("crew/modwrite/test")."\";");
|
das
|
|
PHP-Quelltext |
1 |
eval ("\$MeinTemplate.=\"".getTemplate("crew/modwrite/test")."\";");
|
mfg
und nochwas:
hättest du den ganzen HTML kram innerhalt eines templates gemacht..
und vor allem: KEIN HTML TAG!!!!!!!!!!!!!! aaaaaaaaaaaarrrrrrrrrrrrrghhhhhhhhhhhhh
und ganz oben <head>
mitten drin irgendwo <html> und <body>
BITTE!! Bitte lerne das HTML Grundgerüst.. BITTE!
hättest du den ganzen HTML kram innerhalt eines templates gemacht..
und vor allem: KEIN HTML TAG!!!!!!!!!!!!!! aaaaaaaaaaaarrrrrrrrrrrrrghhhhhhhhhhhhh
und ganz oben <head>
mitten drin irgendwo <html> und <body>
BITTE!! Bitte lerne das HTML Grundgerüst.. BITTE!
|
Achtung: Dirk Kántor ist unterwegs! Er verteilt gerne Verwarnungen ohne vorher darüber diskutiert zu haben. |

- 1
- 2

Ähnliche Themen
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
1.6.1 PHP-Script Includen im Template site_body
(7. März 2010, 09:55)
-
Aktuelle Version [1.6.5] »-
1.6.5 Rewrite
(9. Januar 2010, 22:13)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Woltlab Burning Board 3 Forum mit Contentwrapper ins PHPKIT integrieren
(28. September 2008, 19:05)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Copyright von PHPKit stört
(29. März 2008, 19:17)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
BB Codes und Smilies ÜBER Nachrichtenfeld setzen?
(17. Februar 2008, 21:29)



