<?php 
session_start(); 
if(!isset($_SESSION['tulsilogin']))
	{
		header('Location: index.php');
		return;
	}
	include("connect.php");
	date_default_timezone_set("Asia/Kolkata");
				$mdate1= date('Y-m-d H:i:s');
				$mdate2= date('Y-m-d');
				$mdate= date('d-m-Y');
	/* $eve = "update  res_agentcomission_master set acstatus='Active' where acstartdate <= '$mdate2' and acenddate >= '$mdate2'";
	$re = mysqli_query($conn,$eve);
	
$eve1 = "update  res_agentcomission_master set acstatus='Inactive' where acstartdate > '$mdate2' and acenddate < '$mdate2'";
	$re1 = mysqli_query($conn,$eve1); */

?>
<!DOCTYPE html>
<!--
Author: Keenthemes
Product Name: Metronic - Bootstrap 5 HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express Node.js & Flask Admin Dashboard Theme
Purchase: https://1.envato.market/EA4JP
Website: http://www.keenthemes.com
Contact: support@keenthemes.com
Follow: www.twitter.com/keenthemes
Dribbble: www.dribbble.com/keenthemes
Like: www.facebook.com/keenthemes
License: For each use you must have a valid license purchased only from above link in order to legally use the theme for your project.
-->
<html lang="en">
	<!--begin::Head-->
	<head>
		<title>Program Detail</title>
		<meta charset="utf-8" />
		
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta property="og:locale" content="en_US" />
		<meta property="og:type" content="article" />
		<meta property="og:title" content="Metronic - Bootstrap 5 HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express Node.js & Flask Admin Dashboard Theme" />
		<meta property="og:url" content="https://keenthemes.com/metronic" />
		<meta property="og:site_name" content="Keenthemes | Metronic" />
		<link rel="canonical" href="https://preview.keenthemes.com/metronic8" />
		<link rel="shortcut icon" href="assets/media/logos/favicon.ico" />
		<!--begin::Fonts(mandatory for all pages)-->
		<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700" />
		<!--end::Fonts-->
		<!--begin::Vendor Stylesheets(used for this page only)-->
		<link href="assets/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css" />
		<!--end::Vendor Stylesheets-->
		<!--begin::Global Stylesheets Bundle(mandatory for all pages)-->
		<link href="assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
		<style>
		    body{
		        background-image: none !important;
    background-color: #F3F6F9;
		    }
		</style>
		<!--end::Global Stylesheets Bundle-->
	</head>
	<!--end::Head-->
	<!--begin::Body-->
	<body id="kt_body" class="header-fixed header-tablet-and-mobile-fixed aside-fixed aside-secondary-disabled">
		<!--begin::Theme mode setup on page load-->
		<script>var defaultThemeMode = "light"; var themeMode; if ( document.documentElement ) { if ( document.documentElement.hasAttribute("data-theme-mode")) { themeMode = document.documentElement.getAttribute("data-theme-mode"); } else { if ( localStorage.getItem("data-theme") !== null ) { themeMode = localStorage.getItem("data-theme"); } else { themeMode = defaultThemeMode; } } if (themeMode === "system") { themeMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; } document.documentElement.setAttribute("data-theme", themeMode); }</script>
		<!--end::Theme mode setup on page load-->
		<!--begin::Main-->
		<!--begin::Root-->
		<div class="d-flex flex-column flex-root">
			<!--begin::Page-->
			<div class="page d-flex flex-row flex-column-fluid">
				<!--begin::Aside-->
				<?php include('sidebar.php'); ?>
				<!--end::Aside-->
				<!--begin::Wrapper-->
				<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
					<!--begin::Header-->
					<div id="kt_header" style="" class="header align-items-stretch">
						<!--begin::Container-->
						<div class="container-fluid d-flex align-items-stretch justify-content-between">
							<!--begin::Aside mobile toggle-->
							<div class="d-flex align-items-center d-lg-none ms-n3 me-1" title="Show aside menu">
								<div class="btn btn-icon btn-active-color-primary w-40px h-40px" id="kt_aside_toggle">
									<!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
									<span class="svg-icon svg-icon-1">
										<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
											<path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="currentColor" />
											<path opacity="0.3" d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z" fill="currentColor" />
										</svg>
									</span>
									<!--end::Svg Icon-->
								</div>
							</div>
							<!--end::Aside mobile toggle-->
							<!--begin::Mobile logo-->
							<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
								<a href="dashboard.php" class="d-lg-none">
									<img alt="Logo" src="assets/media/logos/demo4-mobile.svg" class="h-25px" />
								</a>
							</div>
							<!--end::Mobile logo-->
							<div class="d-flex align-items-center" id="kt_header_wrapper">
								<!--begin::Page title-->
								<div class="page-title d-flex flex-column align-items-start justify-content-center flex-wrap me-lg-20 pb-5 pb-lg-0" data-kt-swapper="true" data-kt-swapper-mode="prepend" data-kt-swapper-parent="{default: '#kt_content_container', lg: '#kt_header_wrapper'}">
									<!--begin::Heading-->
									<h1 class="text-dark fw-bold my-1 fs-3 lh-1">Program Details</h1>
									<!--end::Heading-->
									<!--begin::Breadcrumb-->
									<ul class="breadcrumb fw-semibold fs-8 my-1">
										<li class="breadcrumb-item text-muted">
											<a href="dashboard.php" class="text-muted">Home</a>
										</li>
										<li class="breadcrumb-item text-muted">Course Managemnet</li>
										
										<li class="breadcrumb-item text-muted">Program Details</li>
									</ul>
									<!--end::Breadcrumb-->
								</div>
								<!--end::Page title=-->
							</div>
							<!--begin::Wrapper-->
							<?php include('header.php'); ?>
							<!--end::Wrapper-->
						</div>
						<!--end::Container-->
					</div>
					<!--end::Header-->
					<?php
					
	
	
	
	$eve = "select * from res_course_master where coursemid=".$_GET['id']." ";
			$re = mysqli_query($conn, $eve);
			while($rt = mysqli_fetch_assoc($re))
			{
				$coursemid=$rt['coursemid'];
				$cnmid=$rt['cnmid'];
				
				$cprogramcode=$rt['cprogramcode'];
				$cprogramcategory=$rt['cprogramcategory'];
				$losmid=$rt['levelofstudy'];
				$cprogramlength=$rt['cprogramlength'];
				$cprogramlanguage=$rt['cprogramlanguage'];
				$cprogramtype=$rt['cprogramtype'];
				$cprogramdelivery=$rt['cprogramdelivery'];
				$programurl=$rt['programurl'];
				$costofliving=$rt['costofliving'];
				$cprogramavailibilty=$rt['cprogramavailibilty'];
				
				$cappurllink=$rt['cappurllink'];
				$cconditionalacceptence=$rt['cconditionalacceptence'];
				$chighlycompetitive=$rt['chighlycompetitive'];
				$cmdesc=$rt['cmdesc'];
				$cpercentage=$rt['cpercentage'];
				$cbacklogaccepted=$rt['cbacklogaccepted'];
				$cedugapaccepted=$rt['cedugapaccepted'];
				$captitudeeligibilty=$rt['captitudeeligibilty'];
				$captitudescore=$rt['captitudescore'];
				$feesin=$rt['feesin'];
				$capplicationfee=$rt['capplicationfee'];
				$cregifees1=$rt['cregifees1'];
				$cregifees=$rt['cregifees'];
				$ctutionfees=$rt['ctutionfees'];
				$ctutionfeesin=$rt['ctutionfeesin'];
				$cgrossfees=$rt['cgrossfees'];
				$cscholorship=$rt['cscholorship'];
				$csubmissiondeadline=$rt['csubmissiondeadline'];
				$cjobprospect=$rt['cjobprospect'];
				$cavgannualsalary=$rt['cavgannualsalary'];
				$countrymid=$rt['countrymid'];
				$campusmid=$rt['campusmid'];
				$cprocessingtime =$rt['cprocessingtime'];
				$programsem =$rt['programsem'];
				
				
				$countryname='';
				
				$eve2 = "select * from res_country_master where countrymid ='$countrymid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$countryname=$rt2['countryname'];
					}
				}
				$collegemid=$rt['collegemid'];
				
				$sname='';
				
				$eve2 = "select * from res_college_master where collegemid ='$collegemid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$cmname=$rt2['cmname'];
					}
				}
				$campusname='';
				
				
				
				$eve2 = "select * from res_collegecampus_master where ccampusmid ='$campusmid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$campusname=$rt2['campusname'];
					}
				}
				
				
				
				$coursename='';
				
				$eve2 = "select * from res_coursename_master where cnmid ='$cnmid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$coursename=$rt2['coursename'];
					}
				}
				$levelofstudy = '';
			   $eve2 = "select * from res_levelofstudy_master where losmid ='$losmid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$levelofstudy=$rt2['levelofstudy'];
					}
				}
			}
			   
	
?>
					<!--begin::Content-->
					<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
						<!--begin::Container-->
						<div class="container-xxl" id="kt_content_container">
							<!--begin::Order details page-->
							<div class="d-flex flex-column gap-7 gap-lg-10">
								<!--<div class="d-flex flex-wrap flex-stack gap-5 gap-lg-10">
									
									<!--begin::Button-->
									<?php /*if($_SESSION['frompage'] == 'Inquirylistpage') {?>
									<a href="inquiry.php" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php } else if ($_SESSION['frompage'] == 'planStudiesInquirylistpage') { ?>
									<a href="planstudiesinquiry.php" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php } else if ($_SESSION['frompage'] == 'AgentDetail') {  ?>
									<!--<a href="agentinquiry.php?id=<?php echo $_SESSION['agentid']; ?>" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php }else{ ?>
									<a href="inquiry.php" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php }  */?>
										<!--begin::Svg Icon | path: icons/duotune/arrows/arr074.svg-->
										<!--<span class="svg-icon svg-icon-2">
											<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
												<path d="M11.2657 11.4343L15.45 7.25C15.8642 6.83579 15.8642 6.16421 15.45 5.75C15.0358 5.33579 14.3642 5.33579 13.95 5.75L8.40712 11.2929C8.01659 11.6834 8.01659 12.3166 8.40712 12.7071L13.95 18.25C14.3642 18.6642 15.0358 18.6642 15.45 18.25C15.8642 17.8358 15.8642 17.1642 15.45 16.75L11.2657 12.5657C10.9533 12.2533 10.9533 11.7467 11.2657 11.4343Z" fill="currentColor" />
											</svg>
										</span>
										<!--end::Svg Icon-->
									</a>
									<!--end::Button-->
									
								
								
								<!--begin::Tab content-->
								<div class="tab-content">
									<!--begin::Tab pane-->
									<div class="tab-pane fade show active" id="User_detail" role="tab-panel">
										<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
											<div class="d-flex flex-column flex-xl-row gap-7 gap-lg-10">
												<!--begin::Payment address-->
												<div class="card card-flush py-4 flex-row-fluid overflow-hidden">
													<!--begin::Background-->
													
													<!--end::Background-->
												<!--	<div class="d-flex justify-content-end" data-kt-user-table-toolbar="base">
													
													<!--begin::Add user-->
											<!--<a href="inquiryedit.php?id=&from=detail" class="btn 
btn-primary ">
											<!--begin::Svg Icon | path: icons/duotune/arrows/arr075.svg-->
											
											<!--end::Svg Icon--><!--Edit <i class="fa fa-edit"> </i></a>
											<!--end::Add user-->
											<!--	</div>
													<!--begin::Card header-->
													<div class="card-body pt-0">
													<div class="table-responsive">
													<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
                
                <tr>
                  <th class="fw-bold">Program Name
                  </th>
                  <td>
                    <?php echo $coursename;?>
                  </td>
                  <th class="fw-bold">Program Code
                  </th>
                  <td>
                    <?php echo $cprogramcode;?>
                  </td>
                </tr>
				
				<tr>
                  <th class="fw-bold">Country
                  </th>
                  <td>
                    <?php echo $countryname;?>
                  </td>
				  <th class="fw-bold">Institute 
                  </th>
                  <td>
                    <?php echo $cmname;?>
                  </td>
                </tr>	
				
                <tr>
                  <th class="fw-bold">Campus
                  </th>
                  <td >
                    <?php echo $campusname;?>
                  </td>								
                  <th class="fw-bold">Discipline
                  </th>
                  <td >
                    <?php echo $cprogramcategory;?>
                  </td>
                </tr>
				
                <tr>
                  <th class="fw-bold">Credentials
                  </th>
                  <td >
                    <?php echo $levelofstudy;?>
                  </td>
				    <th class="fw-bold">Program Length
                  </th>
                  <td>
                    <?php echo $cprogramlength;?>
                  </td>
                </tr>
                <tr>
                  <th class="fw-bold">Program language
                  <td >
                    <?php echo $cprogramlanguage;?>
                  </td>
                  <th class="fw-bold">Program Type
                  </th>
                  <td >
                    <?php echo $cprogramtype;?>
                  </td>
                </tr>
                <tr>
                  <th class="fw-bold">Program Delivery Mode
                  </th>
                  <td>
                    <?php echo $cprogramdelivery;?>
                  </td>
                  <th class="fw-bold">Program URL 
                  </th>
                  <td>
                    <?php echo $programurl;?>
                  </td>
                </tr>
				
				  
				
				
				 <tr>
                  <th class="fw-bold">Monthly living cost
                  </th>
                  <td>
                    <?php echo $costofliving;?>
                  </td>
                  <th class="fw-bold">Program Availability
                  </th>
                  <td>
                    <?php echo $cprogramavailibilty;?>
                  </td>
                </tr>
				
				 <tr>
                  <th class="fw-bold">Application URL link
                  </th>
                  <td>
                    <?php echo $cappurllink;?>
                  </td>
                  <th class="fw-bold">Conditional acceptance
                  </th>
                  <td>
                    <?php echo $cconditionalacceptence;?>
                  </td>
                </tr>
				
				 
				
				 
			   <tr>
                  <th class="fw-bold">Competitiveness
                  </th>
                  <td >
                    <?php echo $chighlycompetitive;?>
                  </td>
                <th class="fw-bold">Percentage
                  </th>
                  <td >
                    <?php echo $cpercentage;?>
                  </td>
                
                 
				</tr>
				<tr>
                  <th class="fw-bold">Program Description
                  </th>
                  <td colspan="3">
                    <?php echo $cmdesc;?>
                  </td>
                
                 
				  </tr>
				  
				  <tr>
                  <th class="fw-bold">Number of Backlogs accepted
                  </th>
                  <td>
                    <?php echo $cbacklogaccepted;?>
                  </td>
                
                  <th class="fw-bold">Education Gap allowed
                  </th>
                  <td >
                    <?php echo $cedugapaccepted;?>
                  </td>
				  </tr>
				  
				 
				  
				  <tr>
                  <th class="fw-bold">Currency
                  </th>
                  <td >
                    <?php echo $feesin;?>
                  </td>
				   <th class="fw-bold">Application Fees
                  </th>
                  <td >
                    <?php echo $capplicationfee;?>
                  </td>
				   </tr>
				 
				  <tr>
				  <th class="fw-bold">Deposit  Required
                  </th>
                  <td >
                    <?php echo $cregifees1;?>
                  </td>
                
                  <th class="fw-bold">Deposit amount 
                  </th>
                  <td >
                    <?php echo $cregifees;?>
                  </td>
				  </tr>
				  
				   <tr>
				  <th class="fw-bold">Net tuition fees
                  </th>
                  <td >
                    <?php echo $ctutionfeesin;?>
                  </td>
                
                  <th class="fw-bold">Tuition Fees Amount
                  </th>
                  <td >
                    <?php echo $ctutionfees;?>
                  </td>
				  </tr>
				  
				  
				  
				<tr>
				  <th class="fw-bold">Gross Annual Tuition fees
                  </th>
                  <td >
                    <?php echo $cgrossfees;?>
                  </td>
				 
                  <th class="fw-bold">Scholarship
                  </th>
                  <td>
                    <?php echo $cscholorship;?>
                  </td>
                </tr>
				 <tr>
                  <th class="fw-bold">Submission Deadline
                  </th>
                  <td >
                    <?php echo $csubmissiondeadline;?>
                  </td>
				 
				  <th class="fw-bold">processing Time
                  </th>
                  <td >
                    <?php echo $cprocessingtime;?>
                  </td>
                </tr>
				
				<tr>
                  <th class="fw-bold">Job Prospects
                  </th>
                  <td >
                    <?php echo $cjobprospect;?>
                  </td>
				  <th class="fw-bold">Average annual salary
                  </th>
                  <td >
                    <?php echo $cavgannualsalary;?>
                  </td>
				 </tr>
				 
				 
				
              </table>
			  </div>
			  </div>
           
													<!--end::Card header-->
													<!--begin::Card body-->
													
													<!--end::Card body-->
												</div>
												<!--end::Payment address-->
												</div>
											
											</div>
										<!--end::Orders-->
									</div>
									<!--end::Tab pane-->
									
								</div>
							<div class="d-flex flex-column gap-7 gap-lg-10">
											<div class="d-flex flex-column flex-xl-row gap-7 gap-lg-10">
												<!--begin::Payment address-->
												<div class="card card-flush py-4 flex-row-fluid overflow-hidden">
													<!--begin::Background-->
													<div class="card-header cursor-pointer">
													<!--end::Background-->
												<!--	<div class="d-flex justify-content-end" data-kt-user-table-toolbar="base">
													
													<!--begin::Add user-->
													<div class="card-title m-0">
															<h3 class="fw-bold m-0 text-uppercase">Language Eligibility</h3>
														</div>
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_user" class="btn btn-sm btn-primary align-self-end"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
											<!--end::Add user-->
												</div>
													<!--begin::Card header-->
													<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Language</th>

																	<th class="min-w-70px">Score</th>
																	<th class="min-w-70px">Minimum Score</th>
																	<th class="min-w-70px">Operation</th>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															//$_SESSION['frompage']='Inquirydetail';
															$eve11 = "select * from res_courselanguage_detail where coursemid=".$_GET['id']." and clangtype='Language'";
															$re11 = mysqli_query($conn, $eve11);
															while($rt11 = mysqli_fetch_assoc($re11))
															{
																
																$cldid=$rt11['cldid'];
																$clangeligibility=$rt11['clangeligibility'];
																$clangscore=$rt11['clangscore'];
																$clangminscore=$rt11['clangminscore'];
																$adelete = "<a href='courselanguagedelete.php?id=$cldid&coursemid=$coursemid'  class='far fa-trash-alt fa-lg'>  </a>";
				
												
															
															?>
																<tr>
																	
																	<td><?php echo $clangeligibility; ?></td>
																	
																	
																	
																	<td><?php echo $clangscore; ?></td>
																	<td><?php echo $clangminscore; ?></td>
																	<td><?php echo $adelete; ?></td>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												
											</div>
										<!--end::Orders-->
									</div>
									<!--end::Tab pane-->
									
								</div>
								<!--end::Tab content-->
							<div class="d-flex flex-column gap-7 gap-lg-10">
											<div class="d-flex flex-column flex-xl-row gap-7 gap-lg-10">
												<!--begin::Payment address-->
												<div class="card card-flush py-4 flex-row-fluid overflow-hidden">
													<!--begin::Background-->
													<div class="card-header cursor-pointer">
													<!--end::Background-->
												<!--	<div class="d-flex justify-content-end" data-kt-user-table-toolbar="base">
													
													<!--begin::Add user-->
													<div class="card-title m-0">
															<h3 class="fw-bold m-0 text-uppercase">Aptitude Eligibility</h3>
														</div>
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_user2" class="btn btn-sm btn-primary align-self-end"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
											<!--end::Add user-->
												</div>
													<!--begin::Card header-->
													<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Aptitude</th>

																	<th class="min-w-70px">Score</th>
																	<th class="min-w-70px">Minimum Score</th>
																	<th class="min-w-70px">Operation</th>
																	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															//$_SESSION['frompage']='Inquirydetail';
															$eve11 = "select * from res_courselanguage_detail where coursemid=".$_GET['id']." and clangtype='Aptitude'";
															$re11 = mysqli_query($conn, $eve11);
															while($rt11 = mysqli_fetch_assoc($re11))
															{
																
																$cldid=$rt11['cldid'];
																$clangeligibility=$rt11['clangeligibility'];
																$clangscore=$rt11['clangscore'];
																$clangminscore=$rt11['clangminscore'];
																$adelete = "<a href='courselanguagedelete.php?id=$cldid&coursemid=$coursemid'  class='far fa-trash-alt fa-lg'>  </a>";
												
															
															?>
																<tr>
																	
																	<td><?php echo $clangeligibility; ?></td>
																	
																	
																	
																	<td><?php echo $clangscore; ?></td>
																	<td><?php echo $clangminscore; ?></td>
																	<td><?php echo $adelete; ?></td>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												
											</div>
										<!--end::Orders-->
									</div>
									<!--end::Tab pane-->
									
								</div>
								<!--end::Tab content-->
							<div class="d-flex flex-column gap-7 gap-lg-10">
											<div class="d-flex flex-column flex-xl-row gap-7 gap-lg-10">
												<!--begin::Payment address-->
												<div class="card card-flush py-4 flex-row-fluid overflow-hidden">
													<!--begin::Background-->
													<div class="card-header cursor-pointer">
													<!--end::Background-->
													
													
													<!--begin::Add user-->
													<div class="card-title m-0">
															<h3 class="fw-bold m-0 text-uppercase">Intake Term</h3>
														</div>
														<div class="d-flex justify-content-end" data-kt-user-table-toolbar="base">
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_user1" class="btn btn-sm btn-primary align-self-end"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Intake</a>
											<!--end::Add user-->
											</div>
											</div>
													<!--begin::Card header-->
													<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Intake Month</th>
																	<th class="min-w-100px">Operation</th>

																	</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															//$_SESSION['frompage']='Inquirydetail';
															$eve11 = "select * from res_courseintaketerm_detail where coursemid=".$_GET['id'];
															$re11 = mysqli_query($conn, $eve11);
															while($rt11 = mysqli_fetch_assoc($re11))
															{
																
																$citdid=$rt11['citdid'];
																$ctermmonth=$rt11['ctermmonth'];
																
																$adelete = "<a href='courseintakedelete.php?id=$citdid&coursemid=$coursemid'  class='far fa-trash-alt fa-lg'>  </a>";
												
																	
															?>
																<tr>
																	
																	<td><?php echo $ctermmonth; ?></td>
																	
																	<td><?php echo $adelete; ?></td>
																	
																	
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												
											</div>
										<!--end::Orders-->
									</div>
									<!--end::Tab pane-->
									
								</div>
								<!--end::Tab content-->
								</div>
							<!--end::Order details page-->
						</div>
						<!--end::Container-->
					</div>
					<!--end::Content-->
					<!--begin::Footer-->
					<?php include('footer.php'); ?>
					<!--end::Footer-->
				</div>
				<!--end::Wrapper-->
			</div>
			<!--end::Page-->
		</div>
		<!--end::Root-->
		<!--begin::Drawers-->
		
		<!--begin::Engage modals-->
		<!--end::Engage modals-->
		<!--begin::Modal - Add task-->
							<!--begin::Modal - Inquiry-->
							<div class="modal fade" id="kt_modal_add_user" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Language Eligibility</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form1" class="form" action="courselanguage2.php" method="POST">
														<input type="hidden" name="coursemid" value="<?php echo $coursemid; ?>">
															<!--begin::Scroll-->
														<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Language</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
															<select  class="form-select form-select-solid" data-control="select2"  name="clangeligibility">
															<option value="0"> Select</option>
																	<?php
																	$eve1 = "select * from res_language_master";

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$languagename=$rt1['languagename'];
																				
																				echo "<option value='$languagename'>$languagename</option>";
																				 
																			}
																	?>
															</select>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Score</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="integer" class="form-control form-control-solid" name="clangscore" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													
												</div>
												<!--end::Row-->
																<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Minimum Score</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="integer" class="form-control form-control-solid" name="clangminscore" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->										
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--begin::Modal - Inquiry-->
						<!--begin::Modal - Inquiry-->
							<div class="modal fade" id="kt_modal_add_user2" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Aptitude Eligibility</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form1" class="form" action="courselanguage3.php" method="POST">
														<input type="hidden" name="coursemid" value="<?php echo $coursemid; ?>">
															<!--begin::Scroll-->
														<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Language</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
															<select  class="form-select form-select-solid" data-control="select2"  name="clangeligibility">
															<option value="0"> Select</option>
															<?php
																	$eve1 = "select * from res_aptitude_master";

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$aptitudename=$rt1['aptitudename'];
																				
																				echo "<option value='$aptitudename'>$aptitudename</option>";
																				 
																			}
																	?>
															</select>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Score</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="integer" class="form-control form-control-solid" name="clangscore" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													
												</div>
												<!--end::Row-->
																<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Minimum Score</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="integer" class="form-control form-control-solid" name="clangminscore" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->										
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--begin::Modal - Inquiry-->
						<!--begin::Modal - Inquiry-->
							<div class="modal fade" id="kt_modal_add_user1" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Intake Term</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form1" class="form" action="coursetermintake2.php" method="POST">
														<input type="hidden" name="coursemid" value="<?php echo $coursemid; ?>">
															<!--begin::Scroll-->
														<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Intake Term Month</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
															<select class="form-select form-select-solid" data-control="select2"   name="ctermmonth" >
													<option value="January">January</option>
																	<option value="February">February</option>
																	<option value="March">March</option>
																	<option value="April">April</option>
																	<option value="May">May</option>
																	<option value="June">June</option>
																	<option value="July">July</option>
																	<option value="August">August</option>
																	<option value="September">September</option>
																	<option value="October">October</option>
																	<option value="November">November</option>
																	<option value="December">December</option>
													</select>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													
												</div>
												<!--end::Row-->
																										
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--begin::Modal - Inquiry-->
						
									
		<!--end::Modals-->
		<!--begin::Javascript-->
		<script>var hostUrl = "assets/";</script>
		<!--begin::Global Javascript Bundle(mandatory for all pages)-->
		<script src="assets/plugins/global/plugins.bundle.js"></script>
		<script src="assets/js/scripts.bundle.js"></script>
		<!--end::Global Javascript Bundle-->
		<!--begin::Vendors Javascript(used for this page only)-->
		<script src="assets/plugins/custom/datatables/datatables.bundle.js"></script>
		<!--end::Vendors Javascript-->
		<!--begin::Custom Javascript(used for this page only)-->
		<script src="assets/js/widgets.bundle.js"></script>
		<script src="assets/js/custom/widgets.js"></script>
		<script src="assets/js/custom/apps/chat/chat.js"></script>
		<script src="assets/js/custom/utilities/modals/upgrade-plan.js"></script>
		<script src="assets/js/custom/utilities/modals/users-search.js"></script>
		<!--end::Custom Javascript-->
		
	<?php

if(isset($_SESSION['msg']))
{
	$tt = $_SESSION['msg'];
	echo "<input type=\"hidden\" id=\"mymsg\" value=\"$tt\"/>";
	unset($_SESSION['msg']);
	
	
?>	
								
		<script lang="javascript">

var a = [
    function () {
	

		var mymsg = document.getElementById("mymsg").value;
		toastr.success(mymsg, "Operation Completed")
		
    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];		
					

a[0]();
</script>


		
	
<?php
}

if(isset($_SESSION['msg1']))
{
	$tt1 = $_SESSION['msg1'];
	echo "<input type=\"hidden\" id=\"mymsg1\" value=\"$tt1\"/>";
	unset($_SESSION['msg1']);
	
	
	?>	
								
		<script lang="javascript">

var a = [
    function () {
	

		var mymsg = document.getElementById("mymsg1").value;
		toastr.warning(mymsg, "Error")
		
    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];		
					

a[0]();
</script>
	
<?php

}
?>	
		<!--end::Javascript-->
	</body>
	<!--end::Body-->
</html>