<?php
include('configure.php');
DB::connect();
if(isset($_POST['button'])){
$st_phone = $_POST['st_phone'];
$st_password = $_POST['st_password'];
$password = md5($st_password);
$select = "select * from `student` WHERE st_phone = '".$st_phone."' and st_password = '$password '";
$sql=$dbconn->prepare($select);
$sql->execute();
$wlvd=$sql->fetchAll(PDO::FETCH_OBJ);
if($sql->rowCount() > 0){
foreach($wlvd as $row5)
{
$_SESSION['id'] = $row5->id;
$_SESSION['st_name'] = $row5->st_name;
header("Location: welcome.php");
}
} else {
$error = "Invalid User Name.";
}
}
if (isset($_GET['action'])) {
$action=$_GET['action'];
switch($action) {
case "lo":
$msg="You are now logged out.";
break;
}
}
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<?php include('inc/header.php'); ?>
<body>
<style>
.form-control {
display: block;
width: 100%;
padding: .375rem .75rem;
font-size: .875rem;
line-height: 1.5;
color: #7460ee;
background-color: #fff;
border: 1px solid #7460ee;
border-radius: 2px;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.btn-info {
color: #fff;
background-color: #7460ee;
border-color: #7460ee;
}
</style>
<div class="main-wrapper">
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
<div class="preloader">
<div class="lds-ripple">
<div class="lds-pos"></div>
<div class="lds-pos"></div>
</div>
</div>
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Login box.scss -->
<!-- ============================================================== -->
<div class="container-fluid" style="background:url(assets/images/big/bbg1.png) no-repeat center center;">
<div class="container" style="padding-top:10px; padding-bottom:100px">
<div class="row">
<div class="col-md-12" style="text-align:center"><img src="http://goreswarcollege.ac.in/wp-content/uploads/2018/04/GC-WE08ecbc1b66.png" ><h3 style="color:#000">Goreswar College Online Admission Portal</h3></div>
</div>
<div class="row">
<div class="col-md-8" style="background-color:#ffffffed">
<div class="row" style="padding:10px">
<div class="col-md-12" style="border:2px; border-color:#7460ee; border-style: double;
border-radius: 9px;">
<h4 style="padding-top:20px; text-align:left">Important Information:</h4>
<strong>Dear Students, kindly follow the steps to fill up the registration and admission form.</strong><br><br>
1. Fill up the form available on the right hand side of the screen & click on signup button.<br>
2. An OTP will be delivered to your mobile number.<br>
3. Click on the Sign In link which will be appeared on your screen.<br>
4. After Sign In, 'registration / form fill up' link will be appeared on your dashboard.<br>
5. Fill up the form, upload necessary documents and make the payment. <br>
6. After successfully submitting the form and making the payment, you can download the admission form along with the payment receipt<br>
7. College Authority shall notify you about your admission status.<br>
8. If you are eligible to take admission, admission link will be appeared on your dashboard.<br>
9. Fill up the admission form and make the payment. <br><br>
<strong>*For any support kindly get in touch with college administration or get in touch with the technical team by sending an email to support@indiawebdesigns.in</strong>
</div>
</div>
</div>
<div class="col-md-4" style="background-color:#ffffffed">
<div class="row" style="padding:10px">
<div class="col-12" style="border:2px; border-color:#7460ee; border-style: double;
border-radius: 9px;">
<h4 style="padding-top:20px; text-align:center">Login To Your Account</h4>
<?php
if($error != ''){
echo "<div class='alert alert-danger' role='alert'>
Username is password is wrong!
</div>";
}
?>
<form name="loginform" class="col-12" id="loginform" method="post">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><i class="ti-user"></i></span>
</div>
<input type="text" name="st_phone" id="st_phone" class="form-control form-control-lg" required="" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon2"><i class="ti-pencil"></i></span>
</div>
<input type="password" name="st_password" id="st_password" class="form-control form-control-lg" required="" placeholder="Password" aria-label="Password" aria-describedby="basic-addon1">
</div>
<div class="form-group row">
<div class="col-md-12">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck1">
<label class="custom-control-label" for="customCheck1">Remember me</label>
<a href="forget_password.php" id="to-recover" class="text-dark float-right"><i class="fa fa-lock m-r-5"></i> Forgot pwd?</a>
</div>
</div>
</div>
<div class="form-group text-center">
<div class="col-xs-12 p-b-20">
<button type="submit" name="button" class="btn btn-block btn-lg btn-info" type="submit">Log In</button>
</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 m-t-10 text-center">
<div class="social">
<a href="javascript:void(0)" class="btn btn-facebook" data-toggle="tooltip" title="" data-original-title="Login with Facebook"> <i aria-hidden="true" class="fab fa-facebook"></i> </a>
<a href="javascript:void(0)" class="btn btn-googleplus" data-toggle="tooltip" title="" data-original-title="Login with Google"> <i aria-hidden="true" class="fab fa-google-plus"></i> </a>
</div>
</div>
</div>
<div class="form-group m-b-0 m-t-10">
<div class="col-sm-12 text-center">
Login With New Roll No <a href="login_roll.php" class="text-info m-l-5"><b>Click Here</b></a>
</div>
<div class="col-sm-12 text-center">
Don't have an account? <a href="index.php" class="text-info m-l-5"><b>Sign Up</b></a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- Login box.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Page wrapper scss in scafholding.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Page wrapper scss in scafholding.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Right Sidebar -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Right Sidebar -->
<!-- ============================================================== -->
</div>
<!--/Footer-->
<?php include('inc/footer.php'); ?>
<!-- ============================================================== -->
<!-- All Required js -->
<!-- ============================================================== -->
<script src="assets/libs/jquery/dist/jquery.min.js "></script>
<!-- Bootstrap tether Core JavaScript -->
<script src="assets/libs/popper.js/dist/umd/popper.min.js "></script>
<script src="assets/libs/bootstrap/dist/js/bootstrap.min.js "></script>
<!-- ============================================================== -->
<!-- This page plugin js -->
<!-- ============================================================== -->
<script>
$('[data-toggle="tooltip "]').tooltip();
$(".preloader ").fadeOut();
</script>
</body>
</html>