[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_recipient.php
<?php include 'header.php';?> <style> .col-md-3,.col-md-4,.col-md-6{ display:inline-block !important; } </style> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Add Scholarship Recipient</div> </div> <small style="color:red;font-weight:bold">Please Note: Please Upload either image or video(any one), do not upload both.</small> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <div class="card-body"> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">Name <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="name" class="form-control" placeholder="Name"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Image</label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="file" name="image" placeholder="Image" > </div> <h6>OR</h6> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Video </label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="file" name="video" accept="video/*" placeholder="Image" > </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-2 col-md-1 col-sm-4 mt-sm-2 ">Year Sponsored <span class="required-label">*</span></label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="text" name="year" class="form-control" placeholder="Year Sponsored"> </div> <label for="name" class="col-lg-1 col-md-1 col-sm-4 mt-sm-2 ">DOB <span class="required-label">*</span></label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="date" name="dob" class="form-control" placeholder="DOB"> </div> <label for="name" class="col-lg-2 col-md-1 col-sm-4 mt-sm-2 ">School & Board <span class="required-label">*</span></label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="text" name="school" class="form-control" placeholder="School & Board"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 ">Academic Record <span class="required-label">*</span></label> <div class="col-lg-12 col-md-12 col-sm-12"> <input type="text" name="academic" class="form-control" placeholder="Academic Record "> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Hobbies<span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="hobbies" class="form-control" placeholder="Hobbies"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Aim of Life<span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="aim_of_life" class="form-control" placeholder="Aim of Life"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">Family Income<span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="income" class="form-control" placeholder="Family Income"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">College <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="college" class="form-control" placeholder="College "> </div> </div> <hr> <h5>Scholarship</h5> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">First Year Fee<span class="required-label">*</span></label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="text" name="first_fee" class="form-control" placeholder="First Year Fee"> </div> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">Second Year Fee<span class="required-label">*</span></label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="text" name="second_fee" class="form-control" placeholder="First Year Fee"> </div> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">Third Year Fee<span class="required-label">*</span></label> <div class="col-lg-2 col-md-12 col-sm-12"> <input type="text" name="third_fee" class="form-control" placeholder="First Year Fee"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 ">Testimonial <span class="required-label">*</span></label> <div class="col-lg-12 col-md-12 col-sm-12"> <textarea name="content" class="form-control" rows="10"></textarea> </div> </div> <div class="card-action"> <div class="row"> <div class="col-md-12"> <input class="btn btn-success" type="submit" name="sub" value="Submit"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub'])){ if(file_exists($_FILES['image']['tmp_name']) || is_uploaded_file($_FILES['image']['tmp_name'])) { $img=$show->imageEdit($_FILES['image']['name']); move_uploaded_file($_FILES['image']['tmp_name'],"../product_img/".$img); } if(file_exists($_FILES['video']['tmp_name']) || is_uploaded_file($_FILES['video']['tmp_name'])) { $video=$_FILES['video']['name']; move_uploaded_file($_FILES['video']['tmp_name'],"../product_img/".$video); } //echo $video; $data = array( 'name' =>htmlspecialchars($_POST['name']), 'year' =>htmlspecialchars($_POST['year']), 'dob' =>date('Y-m-d',strtotime($_POST['dob'])), 'school' =>htmlspecialchars($_POST['school']), 'academic' =>htmlspecialchars($_POST['academic']), 'hobbies' =>htmlspecialchars($_POST['hobbies']), 'aim_of_life' =>htmlspecialchars($_POST['aim_of_life']), 'income' =>htmlspecialchars($_POST['income']), 'college' =>htmlspecialchars($_POST['college']), 'first_fee' =>htmlspecialchars($_POST['first_fee']), 'second_fee' =>htmlspecialchars($_POST['second_fee']), 'third_fee' =>htmlspecialchars($_POST['third_fee']), 'content' =>htmlspecialchars($_POST['content']), 'image' =>$img, 'video' =>$video, ); // print_r($data); if($show->insert('recipient',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Your Recipient has been submitted.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </div> </div> </div> </div> </div> <?php include 'footer.php'; ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.03 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619