403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/alliancealliance/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/alliancealliance/enrollment.php
<?php
	require_once('webadmin/basic_info.php');

	if(empty($_GET["cid"]) || empty($_GET["id"])){
		echo "<script>alert('Cannot find the relevant data.'); location.href='services_landing_page.php?id=2';</script>";
		exit;
	}else{

		$course = get_course((int)$_GET["id"]);

		if ($course["valid_apply"] == 1) {
			if(!check_course_valid_apply((int)$_GET["id"])){
				echo "<script>alert('This course is closed.'); location.href='index.php';</script>";
				exit;
			}
		} else {
			echo "<script>alert('This course is ".$course["stop_applying_text_".$langcode].".'); location.href='index.php';</script>";
			exit;
		}
	}

	$sql              = "select * from static_page where id = ? and status = ? and deleted = ?";
	$parameters       = array(3, 1, 0);
	$static_page_info = bind_pdo($sql, $parameters, "selectone");

	$course_category_info = get_valid_course_category();

	$sql         = "select * from course where status = ? and deleted = ? and valid_apply = ?";
	$parameters  = array(1, 0, 1);
	$course_info = bind_pdo($sql, $parameters, "selectall");

	$sql          = "select * from ra_code where deleted = ? order by code ASC";
	$parameters   = array(0);
	$ra_code_info = bind_pdo($sql, $parameters, "selectall");

	$title_info                   = get_master_type_code("TITLE");
	$exp_air_cargo_info           = get_master_type_code("EXPERIENCE_IN_AIR_CARGO_INDUSTRY");
	$education_level_info         = get_master_type_code("EDUCATION_LEVEL");
	$existing_airfreight_info     = get_master_type_code("EXISTING_AIRFREIGHT_COMPLIANCE_CLIENT_OD_ALLIANCE");
	$renew_cert_info              = get_master_type_code("RENEWING_CERTIFICATE");
	$have_enroll_dg_training_info = get_master_type_code("HAVE_ENROLLED_DG_TRAINING");
?>

<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
	<?php require_once("html_head.php") ?>
	<style>
		.ui-autocomplete{
			color: #ffffff !important;
			background: #10218B !important;
			border: 1px solid #10218B !important;
		}

		.ui-autocomplete:hover{
			color: #ffffff !important;
			background: #10218B !important;
			border: 1px solid #10218B !important;
		}
	</style>

	<script type="text/javascript" src="js/jquery-ui-1.11.4/jquery-ui.min.js"></script>
	<link rel="stylesheet" href="js/jquery-ui-1.11.4/jquery-ui.min.css" type="text/css"/>

	<script type="text/javascript" src="js/jquery.chained.js"></script>

	<script src='https://www.google.com/recaptcha/api.js?hl=en'></script>

	<script type="text/javascript">

		function ajax_ra_info(ra_code) {
			var xmlhttp;

			if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			}
			else {// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function () {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					//document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
					//console.log(xmlhttp.responseText);
					var result = $.trim(xmlhttp.responseText);

					if (result != "0") {
						var obj = JSON.parse(result);
						$("input[name='company_name']").val(obj.company_name_en);
						//$("input[name='company_address']").val(obj.company_address_en);
						//console.log(result);
					}
				}
			}
			xmlhttp.open("POST", "_ajax.php?for=ra_info", true);
			xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xmlhttp.send("ra_code=" + ra_code);
		}

		$(function () {
			$("#course_id").chained("#course_category_id");

			var availableTags = [
				<?php
					foreach($ra_code_info as $ra_code){
						echo "'".$ra_code["code"]."',";
					}
				?>
			];

			$("input[name='ra_code']").autocomplete({
				source: availableTags
				//select: function( event, ui ) {}
			});

			$("input[name='ra_code']").on("autocompleteselect", function (event, ui) {
				ajax_ra_info(ui["item"]["value"]);
			});
		});

	</script>

	<script type="text/javascript">
		$(function () {
			$("#verify_code").click();
		})
	</script>

</head>

<body>

<?php require_once("google_analysis.php"); ?>

<?php require_once("html_header.php") ?>

<section id="content" class="enrollment_form">
	<form action="enrollment_post.php" method="post" name="enrollment" id="enrollment" enctype="multipart/form-data">

		<?php if(!empty($static_page_info["banner_".$langcode])){ ?>
			<div class="banner">
				<img src="images/banner/<?=$static_page_info["banner_".$langcode]?>"/>

				<div style="position: relative">
					<img class="banner_overlay" src="images/slide_bottom_overlay.png"/>
				</div>

			</div>
		<?php } ?>

		<div class="container">
			<div style="padding-top: 20px;">
				<div style="padding-bottom: 20px; border-bottom: 1px solid #d4d4d4;">
					<div class="inline_block vt" style="width: 75%; padding-right: 40px;">
						<div class="head_title">
							<?= $static_page_info["title_" . $langcode]; ?>
						</div>

						<div style="padding-top: 30px; text-align: justify;">
							<?= $static_page_info["desc_" . $langcode]; ?>
						</div>
					</div>
				</div>

				<form action="enrollment_post.php" method="post" name="enrollment" id="enrollment" enctype="multipart/form-data">
					<div style="margin-top: 20px;">
						<p class="form_head nopadding_nomargin">INFORMATION OF COURSE</p>

						<table>
							<tr>
								<td colspan="3">
									<p class="txt required">Course Name:</p>

									<select name="course_category_id" id="course_category_id" required="required">
										<?php
											foreach ($course_category_info as $course_category) {
												if($course_category["id"] == (int)$_GET["cid"])
													$selected = "selected";
												else
													$selected = "";

												echo '<option value="' . $course_category["id"] . '" '.$selected.'>' . $course_category["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>
							</tr>

							<tr>
								<td colspan="3">
									<p class="txt required" style="margin-top: 15px;">Course Code:</p>

									<select name="course_id" id="course_id" required="required">
										<option value="">--- Please select ---</option>
										<?php
											foreach ($course_info as $course) {
												if($course["id"] == (int)$_GET["id"])
													$selected = "selected";
												else
													$selected = "";

												echo '<option value="' . $course["id"] . '" class="' . $course["course_category_id"] . '" '.$selected.'>' . $course["code"] . '</option>';
											}
										?>
									</select>
								</td>
							</tr>

							<tr>
								<td colspan="3"><p class="form_head nopadding_nomargin" style="margin-top: 20px;">
										INFORMATION OF PARTICIPANT</p></td>
							</tr>

							<tr>
								<td>
									<p class="txt required">Title:</p>

									<select name="title" class="field_width" required="required">
										<option value="">--- Please Select ---</option>
										<?php
											foreach ($title_info as $title) {
												echo '<option value="' . $title["name_" . $langcode] . '" >' . $title["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt required">Name of Participant: (same as the one shown on your HKID)</p>

									<input type="text" name="participant_name" class="field_width" required="required"/>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt required">HKID/Passport No.:</p>

									<input type="text" name="identity_id" class="field_width" required="required"/>
								</td>
							</tr>

							<tr>
								<td>
									<p class="txt">Company RA Code (if any):</p>

									<input type="text" name="ra_code" class="field_width"/>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt required">Name of Company:</p>

									<input type="text" name="company_name" class="field_width" required="required"/>
								</td>

								<td style="padding-left: 20px;">
								</td>
							</tr>

							<tr>
								<td colspan="3">
									<p class="txt required">Company Address: </p>

									<input type="text" name="company_address" class="field_width" style="width: 612px;" required="required"/>
								</td>

							</tr>

							<tr>
								<td>
									<p class="txt required">Position:</p>

									<input type="text" name="position" class="field_width" required="required"/>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt">IATA Code (if any):</p>

									<input type="text" name="iata_code" class="field_width"/>
								</td>

								<td style="padding-left: 20px;">
								</td>
							</tr>

							<tr>
								<td>
									<p class="txt required">Tel.:</p>

									<input type="text" name="tel" class="field_width" required="required"/>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt required">Mobile:</p>

									<input type="text" name="mobile" class="field_width"/>
								</td>

								<td style="padding-left: 20px;">
								</td>
							</tr>

							<tr>
								<td>
									<p class="txt required">E-mail:</p>

									<input type="text" name="email" class="field_width" required="required"/>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt">CC E-mail:</p>

									<input type="text" name="cc_email" class="field_width" />
								</td>

								<td style="padding-left: 20px;">
									<p class="txt">Fax:</p>

									<input type="text" name="fax" class="field_width"/>
								</td>
							</tr>

							<tr>
								<td colspan="3">
									<p class="txt required">Experience in air cargo industry:</p>

									<select name="exp_air_cargo" class="field_width" required="required">
										<option value="">--- Please Select ---</option>
										<?php
											foreach ($exp_air_cargo_info as $exp_air_cargo) {
												echo '<option value="' . $exp_air_cargo["name_" . $langcode] . '" >' . $exp_air_cargo["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>
							</tr>

							<tr>
								<td colspan="3"><p class="form_head nopadding_nomargin" style="margin-top: 30px;">OTHERS
										INFORMATION</p></td>
							</tr>

							<tr>
								<td>
									<p class="txt required">Education Level:</p>

									<select name="education_level" class="field_width" required="required">
										<option value="">--- Please Select ---</option>
										<?php
											foreach ($education_level_info as $education_level) {
												echo '<option value="' . $education_level["name_" . $langcode] . '" >' . $education_level["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>

								<td style="padding-left: 20px;">
									<p class="txt">Existing airfreight compliance client of Alliance:</p>

									<select name="existing_airfreight" class="field_width">
										<option value="">--- Please Select ---</option>
										<?php
											foreach ($existing_airfreight_info as $existing_airfreight) {
												echo '<option value="' . $existing_airfreight["name_" . $langcode] . '" >' . $existing_airfreight["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>

								<td style="padding-left: 20px;">

								</td>
							</tr>

							<tr>
								<td style="padding-top: 10px;">
									<p class="txt">Are you renewing the certificate?</p>

									<select name="renew_cert" class="field_width">
										<option value="">--- Please Select ---</option>
										<?php
											foreach ($renew_cert_info as $renew_cert) {
												echo '<option value="' . $renew_cert["name_" . $langcode] . '" >' . $renew_cert["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>

								<td style="padding-left: 20px;padding-top: 10px;">
									<p class="txt">Date of obtain previous certificate:</p>

									<input type="text" name="date_obtain_pre_cert" class="field_width"/> (YYYY-MM-DD)
								</td>

								<td style="padding-left: 20px;">

								</td>
							</tr>

							<tr>
								<td style="padding-top: 10px;">
									<p class="txt">Institution of issuing:</p>

									<input type="text" name="institution_issuing" class="field_width"/>

								</td>

								<td style="padding-left: 20px;padding-top: 10px;">
									<p class="txt">Have you ever enroll the DG Training?</p>

									<select name="have_enroll_dg_training" class="field_width">
										<option value="">--- Please Select ---</option>
										<?php
											foreach ($have_enroll_dg_training_info as $have_enroll_dg_training) {
												echo '<option value="' . $have_enroll_dg_training["name_" . $langcode] . '" >' . $have_enroll_dg_training["name_" . $langcode] . '</option>';
											}
										?>
									</select>
								</td>

								<td style="padding-left: 20px; ">

								</td>
							</tr>

							<tr>
								<td colspan="3" style="padding-top: 10px;">
									<p class="txt">Verification:</p>

									<!--<div class="g-recaptcha" data-theme="light" data-sitekey="<?/*=$google_recaptcha_site_key*/?>"></div>-->
									<img src="js/verification_code/captcha/vCodeImage.php?_=1" alt="按圖產生新驗證碼"
									     id="verify_code" name="verify_code" width="150" height="60" border="0"
									     onclick="document.getElementById('verify_code').src='js/verification_code/captcha/vCodeImage.php?' + Math.random();" style="FILTER: wave(add=0,freq=3,lightstrength=50,phase=0,strength=3);cursor:pointer;padding-top: 5px;"/>

									<span style="font-size: 12px; color: #808080;">按圖產生新驗證碼</span>
									<br>
									<input type="text" name="verification" id="verification" class="field_width"/>
								</td>
							</tr>

							<tr>
								<td colspan="3" style="padding-top: 50px;">
									<div class="button" onclick="$('#enrollment').submit();">
										Submit
									</div>
								</td>
							</tr>

							<tr>
								<td colspan="3" style="padding-top: 10px;">
									<span style="color: red">* Required Fields</span>
								</td>
							</tr>
						</table>

					</div>
				</form>

				<div style="padding-top: 50px;">
					For more information, please contact us by filling the
					<a href="contact_us.php" style="text-decoration: underline; color: #10218B">Enquiry Form</a>
				</div>
			</div>

		</div>
	</form>
</section>

<?php require_once("html_footer.php"); ?>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit