X7ROOT File Manager
Current Path:
/home/u126090504/domains/saiadarshainternationalschool.org.in/public_html
home
/
u126090504
/
domains
/
saiadarshainternationalschool.org.in
/
public_html
/
📁
..
📄
.htaccess
(0 B)
📄
Antiraging-Cell.php
(2.73 KB)
📄
SVM-INT (1) (1).zip
(117.51 MB)
📄
about-us.php
(5.86 KB)
📄
academic-calendar.php
(2.73 KB)
📄
achievements.php
(9.56 KB)
📄
achievers.php
(15.19 KB)
📁
admin
📄
admission-process.php
(6.85 KB)
📄
admission.php
(12.93 KB)
📄
admission_submit.php
(3.38 KB)
📄
album.php
(890 B)
📄
assessment-policy.php
(6.8 KB)
📄
cbse-curriculum-summary.php
(5.99 KB)
📄
computer-courses.php
(22.83 KB)
📄
config.php
(1.27 KB)
📄
contact-us.php
(14.63 KB)
📄
contactdb.php
(796 B)
📄
courses.php
(10.44 KB)
📁
css
📄
director's-message.php
(6.54 KB)
📄
downloads.php
(2.9 KB)
📄
error.log
(14.6 KB)
📄
facilities.php
(6.04 KB)
📄
faculty.php
(10.27 KB)
📄
fee-structure.php
(7.97 KB)
📁
fonts
📄
footer.php
(23.95 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.05 KB)
📄
google929b505e9f42f894.html
(53 B)
📄
grievance-form.php
(16.52 KB)
📄
header.php
(19.69 KB)
📄
homework.php
(9.64 KB)
📁
images
📄
index.php
(39.38 KB)
📄
infrastructure-details.php
(5.39 KB)
📁
js
📁
lib
📄
managing-committee.php
(3.34 KB)
📄
media-corner.php
(2.48 KB)
📄
non-academic-achievers.php
(14.65 KB)
📄
payment.php
(21.85 KB)
📄
payment_submit.php
(15.1 KB)
📄
payment_verify.php
(2.31 KB)
📄
placement.php
(8.33 KB)
📄
principal's-message.php
(6.65 KB)
📄
public-disclosure.php
(3.38 KB)
📁
qrcodes
📁
revolution
📁
sai
📄
scope.php
(14.14 KB)
📄
search_videos.php
(1.76 KB)
📄
sitemap.xml
(4.69 KB)
📄
subjects-offered.php
(6 KB)
📄
submit-grievance.php
(3.88 KB)
📁
svm
📄
thank-you.php
(1.28 KB)
📄
u126090504_svmint.sql
(40.87 KB)
📁
uploads
📄
videos.php
(6.87 KB)
Editing: admission.php
<?php require_once 'config.php'; ?> <?php // === Session & CSRF Setup === if (session_status() === PHP_SESSION_NONE) { session_start(); } if (empty($_SESSION['csrf'])) { $_SESSION['csrf'] = bin2hex(random_bytes(32)); } ?> <?php include("header.php"); ?> <?php if (session_status() === PHP_SESSION_NONE) { session_start(); } // ✅ Message from session or URL flag $flash = ''; if (!empty($_SESSION['success_message'])) { $flash = $_SESSION['success_message']; unset($_SESSION['success_message']); } elseif (isset($_GET['ok']) && $_GET['ok'] === '1') { $flash = "🎉 Admission submitted successfully! Our team will contact you soon."; } if ($flash): ?> <div id="toastMessage" style=" position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-50px); background: #111; color: #ff5252; border: 2px solid #ff5252; padding: 14px 25px; border-radius: 10px; font-weight: 600; font-size: 16px; box-shadow: 0 4px 10px rgba(255,82,82,0.4); z-index: 9999; opacity: 0; transition: all .5s ease; "> <?php echo htmlspecialchars($flash); ?> </div> <script> const toast = document.getElementById('toastMessage'); // Show animation (slide down) setTimeout(()=>{ toast.style.opacity = "1"; toast.style.transform = "translateX(-50%) translateY(0)"; }, 150); // Auto-hide after 5 sec (slide up) setTimeout(()=>{ toast.style.opacity = "0"; toast.style.transform = "translateX(-50%) translateY(-50px)"; setTimeout(()=> toast.remove(), 600); }, 5000); // Clean URL (?ok=1) if (location.search.includes('ok=1')) { const url = new URL(location.href); url.searchParams.delete('ok'); history.replaceState({}, '', url.pathname + (url.search ? '?' + url.search : '') + location.hash); } </script> <?php endif; ?> <!-- site-main start --> <div class="site-main"> <!-- Page Title --> <div class="ttm-page-title-row"> <div class="ttm-page-title-row-inner ttm-textcolor-white"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12"> <div class="page-title-heading"> <h2 class="title">Admission Form</h2> </div> </div> </div> </div> </div> </div><!-- page-title end --> <section> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="border-18px-solid white-border ttm-bgcolor-grey spacing-14"> <div class="ttm-bgcolor-darkgrey"> <div class="section-title"> <div class="title-header pt-33 pl-35"> <h2 class="title m-0">Admission Form</h2> <p class="mb-0" style="opacity:.8">Fields marked with <span style="color:#ff5252">*</span> are required.</p> </div> <div class="seperator-angle ttm-textcolor-darkgrey"></div> </div> </div> <!-- Admission Form --> <form action="admission_submit.php" method="post" class="ttm-contact_form wrap-form spacing-13" enctype="multipart/form-data" novalidate> <input type="hidden" name="csrf" value="<?php echo htmlspecialchars($_SESSION['csrf'] ?? ''); ?>"> <!-- Student Details --> <hr class="my-4"> <h5 class="fw-semibold mb-3">Student Details</h5> <div class="row g-3"> <div class="col-12 col-md-6"> <label class="form-label">Student Name <span style="color:#ff5252">*</span></label> <input type="text" class="form-control" name="student_name" id="student_name" placeholder="Enter student full name" required> </div> <div class="col-12 col-md-6"> <label class="form-label">Father's Name <span style="color:#ff5252">*</span></label> <input type="text" class="form-control" name="father_name" id="father_name" placeholder="Enter father's name" required> </div> <!-- Mobile Number --> <div class="col-12 col-md-6"> <label class="form-label">Mobile Number <span style="color:#ff5252">*</span></label> <input type="text" class="form-control" name="mobile" id="mobile" placeholder="Enter 10-digit mobile number" maxlength="10" required> <small class="text-muted">Only digits allowed (10 digits).</small> </div> <div class="col-12 col-md-6"> <label class="form-label">Mother's Name</label> <input type="text" class="form-control" name="mother_name" id="mother_name" placeholder="Enter mother's name"> </div> <div class="col-12 col-md-3"> <label class="form-label">Date of Birth <span style="color:#ff5252">*</span></label> <input type="date" class="form-control" id="dob" name="dob" max="<?php echo date('Y-m-d'); ?>" required> </div> <div class="col-12 col-md-3"> <label class="form-label">Age</label> <input type="text" class="form-control" id="age" name="age" readonly placeholder="Auto calculated"> </div> <div class="col-12 col-md-6"> <label class="form-label">Class <span style="color:#ff5252">*</span></label> <select class="form-select" name="class" id="class" required> <option value="">Select Class</option> <option>Nursery</option> <option>LKG</option> <option>UKG</option> <option>STD-I</option> <option>STD-II</option> <option>STD-III</option> <option>STD-IV</option> <option>STD-V</option> <option>STD-VI</option> <option>STD-VII</option> <option>STD-VIII</option> </select> </div> <div class="col-12 col-md-3"> <label class="form-label">Sex</label> <select class="form-select" name="sex" id="sex"> <option value="">Select Sex</option> <option>Male</option><option>Female</option><option>Other</option> </select> </div> <div class="col-12 col-md-3"> <label class="form-label">Caste</label> <select class="form-select" name="caste" id="caste"> <option value="">Select Caste</option> <option>SC</option><option>ST</option><option>OBC</option><option>GENERAL</option> </select> </div> <div class="col-12 col-md-4"> <label class="form-label">Blood Group</label> <select class="form-select" name="blood_group" id="blood_group"> <option value="">Select Blood Group</option> <option>A+</option><option>A-</option><option>B+</option><option>B-</option> <option>AB+</option><option>AB-</option><option>O+</option><option>O-</option><option>Unknown</option> </select> </div> <div class="col-12 col-md-4"> <label class="form-label">Aadhaar Number</label> <input type="text" class="form-control" name="aadhaar" id="aadhaar" placeholder="XXXX XXXX XXXX" inputmode="numeric" maxlength="14"> <small class="text-muted">Enter 12 digits (auto-formatted).</small> </div> <div class="col-12 col-md-4"> <label class="form-label d-block">Student Photo</label> <div class="d-flex align-items-center gap-3"> <label class="btn btn-outline-secondary mb-0"> Choose Photo <input type="file" class="d-none" name="photo" id="photo" accept="image/jpeg,image/png,image/webp"> </label> <img id="photoPreview" src="" alt="Preview" style="width:64px;height:64px;object-fit:cover;border-radius:50%;display:none;border:1px solid #e5e5e5;"> </div> <small class="text-muted d-block mt-1">JPG/PNG/WebP, max 2 MB.</small> <div class="invalid-feedback d-block" id="photoErr" style="display:none;"> Please upload a valid image (JPG/PNG/WebP) under 2 MB. </div> </div> <div class="col-12"> <label class="form-label">School Name</label> <input type="text" class="form-control" name="school_name" id="school" placeholder="New Admission / Previous School Name"> </div> </div> <!-- Message / Notes --> <div class="row g-3 mt-3"> <div class="col-12"> <label class="form-label">Message / Notes</label> <textarea name="notes" id="message" rows="3" class="form-control" placeholder="Any additional information"></textarea> </div> </div> <!-- Consent --> <div class="row mt-3"> <div class="col-12"> <label class="d-flex align-items-start" style="gap:.6rem;"> <input type="checkbox" name="consent" id="consent" required> <span>I confirm the above details are correct and I agree to be contacted for admission. <span style="color:#ff5252">*</span></span> </label> </div> </div> <!-- reCAPTCHA --> <div class="form-group" style="margin:12px 0;"> <div class="g-recaptcha" data-sitekey="<?php echo htmlspecialchars(RECAPTCHA_SITE_KEY); ?>"></div> </div> <!-- Submit --> <div class="mt-2"> <button class="submit ttm-btn ttm-btn-size-md ttm-btn-shape-square ttm-btn-style-fill ttm-btn-color-dark" type="submit" id="submitBtn"> Submit Now! </button> </div> </form> </div> </div> </div> </div> </section> </div> <br/><br/><br/> <?php include("footer.php"); ?> <script src="https://www.google.com/recaptcha/api.js" async defer></script> <script> function onlyDigits(s){ return (s||'').replace(/\D+/g,''); } // Age auto-calc const dob=document.getElementById('dob'),age=document.getElementById('age'); if(dob&&age){ dob.addEventListener('change',()=>{ if(!dob.value) return age.value=''; const d=new Date(dob.value), t=new Date(); let y=t.getFullYear()-d.getFullYear(); const m=t.getMonth()-d.getMonth(); if(m<0||(m===0&&t.getDate()<d.getDate())) y--; age.value=(y>=0&&y<120)?(y+' years'):''; }); } // Aadhaar formatting const aadhaar=document.getElementById('aadhaar'); if(aadhaar){ aadhaar.addEventListener('input',()=>{ const d=onlyDigits(aadhaar.value).slice(0,12); aadhaar.value=d.replace(/(\d{4})(?=\d)/g,'$1 '); }); } // Photo preview validation const photo=document.getElementById('photo'), photoPreview=document.getElementById('photoPreview'), photoErr=document.getElementById('photoErr'); if(photo){ photo.addEventListener('change',()=>{ photoErr.style.display='none'; photoPreview.style.display='none'; if(!photo.files||!photo.files[0]) return; const f=photo.files[0], okType=['image/jpeg','image/png','image/webp'].includes(f.type), okSize=f.size<=2*1024*1024; if(!okType||!okSize){ photoErr.style.display='block'; photo.value=''; return; } const r=new FileReader(); r.onload=e=>{ photoPreview.src=e.target.result; photoPreview.style.display='inline-block'; }; r.readAsDataURL(f); }); } // Restrict mobile/aadhaar to digits ['mobile','aadhaar'].forEach(id=>{ const el=document.getElementById(id); if(!el) return; el.addEventListener('input',()=>{ el.value=onlyDigits(el.value).slice(0, id==='mobile'?10:14); }); }); </script> <style> .form-label { font-weight: 600; } .form-control, .form-select { border-radius: 8px; border: 1px solid #e3e3e3; padding: 10px 12px; } .form-control:focus, .form-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,82,82,0.15); } hr.my-4 { border: 0; border-top: 1px dashed #ddd; margin: 1.25rem 0; } .fw-600 { font-weight: 600; } </style>
Upload File
Create Folder