<?php
	session_start();
	if($_SESSION['kbuid'])
	{
		$userid= $_SESSION['kbuid'];
	}
	else
	{
		header('location:../login.php');
	}
?>
<?php
	include'connection.php';
?>
<html>
<head>
	<title>Package List</title>
	<!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    
	<link rel="icon" href="images/logo.png" type="image/gif" sizes="16x16">
	
	<!-- Admin CSS File Link -->
	<link rel="stylesheet" href="css/style.css">
	
	<!-- User JAVA SCRIPT File Link -->
	<script type="text/javascript" src="js/script.js"></script>

	
	<!-- Font Awesome Icone -->
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
	
	<style>
		.div1{
			background:;
			width:100%;
			height:auto;
		}
		.bank{
			background:#f7f7f7;
			width:350px;
			height:auto;
			margin:30px;
			border-radius:5px;
			box-shadow:5px 5px 15px 4px #aaaaaa;
			text-align:center;
			float:left;
		}
		.bank h3{margin:5px 0px;}
		.bank table{
			width:330px;
			margin:10px;
		}
		.bank table th{height:50px; width:65%; text-align:right; padding-right:10px;}
		.bank table td{height:50px; text-align:left; padding-left:10px;}
		
		@media(max-width:768px)
		{
			.div1{
				background:;
				width:100%;
				height:auto;
				margin-top:10px;
				text-align:center;
				padding:1%;
			}
		.bank{
			width:94%;
			margin:4% 2%;
		}
		.bank table{
			width:100%;
			font-size:14px;
		}
		.bank table th{
			width:40%;
		}
			
		}
	</style>
	
	<link rel="stylesheet" href="css/mediaStyle.css">
</head>
<body>
	<!--Header Divison-->
	<?php
		require'header.php';
	?>
	
	<!--Container Division-->
	<div class="container">
		<?php
			include'menu.php';
		?>
		<div class="content">
			<div class="head">
				<div class="title"><p>Package List :-</p></div>
				<div class="msg"><marquee><?php include'msg.php'; ?></marquee></msg>
			</div><hr>
			<div class="data-content">
				<div class="div1">
					<?php
						$quBank="SELECT * FROM package WHERE Status='Active'";
						$reBank=mysqli_query($con,$quBank);
						while($dataBank=mysqli_fetch_array($reBank))
						{
							echo "<div class='bank'>
									<h3>Package Details</h3><hr>
									<table border='0'>
										<tr><th>Package Name : </th><td>".$dataBank['Name']."</td></tr>
										<tr><th>Package Amount : </th><td>".$dataBank['Amount']." Rs.</td></tr>
										<tr><th>Sponsor Commission : </th><td>".$dataBank['SpoCom']." %</td></tr>
										<tr><th>Level-1 Commission : </th><td>".$dataBank['Com1']." %</td></tr>
										<tr><th>Level-2 Commission : </th><td>".$dataBank['Com2']." %</td></tr>
										<tr><th>Level-3 Commission : </th><td>".$dataBank['Com3']." %</td></tr>
										<tr><th>Level-4 Commission : </th><td>".$dataBank['Com4']." %</td></tr>
										<tr><th>Level-5 Commission : </th><td>".$dataBank['Com5']." %</td></tr>
										<tr><th>Level-6 Commission : </th><td>".$dataBank['Com6']." %</td></tr>
										<tr><th>Level-7 Commission : </th><td>".$dataBank['Com7']." %</td></tr>
										<tr><th>Level-8 Commission : </th><td>".$dataBank['Com8']." %</td></tr>
									</table>
								</div>";
						}
					?>
				</div>
			</div>
		</div>
	</div>
	<?php
		require'footer.php';
	?>
</body>
</html>