<?php 
 ?>
<center>

<table border="1" style="border-color:white" id="output">
    
    <tr><td id="td_height" ><label id="inner_top">NAME</label></td> <td><label id="inner_top">TYPE</label></td>
              <td><label id="inner_top">CATEGORY</label></td>

                <td id="td_height" ><label id="inner_top">MANUFACTURE/VENDOR</label></td>


                <td id="td_height" ><label id="inner_top">DESCRIPTION</label></td>
 
                <td id="td_height" ><label id="inner_top">PRICE</label></td>  
 
                <td  ><label id="inner_top">PLACE ORDER</label></td>
                </tr>    
      

 <?php
   
    $searchValue=$_POST['searchValue'];
    $shopid=$_POST['shopid'];
    $ownID=$_POST['owniD'];
    require_once('../buda_shoping_class.php');
    $scon= new buda_shoping_class();
 
  	$dD=$scon->getItemBySearch($searchValue);
	
        if($dD->rowCount()>0){
           $roN=$dD->fetchAll();
          // print_r($roN=$dD->fetchAll());
 
    foreach ($roN as $key => $rowN){ 
      $itemid=$rowN['itemid'];
      $pD=$scon->getThisShopItemPrice($itemid,$shopid,$ownID);
      if($pD->rowCount()>0){
        //echo $pD->rowCount(). " results found!..";
      $prowN=$pD->fetch();
       
      $nsD=$scon->getShopName($shopid);

      $nsroN=$nsD->fetch();
          
  
        ?>

         		
     
 <tr><td id="td_height" >

<form action="itemMoreDetailOtherInout.php" method="post">
<input class="hi" type="hidden" name="shopid"  value="<?php echo $nsroN["shopid"];?>">

<input class="hi" type="hidden" name="itemid"  value="<?php echo $rowN["itemid"];?>">

<input class="hi" type="hidden" name="owniD"  value="<?php echo $nsroN["ownerid"];?>">

<input class="hdf" type="submit" value="<?php echo $rowN["itemname"];?>" name="post"  >

 </form> </label></td>

     <td><label id="inner_lab"><?php echo $rowN["itemtype"];?> </label></td>

     <td id="td_height" ><label id="inner_lab"><?php echo $rowN["itemcategory"];?> </label></td>

     <td><label id="inner_lab"><?php echo $rowN["vendor"];?> </label></td>

     <td><label id="inner_lab"><?php echo $rowN["description"];?> </label></td>
 


     <td ><label id="inner_lab"><?php echo $prowN["price"];?> </label></td>

    <td>
      <form action="../home.php" method="post">
 
        <input class="hdf" type="submit" value="Order Now" name="post"  >

      </form>
   </td>
   </tr> 
         		
       
 
   
<?php 
}
 
}
}
?>

 
 </table>

   </center>
          