Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/thread-self/root/home/rizant5/www/development/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/thread-self/root/home/rizant5/www/development/internship.php

<?php require_once('function-file.php');

require_once('function-menu.php');

require_once('function-testo-footer.php');?>

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta name="description" content="">

    <meta name="author" content="">

    <title>Internship | Lanka Virtual Academy</title>

	<?php commoncss();?>

    <style>.animated-item-2{color:#fff;}.animated-item-2{font-size:18px;}.margin-left{margin-left:5%;}

    #main-slider .carousel .carousel-content {padding-top: 15%;padding-left: 10%;margin: 0 auto;}

    #main-slider .carousel .item{background-position: 100%;background-size: cover;height:530px;}

    #main-slider .carousel .slide-margin{margin-top:0px;}

    @media (max-width: 1180px) {#main-slider .carousel .item{height:auto;}}

	</style>    

    <?php    
if(isset($_POST['save'])){

    require_once('phpmailer/class.phpmailer.php');

    require_once('phpmailer/class.smtp.php');

    $position = $_POST['stu_position'];

    $fname=htmlspecialchars($_POST['stu_name'],ENT_QUOTES);

    $stu_email=$_POST['stu_email'];

    $stu_phone=$_POST['stu_phone'];

    if(!empty($_FILES['resume']['name'])){
        //Upload Image
        $name=$_FILES['resume']['name'];
        $resume=str_replace(" ","_",$name);
        $tmp_name=$_FILES['resume']['tmp_name'];
        $resume_target_path="admin/application/resume/";
        $resume_target_path=$resume_target_path.basename($resume);
        move_uploaded_file($_FILES['resume']['tmp_name'],$resume_target_path);
        //--
    }

    if(!empty($_FILES['cover']['name'])){
        //Upload Image
        $name=$_FILES['cover']['name'];
        $cover=str_replace(" ","_",$name);
        $tmp_name=$_FILES['cover']['tmp_name'];
        $cover_target_path="admin/application/cover/";
        $cover_target_path=$cover_target_path.basename($cover);
        move_uploaded_file($_FILES['cover']['tmp_name'],$cover_target_path);
        //--
    }

    //Send Mail

    $message ="<br/><b>New Job Applicant Details</b>

    <br/><br/>
    Position Applied : $position

    <br/><br/>
    Full Name : $fname

    <br/><br/>
    Email Address : $stu_email

    <br/><br/>
    Phone Number : $stu_phone

    ";

    $mail = new PHPMailer; // call the class 

    $mail->IsSMTP();

    $mail->SMTPDebug  = 0; 

    $mail->SMTPSecure = "tls";   

    // $mail->Host = "smtp.gmail.com"; //Hostname of the mail server
    $mail->Host = "secure200.inmotionhosting.com"; //Hostname of the mail server

    $mail->Port = 587; //Port of the SMTP like to be 25, 80, 465 or 587

    $mail->SMTPAuth = true; //Whether to use SMTP authentication

    // $mail->Username = "praveen.patel.9595"; //Username for SMTP authentication any valid email created in your domain
    $mail->Username = "subscription@lankavirtualacademy.com"; //Username for SMTP authentication any valid email created in your domain

    // $mail->Password = "bgxbpqumcefjrbqi"; //Password for SMTP authentication
    $mail->Password = "subscription@lva"; //Password for SMTP authentication

    $mail->AddReplyTo("support@lankavirtualacademy.com", "Lanka Virtual Academy"); //reply-to address

    $mail->SetFrom("subscription@lankavirtualacademy.com","Lanka Virtual Academy"); //From address of the mail

    // put your while loop here like below,

    $mail->Subject = "New Job Application!"; //Subject od your mail

    $mail->AddAddress('career@lankavirtualacademy.com',"Career"); //To address who will receive this email

    //Provide file path and name of the attachments
    $mail->addAttachment($resume_target_path);
    $mail->addAttachment($cover_target_path); //Filename is optional

    $mail->MsgHTML($message);

    $send = $mail->Send(); //Send the mails

    echo "<script>window.onload = function(){
        $('#application_notified').modal('show');
    }</script>";

    }

    ?>

</head><!--/head-->

<body class="video_tutorial">

    <?php headermenu();?>

    <section class="header-title">
        <div class="container">
            <div class="row">
                <div class="col-sm-12"><h2>Internship</h2></div>
            </div>
        </div>        
   </section>

	<section>

    	 <div class="container">

             <div class="row">

                <?php
                $data = $conn->query("select * from options where option_name='internship'");
                $result=$data->fetchall();
                $img = !empty($result[0][option_value]) ? $result[0][option_value] : '';
                ?>
         	
                <div class="col-lg-3 hidden-sm hidden-xs banner_left" style="background-image: url(admin/img/page/<?php echo $img; ?>);">
                    &nbsp;&nbsp;
                </div>

                <div class="col-lg-9 col-sm-12 col-xs-12 side_banner">

                    <h2 style="margin-top:0px;">JOIN US... Together we can make a difference</h2>
                    <p>
                        Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.
                    </p>

                    <div id="accordion">
                        <?php
                        $data=$conn->prepare("select * from tab_content where `type`='2' ");
                        $data->execute();$result=$data->fetchall();
                        foreach($result as $row){
                        ?>
                            <h3><?php echo $row['heading']; ?></h3>
                            <div><?php echo $row['content']; ?></div>
                        <?php
                        }
                        ?>
                    </div>

                    <h2>Apply for a job</h2>
                    <form action="#" method="post" id="apply_job" autocomplete="off" enctype="multipart/form-data">
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-6"><label>Position Applied</label><input type="text" name="stu_position" class="form-control" required/></div>
                            <div class="col-sm-6"><label>Full Name</label><input type="text" name="stu_name" class="form-control" required/></div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-6"><label>Email Address</label><input type="email" name="stu_email" id="email" class="form-control" required placeholder="Please enter correct email id"/></div>
                            <div class="col-sm-6"><label>Phone Number</label><input type="text" name="stu_phone" class="form-control" required/></div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-6" style="line-height: 34px;">Attach Resume <a class='resume_up' href="#">: Attach</a><i class="fa0 fa fa-file-text-o" aria-hidden="true"></i>&nbsp;&nbsp;&nbsp;&nbsp; Cover Letter <a class='cover_up' href="#">: Attach</a><i class="fa1 fa fa-file-text-o" aria-hidden="true"></i></div>
                            <div class="col-sm-6"><input type="submit" name="save" class="btn btn-success" value="SUBMIT"/></div>
                            <div style="display: none;">
                                <input type="file" name="resume" class="resume" onchange="loadFile(event)">
                                <input type="file" name="cover" class="cover" onchange="loadFile1(event)">
                            </div>
                        </div>
                    </form>

                </div>

            </div>

         </div>

    </section>

<?php testofooter();  newssletter();  ?>

<?php footer(); commonjs();?>   

<!---->
<style type="text/css">
    #apply_job{
        overflow: hidden;
        border: 1px solid rgb(16, 155, 182);
        background-color: #f6f6f6;
        padding-top: 15px;
    }
    #apply_job label, #apply_job a{
        color: rgb(16, 155, 182);
    }
    .fa0, .fa1{
        opacity: 0;
        font-size: 28px;
        vertical-align: -4px;
        margin: 0px 10px;
    }
</style>
<link href="css/jquery-ui.css" rel="stylesheet">
<script src="js/jquery-ui.js"></script>
<script>
    var icons = {
        header: "ui-icon-plus",
        activeHeader: "ui-icon-minus"
    };
    $( "#accordion" ).accordion({
        icons: icons,
        collapsible: true
    });
    // $("#accordion").accordion("option", "icons", null);
    $('.ui-accordion-content').css('height','auto');

    $('.resume_up').click(function(){
        $('.resume').trigger('click');
    });
    $('.cover_up').click(function(){
        $('.cover').trigger('click');
    });

    $('.banner_left').height($('.side_banner').innerHeight());
    $('.ui-accordion-header').click(function(){
        setTimeout(function(){
            $('.banner_left').height($('.side_banner').innerHeight())
        },500);
    });

    var loadFile = function(event) {
        $('.fa0').css('opacity','1');
    };
    var loadFile1 = function(event) {
        $('.fa1').css('opacity','1');
    };
</script>
<!---->
<!--modal end-->
<div class="modal fade" id="application_notified" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog modal-sm" role="document">
    <div class="modal-content">
      <div class="modal-header" style="background:#0382A9 !important;border-radius:3px 3px 0px 0px;color:#fff">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" style="color:red">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel" style="color:#fff" align="center"><i class="fa fa-cross"></i> Thank You!</h4>
      </div>
      <div class="modal-body">
        <div><h4 style="text-align: center;font-size: 16px;color:#0382a9;">Your application is received<br/>we will communicate with you<br/>as soon as possible</h4></div>
      </div>
    </div>
  </div>
</div> 
<!--modal end-->
</body>

</html>

Zerion Mini Shell 1.0