<?php
//session_start();
require_once("header.php");
if(isset($_POST["hiD"])){
	$hnm=$_POST["hiD"];
$ownID=$_POST["owniD"]; 
  $h=$con->getHotelInfo($hnm);
  $hD=$h->fetch();

    $current="current";
           
          $HP=$con->getHotelProfileImages($hnm);
          if($HP->rowCount()>0)
            {
            $hmgp=$HP->fetch();
            $hProfile=$hmgp['directory'];
            }
          else
            {
            $hProfile='hotel_images/defaultHotelimg.png';
            }

 
 ?>


<table   width="100%" ><tr><td width="100%" height="100px" align="center" valign="center"><label id="main_title">
WELCOME TO <?php echo  $hD["hname"];?></label></td></tr>


     <!--kkkkkkkkkkkkkkkkkkkkkkkkk-->
     <tr>
    <td valign="top" align="right" height="100px">
            
           <ul>

                     <li id="liL">
                            <form action="otherHotelAdertisementOut.php" method="post">


                               <input class="hi" type="text" name="owniD"  value="<?php echo $ownID;?>">
 

                              <input class="hi" type="text" name="hiD"  value="<?php echo $hD["hotel_id"];?>">

                              <input class="pos" type="submit" value="Advertersement" name="post"  >

                        </form>

                        </li>


                        <li id="liL">
                          <form action="otherHotelImagesOut.php" method="post">


                               <input class="hi" type="text" name="owniD"  value="<?php echo $ownID;?>">

                               
                              <input class="hi" type="text" name="hiD"  value="<?php echo $hD["hotel_id"];?>">

                              <input class="pos"  type="submit" value="Images" name="post"  >

                        </form>

                        </li>

                        <li id="liL">
                          
                            <form action="otherHotelRoomViewOut.php" method="post">


                               <input class="hi" type="text" name="owniD"  value="<?php echo $ownID;?>">

                               

                              <input class="hi" type="text" name="hiD"  value="<?php echo $hD["hotel_id"];?>">

                              <input class="pos" type="submit" value="Rooms" name="post"  >

                        </form>
                        </li>
              </ul>
                   
    
          </td>

    </tr>

    <tr>
         <td height="400px">
                <img alt="Missing hotel profile picture" id="hprofimg" border="1" src="<?php echo $hProfile;?>"/>
         </td>
      
    </tr>


</table></center>

<center><table width="100%">

<tr>
  

<td valign="top" colspan="2">

                                                 <!--CODE FOR RETRIEVING HOTEL ASSOCIATES SERVICES GOES HERE-->
<?php
require_once("hotelRoom.php")
?>

 
</td></tr>
                                                      <!--CODE FOR RETRIEVING HOTEL ASSOCIATES SERVICES GOES HERE-->
<tr><td align="center"  width="25%" valign="top">
<?php
require_once("hotelAssServices.php");

?>
</td><td width="70%" align="center">
<?php
              
                                                     // <!--CODE FOR RETRIEVING ROUTE TO HOTEL GOES HERE-->
 
require_once("routeTohotel.php");

?>

</td></tr>
 
 
</table>
<?php
}
 
require_once('footer.php');
?>