<?php include('up_index.php');?>

<script src="show.js"></script>

<center>
</center>
<br/> 
<?php 
	$strSQL = "SELECT * FROM product where id_product ='".$_GET['id_product']."'";
	$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
	while($product = mysql_fetch_array($objQuery))
	{
?>
<center>
<table id="product_show"  width="1200px"  border="0" style="border-collapse: separate; border-spacing: 5px;">
	<tr>                     
		<td width="25%" height="180"  valign="top">
			<div id="product_show_full" title="<?=$product['name_product'];?>"><br/>
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
			    <tr>
				    <td width="50%" rowspan="2" align="center"><img  src="upload/<?=$product['image1']?>" name="img_product_show" width="550" height="550" class="img" id="img_site_show1" /><img  src="upload/<?=$product['image2']?>" name="img_product_show" width="550" height="550" class="img" id="img_site_show2" /></td>
			      <td width="50%" height="106" align="left" valign="top"><h1><?php echo $product['name_product'];?></h1>
			        <div align="center">
                    	<img class="img_show" src="images/down.png" width="128" height="128" />
		              <form id="form1" name="form1" method="post" action="shopping.php">
		                <input name="id_product" type="hidden" id="id_product" value="<?=$_GET['id_product']?>" />
		                <input name="shopping" type="text" id="shopping" value="1" size="2" maxlength="2" />
		                <input type="submit" name="button" id="button" value="เพิ่มลงตะกร้า" />
		              </form>
			        </div></p>
			        
                    <h2>ราคา <font color="#FF0000"><?php echo " ".substr($product['price'],0,30)." ";?></font> บาท</h2>
                    <p>ประกัน <?php echo " ".substr($product['insurance'],0,30)." ";?></p>
                  </td>
		        </tr>
				  <tr>
				    <td rowspan="2" align="left" valign="top"><label for="textfield"></label>
                    <textarea name="textfield" cols="75" rows="20" readonly="readonly" id="textfield"><?=$product['detail']?>
                    </textarea></td>
			      </tr>
				  <tr>
				    <td align="center"><img id="img_site1" src="upload/<?=$product['image1']?>" alt="" width="100" height="100" class="img"/>  &nbsp;&nbsp;<img id="img_site2" src="upload/<?=$product['image2']?>" alt="" width="100" height="100" class="img" /></td>
		        </tr>
			  </table>
				<br/>
				<br/>
		  </div>
		</td>			
    </tr>
</table>
					<br/>
   <?php } ?>
</center>
<?php include('down_index.php'); ?>