<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2008 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts EasyCart                      |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>
<br>
<table align="center" width="90%" cellpadding="2" cellspacing="2" class="form_table">
<tr>
<th colspan="2" align="center"><?php echo $productdet["Product"]["pname"]; ?></th>
</tr>
<tr>
<td width="36%">Category</td>
<td width="64%"><?php echo $productdet["Category"]["cname"]; ?></td>
</tr>
<tr>
<td>Product Description</td>
<td><?php echo  $productdet["Product"]["descr"]; ?></td>
</tr>
<tr>
<td>Product Price <?php echo $curlogo; ?></td>
<td><?php echo $productdet["Product"]["price"]; ?></td>
</tr>
<tr>
<td>Product Weight (lbs)</td>
<td><?php echo $productdet["Product"]["weight"]; ?></td>
</tr>
<tr>
<td>Product Stock </td>
<td><?php echo $productdet["Product"]["stock"];?></td>
</tr>
<tr>
<td>Product Re-order Level </td>
<td><?php echo $productdet["Product"]["reorderlevel"]; ?></td>
</tr>

<tr>
<td>Featured</td>
<td><?php if($productdet["Product"]["featured"] ==0){ echo "No"; }else{ echo "Yes"; }?></td>
</tr>
<tr>
<td> Average Rating </td>
<td><?php echo $avgrate; ?></td>
</tr>
<tr><td colspan="2" align="left"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
								 <?php 
								 $i=0;
								 foreach($productdet["Productcustomfields"] as $cstf){ ?>
  <tr>
    <td><?php echo $cstf["name"]; ?></td>
    <td><select name="<?php echo 'opt['.$i.']';?>">
	<?php
	foreach($cstf["value"] as $val ){ ?>
	<option value="<?php echo $cstf["name"]."#$@^".$val; ?>"><?php echo $val; ?></option>
	<?php
	}
	?>
	</select></td>
  </tr>
  <tr><td colspan="2">&nbsp;</td></tr>
  <?php $i++; } ?>
</table></td></tr>
<tr>
<?php
$img	= explode(".",$productdet['Productimages']);?>
<td>Product Image &nbsp;<?php echo $html->image('/img/products/'.$img[0].'_thumb.jpg?'.time(),array('border' => '0'));?></td>
<td></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="button" value="Back" onClick="javascript:history.go(-1);"></td>
</tr>
</table>