			<header class="header-desktop2">
                <div class="section__content section__content--p30">
                    <div class="container-fluid">
                        <div class="header-wrap2">
                            <div class="logo d-block d-lg-none">
                                <a href="#">
                                    <img src="images/icon/LOGO PAYPRO white.png" alt="PAYPRO-V3" />
                                </a>
                            </div>
							<?php  //$_SESSION['projectLocation'] = $_GET["projectLocation"]?>
							<form class="form-header" action="" >
								 <input class="au-input au-input--xl" type="text" list="projectLocation" name="projectLocation" onChange="javascript: submit();" size="50" value="<?php echo $_SESSION['projectLocation']?>" placeholder="Select Location"/>
                                <button class="au-btn--submit" type="submit">
                                    <i class="zmdi zmdi-search"></i>
									<datalist id="projectLocation">
							<?php
							
								if($_SESSION["username"] != "admin"){
									$sqlLocations = "SELECT * FROM ( 
																	(select EL.location_id, locations.location_desc, r_rental_program.rental_desc from extra_locations as EL 
																	inner join locations on locations.location_id = EL.location_id 
																	inner join r_rental_program on locations.rental_id_program = r_rental_program.id_rental_progrm 
																	where staff_id = ". $_SESSION['staff_id'] .") 
																UNION 
																	(select locations.location_id, locations.location_desc, r_rental_program.rental_desc from locations 
																	inner join staff on locations.location_id = staff.location_id 
																	inner join r_rental_program on locations.rental_id_program = r_rental_program.id_rental_progrm 
																	where staff.staff_id = ". $_SESSION['staff_id'] .") 
																) results ORDER BY rental_desc ASC";
									
									$runLocations = mysqli_query($link,$sqlLocations);
									if($runLocations === FALSE){
										die(mysqli_error($link));//TODO: better error handling
									}
								}
								else if($_SESSION["username"] == "admin"){
									$sqlLocations = "select locations.*,r_rental_program.rental_desc, r_rental_program.id_rental_progrm from locations 
														inner join r_rental_program on locations.rental_id_program = r_rental_program.id_rental_progrm 
														ORDER BY `r_rental_program`.`rental_desc` ASC";
									$runLocations = mysqli_query($link, $sqlLocations);
									if($runLocations === FALSE){
										die(mysqli_error($link));
									}
								}
								while($resultLocations = mysqli_fetch_array($runLocations)){
									$location_id = $resultLocations["location_id"];
									$location_desc = $resultLocations["location_desc"];
									$rental_desc = $resultLocations["rental_desc"];
										?>
										<option value="<?php echo $rental_desc . "-" . $location_desc; ?>">
										<?php
								}
							?>
							</datalist> 
                                </button>
								<input type="hidden" name="menu" value="<?php echo $_SESSION["menu"]?>">
                            </form>
                        </div>
                    </div>
                </div>
           <!-- </header>-->
			 <!-- PAGE CONTAINER-->
            <!-- HEADER DESKTOP-->
           <!-- <header class="header-desktop2">-->
                <div class="section__content section__content--p30">
                    <div class="container-fluid">
                        <div class="header-wrap2">
                            <div class="logo d-block d-lg-none">
                                <a href="#">
                                    <img src="images/icon/LOGO PAYPRO white.png" alt="PAYPRO-V3" />
                                </a>
                            </div>
                            <div class="header-button2">
                                <div class="header-button-item mr-0 js-sidebar-btn">
                                    <i class="zmdi zmdi-menu"></i>
                                </div>
                                <div class="setting-menu js-right-sidebar d-none d-lg-block">
                                    <div class="account-dropdown__body">
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-account"></i>Account</a>
                                        </div>
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-settings"></i>Setting</a>
                                        </div>
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-money-box"></i>Billing</a>
                                        </div>
                                    </div>
                                    <div class="account-dropdown__body">
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-globe"></i>Language</a>
                                        </div>
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-pin"></i>Location</a>
                                        </div>
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-email"></i>Email</a>
                                        </div>
                                        <div class="account-dropdown__item">
                                            <a href="#">
                                                <i class="zmdi zmdi-notifications"></i>Notifications</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </header>
			<?php include "menuSideBar_mobile.php"?>
            
            <!-- END HEADER DESKTOP-->
            <!-- BREADCRUMB-->
            <section class="au-breadcrumb m-t-75">
                <div class="section__content section__content--p30">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="au-breadcrumb-content">
                                    <div class="au-breadcrumb-left">
                                        <span class="au-breadcrumb-span">You are here:</span>
                                        <ul class="list-unstyled list-inline au-breadcrumb__list">
                                            <li class="list-inline-item active">
                                                <a href="#">Home</a>
                                            </li>
                                            <li class="list-inline-item seprate">
                                                <span>/</span>
                                            </li>
                                            <li class="list-inline-item"><?php echo $_SESSION["menu"]?></li>
											<?php if($_SESSION["projectLocation"] != "") { ?>
											<li class="list-inline-item seprate">
                                                <span>/</span>
                                            </li>
                                            <li class="list-inline-item"><?php echo $_SESSION["projectLocation"] ?></li>
											<?php } ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <!-- END BREADCRUMB-->