<?php 
 
 
  require_once('../buda_enterprenuers_class.php');
  $econ= new buda_enterprenuer_class();

  $searchValue=$_POST['searchValue'];
  $shopid=$_POST['shopids'];
  $ownerD=$_POST['ownerDs'];
  $ownID=$_POST['owniDs'];
  $dD=$econ->getThisShopItemBySearch($searchValue,$shopid);
  //echo $dD->rowCount(). " results found!..";
        if($dD->rowCount()>0){
           $roN=$dD->fetchAll();
          // print_r($roN=$dD->fetchAll());
?>
<center>

<table border="1" id="output">
    
            <tr class="tr1"><td id="td_height" ><label id="inner_top">NAME</label></td><td><label id="inner_top">CATEGORY</label></td>
              <td><label id="inner_top">SHOP 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>  
 
 
                </tr> 

 <?php 

 
   foreach ($roN as $key => $rowN){ 
     // $itemid=$rowN['itemid']; 
      $pD=$econ->getThisShopItemByShopid($shopid);
        if($pD->rowCount()>0){
        $prowN=$pD->fetch();
      //foreach ($proN as $key => $prowN){ 
      //$nsD=$scon->getShopName($shopid);

     // $nsroN=$nsD->fetch();
          
  
        ?>
 
 <tr class="tr2">
  <td id="td_height">

<form action="itemMoreDetailOtherIn.php" method="post">
<input class="hi" type="hidden" name="owniD"  value="<?php echo $ownID;?>"/>

<input class="hi" type="hidden" name="ownerD"  value="<?php echo $ownerD;?>"/>

<input class="hi" type="hidden" name="shopid"  value="<?php echo $shopid;?>"/>

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

<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 $rowN['currency'].":".$rowN["itemcost"];?> </label></td>
  
     </td>

     
   </tr> 
      
 
   
<?php
  
 }

}
?>
      
        </table>

        </center>
          
<?php


}//CLOSE IF OF BUTTON POST
  
 else{
?>
<center>
     <table class ="roomtab">
  


          <tr class="tr2">
            <td colspan="2" align="center"><label id="min_lab"><?php echo $searchValue;?> not found!..</label></td>
          </tr>

     </table>
  </center>
<?php

}

?>