<!DOCTYPE html>
<html>
<title>JereHassan Services</title>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">  
  

 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
  <script async defer src="https://buttons.github.io/buttons.js"></script>
<link href="../buda_cssfile.css" rel="stylesheet" type=" text/css">

<link href="../buda_shop.css" rel="stylesheet" type=" text/css">

<script type= "text/javascript"  src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.bundle.min.js"></script>
  <script src="https://unpkg.com/vue@2.5.16/dist/vue.min.js"></script>
  <script src="../image-compressor.js"></script>
  <script src="../main.js"></script>
         <?php
        $imageP="";
        $pName="";
      if (!isset($_GET['id']) && !isset($_POST['admin']) && !isset($_POST['owniD']) && !isset($_POST['post'])) 
           {
          $r="Session expired 1!.";
           echo "<script> window.location.href='staff.php?id=$r' </script>";
	    
         //header("location:staff.php?id=$r");
          }
      else{
         if (isset($_GET['id']) || isset($_POST['admin']) || isset($_POST['owniD']) || isset($_POST['post'])) {
            
          if (isset($_GET['id'])) {
            if ($_GET['i']=="gsfhuw8891o1pggywiuiwpwp8091" && $_GET['gs']=="qwesgbsynnebbdyyeuueumnennennee" ){
                
            
           echo  $userid=$_GET['id'];
           }
           else{
          $r="Session expired 2!..";
           echo "<script> window.location.href='staff.php?id=$r' </script>";
	    
         // header("location:staff.php?id=$r");
          }
           }
          }
        if (isset($_POST['post']) || isset($_POST['submit']) ) {
             $userid=$_POST['admin']; 
          }
         require("../buda_myStock_class.php");
         $mcon = new  buda_myStock_class();
         require_once('../buda_agro_class.php');
         $gcon = new buda_agro_class();
         
         require("../buda_pharmacy_class.php");
         $pcon = new  buda_pharmacy_class();
         require("../buda_shoping_class.php");
         $scon = new  buda_shoping_class();
         require("../buda_connect.php");
         $con = new connect_class();
          require("../buda_house_class.php");
         $hcon = new house_class();

         require("../buda_enterprenuers_class.php");
         $econ = new buda_enterprenuer_class();

         require("../buda_hexandeal_class.php");
         $xcon = new buda_hexandeal_class();
         
        /* $ownID=$_POST['owniD'];
         $img = $con->getMyProfilePicture($ownID);
         if($img->rowCount()>0)
         {
           $rr=$img->fetch();
           $imageP=$rr["directory"];
         }
         else{
          $imageP='../accountProfileImages/default.jpg';
         }
         

         $pN=$con->getMyProfileName($ownID);

         if($pN->rowCount()>0)
          {
           $rN=$pN->fetch();
           $pName=$rN["lname"];
           }
          */
          
        
        $adm = $con->getUsers($userid);
         if ($adm->rowCount()>0) {
             $ad=$adm->fetch();
             $admin=$ad['userid'];
             $pName=$ad['lname'];
       
           }
          else{
            $r="Session expired!...".$userid;
             echo "<script> window.location.href='staff.php?id=$r' </script>"; 
          }
         }
       
         
         ?>                                                              

 

<table class="headtab" border="0"><tr> <td   align="left" colspan="2" style="padding-left: 40px;"> 
       <img src="../hotel_images/BUDA1.PNG" style="width:5%; height:20px;"/>
     </td>
    
</tr>
<tr>
   <td align="center">
     <label  style="color:white; font-weight:bold; font-style: italic;">MULT-BUSINESS ONLINE MARKET</label>
   </td>
    <td width="8%" valign="bottom" align="center" rowspan="2">
   <img id="owp" src="<?php  echo '../staffpic/default.jpg';?>"  alt="Profile photo" />

   <br/><small><?php echo $pName;?></small>
 </td>
</tr>

<tr id="link">

<td id="leff" valign="bottom">

<ul> 

<li id="nav_hm"> 
   
    <form action="restinghouses.php" method="post">
              
         <input class="hi" type="hidden" name="admin"  value="<?php  echo $admin;?>"> 


        <input class="po" type="submit" value="Resting houses" name="post">

    </form>
    
 </li>


 


<li  id="nav_m">

  <form action="superShop.php" method="post"> 

        <input class="hi" type="hidden" name="admin"  value="<?php  echo $admin;?>">
        <input class="po" type="submit" value="Super shop" name="post">

    </form>
 

</li>

<li  id="nav_m">

  <form action="superpharmacy.php" method="post">
          
        <input class="hi" type="hidden" name="admin"  value="<?php  echo $admin;?>">
        <input class="po" type="submit" value="Pharmacy" name="post">

    </form>
 

</li>

<li  id="nav_m">

  <form action="agroShop.php" method="post"> 

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

    </form>
 

</li>

<li id="nav_m" >

 <form action="housesForRent.php" method="post"> 
 
       <input class="hi" type="hidden" name="admin"  value="<?php  echo $admin;?>">

        <input name="post" class="po" type="submit" value="Houses"/>

    </form>
 
</li>

 <li id="nav_m" >

 <label id="label">
                <form action="enterpreneurs.php" method="post"> 

             <input class="hi" type="hidden" name="admin"  value="<?php  echo $admin;?>">
                <input name="post" class="po" type="submit" value="Enterprenuers"/>

    </form>
 

 </label>

 </li>
 
  <li id="nav_m" >

 <label id="label">
                <form action="myStockShop.php" method="post"> 

             <input class="hi" type="hidden" name="admin"  value="<?php  echo $admin;?>">
                <input name="post" class="po" type="submit" value="Stock"/>

    </form>
 

 </label>

 </li>

   <li id="nav_m" >

 <label id="label"> 
                  <form action="hexaNdeal.php" method="post">
                               

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

                    </form></label>

 </li>

   <li id="nav_m" >

 <label id="label"> 
                  <form action="systemuser.php" method="post"> 

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

                    </form></label>

 </li>

 <!--<li  id="nav_m"> 

 <label id="label">Buda express</label>

 </li>

 <li id="nav_m" >

 <label id="label">Schools</label> 

 </li>

 <li  id="nav_m"> <label id="label">About us</label> 

 </li>-->


 </ul>

 </td>
  

</tr>

</table>
<table width="100%">
       <tr>
           <td align="right">
       	   <form action="../myAccountProfile.php" method="post">

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


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

           </form>
           <form action="../home.php" method="post">

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


              <input class="pos" type="submit" style="color:red;" value="Logout" name="post">

           </form>
          </td>
      </tr>
</table>

</head>