Mini Shell
<?php require_once('function-file.php');
require_once('function-menu.php');
require_once('config.php');
require_once('function-testo-footer.php');
if(!empty($_GET['activate_id'])){
$stu_id=$_GET['activate_id'];
$conn->exec("update student_reg set stu_status='1' where stu_id='$stu_id'");
}
?>
<!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>Home | Lanka Virtual Academy</title>
<?php commoncss();?>
<style>
@media (min-width: 768px) {.login-box{width: 40%;text-align: center;margin-left: 30%;border: 2px solid #ccc;border-radius: 5px;}.error{color: red;}}
.login-box{ background-color: rgba(255,255,255,0.5);margin-top: 150px;margin-bottom: 100px; }
.login_page #form_inc{ /*background: url(images/login_bg.jpg) no-repeat center center / cover;*/background: url(images/login_bg.jpg) no-repeat center center / 100% 100%;min-height: 750px; }
.login_page #form_inc i{
font-size: 20px; position: absolute; width: 30px; top: 0px; left: 15px; padding-top: 7px; background-color: #00B8D0; height: 34px;color: #fff;text-align: center;
}
.login_page #form_inc i ~ input{ padding-left: 35px !important;background-color: #ddd;color: #fff; }
#form_inc .form-control:-moz-placeholder { color: #fff }
#form_inc .form-control::-moz-placeholder { color: #fff; }
#form_inc .form-control:-ms-input-placeholder { color: #fff }
#form_inc .form-control::-webkit-input-placeholder { color: #fff }
</style>
</head><!--/head-->
<body class="login_page">
<?php headermenu();?>
<section id="form_inc">
<div class="container">
<div class="row">
<div class="col-sm-12 login-box">
<?php if(!empty($_GET['activate_id'])){?><h4 style="color: green;">Thank You for Activating Your Account</h4>
<h6>Your account is now activated.</h6>
<p>You can now login to access the student section.</p><?php }?>
<br>
<!-- <h2>Login</h2> -->
<?php if(!empty($_GET['msg'])){echo"<p class='error'>Invalid Username or Password.</p>";}?>
<form action="student/login-exec.php" method="post" style="overflow:hidden;">
<div class="col-sm-12 form-group">
<!-- <div class="col-sm-3">Email ID</div> -->
<div class="col-sm-12">
<i class="fa fa-user" aria-hidden="true"></i><input type="email" name="stu_email" class="form-control" placeholder="Email address" required/>
</div>
</div>
<div class="col-sm-12 form-group">
<!-- <div class="col-sm-3">Password</div> -->
<div class="col-sm-12">
<i class="fa fa-lock" aria-hidden="true"></i><input type="password" name="stu_password" class="form-control" placeholder="Password" required/>
</div>
</div>
<div class="col-sm-12 col-xs-12 form-group">
<!-- <div class="col-sm-3"></div> -->
<div class="col-sm-4 col-xs-5"><input type="submit" class="btn btn-warning col-sm-12" value="LOGIN"/></div>
<div class="col-sm-8 col-xs-5"><a href="forgot-password.php" class="btn btn-warning col-sm-12">Forgot Password</a></div>
</div>
</form>
</div>
</div>
</div>
</section>
<?php newssletter(); ?>
<?php footer(); commonjs();?>
<!--modal-->
<div class="modal fade" id="check_mail" 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">×</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;">Please check your email for a system generated password.</h4></div>
</div>
</div>
</div>
</div>
<!--modal end-->
<?php
if($_GET['msg'] == 'checkmail'){
echo "<script>
$('#check_mail').modal('show');
</script>";
}
?>
</body>
</html>
Zerion Mini Shell 1.0