📁 File Manager
Editing:
/home/wvl7mof7402e/public_html/remindyourdata.live/admin/resume_form.php
<?php // form.php ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Create Resume</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet"> <style> :root{--accent:#4b2eff;--muted:#666} *{box-sizing:border-box} body{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin:0; background:linear-gradient(135deg,#6a11cb,#2575fc); padding:20px; color:#222; display:flex; justify-content:center; align-items:flex-start; min-height:100vh; } .container{ width:100%; max-width:900px; background:#fff; border-radius:12px; padding:26px; box-shadow:0 18px 40px rgba(20,20,60,0.18); } h2{color:var(--accent);text-align:center;margin:0 0 18px;font-size:2rem} label{display:block;font-weight:600;color:#333;margin-bottom:6px} .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px} input[type="text"], input[type="email"], input[type="date"], textarea, select{ width:100%;padding:10px;border:1.6px solid #ddd;border-radius:8px;font-size:0.95rem; } textarea{min-height:80px;resize:vertical} .full {grid-column:1 / -1} .section{background:#fbfbff;border:1px solid #eee;padding:14px;border-radius:10px;margin-bottom:14px} .btn{background:var(--accent);color:#fff;padding:10px 14px;border:none;border-radius:8px;cursor:pointer;font-weight:700} .btn.secondary{background:#1f8ef1} .btn.warn{background:#f44336} .small{font-size:0.9rem;color:var(--muted)} .top-row{display:flex;gap:12px;align-items:center} .photo-preview{width:120px;height:140px;border:1px solid #ddd;border-radius:6px;object-fit:cover;background:#f3f3f3} .experience-table{width:100%;border-collapse:collapse} .experience-table th,.experience-table td{border:1px solid #ddd;padding:6px;text-align:left} .actions{display:flex;gap:8px;align-items:center} @media (max-width:800px){ .grid{grid-template-columns:1fr} .top-row{flex-direction:column;align-items:stretch} .photo-preview{width:100%;height:200px} } </style> </head> <body> <div class="container" role="main"> <h2><i class="bi bi-file-earmark-person-fill"></i> Create Resume</h2> <form action="save_resume.php" method="post" enctype="multipart/form-data" id="resumeForm"> <!-- Top fields --> <div class="section"> <div class="grid"> <div> <label>Post Applied For</label> <input type="text" name="post_applied_for" required placeholder="e.g. Pipe Fitter"> </div> <div> <label>Full Name</label> <input type="text" name="name" required placeholder="Full name"> </div> <div class="full"> <label>Present Address</label> <textarea name="present_address" required placeholder="Present address"></textarea> </div> <div class="full"> <label>Permanent Address</label> <textarea name="permanent_address" required placeholder="Permanent address"></textarea> </div> <div> <label>Mobile</label> <input type="text" name="mobile" required placeholder="+91XXXXXXXXXX"> </div> <div> <label>Languages Known</label> <input type="text" name="languages_known" placeholder="e.g. Hindi, English"> </div> </div> </div> <!-- Qualification & Passport --> <div class="section"> <div class="grid"> <div> <label>Qualification</label> <input type="text" name="qualification" placeholder="e.g. 10th, ITI"> </div> <div> <label>Technical Qualification</label> <input type="text" name="technical_qualification" placeholder="e.g. Welding, Fitting"> </div> <div class="full"> <h3 style="color:var(--accent);margin:8px 0">Passport Details</h3> <div class="grid"> <div> <label>Passport Number</label> <input type="text" name="passport_number" placeholder="Passport No"> </div> <div> <label>Date of Issue</label> <input type="date" name="passport_issue_date"> </div> <div> <label>Expiry Date</label> <input type="date" name="passport_expiry_date"> </div> <div> <label>Place of Issue</label> <input type="text" name="place_of_issue" placeholder="Place"> </div> <div> <label>Father's Name</label> <input type="text" name="father_name" placeholder="Father's name"> </div> <div> <label>Mother's Name</label> <input type="text" name="mother_name" placeholder="Mother's name"> </div> <div> <label>Date of Birth</label> <input type="date" name="dob"> </div> <div> <label>Place of Birth</label> <input type="text" name="place_of_birth" placeholder="Place of birth"> </div> </div> </div> </div> </div> <!-- Experience India --> <div class="section" id="indiaExpSection"> <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px"> <h3 style="margin:0;color:var(--accent)">Experience Details (India)</h3> <div class="actions"> <button type="button" class="btn secondary" onclick="addIndiaRow()">Add Row</button> </div> </div> <table class="experience-table" id="indiaExpTable"> <thead> <tr> <th style="width:30%">Name of Company</th> <th style="width:20%">Site</th> <th style="width:20%">Position</th> <th style="width:15%">From</th> <th style="width:15%">To</th> <th style="width:6%">Action</th> </tr> </thead> <tbody> <!-- one default row --> <tr> <td><input type="text" name="india_company[]" required placeholder="Company"></td> <td><input type="text" name="india_site[]" placeholder="Site"></td> <td><input type="text" name="india_position[]" placeholder="Position"></td> <td><input type="text" name="india_from[]" placeholder="YYYY or DD-MM-YYYY"></td> <td><input type="text" name="india_to[]" placeholder="YYYY or Present"></td> <td><button type="button" class="btn warn" onclick="removeRow(this)">X</button></td> </tr> </tbody> </table> </div> <!-- Experience Abroad --> <div class="section" id="abroadExpSection"> <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px"> <h3 style="margin:0;color:var(--accent)">Experience Details (Abroad)</h3> <div class="actions"> <button type="button" class="btn secondary" onclick="addAbroadRow()">Add Row</button> </div> </div> <table class="experience-table" id="abroadExpTable"> <thead> <tr> <th style="width:30%">Name of Company</th> <th style="width:25%">Site</th> <th style="width:25%">Position</th> <th style="width:10%">From</th> <th style="width:10%">To</th> <th style="width:6%">Action</th> </tr> </thead> <tbody> <tr> <td><input type="text" name="abroad_company[]" placeholder="Company"></td> <td><input type="text" name="abroad_site[]" placeholder="Site"></td> <td><input type="text" name="abroad_position[]" placeholder="Position"></td> <td><input type="text" name="abroad_from[]" placeholder="YYYY"></td> <td><input type="text" name="abroad_to[]" placeholder="YYYY or Present"></td> <td><button type="button" class="btn warn" onclick="removeRow(this)">X</button></td> </tr> </tbody> </table> </div> <!-- Photo & Signature --> <div class="section"> <div class="top-row" style="gap:18px"> <div style="flex:1"> <label>Candidate Photo (will appear in PDF)</label> <input type="file" name="photo" accept="image/*" onchange="previewPhoto(event)"> <p class="small">Allowed: jpg/png — recommended 300x400px</p> </div> <div style="width:150px;text-align:center"> <label>Photo Preview</label> <img id="photoPreview" src="" alt="Preview" class="photo-preview" /> </div> </div> <div style="margin-top:12px"> <label>Signature (Type name will be used as signature placeholder)</label> <input type="text" name="signature_text" placeholder="Candidate signature text"> </div> </div> <div style="display:flex;gap:10px;justify-content:flex-end"> <button type="submit" class="btn">Save & Generate PDF</button> </div> </form> </div> <script> function addIndiaRow(){ const tbody = document.querySelector('#indiaExpTable tbody'); const tr = document.createElement('tr'); tr.innerHTML = `<td><input type="text" name="india_company[]" placeholder="Company"></td> <td><input type="text" name="india_site[]" placeholder="Site"></td> <td><input type="text" name="india_position[]" placeholder="Position"></td> <td><input type="text" name="india_from[]" placeholder="YYYY or DD-MM-YYYY"></td> <td><input type="text" name="india_to[]" placeholder="YYYY or Present"></td> <td><button type="button" class="btn warn" onclick="removeRow(this)">X</button></td>`; tbody.appendChild(tr); } function addAbroadRow(){ const tbody = document.querySelector('#abroadExpTable tbody'); const tr = document.createElement('tr'); tr.innerHTML = `<td><input type="text" name="abroad_company[]" placeholder="Company"></td> <td><input type="text" name="abroad_site[]" placeholder="Site"></td> <td><input type="text" name="abroad_position[]" placeholder="Position"></td> <td><input type="text" name="abroad_from[]" placeholder="YYYY"></td> <td><input type="text" name="abroad_to[]" placeholder="YYYY or Present"></td> <td><button type="button" class="btn warn" onclick="removeRow(this)">X</button></td>`; tbody.appendChild(tr); } function removeRow(btn){ const tr = btn.closest('tr'); tr.parentNode.removeChild(tr); } function previewPhoto(e){ const file = e.target.files[0]; if (!file) return; const reader = new FileReader(); reader.onload = function(ev){ document.getElementById('photoPreview').src = ev.target.result; } reader.readAsDataURL(file); } </script> </body> </html>
Save
Cancel