<?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 Edit</title>
		<meta charset="utf-8" />
		<meta name="description" content="The most advanced Bootstrap Admin Theme on Themeforest trusted by 100,000 beginners and professionals. Multi-demo, Dark Mode, RTL support and complete React, Angular, Vue, Asp.Net Core, Rails, Spring, Blazor, Django, Flask & Laravel versions. Grab your copy now and get life-time updates for free." />
		<meta name="keywords" content="metronic, bootstrap, bootstrap 5, angular, VueJs, React, Asp.Net Core, Rails, Spring, Blazor, Django, Flask & Laravel starter kits, admin themes, web design, figma, web development, free templates, free admin themes, bootstrap theme, bootstrap template, bootstrap dashboard, bootstrap dak mode, bootstrap button, bootstrap datepicker, bootstrap timepicker, fullcalendar, datatables, flaticon" />
		<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" />
		<!--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">Edit  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 Edit</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> Edit  Program</h2>
											</div>
											<!--end::Card title-->
										</div>
										<!--end::Card header-->
										<!--begin::Card body-->
										<div class="card-body pt-5">
											<!--begin::Form-->
											<?php

	include("connect.php");
	
	$coursemid=(int)mysqli_real_escape_string($conn,$_GET['id']);
	
	$eve = "select * from res_course_master where coursemid=$coursemid";
	
	$re = mysqli_query($conn, $eve);
	
	
				date_default_timezone_set("Asia/Kolkata");
				$mdate1= date('Y-m-d H:i:s');
				
				$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','Product','Edit Product','$ipaddress','$userserver')";
				$re1 = mysqli_query($conn, $eve1);
				while($rt = mysqli_fetch_assoc($re))
										
										{
											
											$levelofstudy=$rt['levelofstudy'];
											$cmduration=$rt['cmduration'];
											$cmfees=$rt['cmfees'];
											$cmeligibility=$rt['cmeligibility'];
											$cmfacility=$rt['cmfacility'];
											$cmdocument=$rt['cmdocument'];
											$cmremarks=$rt['cmremarks'];
											$cmother=$rt['cmother'];
											$cmpbroucher=$rt['cmpbroucher'];
											$cmcoursebroucher=$rt['cmcoursebroucher'];
											$cmdesc=$rt['cmdesc'];
											$cnmid1=$rt['cnmid'];
											$collegemid=$rt['collegemid'];
											$coursemid=$rt['coursemid'];
											 $eve21 = "select * from res_country_master where countrymid in (select countrymid from res_college_master where collegemid=$collegemid)";
											$re21= mysqli_query($conn, $eve21);											
											while($rt21 = mysqli_fetch_assoc($re21))
											{
												 $countrymid21=$rt21['countrymid'];
											}
	
?>
											<form id="kt_ecommerce_settings_general_form" class="form" action="courseedit2.php" method="POST">
											<input type="hidden" name="coursemid" value="<?php echo $coursemid; ?>">
													<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 
																			$eve6 = "select * from res_country_master";

																			$re6 = mysqli_query($conn, $eve6);
																			
																			while($rt6 = mysqli_fetch_assoc($re6))

																			{											
																				
																				$countrymid=$rt6['countrymid'];
																				$countryname=$rt6['countryname'];
																				if($rt['countrymid'] == $countrymid)
																				{
																				echo "<option value='$countrymid' selected>$countryname</option>";
																				}else{
																					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>
																
															</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>
													<?php 
																			$eve6 = "select * from res_college_master";

																			$re6 = mysqli_query($conn, $eve6);
																			
																			while($rt6 = mysqli_fetch_assoc($re6))

																			{											
																				
																				$collegemid=$rt6['collegemid'];
																				$cmname=$rt6['cmname'];
																				if($rt['collegemid'] == $collegemid)
																				{
																				echo "<option value='$collegemid' selected>$cmname</option>";
																				}else{
																					echo "<option value='$collegemid'>$cmname</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>
										<?php 
																			$eve6 = "select * from res_collegecampus_master";

																			$re6 = mysqli_query($conn, $eve6);
																			
																			while($rt6 = mysqli_fetch_assoc($re6))

																			{											
																				
																				$ccampusmid=$rt6['ccampusmid'];
																				$campusname=$rt6['campusname'];
																				if($rt['campusmid'] == $ccampusmid)
																				{
																				echo "<option value='$ccampusmid' selected>$campusname</option>";
																				}else{
																					echo "<option value='$ccampusmid'>$campusname</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 
																			$eve2 = "select * from res_coursename_master";

																			$re2 = mysqli_query($conn, $eve2);
																			
																			while($rt2 = mysqli_fetch_assoc($re2))

																			{											
																				
																				$cnmid=$rt2['cnmid'];
																				$coursename=$rt2['coursename'];
																				if($rt['cnmid'] == $cnmid)
																				{
																				echo "<option value='$cnmid' selected>$coursename</option>";
																				}else{
																					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="<?php echo $rt['cprogramcode']; ?>" 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="<?php echo $rt['cinternalcode']; ?>" 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'];
																				
																				if($rt['cprogramcategory'] == $disciplinename)
																				{
																				
																				echo "<option value='$disciplinename' selected>$disciplinename</option>";
																				}else{
																					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>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Course Description"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="cprogramlength" value="<?php echo $rt['cprogramlength']; ?>" 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>Program language</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="cprogramlanguage" value="<?php echo $rt['cprogramlanguage']; ?>" >
															<!--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' <?php if($rt['cprogramtype'] == 'Full Time'){ echo 'selected';} ?>>Full Time</option>
													<option value='Part  Time' <?php if($rt['cprogramtype'] == 'Part  Time'){ echo 'selected';} ?>>Part  Time</option>
													<option value='Online' <?php if($rt['cprogramtype'] == 'Online'){ echo 'selected';} ?>>Online </option>
													<option value='Hybrid' <?php if($rt['cprogramtype'] == 'Hybrid'){ echo 'selected';} ?>>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' <?php if($rt['cprogramdelivery'] == 'On Campus Learning'){ echo 'selected';} ?>>On Campus Learning</option>
													<option value='Online Learning' <?php if($rt['cprogramdelivery'] == 'Online Learning'){ echo 'selected';} ?>>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="<?php echo $rt['programurl']; ?>" 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="<?php echo $rt['costofliving']; ?>" /></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' <?php if($rt['cprogramavailibilty'] == 'Open'){ echo 'selected';} ?>>Open </option>
													<option value='Close' <?php if($rt['cprogramavailibilty'] == 'Close'){ echo 'selected';} ?>>Close </option>
													<option value='Waitlisted' <?php if($rt['cprogramavailibilty'] == 'Waitlisted'){ echo 'selected';} ?>>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="<?php echo $rt['cappurllink']; ?>" >
													
															<!--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' <?php if($rt['cconditionalacceptence'] == 'Yes'){ echo 'selected';} ?>>Yes </option>
													<option value='No' <?php if($rt['cconditionalacceptence'] == 'No'){ echo 'selected';} ?>>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'<?php if($rt['chighlycompetitive'] == 'Easy'){ echo 'selected';} ?>>Easy  </option>
													<option value='Medium' <?php if($rt['chighlycompetitive'] == 'Medium'){ echo 'selected';} ?>>Medium</option>
													<option value='Hard' <?php if($rt['chighlycompetitive'] == 'Hard'){ echo 'selected';} ?>>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 Progran Description"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<textarea type="text" class="form-control form-control-solid" name="cmdesc" value="<?php echo $rt['cmdesc']; ?>" ></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="" ><?php echo $rt['cpercentage']; ?></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++)
																		{															if($rt['cbacklogaccepted'] == $i)
																			{																			
																			echo "<option value='$i' selected> $i </option>";
																			}else{
																				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++)
																		{															if($rt['cedugapaccepted'] == $i)
																			{		
																			echo "<option value='$i' selected> $i </option>";
																			}else{
																				echo "<option value='$i'> $i </option>";
																			}
																				
																		}?>
													</select>
															<!--end::Input-->
														</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'];
																				
																				if($rt['feesin'] == $countrycurrency)
																				{
																				
																				echo "<option value='$countrycurrency' selected>$countrycurrency</option>";
																				}else{
																					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="<?php echo $rt['capplicationfee']; ?>" /></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" <?php if($rt['cregifees1'] == 'Yes'){ echo 'selected';} ?>>Yes</option>
													<option value="No" <?php if($rt['cregifees1'] == 'Yes'){ echo 'selected';} ?>>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="<?php echo $rt['cregifees']; ?>" /></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" <?php if($rt['ctutionfeesin'] == 'Annual'){ echo 'selected';} ?>>Annual</option>
													<option value="Per Sem" <?php if($rt['ctutionfeesin'] == 'Per Sem'){ echo 'selected';} ?>>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="<?php echo $rt['ctutionfees']; ?>" /></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="<?php echo $rt['cgrossfees']; ?>" />
																</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="<?php echo $rt['cscholorship']; ?>" /></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="<?php echo $rt['csubmissiondeadline']; ?>" >
															<!--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' <?php if($rt['cprocessingtime'] == '2-3 weeks'){ echo 'selected';} ?>>2-3 weeks</option>
													<option value='4 -6 weeks' <?php if($rt['cprocessingtime'] == '4 -6 weeks'){ echo 'selected';} ?>>4 -6 weeks</option>
													<option value='More than 6 weeks' <?php if($rt['cprocessingtime'] == 'More than 6 weeks'){ echo 'selected';} ?>>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="" ><?php echo $rt['cjobprospect']; ?></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="<?php echo $rt['cavgannualsalary']; ?>" required>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
												<!--end::Row-->
												
												
												<!--begin::Separator-->
												<div class="separator mb-6"></div>
												<!--end::Separator-->
												<!--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>
										<?php } ?>
											<!--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">
		$(document).ready(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 type="text/javascript">
			$(document).ready(function(){
				
					var collegemid = $('#collegemid').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>
		<!--end::Javascript-->
	</body>
	<!--end::Body-->
</html>