<?php
date_default_timezone_set('Asia/Kolkata'); 
//echo $date = date("Y-m-d", time());
include ('../config.php');
@session_start();
@$user_id1=$_SESSION['user_id1'];
@$idvfied1=$_SESSION['idverified1'];
@$namevfied1=$_SESSION['namevfied1'];
if(!isset($_SESSION['user_id1'])){
	header("Location: index.php");
}

$timeout = 60 * 60 * 24 * 365;
$s_name = session_name();
if(isset( $_COOKIE[ $s_name ] )) {
  setcookie( $s_name, $_COOKIE[ $s_name ], time() + $timeout, '/' );
}

$sel1=mysqli_query($conn,"select * from hr_dump where empid='".@$user_id1."'");
$fetch1=mysqli_fetch_array($sel1);

$queryFR=mysqli_query($conn,"select * from tracker where Functional_Reporting='$fetch1[Employee_Number]'");
$dataFR=mysqli_fetch_array($queryFR);

$queryFR=mysqli_query($conn,"select * from emp_leave where Functional_Reporting='$fetch1[Employee_Number]'");
$dataFR=mysqli_fetch_array($queryFR);
?>

<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <title>View Project Details</title>
	
	<?php	include ('header.php');	?>
	
	<div id="appCapsule">
        <div class="section wallet-card-section pt-1">
            <div class="wallet-card">
				<!--<div class="balance">
                    <div class="left">
                        <span class="title"></?php echo $fetch1['Employee_Full_Name']; ?></span>
                        <h4></?php echo $fetch1['Team_Name']; ?></h4>
                        <h6></?php echo $date = date("Y-m-d", time()); ?></h6>
                    </div>
                    <div class="right">
                        <a href="#"><img src="../assets/img/noimage.png" alt="logo" class="logo-profile"></a>
                    </div>
                </div>-->
				
				<?php	include ('include/wallet-balance.php');	?>
				
				<div class="mb-4 py-2">
					<h6 class="text-center">Project Details</h6>
					<div class="border rounded p-2">
						<?php
							$postquery = "select * from proj_open where SNo  = '".$_GET['SNo']."' ";
							$result = mysqli_query($connpe, $postquery);
							while($datan = $result->fetch_assoc()){
						?>
						<div class="row">
							
							<div class="col-md-4 col-sm-4"><b>Developer Name</b>
								<p><?php echo $datan['Developer']; ?></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Project Name</b>
								<p><?php echo $datan['Project']; ?></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Location</b>
								<p><?php echo $datan['Location']; ?></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Closing Manager</b>
								<p><?php echo $datan['Closing_Manager']; ?></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Closing Manager Number</b>
								<p><a href="tel:<?php echo $datan['Closing_Manager_Number']; ?>"><?php echo $datan['Closing_Manager_Number']; ?></a></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Closing Manager Email</b>
								<p><?php echo $datan['Closing_Manager_Email']; ?></p>
							</div>
							
							<div class="col-md-4 col-sm-4"><b>Category Name</b>
								<p><?php echo $datan['category_name']; ?></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Available Inventory</b>
								<p><?php echo $datan['Available_Inventory']; ?></p>
							</div>
							<div class="col-md-4 col-sm-4"><b>Available Size</b>
								<p><?php echo $datan['Available_Size']; ?></p>
							</div>
							
							<div class="col-md-3 col-sm-3"><b>Rate</b>
								<p><?php echo $datan['Rate']; ?></p>
							</div>
							<div class="col-md-3 col-sm-3"><b>Brokerage Slab</b>
								<p><?php echo $datan['Brokerage_Slab']; ?></p>
							</div>
							
							<div class="col-md-3 col-sm-3"><br>
								<figure>
									<?php	if($datan['PPT'] != '')	{?>
									<b><a href="https://investorsclinic.org/pemp/uploads/PPT/<?php echo $datan['PPT']; ?>" target="_blank">Click to View PPT</a></b>
									<?php	}	else	{	?>
									<b>PPT Not Available</b>
									<?php	}	?>
								  <div class="overlay"></div>
								</figure>
							</div>
							<div class="col-md-3 col-sm-3"><br>
							<figure>
									<?php	if($datan['PPT'] != '')	{?>
									<b><a href="https://investorsclinic.org/pemp/uploads/Brochure/<?php echo $datan['Brochure']; ?>" target="_blank">Click to View Brochure</a></b>
									<?php	}	else	{	?>
									<b>Brochure Not Available</b>
									<?php	}	?>
								  <div class="overlay"></div>
								</figure>
							</div>
							
							<div class="col-md-12 col-sm-12 text-center">
								<a href="open-projects.php" class="btn btn-primary btn-sm">Go to Open Project</a>
							</div>
							
							
							<!--<br>
							<div class="col-md-12 col-sm-12 text-center"><hr><h4>Developer Relationship Manager</h4><hr></div>
							<div class="col-md-4 col-sm-4"><label>Developer RM</label>
								<p></?php echo $datan['Developer_RM']; ?>" name="Developer_RM" onkeydown="return false;">
							</div>
							
							<div class="col-md-4 col-sm-4"><label>Developer RM Email</label>
								<p></?php echo $datan['Developer_RM_Email']; ?>" name="Developer_RM_Email" onkeydown="return false;">
							</div>
							<div class="col-md-4 col-sm-4"><label>Developer RM Phone</label>
								<p></?php echo $datan['Developer_RM_Phone']; ?>" name="Developer_RM_Phone" onkeydown="return false;">
							</div> 
							
							<div class="col-md-12 col-sm-12 text-center"><hr><h4>IC Relationship Manager</h4><hr></div>
							<div class="col-md-4 col-sm-4"><label>ICRM Name</label>
								<p></?php echo $datan['ICRM_Name']; ?>" name="ICRM_Name" onkeydown="return false;">
							</div>
							
							<div class="col-md-4 col-sm-4"><label>ICRM Email</label>
								<p></?php echo $datan['ICRM_Email']; ?>" name="ICRM_Email" onkeydown="return false;">
							</div>
							<div class="col-md-4 col-sm-4"><label>ICRM Phone</label>
								<p></?php echo $datan['ICRM_Phone']; ?>" name="ICRM_Phone" onkeydown="return false;">
							</div>
							
							<div class="col-md-2 col-sm-2"><label>Project Status</label>
								<p></?php echo $datan['Project_Status']; ?>" name="Project_Status" onkeydown="return false;">
							</div>
							<div class="col-md-2 col-sm-2"><label>Created by</label>
								<p></?php echo $datan['created_by']; ?>" onkeydown="return false;">
							</div>
							<div class="col-md-2 col-sm-2"><label>Created at</label>
								<p></?php echo $datan['created_at']; ?>" onkeydown="return false;">
							</div>
							-->
						</div>
						<?php } ?>
					</div>
				</div>
            </div>
        </div>
		
		
        
		<!--</?php	include ('include/quik_links.php');	?>
		</?php	include ('include/extra_links.php');	?>-->
	
	<?php	include ('include/copyright.php');	?>
	</div>
	
	<?php	include ('footer.php');	?>