Mini Shell

Direktori : /home/rizant5/public_html/development/
Upload File :
Current File : /home/rizant5/public_html/development/copyright.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>Copyright | 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('subscription@lankavirtualacademy.com',"Subscription"); //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

    }

    ?>

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

<body class="video_tutorial">

    <?php headermenu();?>

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

	<section>

    	 <div class="container">

             <div class="row">
         	
                <?php
                $data = $conn->query("select * from options where option_name='copyright'");
                $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">

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

                </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);
    }
</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);
    });
</script>
<!---->
</body>

</html>

Zerion Mini Shell 1.0