<?php
session_start(); 
		/*User Add Data page */

	include("connect.php");
	if(!isset($_SESSION['tulsilogin']))
	{
		header('Location: index.php');
		return;
	}
	$ftime=0;
	$ttime=23;
	$_SESSION['_token']=bin2hex(openssl_random_pseudo_bytes(16));
	
	
				date_default_timezone_set("Asia/Kolkata");
				$mdate1= date('Y-m-d H:i:s');
				$mdate= date('d-m-Y');
				
				$par1 = $_SESSION['umobile'];
				$ipaddress = "";
	
				if (getenv('HTTP_CLIENT_IP'))
					$ipaddress = getenv('HTTP_CLIENT_IP');
				else if(getenv('HTTP_X_FORWARDED_FOR'))
					$ipaddress = getenv('HTTP_X_FORWARDED_FOR');
				else if(getenv('HTTP_X_FORWARDED'))
					$ipaddress = getenv('HTTP_X_FORWARDED');
				else if(getenv('HTTP_FORWARDED_FOR'))
					$ipaddress = getenv('HTTP_FORWARDED_FOR');
				else if(getenv('HTTP_FORWARDED'))
					$ipaddress = getenv('HTTP_FORWARDED');
				else if(getenv('REMOTE_ADDR'))
					$ipaddress = getenv('REMOTE_ADDR');
				else
					$ipaddress = 'UNKNOWN';
				
				$userserver=$_SERVER['HTTP_USER_AGENT'];
				$eve1 = "insert into res_user_log (lid,mobile,lastupdatedtime,pagename,taskname,ipaddress,useragentdetail) values(NULL,'$par1','$mdate1','User','Add User','$ipaddress','$userserver')";
				$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 Add</title>
		<meta charset="utf-8" />
		<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" />
		<!--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">Add New Program</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 Management</li>
										<li class="breadcrumb-item text-muted">Program Add</li>
									</ul>
									<!--end::Breadcrumb-->
								</div>
								<!--end::Page title=-->
							</div>
							<!--begin::Wrapper-->
							<?php include('header.php'); ?>
							<!--end::Wrapper-->
						</div>
						<!--end::Container-->
					</div>
					<!--end::Header-->
					<!--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::Contacts App- Add New Contact-->
							<div class="row g-7">
							<div class="col-xl-2">
							</div>
								<!--begin::Content-->
								<div class="col-xl-12">
									<!--begin::Contacts-->
									<div class="card card-flush h-lg-100" id="kt_contacts_main">
										<!--begin::Card header-->
										<div class="card-header pt-7" id="kt_chat_contacts_header">
											<!--begin::Card title-->
											<div class="card-title">
												<!--begin::Svg Icon | path: icons/duotune/communication/com005.svg-->
												
												<!--end::Svg Icon-->
												<h2><span class="menu-icon">
													<i class="fas fa-synagogue"></i>
												</span> Add New Program</h2>
											</div>
											<!--end::Card title-->
										</div>
										<!--end::Card header-->
										<!--begin::Card body-->
										<div class="card-body pt-5">
											<!--begin::Form-->
											<form id="kt_ecommerce_settings_general_form" class="form" action="courseadd2.php" method="POST" enctype="multipart/form-data">
											<!--end::Input group-->
											<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-3 rol-cols-md-1 row-cols-lg-3">
													<!--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">Country</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Select Country"></i>
															</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="countrymid" id="rmid">
													<option value="0">Select</option>
													
													<?php 
																			$eve = "select * from res_country_master";

																			$re = mysqli_query($conn, $eve);
																			
																			while($rt = mysqli_fetch_assoc($re))

																			{											
																				
																				$countrymid=$rt['countrymid'];
																				$countryname=$rt['countryname'];
																				
																				echo "<option value='$countrymid'>$countryname</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>Institute Name</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Select a Institute (optional)."></i>
															</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="collegemid" id="collegemid">
													<option value="0">Select Institute</option>
													</select>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Institute Campus</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="campusmid" id="campusmid" required>
										<option value="0">Select Campus</option>
										
									</select>
									</div>
													</div>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
													</div>
													<!--end::Col-->
												</div>
												<!--end::Row-->
												
												<!--begin::Row-->
												<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">Program</span>
														<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Select Course"></i>
													</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="cnmid"  id="cnmid">
														<option value="0">Select</option>
													<?php 
																			$eve = "select * from res_coursename_master";

																			$re = mysqli_query($conn, $eve);
																			
																			while($rt = mysqli_fetch_assoc($re))

																			{											
																				
																				$cnmid=$rt['cnmid'];
																				$coursename=$rt['coursename'];
																				
																				echo "<option value='$cnmid'>$coursename</option>";
																				 
																			}
																			
																	?>
													</select>
													</div>
													</div>
													<!--end::Input-->
												</div>
												<!--end::Input group-->
													<!--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>Program Code</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="text" class="form-control form-control-solid" name="cprogramcode" value="" required>
													</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>Program Internal Code</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="text" class="form-control form-control-solid" name="cinternalcode" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												</div>
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
												<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>Discipline</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="select level of study"></i>
															</label>
															<!--end::Label-->
															
															<div class="w-100">
																<div class="form-floating border rounded">
													<select class="form-select form-select-solid" data-control="select2"   name="cprogramcategory" id="cprogramcategory">
													<option value='0'>Select</option>
													<?php 
																			$eve1 = "select * from res_discipline_master ";

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

																			{											
																				
																				
																				$disciplinename=$rt1['disciplinename'];
																				
																				echo "<option value='$disciplinename'>$disciplinename</option>";
																				 
																			}
																			
																	?>
													</select>
													</div>
													</div>
															<!--end::Input-->
														
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<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>Credentials</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="select level of study"></i>
															</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="losmid" id="losmid">
													<?php 
																			$eve1 = "select * from res_levelofstudy_master ";

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

																			{											
																				
																				$losmid=$rt1['losmid'];
																				$levelofstudy=$rt1['levelofstudy'];
																				
																				echo "<option value='$losmid'>$levelofstudy</option>";
																				 
																			}
																			
																	?>
													</select>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													
												
													<!--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>Program Length <span style="color:red;">(Enter Value in Year)</span></span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="number" class="form-control form-control-solid" name="cprogramlength" value="" required>
															<!--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>Semseter<span style="color:red;">(Enter 0 if program yearly basis)</span></span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="Number" class="form-control form-control-solid" name="programsem" value="0" >
															<!--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>Program language</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="cprogramlanguage" value="" >
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::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>Program Type</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													
													<select class="form-select form-select-solid" data-control="select2"   name="cprogramtype" id="cprogramtype">
													<option value='0'>Select</option>
													<option value='Full Time'>Full Time</option>
													<option value='Part  Time'>Part  Time</option>
													<option value='Online'>Online </option>
													<option value='Hybrid'>Hybrid </option>
													</select>
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--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>Program Delivery Mode</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid" data-control="select2"   name="cprogramdelivery" id="cprogramdelivery">
													<option value='0'>Select</option>
													<option value='On Campus Learning'>On Campus Learning</option>
													<option value='Online Learning'>Online Learning</option>
													</select>
															<!--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>Program URL</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="programurl" value="" required>
															<!--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">
																Monthly living cost
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="costofliving"  value="" /></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>Program Availability</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid" data-control="select2"   name="cprogramavailibilty" id="cprogramavailibilty">
													<option value='0'>Select</option>
													<option value='Open'>Open </option>
													<option value='Close'>Close </option>
													<option value='Waitlisted'>Waitlisted </option>
													</select>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::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>Application URL link</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													<input type="text" class="form-control form-control-solid" name="cappurllink" value="" >
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
												<!--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>Conditional acceptance</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid" data-control="select2"   name="cconditionalacceptence">
													
													<option value='Yes'>Yes </option>
													<option value='No'>No</option>
													
													</select>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::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>Competitiveness</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													
													<select class="form-select form-select-solid" data-control="select2"   name="chighlycompetitive" >
													<option value='0'>Select</option>
													<option value='Easy'>Easy  </option>
													<option value='Medium'>Medium</option>
													<option value='Hard'>Hard </option>
													</select>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--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>Program Description</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Program Description"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<textarea type="text" class="form-control form-control-solid" name="cmdesc" value="" ></textarea>
															<!--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>Percentage</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Course Description"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<textarea type="text" class="form-control form-control-solid" name="cpercentage" value="" ></textarea>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::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>Number of Backlogs accepted</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													
													<select class="form-select form-select-solid" data-control="select2"   name="cbacklogaccepted" id="cbacklogaccepted">
													<?php
																		
																		for($i=0;$i<=100;$i++)
																		{																	
																			echo "<option value='$i'> $i </option>";
																				
																		}?>
													</select>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
												<!--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>Education Gap allowed </span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid" data-control="select2"   name="cedugapaccepted" id="cedugapaccepted">
													<?php
																		
																		for($i=0;$i<=50;$i++)
																		{																	
																			echo "<option value='$i'> $i </option>";
																				
																		}?>
													</select>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													
												
													</div>
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
												<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<table id="items1" border="0" style="width:100%;">
											<tr>
												<th>Language Eligibility  </th>
												<th>Language Score </th>
												<th>Minmum Score </th>
												</tr>
										</table>
										<input type="button"  id="add_item1" value="Add" class="btn btn-primary btn-sm"/>
										
															
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													
													</div>
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
												<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<table id="items2" border="0" style="width:100%;">
											<tr>
												<th>Aptitude Eligibility  </th>
												<th>Aptitude Score </th>
												<th>Minmum Score </th>
												</tr>
										</table>
										<input type="button"  id="add_item2" value="Add" class="btn btn-primary btn-sm"/>
										
															
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
											<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													<!--begin::Col-->
													<div class="col" id="slab">
														<!--begin::Input group-->
														<div class="fv-row mb-7" >
													<table id="items" border="0" style="width:100%;">
											<tr>
												<th>Term Month </th>
												<th>Term Year </th>
												</tr>
										</table>
										<input type="button"  id="add_item" value="Add" class="btn btn-primary btn-sm"/>
										
												</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
												<!--begin::Separator-->
												<div class="separator mb-6"></div>
												<!--end::Separator-->
												<h3>Course Fees Detail</h3>
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::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="">Currency </span>
															</label>
															<!--end::Label-->
															<select class="form-select form-select-solid" data-control="select2"   name="feesin" id="feesin">
													<?php 
																			$eve1 = "select * from res_country_master ";

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

																			{											
																				
																				
																				$countrycurrency=$rt1['countrycurrency'];
																				
																				echo "<option value='$countrycurrency'>$countrycurrency</option>";
																				 
																			}
																			
																	?>
													</select></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">
																Application Fees
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="capplicationfee" value="" /></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
													<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::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="">Deposit  Required </span>
															</label>
															<!--end::Label-->
																<select class="form-select form-select-solid" data-control="select2"   name="cregifees1" id="cregifees1">
													<option value="Yes">Yes</option>
													<option value="No">No</option>
													</select></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">
																Deposit amount 
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="cregifees" id="cregifees" value="" /></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												
												</div>
												
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::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="">Net tuition fees</span>
															</label>
															<!--end::Label-->
																<select class="form-select form-select-solid" data-control="select2"   name="ctutionfeesin" id="ctutionfeesin">
													<option value="Annual">Annual</option>
													<option value="Per Sem">Per Sem</option>
													</select></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">
																Tuition Fees Amount
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="ctutionfees" id="ctutionfees" value="" /></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												
												</div>
												
												
												<!--begin::Row-->
												<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="">Gross Annual Tuition fees</span>
															</label>
															<!--end::Label-->
																<input type="text" class="form-control form-control-solid" name="cgrossfees"  value="" />
																</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">
																Scholarship
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="cscholorship" value="" /></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>Submission Deadline</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="csubmissiondeadline" value="" >
															<!--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>processing Time</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<select class="form-select form-select-solid" data-control="select2"   name="cprocessingtime">
													<option value='0'>Select</option>
													<option value='2-3 weeks'>2-3 weeks</option>
													<option value='4 -6 weeks'>4 -6 weeks</option>
													<option value='More than 6 weeks'>More than 6 weeks</option>
													</select>
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													
												</div>
												
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
												<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>Job Prospects</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													<textarea type="text" class="form-control form-control-solid" name="cjobprospect" value="" ></textarea>
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													
													<!--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>Average annual salary</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="cavgannualsalary" value="" required>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
												<!--end::Row-->
												
												<!--end::Row-->
												
												
												<!--begin::Action buttons-->
												<div class="d-flex justify-content-end">
													<!--begin::Button-->
													<a type="reset" href="course.php"  class="btn btn-light me-3">Cancel</a>
													<!--end::Button-->
													<!--begin::Button-->
													<button type="submit"  class="btn btn-primary">
														<span class="indicator-label">Save</span>
														<span class="indicator-progress">Please wait...
														<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
													</button>
													<!--end::Button-->
												</div>
												<!--end::Action buttons-->
											</form>
											<!--end::Form-->
										</div>
										<!--end::Card body-->
									</div>
									<!--end::Contacts-->
								</div>
								<!--end::Content-->
							</div>
							<!--end::Contacts App- Add New Contact-->
						</div>
						<!--end::Container-->
					</div>
					<!--end::Content-->
					</div>
				<!--end::Wrapper-->
			</div>
			<!--end::Page-->
		</div>
		<!--end::Root-->
		
		<!--end::Main-->
		
		<!--begin::Engage modals-->
		<!--end::Engage modals-->
		<!--begin::Scrolltop-->
		<div id="kt_scrolltop" class="scrolltop" data-kt-scrolltop="true">
			<!--begin::Svg Icon | path: icons/duotune/arrows/arr066.svg-->
			<span class="svg-icon">
				<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
					<rect opacity="0.5" x="13" y="6" width="13" height="2" rx="1" transform="rotate(90 13 6)" fill="currentColor" />
					<path d="M12.5657 8.56569L16.75 12.75C17.1642 13.1642 17.8358 13.1642 18.25 12.75C18.6642 12.3358 18.6642 11.6642 18.25 11.25L12.7071 5.70711C12.3166 5.31658 11.6834 5.31658 11.2929 5.70711L5.75 11.25C5.33579 11.6642 5.33579 12.3358 5.75 12.75C6.16421 13.1642 6.83579 13.1642 7.25 12.75L11.4343 8.56569C11.7467 8.25327 12.2533 8.25327 12.5657 8.56569Z" fill="currentColor" />
				</svg>
			</span>
			<!--end::Svg Icon-->
		</div>
		<!--end::Scrolltop-->
		
		<!--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/custom/apps/contacts/edit-contact.js"></script>
		<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-->
		
		<script type="text/javascript">
		$(document).ready(function(){
$('#rmid').on('change',function(){
			
				var rmid = $('#rmid').val();
			
				if(rmid){
						
					$.ajax({
						
						type:'POST',
						url:'salesdata.php',
						data:'rmid='+rmid,
						success:function(html){
							$('#collegemid').html(html);
						}
					}); 
				}else{
					$('#collegemid').html('<option value="0">No Data Found</option>'); 
				}
			
		});
		});
		</script>
		<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#rmid').val() == '0')
			{
				alert('Select Country');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#cnmid').val() == '0')
			{
				alert('Select Course');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#campusmid').val() == '0')
			{
				alert('Select Campus');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#collegemid').val() == '0')
			{
				alert('Select College');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#cprogramcategory').val() == '0')
			{
				alert('Select Discipline');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#losmid').val() == '0')
			{
				alert('Select Credentials');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#cprogramtype').val() == '0')
			{
				alert('Select Program Type');
				e.preventDefault();
			}

		});
	
	</script>
	
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#cprogramdelivery').val() == '0')
			{
				alert('Select Program Delivery Mode');
				e.preventDefault();
			}

		});
	
	</script>
	
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#cprogramavailibilty').val() == '0')
			{
				alert('Select Program Availability');
				e.preventDefault();
			}

		});
	
	</script>
	
	<script type="text/javascript">
	
		$('#kt_ecommerce_settings_general_form').submit(function(e)
		{
			if($('#feesin').val() == '0')
			{
				alert('Select Currency');
				e.preventDefault();
			}

		});
	
	</script>
	
	<script type="text/javascript">
			$(document).ready(function(){
				$('#collegemid').on('change',function(){
					var collegemid = $(this).val();
					if(collegemid){
						$.ajax({
							type:'POST',
							url:'collegecampus.php',
							data:'collegemid='+collegemid,
							success:function(html){
								$('#campusmid').html(html);
							}
						});
					}else{
						$('#campusmid').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script>
$(document).ready(function(){

		$("#items").append(" <tr><td valign=\"top\">  <div ><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> </td><td> <select class=\"form-select form-select-solid\" data-control=\"select2\"   name=\"ctermyear[]\" ><?php for($i=2020;$i<=2040;$i++){echo "<option value=\'$i\'>$i</option>";}?></select></td></tr>.");

		$('#mycounter').val( parseInt($('#mycounter').val()) + 1);
});
</script>
<script>
$(document).ready(function(){
	$("#add_item").click(function(){

		$("#items").append(" <tr><td valign=\"top\">  <div ><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> </td><td> <select class=\"form-select form-select-solid\" data-control=\"select2\"   name=\"ctermyear[]\" ><?php for($i=2020;$i<=2040;$i++){echo "<option value=\'$i\'>$i</option>";}?></select></td></tr>.");

		$('#mycounter').val( parseInt($('#mycounter').val()) + 1);
	});
});
</script>
<script>
<?php
	$eve_category11 = "select * from res_language_master";
				$re_category11 = mysqli_query($conn, $eve_category11);
?>
$(document).ready(function(){

		$("#items1").append(" <tr><td valign=\"top\">  <div ><select  class=\"form-select form-select-solid\" data-control=\"select2\" id=\"pname" + $('#mycounter').val()  + "\" name=\"clangeligibility[]\"><option>Select</option><?php	while($rt_category11 = mysqli_fetch_assoc($re_category11)){	echo"<option value=\'$rt_category11[languagename]\'>$rt_category11[languagename] </option>";}		?>	</select> </div> </td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangscore" + $('#mycounter').val()  + "\" name=\"clangscore[]\"></td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangminscore" + $('#mycounter').val()  + "\" name=\"clangminscore[]\"></td></tr>.");

		$('#mycounter').val( parseInt($('#mycounter').val()) + 1);
});
</script>
<?php
	$eve_category11 = "select * from res_language_master";
				$re_category11 = mysqli_query($conn, $eve_category11);
?>
<script>
$(document).ready(function(){
	$("#add_item1").click(function(){

		$("#items1").append(" <tr><td valign=\"top\">  <div ><select  class=\"form-select form-select-solid\" data-control=\"select2\" id=\"pname" + $('#mycounter').val()  + "\" name=\"clangeligibility[]\"><option>Select</option><?php	while($rt_category11 = mysqli_fetch_assoc($re_category11)){	echo"<option value=\'$rt_category11[languagename]\'>$rt_category11[languagename] </option>";}		?>	</select> </div> </td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangscore" + $('#mycounter').val()  + "\" name=\"clangscore[]\"></td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangminscore" + $('#mycounter').val()  + "\" name=\"clangminscore[]\"></td></tr>.");

		$('#mycounter').val( parseInt($('#mycounter').val()) + 1);
	});
});
</script>
<script>
<?php
	$eve_category11 = "select * from res_aptitude_master";
				$re_category11 = mysqli_query($conn, $eve_category11);
?>
$(document).ready(function(){

		$("#items2").append(" <tr><td valign=\"top\">  <div ><select  class=\"form-select form-select-solid\" data-control=\"select2\" id=\"pname" + $('#mycounter').val()  + "\" name=\"clangeligibility1[]\"><option>Select</option><?php	while($rt_category11 = mysqli_fetch_assoc($re_category11)){	echo"<option value=\'$rt_category11[aptitudename]\'>$rt_category11[aptitudename] </option>";}		?>	</select> </div> </td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangscore" + $('#mycounter').val()  + "\" name=\"clangscore1[]\"></td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangminscore" + $('#mycounter').val()  + "\" name=\"clangminscore1[]\"></td></tr>.");

		$('#mycounter').val( parseInt($('#mycounter').val()) + 1);
});
</script>
<?php
	$eve_category11 = "select * from res_aptitude_master";
				$re_category11 = mysqli_query($conn, $eve_category11);
?>
<script>
$(document).ready(function(){
	$("#add_item2").click(function(){

		$("#items2").append(" <tr><td valign=\"top\">  <div ><select  class=\"form-select form-select-solid\" data-control=\"select2\" id=\"pname" + $('#mycounter').val()  + "\" name=\"clangeligibility1[]\"><option>Select</option><?php	while($rt_category11 = mysqli_fetch_assoc($re_category11)){	echo"<option value=\'$rt_category11[aptitudename]\'>$rt_category11[aptitudename] </option>";}		?>	</select> </div> </td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangscore" + $('#mycounter').val()  + "\" name=\"clangscore1[]\"></td><td> <input type=\"text\" class=\"form-control form-control-solid\" id=\"clangminscore" + $('#mycounter').val()  + "\" name=\"clangminscore1[]\"></td></tr>.");

		$('#mycounter').val( parseInt($('#mycounter').val()) + 1);
	});
});
</script>
<script>
		
			
				$('#kt_ecommerce_settings_general_form').submit(function(e)
				{
					
       
        
        var cprogramcode = $('#cprogramcode').val();

        $.ajax({
			
            type: 'POST',
            url: 'check_programcode.php',
            data:'cprogramcode='+cprogramcode,
            success: function(response) {
                if (response === 'exists') {
                    alert('This Program Code already exists in the database.');
                } else {
                    // Submit the form if the email is unique
                    $('#kt_ecommerce_settings_general_form')[0].submit();
                }
            }
        });
    });

		</script>

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