Ik heb alles in de regel geplakt en vervolgens heb ik <?php ?> geplaatst, dan krijg ik melding van dat het niet klopt.
Daarna had ik <?php ?> verwijderd, dan krijg ik witte pagina. (ik hoop dat iemand verstand heeft van CMS)
Dit moet in de CMS pagina:
<form id="loginForm" name="loginForm" method="post" action="login-exec.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height="12" align="center"><span class="title">Postcode check</span></td></tr>
<tr><td align="center" nowrap>Wilt u weten of we bij u in de buurt bezorgen?
<br>Vul dan hier uw volledige postcode in. Bijvoorbeeld **** **<br>
<input class=kleur name="postcode" type="text" class="textfield" id="postcode" /> <input type="submit" name="Submit" value="Binnen bezorggebied?" />
</td></tr></table>
Script moet in deze CMS pagina:
<?php
$sql = "SELECT ID, naam FROM tblcategorien ORDER BY sorder ASC";
$dbHandler->executeQuery($sql);
$dbRecords = $dbHandler->getRowsAsObjectArray();
$html = "<div id=\"modalPage\" class=\"modalPage\">";
$html .= "<div id=\"modalBackground\" class=\"modalBackground\">";
$html .= "</div>";
$html .= "<div class=\"modalContainer\">";
$html .= "<div class=\"modal\" id=\"theModal\">";
$html .= "test data</div>";
$html .= "</div>";
$html .= "</div>";
$ch->write('content', $html);
$ch->write('content', "<table width=\"100%\" id=\"hallo\">\n");
*STUKJE VERWIJDERD*
$link = "<a href=\"#\" class=\"addWith\" style=\"float: right; font-decoraction: none; font-weight: bold;\">Bestel</a>";
}
else {
$link = "<a href=\"#\" class=\"addToCart\" style=\"float: right; font-decoraction: none; font-weight: bold;\">Bestel</a>";
}
if ($product->aantale > 0) {
$link = "<a href=\"#\" class=\"addWithExtra\" style=\"float: right; font-decoraction: none; font-weight: bold;\">Bestel</a>";
}
$ch->write('content', "<tr id=\"record-{$product->ID}\"><td>{$link}</td>\n");
$ch->write('content', "<td><b>{$product->naam}</b><br /><i>{$product->beschrijving}</i></td>\n");
$ch->write('content', "<td style=\"width: 70px; text-align: right;\">€ {$prijs}</td>\n");
$ch->write('content', "</tr>\n");
}
}
$ch->write('content', "</table>\n");
?>