
<?php
 require_once("headUserAcc.php");
?>

<table width="100%">
<tr><td colspan="2"><b>SUPER SHOP</b></td></tr>
 
</table>
 
<?php
if(isset($_POST['post'])){ 
        $HD=$scon->getShop(); 
    
        if($HD->rowCount()>0){
          $ro=$HD->fetchAll();
         
?>
<center>

<table   class ="roomtab">
    
    
     <tr>
      
    <td>
    <center>

    <table border="0" class ="roomtab">

               <tr><td colspan="7" > </td>

               <td align="right" colspan="6">
       
   <?php
    require_once('superShopNavLink.php');
  ?>
 
                          
                        
               </td>

               </tr>             

                <tr class="tr1">
                <td id="td_height" ><label id="inner_top">NAME</label></td> <td id="td_height" ><label id="inner_top">OWNER</label></td>
                <td id="td_height" ><label id="inner_top">CATEGORY</label></td> 
                  <td id="td_height" ><label id="inner_top">COUNTRY</label></td><td><label id="inner_top">CITY/REGION</label></td>

                <td id="td_height" ><label id="inner_top">TOWN/DISTRICT</label></td><td><label id="inner_top">STREET</label></td>
 
                <td id="td_height" ><label id="inner_top">PHONE NUMBER</label></td><td><label id="inner_top">EMAIL ADDRESS</label></td><td><label id="inner_top">REGISTERED ON</label></td><td><label id="inner_top">POSTAL ADDRESS</label></td><td><label id="inner_top">POPULAR MARK</label></td>

                </tr>

        <?php foreach ($ro as $key => $row) {
          $current="current";
         // $hnm=$row['hotel_id'];
          $ownID=$row['ownerid'];
          $WN=$con->getMyProfile($ownID)->fetch();
    
        ?>


       <tr class="tr2">
          <td   align="left" valign="top">  

              
                 <form action="../shoping_center/buda_shoping_center.php" method="post">

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


                     <input class="hi" type="hidden" name="hiD"  value="<?php echo $row["shopid"];?>">

                    <input  class="pos" type="submit" value="<?php echo $row["shopname"];?>" name="post">

                 </form>

                 
              </td>
              <td id="td_height" ><label id="inner_lab"> <?php echo $WN["fname"]." ".$WN["mname"]." ".$WN["lname"];?> </label></td>
                <td id="td_height" ><label id="inner_lab"> <?php echo $row["category"];?> </label></td>
                <td id="td_height" ><label id="inner_lab"> <?php echo $row["country"];?> </label></td><td><label id="inner_lab"><?php echo $row["region"];?> </label></td>

               <td id="td_height" ><label id="inner_lab"><?php echo $row["district"];?> </label></td><td><label id="inner_lab"><?php echo $row["street"];?> </label></td>

               <td id="td_height" ><label id="inner_lab"><?php echo $row["phoneno"];?> </label></td><td><label id="inner_lab"><?php echo $row["email"];?> </label></td><td><label id="inner_lab"><?php echo $row["dateregistered"];?> </label></td><td><label id="inner_lab"><?php echo $row["postAddress"];?> </label></td><td><label id="inner_lab"><?php echo $row["popularmark"];?> </label></td>
 
               </tr>    
      
 
<?php
}
?>
</table></center>
 <?php   

}else{
  ?>
  <center>
     <table class ="roomtab">
    
           

          <tr class="tr2">
            <td colspan="2"><label id="min_lab">Currently no registered shop, register here:-  <form action="superShopRegFormPro.php" method="post">
 
 

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

                              <input class="pos" type="submit" value="New shop" name="post"  >
               </form>..</label></td>
          </tr>

     </table>
  </center>

     <?php

 }
}
 
?>

 
<script>

  function submision(){
    
    var searchValue=$('#searchValue').val();
    $('#result').empty();
    $.post('searchItemOut.php',{searchValue:searchValue},function(data){
      $('#result').html(data);

    });
  }
/* 
$(document).ready(function(){
  
$('#search').keyup(function(){
  var searchValue= $('#search').val();
  $trim(searchValue); 
  if (searchValue!='') {
    $.ajax({
      url:"searchItemOut.php",
      method:"POST",
      data:{searchValue:searchValue},
      success:function(data){
        $('#result').html(data);
      }
    });

  }
});
});*/
</script>