<!DOCTYPE html>

<!-- 

Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.4

Version: 4.0.1

Author: KeenThemes

Website: http://www.keenthemes.com/

Contact: support@keenthemes.com

Follow: www.twitter.com/keenthemes

Like: www.facebook.com/keenthemes

Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes

License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.

-->

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->

<!--[if !IE]><!-->

<html lang="en">

<!--<![endif]-->

<!-- BEGIN HEAD -->

<head>

<meta charset="utf-8"/>

<?php

  include('db_con.php');

?>

<title><?php echo $title;?></title>

<meta http-equiv="X-UA-Compatible" content="IE=edge">

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

<meta http-equiv="Content-type" content="text/html; charset=utf-8">

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

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

<!-- BEGIN GLOBAL MANDATORY STYLES -->

<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>

<link href="assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

<link href="assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>

<link href="assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

<link href="assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>

<!-- END GLOBAL MANDATORY STYLES -->

<!-- BEGIN PAGE LEVEL STYLES -->

<link href="assets/global/plugins/select2/select2.css" rel="stylesheet" type="text/css"/>

<link href="assets/admin/layout/css/login3.css" rel="stylesheet" type="text/css"/>

<!-- END PAGE LEVEL SCRIPTS -->

<!-- BEGIN THEME STYLES -->

<link href="assets/global/css/components.css" id="style_components" rel="stylesheet" type="text/css"/>

<link href="assets/global/css/plugins.css" rel="stylesheet" type="text/css"/>

<link href="assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/>

<link href="assets/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css" id="style_color"/>

<link href="assets/admin/layout/css/custom.css" rel="stylesheet" type="text/css"/>

<!-- END THEME STYLES -->

<link rel="shortcut icon" href="favicon.ico"/>

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="login">

	<script type="text/javascript">

// function validLogin(){

//       var uname=$('#username').val();

//       var upass=$('#password').val();



//       var dataString = 'uname='+ uname + '&upass='+ upass;

//       $("#flash").show();

//       $("#flash").fadeIn(400).html('<img src="image/loading.gif" />');

//       $.ajax({

//       type: "POST",

//       url: "processed.php",

//       data: dataString,

//       cache: false,

//       success: function(result){

//                var result=trim(result);

//                $("#flash").hide();

//                if(result=='correct'){

//                      window.location='product.php';

//                }else{

//                      $("#errorMessage").html(result);

//                }

//       }

//       });

// }



// function trim(str){

//      var str=str.replace(/^\s+|\s+$/,'');

//      return str;

// }

</script>

<!-- BEGIN LOGO -->

<div class="logo">

	<a href="index.html">

	<img src="assets/img/logo.jpg" alt=""/>

	</a>

</div>

<!-- END LOGO -->

<!-- BEGIN SIDEBAR TOGGLER BUTTON -->

<div class="menu-toggler sidebar-toggler">

</div>

<!-- END SIDEBAR TOGGLER BUTTON -->

<!-- BEGIN LOGIN -->

<div class="content">

	<?php // echo $_GET['msg']."hello";?>

	<?php 

		   if(isset($_GET['msg']) && !empty($_GET['msg']))



		  			{ 

		  				if($_GET['msg']==1)	echo "<div class='alert alert-danger'><button class='close' data-close='alert'></button><span>please enter correct user details</span></div>";
		  				if($_GET['msg']==21)	echo "<div class='alert alert-danger'><button class='close' data-close='alert'></button><span>IP address of your location is not allowed.</span></div>";



		  			} 

		  ?>

	<!-- BEGIN LOGIN FORM -->

	<form class="login-form" method="post" action="processed.php">

		<h3 class="form-title">Login to your account</h3>

		<div class="alert alert-danger display-hide">

			<button class="close" data-close="alert"></button>

			<span>

			Enter any username and password. 



		  </span>

		</div>

		<div class="form-group">

			<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->

			<label class="control-label visible-ie8 visible-ie9">Username</label>

			<div class="input-icon">

				<i class="fa fa-user"></i>

				<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Username" required="required" name="username"/>

			</div>

		</div>

		<div class="form-group">

			<label class="control-label visible-ie8 visible-ie9">Password</label>

			<div class="input-icon">

				<i class="fa fa-lock"></i>

				<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="Password" required="required" name="password"/>

			</div>

		</div>

		<div class="form-actions">

			<label class="checkbox">

			<input type="checkbox" name="remember" value="1"/> Remember me </label>

			<button type="submit" onclick="validLogin()" class="btn green-haze pull-right">

			Login <i class="m-icon-swapright m-icon-white"></i>

			</button>

		</div>

		

	</form>

	<!-- END LOGIN FORM -->

	

</div>

<!-- END LOGIN -->

<!-- BEGIN COPYRIGHT -->

<div class="copyright">

	 Admin Panel Developed by <a href="http://www.saimongroup.com"  target="_blank">Saimon Group</a>.

</div>

<!-- END COPYRIGHT -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

<!-- BEGIN CORE PLUGINS -->

<!--[if lt IE 9]>

<script src="assets/global/plugins/respond.min.js"></script>

<script src="assets/global/plugins/excanvas.min.js"></script> 

<![endif]-->

<!-- <script src="assets/global/plugins/jquery.min.js" type="text/javascript"></script>

<script src="assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>

<script src="assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

<script src="assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>

<script src="assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>

<script src="assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
 -->
<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL PLUGINS -->

<!-- <script src="assets/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>

<script type="text/javascript" src="assets/global/plugins/select2/select2.min.js"></script>
 -->
<!-- END PAGE LEVEL PLUGINS -->

<!-- BEGIN PAGE LEVEL SCRIPTS -->

<!-- <script src="assets/global/scripts/metronic.js" type="text/javascript"></script>

<script src="assets/admin/layout/scripts/layout.js" type="text/javascript"></script>

<script src="assets/admin/layout/scripts/demo.js" type="text/javascript"></script>

<script src="assets/admin/pages/scripts/login.js" type="text/javascript"></script>
 -->
<!-- END PAGE LEVEL SCRIPTS -->

<script>

// jQuery(document).ready(function() {     

//   Metronic.init(); // init metronic core components

//   Layout.init(); // init current layout

//   Login.init();

//   Demo.init();

// });

</script>

<!-- END JAVASCRIPTS -->

</body>

<!-- END BODY -->

</html>