        <?php
session_start();
?>

<!DOCTYPE html>
<html>
<title>Aiderstech 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>
<script type ="text/javascript" src="../JQuery.js"></script>
<!--<script type= "text/javascript"  src="../uncjQuery.js"></script>
<script type ="text/javascript" src="dudajQuery.js"></script>-->
         <?php
 
        $imageP="";
        $pName="";
         
    if (!isset($_GET['id']) && !isset($_POST['owniD'])) 
     {
          $r="None registered user!..";
          header("location:home.php?id=$r");
        
      }
         else{
         // echo md5('20160828035211');
               require("buda_myStock_class.php");
               $mcon = new  buda_myStock_class();
               require("buda_myStockAgro_class.php");
               $myAgrocon = new  buda_myStockAgro_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_hexandeal_class.php");
               $xcon = new buda_hexandeal_class();
               require("buda_enterprenuers_class.php");
               $econ = new buda_enterprenuer_class();
               
               require("buda_agro_class.php");
               $gcon = new buda_agro_class();

          if (isset($_GET['id'])){

            /////////////////
            ///////////////

            if($_GET['eqsgsfhuw8'] =='qsgsfhuw8891o1pggywiuiwpwp8091hhwjmbbbnbsnusbbsggs98202iiahjhabbabbabba89299200gsgshsiisi00200hhshhsbbssbbsbbsk2002002002002' && $_GET['rsrqwes']=='srqwesgbsynnebbdyyeuueumnennenneeyyyoy3yy3uu33iii3o3oo3oo3i3iii3ii3uu3uu3uuu3uuu3uuu3uuu3uuuu3uuu3uu3uu3uuu3uu3ttyy3yy3yy3yy3yy3yyy3yy3yy3yy3yy3shshhshhwhhwhhwhhheh'){
                          // $ownID=$_GET['id2'];
                //$hnm=$_GET['id'];
                         // $userid=$_GET['id']; 
                         // $ownID=$_GET['id2'];
                         // $ownerid=$_GET['id3'];
                          //$shopid=$_GET['id'];
                        $ownID=$_GET['id'];
                        $GD=$con->getMyRegNo($ownID);
                        if($GD->rowCount()>0){
                        $eR=$GD->fetch();
                        
                        $ownID=$eR['own_regno'];
                        }
                        else{
                            $r="None unrecognised user!..";
                            echo "<script> window.location.href='home.php?id=$r' </script>";
                           // header("location:home.php?id=$r"); 
                        }
                    

                        }
                        else{
                 
                       $r="None 2recognised user!..";
                       echo "<script> window.location.href='home.php?id=$r' </script>";
                       //header("location:home.php?id=$r");
        
                        }
            /////////////
            ////////////
            
             }
          if (isset($_POST['owniD'])) {
              $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"];
           }
          
         }
         ?>                                                              

                                    <!-- HEADING TABLE FOR LOGO   ON LINK-->

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

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

<tr id="link" >

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

<ul> 

  <li id="nav_m" >

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


                        <input class="po" type="submit" value="Tafuta simu" name="post">

                    </form></label>

 </li>
<li id="nav_hm"> 
   
    <form action="hotel_default_entry.php" method="post">
              <!--afterLoginHotel-->
        <input class="hi" type="hidden" name="owniD"  value="<?php echo $ownID;?>">


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

    </form>
    
 </li>


 


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

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


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

    </form>
 

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

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


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

    </form>
 

</li>


<li  id="nav_m">

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


        <input class="po" type="submit" value="Agro products" name="post">

    </form>
 

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

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


        <input class="po" type="submit" value="House for rent" name="post">

    </form>

</li>-->

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

 <label id="label"> 
                  <form action="enterprenuers/defaultEnterpreneursEntryIn.php" method="post">
                              
                        <input class="hi" type="text" name="owniD"  value="<?php //echo $ownID;?>">


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

                    </form></label>

 </li>-->

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

 <label id="label"> 
                  <form action="hexaNdeal/hexaNdeal.php" method="post">
                              
                        <input class="hi" type="text" name="owniD"  value="<?php //echo $ownID;?>">


                        <input class="po" type="submit" value="HexaNdeal" 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>
 <td width="50%"></td>
</tr>

</table>
<table width="100%">
       <tr>
            <td align="right" valign="top" width="90%">
       	   <form action="budaMyStock/buda_shoping_center.php" method="post">

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


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

           </form>
         </td>
          
      
            <td align="right" valign="top" width="90%">
           <form action="budaMyStockAgro/buda_shoping_center.php" method="post">

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


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

           </form>
       </td>
           <td align="right">
           <form action="myAccountProfile.php" method="post">

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


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

           </form>
         </td>
          <td align="right" valign="top" width="90%">
           <form action="home.php" method="post">

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


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

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

</head>