Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/sugam.kmclu.ac.in/public_html/student/
Dosya Yükle :
Current File : /home/u866425823/domains/sugam.kmclu.ac.in/public_html/student/cc_apply.php

<?php
require('Common/Header.php');
$enroll_no = $f_s_d['enroll_no'];
$fee = 0;
$date = date('Y-m-d');
$time = date('H:i:s');
$certi_name = "Character Certificate";
if (isset($_POST['apply'])) {

    $cc_date_of_lu = realEscape('date');
    $file = $_FILES['file']['name'];
    $file_tmp = $_FILES['file']['tmp_name'];

    if (file_format($file, $img_format)) {



        $check = mysqli_query($conn, "SELECT * FROM `certificatedata` where enroll_no = '$enroll_no' and certi_name = '$certi_name'");
        if (mysqli_num_rows($check) == 0) {

            $uid = uid_generator();

            $new_file_name =  new_fileName($file);

            $insert = "INSERT INTO `certificatedata`(`certi_id`,`enroll_no`, `certi_name`, `date`, `time`, `fee`,`cc_date_of_lu`,`l_sem_marksheet`,`status`) 
            VALUES ('$uid','$enroll_no','$certi_name','$date','$time','$fee','$cc_date_of_lu','$new_file_name','Pending')";
            if (mysqli_query($conn, $insert)) {
                move_uploaded_file($file_tmp, '../Files/student/' . $new_file_name);
                SuccessFun('Application Submitted Successfully');
            } else {
                DangerFun('Application Failed');
            }
        } else {
            DangerFun('Application already submitted');
        }
    } else {
        DangerFun('Invalid File Format');
    }
}

?>

<!-- Content Wrapper -->

<!-- ----------Top bar start------------  -->


<!-- ----------Top bar End------------  -->

<!-- Begin Page Content -->
<div class="container-fluid">
    <div class="card shadow">
        <div class="card-header ">
            <h4 class="text-primary font-weight-bold" style="font-size:20px"> Apply for <?php echo $certi_name ?></h4>
        </div>
        <div class="card-body overflow-auto">
            
        <table class="table table-bordered">
  
                <tr>
                    <th>Full Name</th>
                    <td><?php echo $f_s_d['full_name'] ?></td>
                </tr>
                <tr>
                    <th>Father Name</th>
                    <td><?php echo $f_s_d['father'] ?></td>
                </tr>
                <tr>
                    <th>Mother Name</th>
                    <td><?php echo $f_s_d['mother'] ?></td>
                </tr>
                <tr>
                    <th>Enrollement Number</th>
                    <td><?php echo $f_s_d['enroll_no'] ?></td>
                </tr>
                <tr>
                    <th>Roll Number</th>
                    <td><?php echo $f_s_d['roll_no'] ?></td>
                </tr>
                <tr>
                    <th>Course</th>
                    <td><?php echo $f_s_d['course'] ?></td>
                </tr>
                <tr>
                    <th>Email</th>
                    <td><?php echo $f_s_d['email'] ?></td>
                </tr>
            </table>
        </div>
        <div class="card-footer">
            <form method="POST" enctype="multipart/form-data">
                <div class="row mb-5">
                    <div class="col-lg-6 col-12 mb-3 ">
                        <label class="form-label label-color">Last Semester Marksheet</label>
                        <input type="file" name="file" accept="image/*" class="form-control" required>
                    </div>
                    <div class="col-lg-6 col-12 mb-3 ">
                        <label class="form-label label-color">Date Of Leaving University</label>
                        <input type="date" name="date" class="form-control" required>
                    </div>
                    <div class="col-12 mb-3 text-center">
                        <button type="submit" name="apply" class="btn btn-info">Apply</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>


<?php require('Common/Footer.php') ?>


</body>

</html>

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.