<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Title" CONTENT="SAABStyle.tk - Reservdelar till din SAAB">
<META NAME="Author" CONTENT="Daniel Lapidus">
<META NAME="Description" CONTENT="Reservdelar till flera SAAB-modeller">
<META NAME="Keywords" CONTENT="Reservdelar SAAB SAABdelar delar Sverige Göteborg Trollhättan dörrar avgassystem chassi fjädring motordelar filter kylsystem tänddelar bränslesystem bromsar drivaxel">

<link href="style.css" rel="stylesheet" type="text/css">

<SCRIPT language="JavaScript" type="text/javascript">

var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url; 
    newwindow.focus(); } 
else { 
    newwindow=window.open(url,'htmlname','width=640,height=480,resizable=1');} 
}


function tidy() {
if (newwindow.location && !newwindow.closed) { 
   newwindow.close(); } 
}
</SCRIPT>



</head>

<body onUnload="tidy()" >


<?php

include("functions.php");
	dbConnect();

$kategori=$_GET["kategori"];
$query="SELECT * FROM `produkt` WHERE `Kategori` = $kategori";
$result=mysql_query($query);
?>


<table width="500" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="140" height="14"></td>
    <td width="209"></td>
    <td width="151"></td>
  </tr>
  <tr>
    <td height="36"></td>
    <td valign="top" class="kategoriRubrik"><h1>
	<?php 
	$query3="SELECT * FROM `kategorier` WHERE `id` = $kategori";
	$result3=mysql_query($query3);
	$row3=mysql_fetch_row($result3);
	print $row3[1];
?>
</h1></td>
    <td></td>
  </tr>
  <tr>
    <td height="278" colspan="3" valign="top">

    <?php
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
    $row=(array_values($line));
	print '<br><br>';
	?>
	
	<table width="100%" class="produkt">
        <!--DWLayoutTable-->
        <tr>
          <td width="18" height="13"></td>
          <td width="48"></td>
          <td width="69"></td>
          <td width="110"></td>
          <td width="26"></td>
          <td width="170"></td>
          <td width="10"></td>
        </tr>
        <tr>
          <td height="11"></td>
          <td colspan="3" rowspan="2" valign="top" class="rubrik"><?php print $row[1]?></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td height="14"></td>
          <td></td>
          <td rowspan="2" valign="top" class="miniatyr"><a href="javascript:popitup('images/<?php print $row[5]?>')"><img src="images/miniatyrer/<?php print $row[5]?>" width="160" height="120" border="0"></a></td>
          <td></td>
        </tr>
        <tr>
          <td height="118"></td>
          <td colspan="3" valign="top" class="beskrivning"><?php print $row[2]?>
          </td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td height="28">&nbsp;</td>
          <td valign="top">Pris:</td>
          <td colspan="2" valign="top"><?php print $row[3]?>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="28"></td>
          <td colspan="2" valign="top" class="modell">Till modell: </td>
          <td valign="top"><?php print $row[4]?></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td height="12"></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
    </table>	<?php
}
?></td>
  </tr>
  <tr>
    <td height="192">&nbsp;</td>
    <td></td>
    <td></td>
  </tr>
</table>

</body>
</html>
