
<?php
require 'db2.php';
session_start();
if($_SESSION['username']){
$username=$_SESSION['username'];
$stmtb = $conn->prepare("Select * from users where token='$username'");
$stmtb->execute();
$resultb = $stmtb->get_result();
if ($resultb->num_rows > 0) {
	// Output data of each row
while($row = $resultb->fetch_assoc()) {
$fname=htmlspecialchars($row["fname"]);

}
}else{
	session_destroy();
	clearstatcache();
	header("Location:index.php"); 
}}
?>
<!DOCTYPE html>
<html lang="en">
<head>
		<!-- Mobile Specific Meta -->
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- Author Meta -->
		<meta name="author" content="Amobi Moses Eche">
		<!-- Meta Description -->
		<meta name="description" content="Jacob Larry in Middle School is a compelling story about a middle schooler who encounters and overcomes significant challenges at the start of his middle school journey. Larry, the protagonist, grapples with various negative influences from both his family and society, which lead him into a series of problematic episodes throughout the book 
		
		Amobi Miracle Moses Eche is an eleven-year-old sixth grader at Great Oaks Legacy Charter School in New Jersey, United States of America. He lives with his parents in New Jersey.
		
		    .">
		<!-- Meta Keyword -->
		<meta name="keywords" content="sale books,Amobi,Moses, Eche, Jacob Larry in Middle School,Jacob, Larry, Middle School,https://www.amobimoseseche.com,www.amobimoseseche.com,amobimoseseche.com,good books to read,
best books to read,
best novels to read,
novels to read,
must read for middle schoolers,
recommended books to read,
story books to read,
a book to read,
the best books to read,
a must read,
jacob book,
books one must read,
Jacob Larry, middle school, children's book, school adventures, overcoming challenges, young readers, educational, fiction, Amobi Moses Eche">
		<!-- meta character set -->
		<meta charset="UTF-8">
		<!-- Site Title -->
		<title>Amobi Moses Eche</title>
		<link rel="icon" type="image/png" href="img/logo3.png" alt='Amobi Moses Eche'>
		<!--
		CSS
		============================================= -->
		<link rel="stylesheet" href="css/font-awesome.min.css">
		<link rel="stylesheet" href="css/linearicons.css">
		<link rel="stylesheet" href="css/magnific-popup.css">
		<link rel="stylesheet" href="css/nice-select.css">
		<link rel="stylesheet" href="css/owl.carousel.css">
		<link rel="stylesheet" href="css/magnific-popup.css">
		<link rel="stylesheet" href="css/bootstrap/bootstrap.css">
		<link rel="stylesheet" href="css/main-minified.css">
		
		  		<link href="https://fonts.googleapis.com/css?family=Abril+Fatface" rel="stylesheet"> 
		<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,600" rel="stylesheet">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  
		<!-- <link rel="stylesheet" href="css/main.css"> -->
		<style>
			
.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  /* padding: 0 4px; */
}

/* Create four equal columns that sits next to each other */
.column {
  -ms-flex: 25%; /* IE10 */
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    -ms-flex: 50%;
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    -ms-flex: 100%;
    flex: 100%;
    max-width: 100%;
  }
}
p{
	color: #000;
	font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	font-size: medium;
}
</style>
	</head>
	<body>
		<div id="top"></div>
		<!-- Start Header Area -->
		<header class="default-header">
			<div class="sticky-header">
				<div class="container">
					<div class="row align-items-start align-items-lg-center">
						<div class="col-lg-9 col-sm-7">
							<nav class="navbar navbar-expand-lg navbar-light">
								<a class="brand" href="#"><img src="img/logo3.png" alt="Logo"></a>
								<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
								<span class="navbar-toggler-icon"></span>
								</button>
								<div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
									<ul class="navbar-nav color-3">
										<li class="nav-item active">
											<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
										</li>
									</ul>
								</div>
							</nav>
						</div>
						<div class="col-lg-3 col-sm-5 d-flex justify-content-end top-btn-group">
							<div class="sign-up-btn mr-20"><button class="btn-first color-2" data-toggle="modal" data-target="#myModal" id="buy"><span>BUY</span></button></div>
							<div class="lang-select">
							<a class="nav-link" href="signout.php"><button class="btn-first color-1"  data-target="signout.php" id="buy"><span>Signout</span></button></a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</header>
		<!-- End Header Area -->
		<!-- Start Modal Login -->
		<div class="modal fade" id="myModal">
		    <!--<div class="modal fade" id="myModal" tabindex="-1" role="dialog">-->
			<div class="modal-dialog" role="document">
				<div class="modal-content color-2">
					<a class="cross" data-dismiss="modal" aria-label="Close"><span class="lnr lnr-cross-circle"></span></a>
					<div class="total-content">
						<h3 style="color: orange;">Place Order</h3>
						<p>At the checkout page, select "Bank Transfer" as your preferred payment method or 
							you click <a href="">here</a> to buy Directly form <a href="">amazon.</a>
						</p><p>Note Down Payment Details:
							You will be provided with the necessary bank details for the transfer. This includes:
							<br>
							Bank Name:Access Bank<br>
							Account Name: Happiness Eche<br>
							Account Number: 0059182268<br>
							<!-- Bank Branch:
							Swift/BIC Code (for international transfers) -->
						</p><p>
							Review all details carefully and complete the transfer.
						</p><p>Send Payment Confirmation:
							Once the transfer is complete, take a screenshot or photo of the transfer confirmation.
							Email this confirmation along with your order number to our customer support at [your support email address].
						</p><p>Order Processing:
							
							Upon receiving your payment confirmation, we will process your order.
							You will receive an email confirmation once your payment is verified and your order is processed.
						</p><p>Delivery:
							
							Your book will be shipped to the address provided at checkout. You will receive a notification with tracking information once it is dispatched.
															</p>
						<div class="text-center">
							<p class="d-acount" style="color: orange;">Direct Bank Transfer? 
								<a data-dismiss="modal" aria-label="Close" data-toggle="modal" data-target="#myModaltwo">Click to Start Now</a>  <br>
								<a href="https://www.amazon.com/dp/9787849829?psc=1&ref_=cm_sw_r_cp_ud_ct_H4TVR16XD6VAPCWA1QES"
								 >Amazon Click here </a> 
							</p>
						</div>
					</div>
				</div>
			</div>
		</div>

		<section class="banner-area color-3" style="background-image: url('img/bgiii.jpg');">
		<div class="about-area relative" style="background: url('img/wt2.jpg');">
			<div></div>
			<!-- <img src="img/book-3.png" alt="E-Book" class="about-book"> -->
			<div class="container">
				<div class="row">
					<div class="col-lg-6">
						<div class="about-content">

					



							<h2 class="h1 mb-15" style="color: navy;">Hi <?php echo $fname;?>! </h2>
							<p>Welcome to the Admin Dashboard! Manage and oversee all your tasks efficiently from here.</p>
							<input type="hidden" id="poidi" value="<?php echo date("Ydmhis"); ?>"></p>
							<div method="POST" enctype="multipart/form-data">
							<div class="single-input color-2 mb-10" >
								<label style="color: orange;" for="orderid" >Category</label>
								<!-- <input  id="ty" list="tyi"  type="Text" required> -->
								<Select  id="ty" class="Source ingle-input" placeholder="Select Category" style="width:100%; padding:5px">
                                                        <option value="">Select Category</option>
                                                        <option value="Review">Review</option>
                                                        <option value="Post">Post</option>
                                                        <option value="Pictures">Pictures</option>
                                                        <option value="Slide">Slide</option> 
                                                        <option value="Event">Events</option> 
                                                        <option value="Author">About Author</option> 
                                                        <option value="Book">Books</option> 
                                                        <!-- <option value="Video">Videos</option>  -->
                                                        <!-- <option value="Client">Client</option>  -->
							</Select>
							</div>
							<div class="single-input color-2 mb-10">
								<label style="color: orange;" for="fName">Source</label>
								<input class="Source" placeholder="Enter Source" name="fName" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Source'" type="Text" required>
							</div>
							<div class="single-input color-2 mb-10">
								<label style="color: orange;" for="qty">Subject</label>
								<input class="Source" placeholder="Enter Subject"  onfocus="this.placeholder = ''" onblur="this.placeholder = 'Subject'" type="text" required>
							</div>
							<div class="single-input color-2 mb-10">
								<label style="color: orange;" for="pass2">File Upload</label>
								<input class="Source" type="file"  id="file" placeholder="File Upload">
							</div>
							<div class="single-input color-2 mb-10">
								<label style="color: orange;" for="email">Date Stamp</label>
								<input class="Source" placeholder="Date" value="<?php echo date("Y-m-d");?>" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Date'" type="date"  required>
							</div>
							
							<div class="single-input color-2 mb-10">
								<label style="color: orange;" for="Address"> Details</label>
								<textarea id="address" class="Source" placeholder="More Details" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Details'" cols="48" rows="6" required>
								</textarea>
							</div>

							<div class="d-flex justify-content-end"><button form='myform' class="submit-btn button btn-first color-3" id='LPAT'><span>Send Message</span> </button></div>
								<div class="alert"></div>
							</div>
						</div>
					</div>
					<div class="col-lg-6">
						<div class="about-content">
							<p><iframe src="pview.php" id="pview" width="100%" height="600" style="border:none;" scrolling="yes" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe></p>
						</div>
					</div>
			</div>
		</div>
		<div class="cta-area color-3">
			<div class="row justify-content-center">
				<div class="col-md-8" style="font-size: larger;color: white;text-align: center;">
		
			<div class="btn-group d-flex flex-wrap mt-20" style="text-align: center;color: white;">
			<a href="https://www.amazon.com/dp/9787849829?psc=1&ref_=cm_sw_r_cp_ud_ct_H4TVR16XD6VAPCWA1QES" class="btn-first color-3"><span>Buy Paperback</span><span class="lnr lnr-cart ml-10"></span></a>
			<a href="https://www.amazon.com/dp/9787849829?psc=1&ref_=cm_sw_r_cp_ud_ct_H4TVR16XD6VAPCWA1QES" class="btn-first color-2 ml-10"><span>Buy E-book</span><span class="lnr lnr-cart ml-10"></span></a>
		</div>
		</div></div>
		</div>
		</section>
		<!-- End Cta -->
		<!-- Start Downloads -->
		<section id="download" class="section-full" style="background-image: url(img/wt2.jpg); background-repeat:round;">
			<div class="container">

			</div>
		</section>

		<!-- End Downloads -->
		<!-- Start Contact Area -->
		<!-- End Subscribe Area -->
		<!-- Start Footer -->
			<footer class="footer-1 footer-bg-1">
			<div class="container">
				<div class="row justify-content-center">
					<div class="col-lg-4">
						<div class="footer-content text-center">
							<h2 style="color: white;" >Instagram Handle</h2>
							<p class="mb-0"> 
							<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="https://www.instagram.com/p/C7c4Wwzu-wp/?utm_source=ig_embed&amp;utm_campaign=loading" data-instgrm-version="14" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:16px;"> 
								<a href="https://www.instagram.com/p/C7c4Wwzu-wp/?utm_source=ig_embed&amp;utm_campaign=loading" style=" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;" target="_blank"> <div style=" display: flex; flex-direction: row; align-items: center;"> <div style="background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;"></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center;"> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 100px;"></div> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 60px;"></div></div></div><div style="padding: 19% 0;"></div> <div style="display:block; height:50px; margin:0 auto 12px; width:50px;"><svg width="50px" height="50px" viewBox="0 0 60 60" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-511.000000, -20.000000)" fill="#000000"><g><path d="M556.869,30.41 C554.814,30.41 553.148,32.076 553.148,34.131 C553.148,36.186 554.814,37.852 556.869,37.852 C558.924,37.852 560.59,36.186 560.59,34.131 C560.59,32.076 558.924,30.41 556.869,30.41 M541,60.657 C535.114,60.657 530.342,55.887 530.342,50 C530.342,44.114 535.114,39.342 541,39.342 C546.887,39.342 551.658,44.114 551.658,50 C551.658,55.887 546.887,60.657 541,60.657 M541,33.886 C532.1,33.886 524.886,41.1 524.886,50 C524.886,58.899 532.1,66.113 541,66.113 C549.9,66.113 557.115,58.899 557.115,50 C557.115,41.1 549.9,33.886 541,33.886 M565.378,62.101 C565.244,65.022 564.756,66.606 564.346,67.663 C563.803,69.06 563.154,70.057 562.106,71.106 C561.058,72.155 560.06,72.803 558.662,73.347 C557.607,73.757 556.021,74.244 553.102,74.378 C549.944,74.521 548.997,74.552 541,74.552 C533.003,74.552 532.056,74.521 528.898,74.378 C525.979,74.244 524.393,73.757 523.338,73.347 C521.94,72.803 520.942,72.155 519.894,71.106 C518.846,70.057 518.197,69.06 517.654,67.663 C517.244,66.606 516.755,65.022 516.623,62.101 C516.479,58.943 516.448,57.996 516.448,50 C516.448,42.003 516.479,41.056 516.623,37.899 C516.755,34.978 517.244,33.391 517.654,32.338 C518.197,30.938 518.846,29.942 519.894,28.894 C520.942,27.846 521.94,27.196 523.338,26.654 C524.393,26.244 525.979,25.756 528.898,25.623 C532.057,25.479 533.004,25.448 541,25.448 C548.997,25.448 549.943,25.479 553.102,25.623 C556.021,25.756 557.607,26.244 558.662,26.654 C560.06,27.196 561.058,27.846 562.106,28.894 C563.154,29.942 563.803,30.938 564.346,32.338 C564.756,33.391 565.244,34.978 565.378,37.899 C565.522,41.056 565.552,42.003 565.552,50 C565.552,57.996 565.522,58.943 565.378,62.101 M570.82,37.631 C570.674,34.438 570.167,32.258 569.425,30.349 C568.659,28.377 567.633,26.702 565.965,25.035 C564.297,23.368 562.623,22.342 560.652,21.575 C558.743,20.834 556.562,20.326 553.369,20.18 C550.169,20.033 549.148,20 541,20 C532.853,20 531.831,20.033 528.631,20.18 C525.438,20.326 523.257,20.834 521.349,21.575 C519.376,22.342 517.703,23.368 516.035,25.035 C514.368,26.702 513.342,28.377 512.574,30.349 C511.834,32.258 511.326,34.438 511.181,37.631 C511.035,40.831 511,41.851 511,50 C511,58.147 511.035,59.17 511.181,62.369 C511.326,65.562 511.834,67.743 512.574,69.651 C513.342,71.625 514.368,73.296 516.035,74.965 C517.703,76.634 519.376,77.658 521.349,78.425 C523.257,79.167 525.438,79.673 528.631,79.82 C531.831,79.965 532.853,80.001 541,80.001 C549.148,80.001 550.169,79.965 553.369,79.82 C556.562,79.673 558.743,79.167 560.652,78.425 C562.623,77.658 564.297,76.634 565.965,74.965 C567.633,73.296 568.659,71.625 569.425,69.651 C570.167,67.743 570.674,65.562 570.82,62.369 C570.966,59.17 571,58.147 571,50 C571,41.851 570.966,40.831 570.82,37.631"></path></g></g></g></svg></div><div style="padding-top: 8px;"> <div style=" color:#3897f0; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:550; line-height:18px;">View this post on Instagram</div></div><div style="padding: 12.5% 0;"></div> <div style="display: flex; flex-direction: row; margin-bottom: 14px; align-items: center;"><div> <div style="background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(0px) translateY(7px);"></div> <div style="background-color: #F4F4F4; height: 12.5px; transform: rotate(-45deg) translateX(3px) translateY(1px); width: 12.5px; flex-grow: 0; margin-right: 14px; margin-left: 2px;"></div> <div style="background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(9px) translateY(-18px);"></div></div><div style="margin-left: 8px;"> <div style=" background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 20px; width: 20px;"></div> <div style=" width: 0; height: 0; border-top: 2px solid transparent; border-left: 6px solid #f4f4f4; border-bottom: 2px solid transparent; transform: translateX(16px) translateY(-4px) rotate(30deg)"></div></div><div style="margin-left: auto;"> <div style=" width: 0px; border-top: 8px solid #F4F4F4; border-right: 8px solid transparent; transform: translateY(16px);"></div> <div style=" background-color: #F4F4F4; flex-grow: 0; height: 12px; width: 16px; transform: translateY(-4px);"></div> <div style=" width: 0; height: 0; border-top: 8px solid #F4F4F4; border-left: 8px solid transparent; transform: translateY(-4px) translateX(8px);"></div></div></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center; margin-bottom: 24px;"> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 224px;"></div> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 144px;"></div></div></a><p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;"><a href="https://www.instagram.com/p/C7c4Wwzu-wp/?utm_source=ig_embed&amp;utm_campaign=loading" style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none;" target="_blank">A post shared by @amobimme</a></p></div></blockquote> <script async src="//www.instagram.com/embed.js"></script>
							</p>
							</div>
					</div>
					<div class="col-lg-4">
						<div class="footer-content text-center">
							<img src="img/logo3.png" alt="" class="footer-logo">
							<p><h2 style="color: white;" >Amobi Moses Eche</h2></p>
							<div class="social-link d-flex justify-content-center felx-wrap">
								<a href="https://www.facebook.com/codepixartheme/" class="social-btn color-3 footer-color-1"><i class="fa fa-facebook"></i></a>
								<a href="https://twitter.com/codepixer" class="social-btn color-3 footer-color-1"><i class="fa fa-twitter"></i></a>
								<a href="https://www.linkedin.com/in/codepixar/" class="social-btn color-3 footer-color-1"><i class="fa fa-linkedin"></i></a>
								<a href="https://plus.google.com/u/0/101799616645097409954" class="social-btn color-3 footer-color-1"><i class="fa fa-google-plus"></i></a>
								<a href="https://dribbble.com/codepixar" class="social-btn color-3 footer-color-1"><i class="fa fa-dribbble"></i></a>
								<a href="https://www.behance.net/codepixar" class="social-btn color-3 footer-color-1"><i class="fa fa-behance"></i></a>
							</div>
							<p class="color-3">Copyright &copy; 2024. All Rights Reserved   |   <a href="#">SLSE</a></p>
						</div>
					</div>
					<div class="col-lg-4">
						<div class="footer-content text-center">
							
								<div class="widget-box w-100">
									<h2 style="color: white;">Facebook Handle</h2>
								   <p class="mb-0"> 
									<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fweb.facebook.com%2Fpermalink.php%3Fstory_fbid%3D1135776057686798%26id%3D61560387773202%26substory_index%3D1135776057686798&show_text=true&width=500&is_preview=true" width="350" height="464" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>
									<!-- <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Ffootprinteducationalservices&tabs=timeline&width=300&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="340" height="400" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe> -->
									<!-- <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Famobimme&tabs=timeline&width=500&height=500&small_header=true&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="500" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe> -->
								</p>
								</div>
							
						</div>
					</div>
				</div>
			</div>
		</footer>
		<!-- End Footer -->
		<div id="myModalpix" class="modal">
			<span class="close">&times;</span>
			<div class="total-overlay">
				<div class="overlay-content">
			<div class="modal-content" style="width: fit-content; height: fit-content; text-align: center;margin-top: 200px;">
				<img id="modalImg" src="" alt="" >
			</div>
			</div>
		</div>
		</div>


		<div id="myModalvid" class="modal">
			<span class="close">&times;</span>
			<div class="total-overlay">
				<div class="overlay-content">
					<div class="modal-content" style="width: fit-content; height: fit-content; text-align: center;margin-top: 200px;">
					<video id="modalvid" src="" type="video/mp4" controls></video>
			</div>
			</div>
		</div>
		</div>



		<script>
			$("#LPAT").click(function() {
      
	  var fd = new FormData();
	  var files = $('#file')[0].files[0];
	  let FName = $(".Source").map(function() {return $(this).val();}).get();          
	//   alert(FName);                                                                                    
	  // alert(files);                                                                                    
	  let y = FName.length;
	  var tii = $('#file').val();
	  var poid =$('#poidi').val();
		  if (tii==""){
			  alert("No File Selected");
		  }else{
	  
	  fd.append('file', files);

	  $.ajax({
		  url: 'fileupload.php?id=' + poid,
		  type: 'post',
		  data: fd,
		  contentType: false,
		  processData: false,
		  success: function(response){
			  var u=$.trim(response);
			  //alert(u);
			  if(response != 0){
						  let y= FName[0];
						  let yu=($.trim(response));       
							$.post("upload.php",{
							  description:FName,submitAT:1,file:yu},
								function(data,status,Xhr){ 
								  if(Xhr.status=="200"){
									 // alert(data);
									  $("#pview").attr("src","pview.php?list="+ y);
			  }
						  })
					 $('#file').val("");
					 $('#filedescr').val("");

			  }
			  else{

				  alert('file not uploaded');
			  }
		  }
	  });
  }
  })

  $("#ty").change(function(){
	 let y= $("#ty").val();
	 if(y=="Client"){$("#pview").attr("src","pcview.php?list="+ y);}else{$("#pview").attr("src","pview.php?list="+ y);}
	 
  })
  $(document).ready(function(){
	 let y= "";
	 $("#pview").attr("src","pview.php?list="+ y);
	 
  })
</script>

		<script src="js/vendor/jquery-2.2.4.min.js"></script>
		<script src="../../../cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
		<script src="js/vendor/bootstrap.min.js"></script>
		<script src="js/jquery.sticky.js"></script>
		<script src="js/main.js"></script>
	
		<!-- <script>
			$("#LPAT").click(function() {
      
	  var fd = new FormData();
	  var files = $('#file')[0].files[0];
	  let FName = $(".Source").map(function() {return $(this).val();}).get();          
	//   alert(FName);                                                                                    
	  // alert(files);                                                                                    
	  let y = FName.length;
	  var tii = $('#file').val();
	  var poid =$('#poidi').val();
		  if (tii==""){
			  alert("No File Selected");
		  }else{
	  
	  fd.append('file', files);

	  $.ajax({
		  url: 'fileupload.php?id=' + poid,
		  type: 'post',
		  data: fd,
		  contentType: false,
		  processData: false,
		  success: function(response){
			  var u=response;
			  alert(u);
			  if(response != 0){
						  let y= FName[0];
						  let yu=($.trim(response));       
							$.post("upload.php",{
							  description:FName,submitAT:1,file:yu},
								function(data,status,Xhr){ 
								  if(Xhr.status=="200"){
									 // alert(data);
									  $("#pview").attr("src","pview.php?list="+ y);
			  }
						  })
					 $('#file').val("");
					 $('#filedescr').val("");

			  }
			  else{

				  alert('file not uploaded');
			  }
		  }
	  });
  }
  })

  $("#ty").change(function(){
	 let y= $("#ty").val();
	 if(y=="Client"){$("#pview").attr("src","pcview.php?list="+ y);}else{$("#pview").attr("src","pview.php?list="+ y);}
	 
  })
  $(document).ready(function(){
	 let y= "";
	 $("#pview").attr("src","pview.php?list="+ y);
	 
  })
</script> -->
	</body>
</html>