Hallo allemaal,
Ik heb een script, (gedeeltelijk zelf gemaakt)
http://www.dunyahammam.nl/webshop/
de pagina die je ziet is als volgt:
Nu wil ik de producten naast elkaar, dus twee rijen.
Iemand enig idee hoe ik dat het beste kan doen?
groeten, Wesley
Ik heb een script, (gedeeltelijk zelf gemaakt)
http://www.dunyahammam.nl/webshop/
de pagina die je ziet is als volgt:
PHP:
<?
include("header.inc");
if (!isset($_GET['cat']) || (!file_exists("WSFILES/" . $_GET['cat']))){
//Geen geldige categorie...
?>
<?
}
else{
//Wel geldige categorie...
$file = fopen ("config.php", "r");
$q = fgets($file, 1024);
fclose ($file);
list($q, $webshopnaam, $mail, $verzend, $gebruiker, $wachtwoord, $q) = split(",", $q);
?>
<link rel="stylesheet" type="text/css" media="all" href="css/menuh.css">
<link rel="stylesheet" type="text/css" media="all" href="css/main.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/k_button.css">
<link rel="stylesheet" type="text/css" media="all" href="css/ie.css">
<table class="tbProdList">
<tr class=\"trSpacer\">
<td height="42" colspan=\"3\" class=\"\"><h6>Producten</h6></td>
</tr>
</table>
<?
$file = fopen("WSFILES/" . $_GET['cat'], "r");
$q = "";
while (!feof($file)){
$q .= fgets($file, 1024);
}
fclose($file);
$q = explode(",", $q);
echo '<table class="tbProdList">';
foreach($q as $t => $prodID){
if (!$prodID == ""){
$x = "";
$file = fopen("WSFILES/" . $prodID . "_n", "r");
while (!feof($file)){
$x .= fgets($file, 1024);
}
fclose($file);
?>
<tbody>
<tr class=\"trSpacer\">
<td colspan=\"3\" class=\"\"></td>
</tr>
<tr valign="middle">
<td width="79" rowspan="2" class="Thumbs"><span class="tdDesc">
<?
if (!file_exists("WSFILES/" . $prodID . ".bmp")){
echo "<a href=catalogusdetail.php?PHPSESSID=" . session_id() . "&prod=" . $prodID . ">";
echo '<img border="0" src="geenafb.bmp" alt="' . $x . '"></a> ';
}
else
{
echo "<a href=catalogusdetail.php?PHPSESSID=" . session_id() . "&prod=" . $prodID . ">";
echo '<img width="50" height="70" border="0" src="WSFILES/' . $prodID . '.bmp" alt="' . $x . '"></a> ';
}
echo "<td valign=top>";
echo "<a href=catalogusdetail.php?PHPSESSID=" . session_id() . "&prod=" . $prodID . ">";
echo "<strong>" . $x . "</strong></a>";
$x = "";
$file = fopen("WSFILES/" . $prodID . "_k", "r");
while (!feof($file)){
$x .= fgets($file, 1024);
}
fclose($file);
echo "</td></tr>";
echo "<tr><td valign=bottom>";
echo '<font size="2">' . $x;
$x = "";
$file = fopen("WSFILES/" . $prodID . "_p", "r");
while (!feof($file)){
$x .= fgets($file, 1024);
}
fclose($file);
echo "<div class=\"dvPrevNext1\"><a href=\"catalogusdetail.php?PHPSESSID=" . session_id() . "&prod=" . $prodID . "\" class=\"Next\">€ " . $x . "</a></div>";
}
}
echo "</table>";
echo "</p>";
?>
<?
}
?>
Nu wil ik de producten naast elkaar, dus twee rijen.
Iemand enig idee hoe ik dat het beste kan doen?
groeten, Wesley