Index of /home/htscrtms/newcrm.htshah.com/hslider
<?php
include('lib/db_connect.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
<title>HT Shah</title>
<link rel="icon" type="image/x-icon" href="assets/img/favicon.ico"/>
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700" rel="stylesheet">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/plugins.css" rel="stylesheet" type="text/css" />
<link href="assets/css/dashboard/dash_1.css" rel="stylesheet" type="text/css">
<link href="assets/css/authentication/form-2.css" rel="stylesheet" type="text/css" />
<!-- END GLOBAL MANDATORY STYLES -->
<link rel="stylesheet" type="text/css" href="assets/css/forms/theme-checkbox-radio.css">
<link rel="stylesheet" type="text/css" href="assets/css/forms/switches.css">
</head>
<body class="form">
<?php include("header.php"); ?>
<!-- BEGIN NAVBAR -->
<div class="sub-header-container">
<header class="header navbar navbar-expand-sm">
<a href="javascript:void(0);" class="sidebarCollapse" data-placement="bottom"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></a>
<ul class="navbar-nav flex-row">
<li>
<div class="page-header">
<nav class="breadcrumb-one" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page"><span>Login</span></li>
</ol>
</nav>
</div>
</li>
</ul>
</header>
</div>
<!-- END NAVBAR -->
<!-- BEGIN MAIN CONTAINER -->
<div class="main-container" id="container">
<?php include("sidebar-wrapper.php"); ?>
<!-- BEGIN CONTENT AREA -->
<div id="content" class="main-content">
<div class="layout-px-spacing">
<div class="row layout-top-spacing">
<div class="col-xl-8 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
<div class="widget widget-table-two">
<div class="widget-content mb-5">
<?php
$selmli="select * from `tabl_mainslider` order by id desc";
$qrymli=mysqli_query($con,$selmli);
?>
<div class="hd-contact-section">
<div class="hd-slider">
<div class="row">
<div class="col-sm-12">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<?php while($rsmli=mysqli_fetch_array($qrymli)){ ?>
<div class="carousel-item <?php if($rsmli['id']=="1"){ echo "active"; } ?> news-updates ">
<div class="carousel-item-content">
<div class="row">
<div class="col-md-12">
<div class="media">
<div class="media-body">
<img src="hslider/<?php echo $rsmli['mimage']; ?>" width="100%"/>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="row mt-2">
<div class="col-md-12">
<a href="flash/eodb may 2021.pdf" target="_blank"><button type="button" class="btn btn-primary">Read More</button></a>
<a href="flash/company_profile.pdf" target="_blank"><button type="button" class="btn btn-info ml-2">Company Profile</button></a>
</div>
</div>
</div>
</div>
<div class="widget-heading">
<h5 class="">Messages</h5>
</div>
<div class="widget-content">
<?php
$selm="select * from `tabl_messages` where mstatus='ACTIVE' order by id desc limit 0,5";
$qrym=mysqli_query($con,$selm);
while($rsm=mysqli_fetch_array($qrym))
{
echo "<h6>".$rsm['msubject']."</h6>";
echo "<p>".$rsm['mcontent']."</p><br>";
}
?>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
<div class="form-container outer">
<div class="form-form">
<div class="form-form-wrap">
<div class="form-container">
<div class="form-content">
<h1 class="">Sign In</h1>
<p class="">Log in to your account to continue.</p>
<form class="text-left" method="post" name="login_form" id="form1">
<div class="form">
<div id="username-field" class="field-wrapper input">
<label for="username">USERNAME</label>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
<input id="user" name="username" type="text" class="form-control" placeholder="User Name" required>
</div>
<div id="password-field" class="field-wrapper input mb-2">
<div class="d-flex justify-content-between">
<label for="password">PASSWORD</label>
</div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>
<input id="password" name="password" type="password" class="form-control" placeholder="Password" required>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="toggle-password" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
</div>
<div id="seln-field" class="field-wrapper input mb-2">
<div class="d-flex justify-content-between">
<label for="selectfield">SELECT ONE</label>
</div>
<select class="form-control" name="seln" id="seln" required>
<option value="Client">Client</option>
<option value="Superadmin">Superadmin</option>
<option value="Employee">Employee</option>
</select>
</div>
<div class="d-sm-flex justify-content-between">
<div class="field-wrapper">
<input type="submit" class="btn btn-primary" value="Log In">
</div>
</div>
</div>
</form>
<br>
<div class="alert alert-danger alert-dismissible" style="display:none;">
Either user name or password are wrong!
</div>
</div>
</div>
<br><br>
<center><a href="https://api.whatsapp.com/send?phone=919930127901" target="_blank"><button type="button" class="btn btn-success btn-lg">Quick Connect Via Whatsapp</button></a></center>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php"); ?>
</div>
<!-- END CONTENT AREA -->
</div>
<!-- END MAIN CONTAINER -->
<!-- BEGIN GLOBAL MANDATORY SCRIPTS -->
<script src="assets/js/libs/jquery-3.1.1.min.js"></script>
<script src="bootstrap/js/popper.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="assets/js/app.js"></script>
<script>
$(document).ready(function() {
App.init();
});
</script>
<script src="assets/js/custom.js"></script>
<script src="assets/js/dashboard/dash_1.js"></script>
<!-- END GLOBAL MANDATORY SCRIPTS -->
<script src="assets/js/authentication/form-2.js"></script>
<script>
$("#form1").submit(function(e) {
var user = $("#user").val();
var password = $("#password").val();
var seln = $("#seln").val();
$.ajax({
url:'ajax/login.php',
type:'post',
data:{'user':user,'password':password,'seln':seln},
success:function(data){
//alert(data);
if(data==1)
{
$(location).attr('href','home.php');
}
else
{
$(".alert").show();
setInterval(function() {
$(".alert").hide();
}, 8000);
}
},
});
e.preventDefault(); // avoid to execute the actual submit of the form.
});
</script>
</body>
</html>