📁 File Manager
Editing:
/home/wvl7mof7402e/public_html/int/application.php
<?php /* ========================================================== INTERNATIONAL ADVENTURES COMPLETE APPLICATION PAGE File: application.php Database: bhawani_db ========================================================== */ if (session_status() === PHP_SESSION_NONE) { session_start(); } require_once __DIR__ . '/admin/includes/db.php'; if (!isset($con) || !($con instanceof mysqli)) { die('Database connection error. Check admin/includes/db.php'); } mysqli_set_charset($con, 'utf8mb4'); if (!function_exists('e')) { function e($value) { return htmlspecialchars((string)$value, ENT_QUOTES, 'UTF-8'); } } if (empty($_SESSION['application_csrf'])) { $_SESSION['application_csrf'] = bin2hex(random_bytes(32)); } $csrf = $_SESSION['application_csrf']; $success = ''; $error = ''; /* ========================================================== FILE UPLOAD ========================================================== */ function uploadApplicationFile($field, $folder) { if ( !isset($_FILES[$field]) || $_FILES[$field]['error'] === UPLOAD_ERR_NO_FILE ) { return null; } if ($_FILES[$field]['error'] !== UPLOAD_ERR_OK) { throw new RuntimeException("Upload failed for " . $field); } if ($_FILES[$field]['size'] > 3 * 1024 * 1024) { throw new RuntimeException("Each image must be under 3 MB."); } $tmp = $_FILES[$field]['tmp_name']; $mime = mime_content_type($tmp); $allowed = [ 'image/jpeg' => 'jpg', 'image/png' => 'png', 'image/webp' => 'webp' ]; if (!isset($allowed[$mime])) { throw new RuntimeException("Only JPG, PNG and WEBP images are allowed."); } $absoluteFolder = __DIR__ . '/' . $folder; if (!is_dir($absoluteFolder)) { if (!mkdir($absoluteFolder, 0755, true)) { throw new RuntimeException("Upload folder could not be created."); } } $fileName = bin2hex(random_bytes(20)) . '.' . $allowed[$mime]; if (!move_uploaded_file($tmp, $absoluteFolder . '/' . $fileName)) { throw new RuntimeException("Unable to save uploaded image."); } return $folder . '/' . $fileName; } /* ========================================================== DYNAMIC MYSQL BIND ========================================================== */ function bindDynamic($stmt, $types, $values) { $refs = []; foreach ($values as $key => &$value) { $refs[$key] = &$value; } array_unshift($refs, $types); return call_user_func_array([$stmt, 'bind_param'], $refs); } /* ========================================================== FORM SUBMISSION ========================================================== */ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $uploadedFiles = []; try { if ( !hash_equals( $_SESSION['application_csrf'], $_POST['csrf_token'] ?? '' ) ) { throw new RuntimeException("Invalid security token. Refresh the page."); } $post = $_POST; $required = [ 'post_applied_for', 'surname', 'given_name', 'gender', 'mobile_number' ]; foreach ($required as $field) { if (trim($post[$field] ?? '') === '') { throw new RuntimeException("Please fill all required fields."); } } /* DATE VALIDATION */ $dateFields = [ 'date_of_birth', 'date_of_issue', 'date_of_expiry', 'old_passport_issue_date', 'authorization_date' ]; foreach ($dateFields as $field) { $value = trim($post[$field] ?? ''); if ($value !== '') { $date = DateTime::createFromFormat('!Y-m-d', $value); if (!$date || $date->format('Y-m-d') !== $value) { throw new RuntimeException("Invalid date in " . $field); } } } /* ENUM VALIDATION */ $gender = $post['gender'] ?? ''; if (!in_array($gender, ['Male', 'Female'], true)) { throw new RuntimeException("Please select Male or Female."); } $passportType = $post['passport_type'] ?? ''; if ( $passportType !== '' && !in_array($passportType, ['ECR', 'ECNR'], true) ) { throw new RuntimeException("Invalid passport type."); } $category = $post['category'] ?? ''; if ( $category !== '' && !in_array($category, ['Worker', 'Staff'], true) ) { throw new RuntimeException("Invalid category."); } $exDss = $post['ex_dss'] ?? ''; if ( $exDss !== '' && !in_array($exDss, ['Yes', 'No'], true) ) { throw new RuntimeException("Invalid EX DSS selection."); } /* FILE UPLOADS */ $signature = uploadApplicationFile('signature', 'uploads/applications'); if ($signature) $uploadedFiles[] = $signature; $thumbLeft = uploadApplicationFile('thumb_left', 'uploads/applications'); if ($thumbLeft) $uploadedFiles[] = $thumbLeft; $thumbRight = uploadApplicationFile('thumb_right', 'uploads/applications'); if ($thumbRight) $uploadedFiles[] = $thumbRight; /* APPLICATION NUMBER */ $applicationNumber = 'IA' . date('Ymd') . strtoupper(bin2hex(random_bytes(4))); /* MAIN APPLICATION DATA */ $fields = [ 'application_no' => $applicationNumber, 'post_applied_for' => $post['post_applied_for'], 'surname' => $post['surname'] ?? null, 'given_name' => $post['given_name'] ?? null, 'gender' => $gender, 'date_of_birth' => $post['date_of_birth'] ?: null, 'place_of_birth' => $post['place_of_birth'] ?? null, 'date_of_issue' => $post['date_of_issue'] ?: null, 'date_of_expiry' => $post['date_of_expiry'] ?: null, 'nationality' => $post['nationality'] ?? 'Indian', 'passport_type' => $passportType ?: null, 'passport_number' => $post['passport_number'] ?? null, 'passport_place_of_issue' => $post['passport_place_of_issue'] ?? null, 'religion' => $post['religion'] ?? null, 'father_name' => $post['father_name'] ?? null, 'mother_name' => $post['mother_name'] ?? null, 'wife_name' => $post['wife_name'] ?? null, 'permanent_address' => $post['permanent_address'] ?? null, 'pin_code' => $post['pin_code'] ?? null, 'city_village' => $post['city_village'] ?? null, 'landmark' => $post['landmark'] ?? null, 'next_of_kin' => $post['next_of_kin'] ?? null, 'old_passport_number' => $post['old_passport_number'] ?? null, 'old_passport_issue_date' => $post['old_passport_issue_date'] ?: null, 'old_passport_place_of_issue' => $post['old_passport_place_of_issue'] ?? null, 'birth_mark' => $post['birth_mark'] ?? null, 'ex_dss' => $exDss ?: null, 'contact_address' => $post['contact_address'] ?? null, 'email' => $post['email'] ?? null, 'mobile_country_code' => $post['mobile_country_code'] ?? '+91', 'mobile_number' => $post['mobile_number'] ?? null, 'whatsapp_country_code' => $post['whatsapp_country_code'] ?? '+91', 'whatsapp_number' => $post['whatsapp_number'] ?? null, 'other_country_code' => $post['other_country_code'] ?? '+91', 'other_number' => $post['other_number'] ?? null, 'weight_kg' => ($post['weight_kg'] ?? '') !== '' ? $post['weight_kg'] : null, 'height_cm' => ($post['height_cm'] ?? '') !== '' ? $post['height_cm'] : null, 'height_mm' => ($post['height_mm'] ?? '') !== '' ? $post['height_mm'] : null, 'shoe_size' => $post['shoe_size'] ?? null, 'indian_licence' => $post['indian_licence'] ?? null, 'foreign_licence' => $post['foreign_licence'] ?? null, 'he_licence' => $post['he_licence'] ?? null, 'category' => $category ?: null, 'total_exp_years' => ($post['total_exp_years'] ?? '') !== '' ? (int)$post['total_exp_years'] : null, 'total_exp_months' => ($post['total_exp_months'] ?? '') !== '' ? (int)$post['total_exp_months'] : null, 'indian_exp_years' => ($post['indian_exp_years'] ?? '') !== '' ? (int)$post['indian_exp_years'] : null, 'indian_exp_months' => ($post['indian_exp_months'] ?? '') !== '' ? (int)$post['indian_exp_months'] : null, 'overseas_exp_years' => ($post['overseas_exp_years'] ?? '') !== '' ? (int)$post['overseas_exp_years'] : null, 'overseas_exp_months' => ($post['overseas_exp_months'] ?? '') !== '' ? (int)$post['overseas_exp_months'] : null, 'authorization_name' => $post['authorization_name'] ?? null, 'authorization_passport_number' => $post['authorization_passport_number'] ?? null, 'authorization_place' => $post['authorization_place'] ?? null, 'authorization_date' => $post['authorization_date'] ?: null, 'signature_path' => $signature, 'thumb_left_path' => $thumbLeft, 'thumb_right_path' => $thumbRight ]; /* DATABASE TRANSACTION */ mysqli_begin_transaction($con); $columns = array_keys($fields); $placeholders = implode(',', array_fill(0, count($columns), '?')); $columnSQL = '`' . implode('`,`', $columns) . '`'; $sql = "INSERT INTO overseas_applications ($columnSQL) VALUES ($placeholders)"; $stmt = mysqli_prepare($con, $sql); if (!$stmt) { throw new RuntimeException(mysqli_error($con)); } $values = array_values($fields); $types = str_repeat('s', count($values)); bindDynamic($stmt, $types, $values); if (!mysqli_stmt_execute($stmt)) { throw new RuntimeException(mysqli_stmt_error($stmt)); } $applicationId = mysqli_insert_id($con); mysqli_stmt_close($stmt); /* EXPERIENCE RECORDS */ $experienceRows = $post['experience'] ?? []; if (!is_array($experienceRows)) { throw new RuntimeException("Invalid experience data."); } foreach ($experienceRows as $row) { $employer = trim($row['employer_name'] ?? ''); if ($employer === '') continue; $designation = trim($row['designation'] ?? ''); $fromMonth = ($row['from_month'] ?? '') !== '' ? (int)$row['from_month'] : null; $fromYear = ($row['from_year'] ?? '') !== '' ? (int)$row['from_year'] : null; $toMonth = ($row['to_month'] ?? '') !== '' ? (int)$row['to_month'] : null; $toYear = ($row['to_year'] ?? '') !== '' ? (int)$row['to_year'] : null; foreach ([$fromMonth, $toMonth] as $month) { if ($month !== null && ($month < 1 || $month > 12)) { throw new RuntimeException("Invalid experience month."); } } $stmt = mysqli_prepare( $con, "INSERT INTO application_experience (application_id, employer_name, designation, from_month, from_year, to_month, to_year) VALUES (?, ?, ?, ?, ?, ?, ?)" ); if (!$stmt) throw new RuntimeException(mysqli_error($con)); mysqli_stmt_bind_param( $stmt, "issiiii", $applicationId, $employer, $designation, $fromMonth, $fromYear, $toMonth, $toYear ); if (!mysqli_stmt_execute($stmt)) { throw new RuntimeException(mysqli_stmt_error($stmt)); } mysqli_stmt_close($stmt); } /* QUALIFICATION RECORDS */ $qualificationRows = $post['qualification'] ?? []; if (!is_array($qualificationRows)) { throw new RuntimeException("Invalid qualification data."); } foreach ($qualificationRows as $row) { $school = trim($row['school_college_name'] ?? ''); if ($school === '') continue; $examination = trim($row['examination_passed'] ?? ''); $board = trim($row['board_university'] ?? ''); $course = trim($row['course_trade'] ?? ''); $passingMonth = ($row['passing_month'] ?? '') !== '' ? (int)$row['passing_month'] : null; $passingYear = ($row['passing_year'] ?? '') !== '' ? (int)$row['passing_year'] : null; if ( $passingMonth !== null && ($passingMonth < 1 || $passingMonth > 12) ) { throw new RuntimeException("Invalid passing month."); } $stmt = mysqli_prepare( $con, "INSERT INTO application_qualifications (application_id, school_college_name, examination_passed, board_university, course_trade, passing_month, passing_year) VALUES (?, ?, ?, ?, ?, ?, ?)" ); if (!$stmt) throw new RuntimeException(mysqli_error($con)); mysqli_stmt_bind_param( $stmt, "issssii", $applicationId, $school, $examination, $board, $course, $passingMonth, $passingYear ); if (!mysqli_stmt_execute($stmt)) { throw new RuntimeException(mysqli_stmt_error($stmt)); } mysqli_stmt_close($stmt); } mysqli_commit($con); $_SESSION['application_success'] = $applicationNumber; header("Location: application.php?success=1"); exit; } catch (Throwable $ex) { try { mysqli_rollback($con); } catch (Throwable $rollbackError) {} foreach ($uploadedFiles as $file) { $path = __DIR__ . '/' . $file; if (is_file($path)) unlink($path); } $error = $ex->getMessage(); } } /* SUCCESS MESSAGE */ if (isset($_GET['success']) && isset($_SESSION['application_success'])) { $success = $_SESSION['application_success']; unset($_SESSION['application_success']); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="International Adventures - Overseas recruitment, global placement and job application."> <meta name="theme-color" content="#062e73"> <title>Overseas Job Application | International Adventures</title> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/about.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap"> <style> :root{ --navy:#062e73; --blue:#0866f5; --deep:#003c91; --orange:#ff7100; --green:#078d22; --ink:#09295e; --muted:#4d6081; --line:#d5e5f7; --pale:#f2f8ff; --shadow:0 5px 18px rgba(11,55,113,.13); } *{box-sizing:border-box} html{scroll-behavior:smooth;scroll-padding-top:20px} body{ margin:0; font-family:Arial,Helvetica,sans-serif; color:var(--ink); background:#f5f9ff; } img{max-width:100%} a{text-decoration:none;color:inherit} button{font:inherit;cursor:pointer} .container{width:min(1240px,96%);margin:auto} /* TOP BAR */ .topbar{ background:linear-gradient(90deg,#052b68,#061c4c); color:#fff; font-size:12px; } .topbar-inner{ min-height:35px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; } .top-links{display:flex;align-items:center;gap:13px;flex-wrap:wrap} .top-links a{white-space:nowrap} .top-links a:hover{color:#ffd45a} .socials{display:flex;gap:8px} .socials a{ display:grid;place-items:center;width:22px;height:22px; border-radius:50%;background:#1478db;font-weight:bold; } /* HEADER */ .site-header{ position:relative;z-index:100;margin-top:-1px; background:rgba(255,255,255,.97); box-shadow:0 5px 16px #002d6a24; } .header-main{ display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0; } .header-main .brand{ display:flex;align-items:center;flex-shrink:0; width:200px;max-width:200px;text-decoration:none; } .header-main .brand img{ display:block;width:200px;max-width:100%;height:auto; object-fit:contain;object-position:left center; } .header-ctas{ display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center; } .header-ctas .btn{padding:10px 13px;font-size:12px;border-radius:8px} /* BUTTONS */ .ia-btn{ display:inline-flex;align-items:center;justify-content:center;gap:9px; border:0;border-radius:10px;padding:13px 20px;font-size:14px; font-weight:800;color:#fff;box-shadow:0 4px 0 rgba(0,0,0,.15); transition:transform .2s,filter .2s;white-space:normal;text-align:center; } .ia-btn:hover{transform:translateY(-2px);filter:brightness(1.06);color:#fff} .ia-btn-orange{background:linear-gradient(#ff9b22,#f04a00);border:1px solid #ffd59a} .ia-btn-green{background:linear-gradient(#13b735,#078320)} .ia-btn-blue{background:linear-gradient(#1682ff,#0052e8);border:1px solid #9dd5ff} /* NAVIGATION */ .ia-navbar,.ia-navbar *{box-sizing:border-box} .ia-navbar{ width:100%;position:relative;z-index:99999; background:linear-gradient(180deg,#fff,#edf5ff); border-bottom:3px solid #0755b9; box-shadow:0 4px 15px rgba(0,40,100,.15); } .ia-nav-container{width:100%;max-width:1240px;margin:0 auto;padding:0 10px} .ia-menu{ display:flex;flex-direction:row;justify-content:center;align-items:stretch; flex-wrap:wrap;list-style:none;padding:0;margin:0; } .ia-menu>li{position:relative;list-style:none;margin:0;padding:0} .ia-menu>li>a,.ia-dropdown-btn{ min-height:46px;padding:12px 13px;display:flex;align-items:center; justify-content:center;gap:7px;border:0;border-right:1px solid #dce7f5; background:transparent;color:#082c67;font-size:11px;font-weight:800; text-decoration:none;text-transform:uppercase;cursor:pointer;white-space:nowrap; } .ia-menu>li>a:hover,.ia-dropdown-btn:hover{ color:#fff;background:linear-gradient(135deg,#0878f9,#063c91); } .ia-submenu{ display:none;position:absolute;top:100%;left:0;width:260px;max-width:90vw; padding:5px 0;margin:0;list-style:none;background:#fff; border-top:3px solid #ff8a00;box-shadow:0 10px 25px rgba(0,35,90,.2); } .ia-submenu li{display:block;list-style:none;margin:0;padding:0} .ia-submenu li a{ display:block;padding:11px 15px;color:#153761;background:#fff; font-size:13px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere; border-bottom:1px solid #edf2fa; } .ia-submenu li a:hover{color:#0759c4;background:#eef6ff} @media(min-width:769px){ .ia-dropdown:hover>.ia-submenu, .ia-dropdown:focus-within>.ia-submenu, .ia-dropdown.ia-open>.ia-submenu{display:block} .ia-menu-btn{display:none!important} } /* APPLICATION PAGE */ .application-wrapper{ width:100%;max-width:1150px;margin:30px auto; background:white;border:5px solid #f6b900;border-radius:18px; overflow:hidden;box-shadow:0 15px 45px rgba(8,32,83,.16); } .form-banner{ position:relative;background:linear-gradient(120deg,#061a51,#123f96); padding:24px 25px;text-align:center;color:white;border-bottom:4px solid #f6b900; } .form-banner h1{ font-size:clamp(20px,3vw,31px);font-weight:900;letter-spacing:1px;margin:0; } .form-banner p{ font-size:11px;letter-spacing:2px;margin:7px 0 0; color:#ffdf7d;font-weight:700; } .form-content{ padding:15px;background: linear-gradient(rgba(255,255,255,.94),rgba(255,255,255,.94)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1400'); background-position:center;background-size:cover; } /* Namespaced form sections to avoid homepage CSS conflicts */ .application-wrapper .app-section{ margin-bottom:13px;border:1px solid #d4e0f3;border-radius:10px; overflow:hidden;background:rgba(255,255,255,.96); box-shadow:0 3px 12px rgba(8,32,83,.04); } .application-wrapper .app-section-heading{ display:flex;align-items:center;gap:11px;padding:9px 14px; background:linear-gradient(100deg,#061b54,#1549a2); border-bottom:3px solid #f6b900;color:white;font-size:14px; font-weight:900;letter-spacing:.8px;text-transform:uppercase; } .application-wrapper .heading-icon{ width:30px;height:30px;display:inline-flex;align-items:center; justify-content:center;color:#071d59;background:linear-gradient(145deg,#fff,#ffe49a); border-radius:50%;font-size:14px; } .application-wrapper .app-section-body{padding:13px} .application-wrapper .form-label{ font-size:11px;font-weight:800;color:#102c6a;margin-bottom:4px; } .application-wrapper .required{color:#e22b36} .application-wrapper .form-control, .application-wrapper .form-select{ min-height:34px;border:1px solid #7898c5;border-radius:3px; background:#fff;color:#10295d;font-size:12px;padding:6px 9px; box-shadow:none!important; } .application-wrapper .form-control:focus, .application-wrapper .form-select:focus{ border-color:#174caa;box-shadow:0 0 0 3px rgba(23,76,170,.10)!important; } .application-wrapper textarea.form-control{min-height:66px;resize:vertical} .application-wrapper .input-group-text{ min-height:34px;background:#edf3ff;border-color:#7898c5;border-radius:3px; font-size:11px;color:#0b2868;font-weight:800; } .application-wrapper .radio-box{ display:flex;align-items:center;flex-wrap:wrap;gap:15px;min-height:34px; } .application-wrapper .radio-box label{font-size:12px;font-weight:600} .application-wrapper .form-check-input{border-color:#597caf} .application-wrapper .form-check-input:checked{background-color:#123d91;border-color:#123d91} .application-wrapper .table-form{ width:100%;border-collapse:collapse;min-width:680px; } .application-wrapper .table-form th{ background:#e9f1ff;color:#09245f;font-size:10px;font-weight:900; text-align:center;padding:8px 5px;border:1px solid #7c9bc8; } .application-wrapper .table-form td{padding:4px;border:1px solid #9db3d4} .application-wrapper .table-form td:first-child{ width:45px;text-align:center;font-weight:800;color:#123d91; } .application-wrapper .table-form .form-control{ min-height:30px;font-size:11px;border:0; } .application-wrapper .table-scroll{overflow-x:auto} .application-wrapper .upload-box{ padding:13px;border:1px dashed #7997c2;background:#f7faff;border-radius:8px; } .application-wrapper .upload-box .form-control{background:white} .application-wrapper .authorization-text{ font-size:11px;line-height:1.8;color:#10295d;font-weight:600;text-align:justify; } .application-wrapper .submit-area{ padding:22px 12px;text-align:center; background:linear-gradient(120deg,#061b54,#1649a0); border-top:4px solid #f6b900; } .application-wrapper .submit-btn{ background:linear-gradient(120deg,#ffd35a,#f0a900);color:#061b54; border:0;padding:13px 38px;border-radius:6px;font-weight:900; font-size:13px;letter-spacing:.6px;box-shadow:0 5px 15px rgba(0,0,0,.15); } .application-wrapper .submit-btn:hover{background:#ffe18c;color:#061b54;transform:translateY(-1px)} .application-wrapper .date-group{display:grid;grid-template-columns:repeat(3,1fr);gap:5px} .application-wrapper .date-group .form-control{min-width:0} @media(max-width:1000px){ .header-main{align-items:center} .header-ctas .ia-btn{font-size:10px} } @media(max-width:768px){ .ia-nav-container{padding:8px 10px} .ia-menu-btn{ display:flex!important;align-items:center;justify-content:center;gap:8px; min-width:90px;min-height:40px;padding:9px 12px;margin:0;border:0; border-radius:6px;background:linear-gradient(135deg,#0878f9,#063c91); color:#fff;font-size:12px;font-weight:bold;position:relative;z-index:2; appearance:none;touch-action:manipulation; } #iaMenuIcon{font-size:20px;line-height:1} .ia-navbar .ia-menu{ display:none!important;flex-direction:column!important;flex-wrap:nowrap!important; align-items:stretch!important;justify-content:flex-start!important; width:100%!important;max-height:70vh;overflow-y:auto;overflow-x:hidden; margin:8px 0 0!important;padding:0!important;background:#fff; border:1px solid #dce8f7;border-radius:6px;list-style:none; box-shadow:0 8px 20px rgba(0,40,100,.12); } .ia-navbar .ia-menu.ia-menu-visible{display:flex!important} .ia-navbar .ia-menu>li{display:block!important;width:100%!important;position:relative;margin:0!important;padding:0!important} .ia-navbar .ia-menu>li>a,.ia-navbar .ia-dropdown-btn{ display:flex!important;align-items:center;justify-content:space-between; width:100%!important;min-height:46px;padding:13px 14px!important; margin:0!important;border:0!important;border-bottom:1px solid #e2ebf8!important; border-radius:0!important;background:#fff;color:#082c67;font-size:13px; font-weight:700;text-align:left;text-decoration:none;white-space:normal; line-height:1.4;appearance:none;touch-action:manipulation; } .ia-arrow{margin-left:10px;flex-shrink:0} .ia-navbar .ia-submenu{ display:none!important;position:static!important;width:100%!important; max-width:none!important;padding:0!important;margin:0!important; border:0!important;border-top:2px solid #ff8a00!important; background:#f1f7ff;box-shadow:none!important; } .ia-navbar .ia-dropdown.ia-open>.ia-submenu{display:block!important} .ia-navbar .ia-submenu li a{ display:block!important;width:100%!important;min-height:42px; padding:12px 14px 12px 30px!important;border:0!important; border-bottom:1px solid #dfeafa!important;background:#f1f7ff; color:#163a70;font-size:12px;line-height:1.5;white-space:normal; } .ia-navbar .ia-submenu li a:before{content:"›";margin-right:9px;color:#0878f9;font-weight:bold} .header-main .brand{width:170px;max-width:170px} .header-main .brand img{width:170px} } @media(max-width:650px){ .topbar-inner{padding:6px 0} .top-links{gap:7px} .top-links a{font-size:10px} .socials{display:none} .header-main{padding:8px 0;align-items:center} .header-main .brand{width:145px;max-width:145px} .header-main .brand img{width:145px} .header-ctas{gap:5px} .header-ctas>.ia-btn{padding:8px;font-size:0;gap:0} .header-ctas>.ia-btn span{font-size:16px} .application-wrapper{border-width:3px;border-radius:10px;margin:12px auto} .form-content{padding:7px} .application-wrapper .app-section-body{padding:9px} .application-wrapper .app-section-heading{font-size:11px;padding:8px} .application-wrapper .form-label{font-size:10px} .application-wrapper .form-control,.application-wrapper .form-select{font-size:12px} } @media(max-width:480px){ .header-main .brand{width:145px;max-width:145px} .header-main .brand img{width:145px} } @media(max-width:380px){ .header-ctas>.ia-btn{display:none} .ia-nav-container{padding-right:7px;padding-left:7px} .ia-navbar .ia-menu>li>a,.ia-navbar .ia-dropdown-btn{font-size:12px;padding:12px 10px!important} .ia-navbar .ia-submenu li a{padding-left:22px!important;font-size:12px} } </style> </head> <body> <!-- TOP BAR --> <div class="topbar"> <div class="container topbar-inner"> <div class="top-links"> <a href="mailto:resume@internationaladventures.com">✉ resume@internationaladventures.com</a> <a href="tel:+919211225387">☎ +91 9211225387</a> <a href="tel:+918757339937">☎ +91 8757339937</a> <a href="tel:+919560155517">☎ +91 9560155517</a> <a href="#">◷ Mon - Sat: 9:30 AM - 6:30 PM (IST)</a> </div> <div class="top-links"> <a href="#">🌐 English</a> <div class="socials"> <a href="#" aria-label="Facebook">f</a> <a href="#" aria-label="LinkedIn">in</a> <a href="#" aria-label="Instagram">◎</a> <a href="#" aria-label="YouTube">▶</a> </div> </div> </div> </div> <!-- HEADER --> <header class="site-header"> <div class="container header-main"> <a class="brand" href="index.php"> <img src="assets/images/logo.png" alt="International Adventures logo"> </a> <div class="header-ctas"> <a class="ia-btn ia-btn-orange" href="tel:+919211225387"> <span>☎</span> CALL NOW<br>+91 9211225387 </a> <a class="ia-btn ia-btn-green" href="https://wa.me/919211225387" target="_blank" rel="noopener"> <span>◉</span> WHATSAPP<br>Chat with Us </a> <a class="ia-btn ia-btn-green" href="https://whatsapp.com/channel/0029VbBnksMF6sn0sCt8oj1W" target="_blank" rel="noopener"> <span>📣</span> WHATSAPP CHANNEL<br>Follow for Latest Updates </a> <button type="button" class="ia-menu-btn" id="iaMenuBtn" aria-expanded="false" aria-controls="iaMenu"> <span id="iaMenuIcon">☰</span> <span id="iaMenuText">MENU</span> </button> </div> </div> <!-- NAVIGATION --> <nav class="ia-navbar" aria-label="Main navigation"> <div class="ia-nav-container"> <ul class="ia-menu" id="iaMenu"> <li><a href="index.php">HOME</a></li> <li class="ia-dropdown"> <button type="button" class="ia-dropdown-btn" aria-expanded="false"> ABOUT US <span class="ia-arrow">▼</span> </button> <ul class="ia-submenu"> <li><a href="profile.php">Company Profile</a></li> <li><a href="vision.php">Vision & Mission</a></li> <li><a href="team.php">Our Team</a></li> </ul> </li> <li class="ia-dropdown"> <button type="button" class="ia-dropdown-btn" aria-expanded="false"> SERVICES <span class="ia-arrow">▼</span> </button> <ul class="ia-submenu"> <li><a href="recruitment.php">Recruitment Services</a></li> <li><a href="saudi.php">Saudi Visa Stamping</a></li> <li><a href="kuwait.php">Kuwait Visa Stamping</a></li> <li><a href="air.php">Air Ticketing Services</a></li> <li><a href="immigration.php">Immigration Services</a></li> <li><a href="visast.php">Visa Stamping Services</a></li> <li><a href="manpower.php">Manpower Services</a></li> <li><a href="document.php">Document Attestation Services</a></li> <li><a href="tour.php">Tour & Travel Services</a></li> </ul> </li> <li><a href="ind.php">INDUSTRIES</a></li> <li><a href="rec.php">RECRUITMENT PROCESS</a></li> <li><a href="vissa.php">VISA SERVICES</a></li> <li><a href="tour.php">TOUR & TRAVEL</a></li> <li><a href="jobs.php">VACANCIES</a></li> <li><a href="application.php"> Form</a></li> <li><a href="Gallery.php">GALLERY</a></li> <li><a href="contact.php">CONTACT US</a></li> </ul> </div> </nav> </header> <!-- APPLICATION FORM --> <div class="application-wrapper"> <div class="form-banner"> <h1><i class="fa-solid fa-earth-asia me-2"></i> INTERNATIONAL ADVENTURES</h1> <p>OVERSEAS SERVICES • JOB APPLICATION FORM</p> </div> <main class="form-content"> <?php if ($success): ?> <div class="alert alert-success text-center p-4"> <i class="fa-solid fa-circle-check fs-1 mb-3"></i> <h4 class="fw-bold">Application Submitted Successfully!</h4> <p>Your Application Number:</p> <h3 class="fw-bold"><?php echo e($success); ?></h3> <p class="mb-0">Please save your application number for future reference.</p> </div> <div class="text-center mb-3"> <a href="application.php" class="btn btn-primary">Submit Another Application</a> </div> <?php else: ?> <?php if ($error): ?> <div class="alert alert-danger"> <i class="fa-solid fa-circle-exclamation me-2"></i> <?php echo e($error); ?> </div> <?php endif; ?> <form method="POST" enctype="multipart/form-data" id="applicationForm"> <input type="hidden" name="csrf_token" value="<?php echo e($csrf); ?>"> <!-- POST APPLIED FOR --> <section class="app-section"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-briefcase"></i></span> POST APPLIED FOR </div> <div class="app-section-body"> <label class="form-label">Post Applied For <span class="required">*</span></label> <input type="text" name="post_applied_for" class="form-control" placeholder="Enter Position / Job Title" required> </div> </section> <!-- PERSONAL INFORMATION --> <section class="app-section"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-user"></i></span> PERSONAL INFORMATION </div> <div class="app-section-body"> <div class="row g-2"> <div class="col-md-4"> <label class="form-label">Surname <span class="required">*</span></label> <input type="text" name="surname" class="form-control" required> </div> <div class="col-md-4"> <label class="form-label">Given Name <span class="required">*</span></label> <input type="text" name="given_name" class="form-control" required> </div> <div class="col-md-4"> <label class="form-label">Sex <span class="required">*</span></label> <div class="radio-box"> <label><input type="radio" name="gender" value="Male" class="form-check-input" required> Male</label> <label><input type="radio" name="gender" value="Female" class="form-check-input"> Female</label> </div> </div> <div class="col-md-4"> <label class="form-label">Date of Birth</label> <input type="date" name="date_of_birth" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Place of Birth</label> <input type="text" name="place_of_birth" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Passport Number</label> <input type="text" name="passport_number" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Date of Issue</label> <input type="date" name="date_of_issue" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">D.O. Expiry</label> <input type="date" name="date_of_expiry" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Place of Issue</label> <input type="text" name="passport_place_of_issue" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Nationality</label> <input type="text" name="nationality" class="form-control" value="Indian"> </div> <div class="col-md-4"> <label class="form-label">P.P. Type</label> <div class="radio-box"> <label><input type="radio" name="passport_type" value="ECR" class="form-check-input"> ECR</label> <label><input type="radio" name="passport_type" value="ECNR" class="form-check-input"> ECNR</label> </div> </div> <div class="col-md-4"> <label class="form-label">Religion</label> <input type="text" name="religion" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Father Name</label> <input type="text" name="father_name" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Mother Name</label> <input type="text" name="mother_name" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Wife Name</label> <input type="text" name="wife_name" class="form-control"> </div> <div class="col-md-6"> <label class="form-label">Permanent Address</label> <textarea name="permanent_address" class="form-control"></textarea> </div> <div class="col-md-2"> <label class="form-label">Pin No.</label> <input type="text" name="pin_code" class="form-control"> </div> <div class="col-md-2"> <label class="form-label">City / Village</label> <input type="text" name="city_village" class="form-control"> </div> <div class="col-md-2"> <label class="form-label">Landmark</label> <input type="text" name="landmark" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Next of Kin (Insurance Beneficiary)</label> <input type="text" name="next_of_kin" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Old Passport Number</label> <input type="text" name="old_passport_number" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Old Passport Date of Issue</label> <input type="date" name="old_passport_issue_date" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Old Passport Place of Issue</label> <input type="text" name="old_passport_place_of_issue" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Birth Mark</label> <input type="text" name="birth_mark" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">EX. DSS</label> <div class="radio-box"> <label><input type="radio" name="ex_dss" value="Yes" class="form-check-input"> Yes</label> <label><input type="radio" name="ex_dss" value="No" class="form-check-input"> No</label> </div> </div> </div> </div> </section> <!-- CONTACT DETAILS --> <section class="app-section"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-phone"></i></span> CONTACT DETAILS </div> <div class="app-section-body"> <div class="row g-3"> <div class="col-md-6"> <label class="form-label">Address (If Different From Passport)</label> <textarea name="contact_address" class="form-control" rows="3"></textarea> <label class="form-label mt-2">E-mail</label> <input type="email" name="email" class="form-control" placeholder="example@email.com"> </div> <div class="col-md-6"> <label class="form-label">Mobile Number <span class="required">*</span></label> <div class="input-group mb-2"> <span class="input-group-text">+91</span> <input type="text" name="mobile_number" class="form-control" required> <input type="hidden" name="mobile_country_code" value="+91"> </div> <label class="form-label">WhatsApp Number</label> <div class="input-group mb-2"> <span class="input-group-text">+91</span> <input type="text" name="whatsapp_number" class="form-control"> <input type="hidden" name="whatsapp_country_code" value="+91"> </div> <label class="form-label">Other Number</label> <div class="input-group"> <span class="input-group-text">+91</span> <input type="text" name="other_number" class="form-control"> <input type="hidden" name="other_country_code" value="+91"> </div> </div> </div> </div> </section> <!-- HEALTH AND ADDITIONAL INFORMATION --> <div class="row g-2"> <div class="col-lg-6"> <section class="app-section h-100"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-heart-pulse"></i></span> HEALTH INFORMATION </div> <div class="app-section-body"> <div class="row g-2"> <div class="col-6"> <label class="form-label">Weight (in Kg)</label> <input type="number" step="0.01" name="weight_kg" class="form-control"> </div> <div class="col-6"> <label class="form-label">Shoe Size</label> <input type="text" name="shoe_size" class="form-control"> </div> <div class="col-6"> <label class="form-label">Height (cm)</label> <input type="number" step="0.01" name="height_cm" class="form-control"> </div> <div class="col-6"> <label class="form-label">Height (mm)</label> <input type="number" step="0.01" name="height_mm" class="form-control"> </div> </div> </div> </section> </div> <div class="col-lg-6"> <section class="app-section h-100"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-id-card"></i></span> ADDITIONAL INFORMATION </div> <div class="app-section-body"> <label class="form-label">Indian Licence</label> <input type="text" name="indian_licence" class="form-control mb-2"> <label class="form-label">H/E Licence</label> <input type="text" name="he_licence" class="form-control mb-2"> <label class="form-label">Foreign Licence</label> <input type="text" name="foreign_licence" class="form-control"> </div> </section> </div> </div> <!-- EXPERIENCE DETAILS --> <section class="app-section"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-briefcase"></i></span> EXPERIENCE DETAILS </div> <div class="app-section-body"> <div class="row g-2 mb-3"> <div class="col-md-4"> <label class="form-label">Category</label> <select name="category" class="form-select"> <option value="">Select Category</option> <option value="Worker">Worker</option> <option value="Staff">Staff</option> </select> </div> <div class="col-md-4"> <label class="form-label">Total Experience</label> <div class="input-group"> <input type="number" name="total_exp_years" class="form-control" placeholder="Years" min="0"> <input type="number" name="total_exp_months" class="form-control" placeholder="Months" min="0" max="11"> </div> </div> <div class="col-md-4"> <label class="form-label">Indian Experience</label> <div class="input-group"> <input type="number" name="indian_exp_years" class="form-control" placeholder="Years" min="0"> <input type="number" name="indian_exp_months" class="form-control" placeholder="Months" min="0" max="11"> </div> </div> <div class="col-md-4"> <label class="form-label">Overseas Experience</label> <div class="input-group"> <input type="number" name="overseas_exp_years" class="form-control" placeholder="Years" min="0"> <input type="number" name="overseas_exp_months" class="form-control" placeholder="Months" min="0" max="11"> </div> </div> </div> <div class="table-scroll"> <table class="table-form"> <thead> <tr> <th rowspan="2">S.No.</th> <th rowspan="2">NAME OF EMPLOYER</th> <th rowspan="2">DESIGNATION</th> <th colspan="2">FROM</th> <th colspan="2">TO</th> </tr> <tr> <th>MM</th> <th>YYYY</th> <th>MM</th> <th>YYYY</th> </tr> </thead> <tbody> <?php for ($i = 0; $i < 4; $i++): ?> <tr> <td><?php echo $i + 1; ?></td> <td><input type="text" name="experience[<?php echo $i; ?>][employer_name]" class="form-control"></td> <td><input type="text" name="experience[<?php echo $i; ?>][designation]" class="form-control"></td> <td><input type="number" name="experience[<?php echo $i; ?>][from_month]" class="form-control" min="1" max="12"></td> <td><input type="number" name="experience[<?php echo $i; ?>][from_year]" class="form-control" min="1950" max="2100"></td> <td><input type="number" name="experience[<?php echo $i; ?>][to_month]" class="form-control" min="1" max="12"></td> <td><input type="number" name="experience[<?php echo $i; ?>][to_year]" class="form-control" min="1950" max="2100"></td> </tr> <?php endfor; ?> </tbody> </table> </div> </div> </section> <!-- QUALIFICATION --> <section class="app-section"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-graduation-cap"></i></span> QUALIFICATION </div> <div class="app-section-body"> <div class="table-scroll"> <table class="table-form"> <thead> <tr> <th>S.No.</th> <th>School / College Name</th> <th>Examination Passed</th> <th>Board / University</th> <th>Course / Trade</th> <th>Passing Month</th> <th>Passing Year</th> </tr> </thead> <tbody> <?php for ($i = 0; $i < 3; $i++): ?> <tr> <td><?php echo $i + 1; ?></td> <td><input type="text" name="qualification[<?php echo $i; ?>][school_college_name]" class="form-control"></td> <td><input type="text" name="qualification[<?php echo $i; ?>][examination_passed]" class="form-control"></td> <td><input type="text" name="qualification[<?php echo $i; ?>][board_university]" class="form-control"></td> <td><input type="text" name="qualification[<?php echo $i; ?>][course_trade]" class="form-control"></td> <td><input type="number" name="qualification[<?php echo $i; ?>][passing_month]" class="form-control" min="1" max="12"></td> <td><input type="number" name="qualification[<?php echo $i; ?>][passing_year]" class="form-control" min="1950" max="2100"></td> </tr> <?php endfor; ?> </tbody> </table> </div> </div> </section> <!-- AUTHORIZATION --> <section class="app-section"> <div class="app-section-heading"> <span class="heading-icon"><i class="fa-solid fa-file-signature"></i></span> AUTHORIZATION </div> <div class="app-section-body"> <p class="authorization-text"> I, <input type="text" name="authorization_name" class="form-control d-inline-block" style="width:190px;max-width:100%;"> passport number <input type="text" name="authorization_passport_number" class="form-control d-inline-block" style="width:170px;max-width:100%;"> hereby authorize <strong>International Adventures Overseas Services</strong> to proceed with recruitment formalities, including visa endorsement, emigration clearance among all other formalities. I am submitting my passport willingly, on my own accord. I authorize International Adventures Overseas Services, its associated, affiliates and sister companies to communicate with me via SMS or telecall on any of my number, as many times as required. </p> <div class="row g-3 mt-2"> <div class="col-md-4"> <label class="form-label">Place</label> <input type="text" name="authorization_place" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Date</label> <input type="date" name="authorization_date" class="form-control"> </div> <div class="col-md-4"> <label class="form-label">Signature Upload</label> <div class="upload-box"> <input type="file" name="signature" class="form-control" accept="image/jpeg,image/png,image/webp"> <small class="text-muted">JPG / PNG / WEBP, max 3 MB</small> </div> </div> <div class="col-md-4"> <label class="form-label">Left Thumb Impression</label> <div class="upload-box"> <input type="file" name="thumb_left" class="form-control" accept="image/jpeg,image/png,image/webp"> </div> </div> <div class="col-md-4"> <label class="form-label">Right Thumb Impression</label> <div class="upload-box"> <input type="file" name="thumb_right" class="form-control" accept="image/jpeg,image/png,image/webp"> </div> </div> </div> </div> </section> <!-- CONSENT --> <div class="form-check mb-3"> <input class="form-check-input" type="checkbox" id="consent" required> <label class="form-check-label small fw-semibold" for="consent"> I confirm that the information provided above is accurate and I agree to submit this application. </label> </div> <!-- SUBMIT --> <div class="submit-area"> <button type="submit" class="submit-btn" id="submitButton"> <i class="fa-solid fa-paper-plane me-2"></i> SUBMIT APPLICATION </button> <p class="text-white-50 small mt-3 mb-0"> Please verify all information before submitting. </p> </div> </form> <?php endif; ?> </main> </div> <script> /* MOBILE MENU */ (function () { const menuButton = document.getElementById('iaMenuBtn'); const menu = document.getElementById('iaMenu'); const menuIcon = document.getElementById('iaMenuIcon'); const menuText = document.getElementById('iaMenuText'); if (!menuButton || !menu) return; menuButton.addEventListener('click', function () { const isOpen = menu.classList.toggle('ia-menu-visible'); menuButton.setAttribute('aria-expanded', isOpen ? 'true' : 'false'); if (menuIcon) menuIcon.textContent = isOpen ? '✕' : '☰'; if (menuText) menuText.textContent = isOpen ? 'CLOSE' : 'MENU'; }); document.querySelectorAll('.ia-dropdown-btn').forEach(function (button) { button.addEventListener('click', function () { const parent = button.closest('.ia-dropdown'); const isOpen = parent.classList.toggle('ia-open'); button.setAttribute('aria-expanded', isOpen ? 'true' : 'false'); }); }); })(); /* FORM SUBMISSION BUTTON */ document.getElementById('applicationForm')?.addEventListener('submit', function(e) { const button = document.getElementById('submitButton'); if (!this.checkValidity()) { e.preventDefault(); this.reportValidity(); return; } button.disabled = true; button.innerHTML = '<i class="fa-solid fa-spinner fa-spin me-2"></i> SUBMITTING...'; }); </script> </body> </html>
Save
Cancel