unexpected T_VARIABLE

Status
Niet open voor verdere reacties.

djkevin

Gebruiker
Lid geworden
28 mei 2007
Berichten
16
ik heb een webshop software maar daar zat lelijke html template in.
nu heb ik een frame template gemaakt en wil de code er in zetten van de webwinkel,
die zien er zo uit
<div id="mainContent">
{include file=$layout_include}
</div>

echter die laad hij niet nu kreeg ik te horen dat ik dit moest doen
<?php echo("$layout_include"); ?>
alleen nu krijg ik een error
Parse error: syntax error, unexpected T_VARIABLE in /home/inktbonu/public_html/test/templates/main.php on line 124

dit is de stuk code waar het in sta
<!-- mainContent -->
<div id=\"mainContent\">
<div class=\"content\">
<?php echo("$layout_include"); ?>
</div>
</div>
<!-- end mainContent -->
</TD>
</TABLE>
zowel <?php include ("$layout_include"); ?> geef de zelfde foutmelding

wat doe ik fout ???
 
Laatst bewerkt:
Waarschijnlijk zit de fout in de pagina die je include...
 
Waarschijnlijk zit de fout in de pagina die je include...

had de 1e al gevonden was html en probeer php te include dat ga niet :)
heb het omgetoverd naar php nu krijg ik <?php include(\"test/templates/box.promotion.html\"); ?> nu krijg ik daar niks te zien alleen {if} {/if} dus hij include niet goed :S
zonder \ zie >> <?php include("test/templates/box.promotion.html"); ?>
geef die weer de error
 
Het systeem wat gebruikt maakt van {include file="file.php"} heet SMARTY. Dit is een template engine ontwikkeld voor PHP wat in veel projecten en frameworks gebruikt wordt. Het heeft veel van PHP weg, omdat het een layer over PHP is, maar werkt net iets anders dan dat veel mensen denken. Ook lang niet alle functies zitten er standaard in. Deze KUN je zelf maken, maar dan moet je weten wat je doet.

Of de cache/compile directory van SMARTY werkt niet goed (CHMOD 0777) of de include is niet goed. Normaal gesproken gebruik je include ook niet om een extra blokje text in de code te smijten, maar om extra functionaliteit toe te voegen.

Het is handiger als je even je hele bestand incl. php tags [ PHP ] [ / PHP ] (zonder spaties) post.
 
zo ziet de bestand er uit
main.php
PHP:
<?
print "<HTML>
<HEAD>
	<base target=\"main\">
	<title>inktbonus.nl uw online cartridge en toner specialist</title>
	<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.inktbonus.nl/test/images/cataloge.css\">
	<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.inktbonus.nl/test/images/main.css\">
	<style type=\"text/css\">
	<!--
		blockquote {
			margin-left: 15px;
		}
		div {
			margin-bottom: 4px;
		}
		div.search {
			line-height: 14pt;
		}
		a.search {
			cursor: pointer;
			margin: 1px;
			padding: 1px, 2px, 1px, 2px;
		}
		a.search:hover {
			text-decoration: none;
			border-bottom: 1px solid #0053A0;
		}
	-->
	</style>

	<SCRIPT language=JavaScript>
	<!--
		if (top == self)
			top.location.replace('/index.asp');
		
		
		var windowtype;
		var oldamount;

	
		windowtype = 'HTML'
	

		function swtch(id) {
			if (document.getElementById(id).style.display == 'none') {
				document.getElementById(id).style.display = '';
			} else {
				document.getElementById(id).style.display = 'none';
			}
		}
		function hideDiv(id) {
			document.getElementById(id).style.display='none';
		}
		function showDiv(id) {
			document.getElementById(id).style.display='';
		}
		function hideDivFromName(n) {
			document.getElementById(n).style.display='none';
			document.getElementById(n+\"printers\").style.display='none';
			document.getElementById(n+\"cartridges\").style.display='none';
		}
		function selectLink(id) {
			document.getElementById(id).style.background='#CCDDEC';
			document.getElementById(id).style.border='1px solid #0053A0';
			document.getElementById(id).style.margin='0px';
		}
		function unselectLink(id) {
			document.getElementById(id).style.background='';
			document.getElementById(id).style.border='';
			document.getElementById(id).style.margin='1px';
		}
		function unselectLinkFromName(id) {
			document.getElementById(id).style.background='';
			document.getElementById(id).style.border='';
			document.getElementById(id).style.margin='1px';
			document.getElementById(id+\"printers\").style.background='';
			document.getElementById(id+\"printers\").style.border='';
			document.getElementById(id+\"printers\").style.margin='1px';
			document.getElementById(id+\"cartridges\").style.background='';
			document.getElementById(id+\"cartridges\").style.border='';
			document.getElementById(id+\"cartridges\").style.margin='1px';
		}

		function formatCurrency(num) {
			if (num<0)
				num=0
			cents = num%100;
			num = Math.floor(num/100).toString();
			if (cents<10)
				cents = \"0\" + cents;
			for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
			num = num.substring(0,num.length-(4*i+3))+'.'+
			num.substring(num.length-(4*i+3));
			return (num + ',' + cents);
		}
	//-->
	</SCRIPT>


</HEAD>


<body>


<TABLE border=0 height=100% width=100% cellpadding=0 cellspacing=0 ID=\"Table1\">
<TR>
<TD width=100% valign=top>
<br /> &nbsp;<b><script type=\"text/javascript\">
today = new Date()
if(today.getMinutes() < 10){
pad = \"0\"}
else
pad = \"\";
if((today.getHours() >=0) && (today.getHours() <=3)) document.write(\"goede avond welkom op inktbonus.nl online shop!\");
if((today.getHours() >=4) && (today.getHours() <=6)) document.write(\"goede avond welkom op inktbonus.nl online shop!\");
if((today.getHours() >=7) && (today.getHours() <=11)) document.write(\"Goedemorgen welkom op inktbonus.nl online shop!\");
if((today.getHours() >=12) && (today.getHours() <=17)) document.write(\"Goedemiddag welkom op inktbonus.nl online shop!\");
if((today.getHours() >=18) && (today.getHours() <=24)) document.write(\"goede avond welkom op inktbonus.nl online shop!\");
</script></b><br><br>
 <!-- mainContent -->
  <div id=\"mainContent\">
    <div class=\"content\"> 
<?php echo("$layout_include"); ?>
    </div>
  </div>
  <!-- end mainContent -->
</TD>
</TABLE>
</BODY>

</HTML>
";
?>

dan left
PHP:
<?
print "<HTML>
<HEAD>
	<META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />
	<META http-equiv=\"pragma\" content=\"no-cache\" />
	<META http-equiv=\"expires\" content=\"-1\" />
	<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.inktbonus.nl/test/images/borders.css\"> 
<STYLE type=\"text/css\">
		BODY {
		    MARGIN: 0 0 0 0;
		    BACKGROUND-COLOR: #CCDDEC;
		    BACKGROUND-POSITION: left top;
		    BACKGROUND-IMAGE: url(http://www.inktbonus.nl/test/images/leftpanel.jpg);
		    BACKGROUND-REPEAT: repeat-Y;
		}

		td.menuitem A {
			padding-left: 5px;
			color: #000000;
			font-size: 13px;
			display: block;
			vertical-align: middle;
			text-decoration: none;
			line-height: 20px;
		}
		td.menuitem A:hover {
			color: #FFFFFF;
			background-color: #0053A0;
		}
		th.menutitle {
			padding:0;
			font-size: 14px;
			color: #0053A0;
			font-weight:bold;
			display: block;
			vertical-align: middle;	
			background-color: #9DBDDB;
			border-bottom:1px solid #0053A0;
		}
		th.menutitle2 {
			padding:0;
			font-size: 14px;
			color: #0053A0;
			font-weight:bold;
			display: block;
			vertical-align: middle;	
			background-color: #9DBDDB;
			border-bottom:1px solid #0053A0;
			border-top:1px solid #0053A0;
		}
		a {
			width: 159px;
		}
		INPUT, TEXTAREA, SELECT {
		    FONT-FAMILY: Verdana, Helvetica, Sans-serif;
		    FONT-SIZE: 11px;
		    COLOR: #0053A0;
		}
		
		INPUT.submit {
		    color:#FFFFFF;
		    background-color: #0053A0;
			    font-weight: bold;
		}
	</STYLE>
	<BASE TARGET=\"main\">

</HEAD>
<BODY>
<table border=\"0\" width=\"159\" cellpadding=\"0\" cellspacing=\"0\">
<tr><th class=\"menutitle\">Webshop</th></tr>
<TR><TD nowrap id=\"pg1\" name=\"pg1\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Brother</A></TD></TR>
<TR><TD nowrap id=\"pg2\" name=\"pg2\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Canon</A></TD></TR>
<TR><TD nowrap id=\"pg3\" name=\"pg3\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Hewlett Packard</A></TD></TR>
<TR><TD nowrap id=\"pg4\" name=\"pg4\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Epson</A></TD></TR>
<TR><TD nowrap id=\"pg6\" name=\"pg6\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Lexmark</A></TD></TR>
<TR><TD nowrap id=\"pg7\" name=\"pg7\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">samsung</A></TD></TR>
<TR><TD nowrap id=\"pg8\" name=\"pg8\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Xerox</A></TD></TR>
<TR><TD nowrap id=\"pg8\" name=\"pg8\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Overige merken</A></TD></TR>


<table border=\"0\" width=\"159\" cellpadding=\"0\" cellspacing=\"0\">
<tr><th class=\"menutitle2\">aanbieding</th></tr>
</div>
</table>
<!-- nieuweproducten-->
<div class=\"pad\">
<ul id=\"submenu\">
<?php echo test/templates/box.promotion.html?>
<?php include(\"test/templates/box.promotion.html\"); ?>
</ul>
</div>
<!-- end:nieuweproducten-->
<?php include(\"box.promotion.html\"); ?>

</BODY>
</HTML>
";
?>

rechts
PHP:
<HTML>
<HEAD>
	<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<META http-equiv="pragma" content="no-cache" />
	<META http-equiv="expires" content="-1" />
	<LINK rel="stylesheet" type="text/css" href="http://inktbonus.nl/test/images/borders.css">
	<STYLE type="text/css">
		BODY {
		    MARGIN: 0 0 0 0;
		    BACKGROUND-COLOR: #CCDDEC;
		    BACKGROUND-POSITION: left top;
		    BACKGROUND-IMAGE: url(http://inktbonus.nl/test/images/rightpanel.jpg);
		    BACKGROUND-REPEAT: repeat-y;
		}
		td {
			padding-left: 5px;
			padding-right: 5px;
		}
		td.menuitem A {
			color: #000000;
			font-size: 13px;
			display: block;
			vertical-align: middle;
			text-decoration: none;
			line-height: 20px;
		}
		td.menuitem A:hover {
			color: #FFFFFF;
			background-color: #0053A0;
		}
		th.menutitle {
			padding:0;
			font-size: 14px;
			color: #0053A0;
			font-weight:bold;
			text-align:center;
			vertical-align: middle;	
			background-color: #9DBDDB;
			border-bottom:1px solid #0053A0;
		}
	
	.omlijnd {
		border-left: 1px solid #343434;
		border-top: 1px solid #343434;
		border-right: 1px solid #343434;
		border-bottom: 1px solid #343434;
	}
	TH {
		font-size: 12px;
		text-align: left;
	}
	A, A:active, A:visited {
	    COLOR: #0053A0;
	    FONT-FAMILY: Verdana, Helvetica, Sans-serif;
	    FONT-SIZE: 11px;
	    FONT-STYLE: normal;
	    TEXT-DECORATION: none;
	    LETTER-SPACING: 1px;
	}
	A:hover {
	    COLOR: #000000;
	}
		
	</style>
	<BASE TARGET="main">
	<title>Cartridge Webwinkel, powered by Cartrdige World Assen</title>

</HEAD>
<BODY>

 <div class="box">
 {include file='http://inktbonus.nl/test/templates/search.box.html'} </div>

    {if $LV_SHOPPINGCART_ENABLED}
    <div class="box">
      <h3><A HREF="{$http_pref}index.php?action=showbasket&lang={$LV_LANGUAGECODE}">{$LV_TEXT_SHOPPINGCART}</A></h3>
      <div class="txt list-item">{include file='box.basket.html'} </div>
    </div>
    {/if}

    {if ($member_mode=='Allowed')||($member_mode=='Necessary')}
    <div class="box">
      {include file='login.box.html'}
    </div>
    {/if}
  </div>

    {if $LV_NEWSSUBSCRIPTION_ENABLED}
    <div class="box">
      {include file='subscription_box.html'}
    </div>
    {/if}
  </div>
</div>
<BODY>
</HTML>

en nu de index
PHP:
<HTML>
<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
	<title>inktbonus.nl uw online cartridge en toner specialist</title>
	<meta name="title" content="Cartridge Webwinkel">
	<META NAME="keywords" CONTENT="inktjet cartridge cartridges laser toner toners kopen bestellen webwinkel">
	<META NAME="description" CONTENT="Cartridge Webwinkel, goedkoop en gemakkelijk cartridges en toners bestellen">
	<meta name="author" content="saldobank.com">
	<meta name="RATING" content="General">
	<META NAME="ROBOTS" CONTENT="ALL">
        <link rel="stylesheet" type="text/css" href="http://www.inktbonus.nl/test/images/cataloge.css" />
	<META HTTP-EQUIV="pragma" CONTENT="no-cache">
	<META HTTP-EQUIV="expires" CONTENT="-1">
	<META NAME="REVISIT-AFTER" CONTENT="14">
</HEAD>
<frameset border="0" framespacing="0" frameborder="0" marginwidth="0" marginheight="0" ROWS="101,*,30">
	<frame name="header" src="http://inktbonus.nl/test/templates/top.php" scrolling="no" marginwidth="0" marginheight="1" frameborder="0" border="0" noresize="noresize">
	
		<frameset cols="160, *, 160" frameborder="no" border="0" framespacing="0">

			<frame src="http://inktbonus.nl/test/templates/left.php" name="leftpanel" scrolling="yes" noresize="noresize" id="leftpanel" title="leftpanel" />
			<frame src="http://inktbonus.nl/test/templates/main.php" name="main" scrolling="auto" noresize="noresize" id="main" title="main" marginwidth="0" marginheight="0" />
			<frame src="http://inktbonus.nl/test/templates/right.php" name="rightpanel" scrolling="no" noresize="noresize" id="rightpanel" title="rightpanel" />
		</frameset>

	<frame name="footer" src="http://inktbonus.nl/test/templates/bottom.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" border="0" noresize="noresize">
</frameset>

<noframes>
<body>
<h1>Cartridge Webwinkel</h1>
<p>Helaas ondersteunt uw webbrowser geen frames. </p>

<p><b>Contactgegevens<b><br />
Telefoon: 084-0039984<br />
<br /><br />
</p>
</body>
</noframes>

</HTML>
hopelijk heb je genoeg om deze probleem me te vinden want kom er niet uit
 
Het is nogal een hoop info en zoekwerk, denk niet dat er veel mensen zijn die zin hebben om al die files uit te gaan zoeken met de beperkte hoeveelheid info over het probleem die we hebben :(
 
Het is nogal een hoop info en zoekwerk, denk niet dat er veel mensen zijn die zin hebben om al die files uit te gaan zoeken met de beperkte hoeveelheid info over het probleem die we hebben :(

de enige waar het fout in zit is de main / left / rechts paneel waardoor hij een fout aangeef.
HTML:
Parse error: syntax error, unexpected T_VARIABLE in /home/inktbonu/public_html/test/templates/main.php on line 124
komt omdat in de main dit sta
HTML:
<?php echo("$layout_include"); ?>
ben geen nobee dus daarom de vraag ken wel html maar nooit in frame of met het oproepen van een $layout_include wel als ik zeg
HTML:
<?php include("header.php"); ?>
maar daar houd het mee op
 
Na mijn idee script je niet echt 'netjes'. Ik heb het vlug doorgekeken, dus trek het je niet te veel aan;).

In deze box is het dikgedrukte 'hersteld'. Ik snap die zin niet helemaal, maar zoals je het had klopt iniedergeval niet!

PHP:
<?
print "<HTML>
<HEAD>
    <META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />
    <META http-equiv=\"pragma\" content=\"no-cache\" />
    <META http-equiv=\"expires\" content=\"-1\" />
    <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.inktbonus.nl/test/images/borders.css\"> 
<STYLE type=\"text/css\">
        BODY {
            MARGIN: 0 0 0 0;
            BACKGROUND-COLOR: #CCDDEC;
            BACKGROUND-POSITION: left top;
            BACKGROUND-IMAGE: url(http://www.inktbonus.nl/test/images/leftpanel.jpg);
            BACKGROUND-REPEAT: repeat-Y;
        }
 
        td.menuitem A {
            padding-left: 5px;
            color: #000000;
            font-size: 13px;
            display: block;
            vertical-align: middle;
            text-decoration: none;
            line-height: 20px;
        }
        td.menuitem A:hover {
            color: #FFFFFF;
            background-color: #0053A0;
        }
        th.menutitle {
            padding:0;
            font-size: 14px;
            color: #0053A0;
            font-weight:bold;
            display: block;
            vertical-align: middle; 
            background-color: #9DBDDB;
            border-bottom:1px solid #0053A0;
        }
        th.menutitle2 {
            padding:0;
            font-size: 14px;
            color: #0053A0;
            font-weight:bold;
            display: block;
            vertical-align: middle; 
            background-color: #9DBDDB;
            border-bottom:1px solid #0053A0;
            border-top:1px solid #0053A0;
        }
        a {
            width: 159px;
        }
        INPUT, TEXTAREA, SELECT {
            FONT-FAMILY: Verdana, Helvetica, Sans-serif;
            FONT-SIZE: 11px;
            COLOR: #0053A0;
        }
        
        INPUT.submit {
            color:#FFFFFF;
            background-color: #0053A0;
                font-weight: bold;
        }
    </STYLE>
    <BASE TARGET=\"main\">
 
</HEAD>
<BODY>
<table border=\"0\" width=\"159\" cellpadding=\"0\" cellspacing=\"0\">
<tr><th class=\"menutitle\">Webshop</th></tr>
<TR><TD nowrap id=\"pg1\" name=\"pg1\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Brother</A></TD></TR>
<TR><TD nowrap id=\"pg2\" name=\"pg2\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Canon</A></TD></TR>
<TR><TD nowrap id=\"pg3\" name=\"pg3\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Hewlett Packard</A></TD></TR>
<TR><TD nowrap id=\"pg4\" name=\"pg4\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Epson</A></TD></TR>
<TR><TD nowrap id=\"pg6\" name=\"pg6\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Lexmark</A></TD></TR>
<TR><TD nowrap id=\"pg7\" name=\"pg7\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">samsung</A></TD></TR>
<TR><TD nowrap id=\"pg8\" name=\"pg8\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Xerox</A></TD></TR>
<TR><TD nowrap id=\"pg8\" name=\"pg8\" valign=\"middle\" class=\"menuitem\"><A HREF=\"index.php\" target=\"main\">Overige merken</A></TD></TR>
 
 
<table border=\"0\" width=\"159\" cellpadding=\"0\" cellspacing=\"0\">
<tr><th class=\"menutitle2\">aanbieding</th></tr>
</div>
</table>
<!-- nieuweproducten-->
<div class=\"pad\">
<ul id=\"submenu\">
[COLOR="Lime"]<?php echo(\"test/templates/box.promotion.html\"); ?>[/COLOR]
<?php include(\"test/templates/box.promotion.html\"); ?>
</ul>
</div>
<!-- end:nieuweproducten-->
<?php include(\"box.promotion.html\"); ?>
 
</BODY>
</HTML>
";
?>


Dan nog deze box, daar ben je slashes vergeten.

PHP:
<?
print "<HTML>
<HEAD>
    <base target=\"main\">
    <title>inktbonus.nl uw online cartridge en toner specialist</title>
    <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.inktbonus.nl/test/images/cataloge.css\">
    <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.inktbonus.nl/test/images/main.css\">
    <style type=\"text/css\">
    <!--
        blockquote {
            margin-left: 15px;
        }
        div {
            margin-bottom: 4px;
        }
        div.search {
            line-height: 14pt;
        }
        a.search {
            cursor: pointer;
            margin: 1px;
            padding: 1px, 2px, 1px, 2px;
        }
        a.search:hover {
            text-decoration: none;
            border-bottom: 1px solid #0053A0;
        }
    -->
    </style>
 
    <SCRIPT language=JavaScript>
    <!--
        if (top == self)
            top.location.replace('/index.asp');
        
        
        var windowtype;
        var oldamount;
 
    
        windowtype = 'HTML'
    
 
        function swtch(id) {
            if (document.getElementById(id).style.display == 'none') {
                document.getElementById(id).style.display = '';
            } else {
                document.getElementById(id).style.display = 'none';
            }
        }
        function hideDiv(id) {
            document.getElementById(id).style.display='none';
        }
        function showDiv(id) {
            document.getElementById(id).style.display='';
        }
        function hideDivFromName(n) {
            document.getElementById(n).style.display='none';
            document.getElementById(n+\"printers\").style.display='none';
            document.getElementById(n+\"cartridges\").style.display='none';
        }
        function selectLink(id) {
            document.getElementById(id).style.background='#CCDDEC';
            document.getElementById(id).style.border='1px solid #0053A0';
            document.getElementById(id).style.margin='0px';
        }
        function unselectLink(id) {
            document.getElementById(id).style.background='';
            document.getElementById(id).style.border='';
            document.getElementById(id).style.margin='1px';
        }
        function unselectLinkFromName(id) {
            document.getElementById(id).style.background='';
            document.getElementById(id).style.border='';
            document.getElementById(id).style.margin='1px';
            document.getElementById(id+\"printers\").style.background='';
            document.getElementById(id+\"printers\").style.border='';
            document.getElementById(id+\"printers\").style.margin='1px';
            document.getElementById(id+\"cartridges\").style.background='';
            document.getElementById(id+\"cartridges\").style.border='';
            document.getElementById(id+\"cartridges\").style.margin='1px';
        }
 
        function formatCurrency(num) {
            if (num<0)
                num=0
            cents = num%100;
            num = Math.floor(num/100).toString();
            if (cents<10)
                cents = \"0\" + cents;
            for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
            num = num.substring(0,num.length-(4*i+3))+'.'+
            num.substring(num.length-(4*i+3));
            return (num + ',' + cents);
        }
    //-->
    </SCRIPT>
 
 
</HEAD>
 
 
<body>
 
 
<TABLE border=0 height=100% width=100% cellpadding=0 cellspacing=0 ID=\"Table1\">
<TR>
<TD width=100% valign=top>
<br /> &nbsp;<b><script type=\"text/javascript\">
today = new Date()
if(today.getMinutes() < 10){
pad = \"0\"}
else
pad = \"\";
if((today.getHours() >=0) && (today.getHours() <=3)) document.write(\"goede avond welkom op inktbonus.nl online shop!\");
if((today.getHours() >=4) && (today.getHours() <=6)) document.write(\"goede avond welkom op inktbonus.nl online shop!\");
if((today.getHours() >=7) && (today.getHours() <=11)) document.write(\"Goedemorgen welkom op inktbonus.nl online shop!\");
if((today.getHours() >=12) && (today.getHours() <=17)) document.write(\"Goedemiddag welkom op inktbonus.nl online shop!\");
if((today.getHours() >=18) && (today.getHours() <=24)) document.write(\"goede avond welkom op inktbonus.nl online shop!\");
</script></b><br><br>
 <!-- mainContent -->
  <div id=\"mainContent\">
    <div class=\"content\"> 
[COLOR="Lime"]<?php echo(\"$layout_include\"); ?>[/COLOR]
    </div>
  </div>
  <!-- end mainContent -->
</TD>
</TABLE>
</BODY>
 
</HTML>
";
?>

Probeer dat eerst eens!

Gr. Ronald!:)

PS.
Zie de code waar LIME voor staat, op een of andere manier pakt ie um niet.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan