<!DOCTYPE html>
<html lang="fr">
    
<!-- Mirrored from thememinister.com/crm/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 18 Jul 2019 09:25:49 GMT -->
<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <title>.: SVAM - Interface d'administration :.</title>

        <!-- Favicon and touch icons -->
        <link rel="shortcut icon" href="images/logo.png" type="image/x-icon">
        <!-- Bootstrap -->
        <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <!-- Bootstrap rtl -->
        <!--<link href="assets/bootstrap-rtl/bootstrap-rtl.min.css" rel="stylesheet" type="text/css"/>-->
        <!-- Pe-icon-7-stroke -->
        <link href="assets/pe-icon-7-stroke/css/pe-icon-7-stroke.css" rel="stylesheet" type="text/css"/>
        <!-- style css -->
        <link href="assets/dist/css/stylecrm.css" rel="stylesheet" type="text/css"/>
        <!-- Theme style rtl -->
        <!--<link href="assets/dist/css/stylecrm-rtl.css" rel="stylesheet" type="text/css"/>-->
    </head>
    <body>
        <!-- Content Wrapper -->
        <div class="login-wrapper">
            
            <div class="container-center"> 
            <div class="login-area">
                <div class="panel panel-bd panel-custom">
                    <div class="panel-heading">
                        <div class="view-header">
                            <div class="header-icon">
                                <i class="pe-7s-unlock"></i>
                            </div>
                            <div class="header-title">
                                <h3>Connexion</h3>
                                <small><strong>Veuillez entrer vos paramètres de connexion.</strong></small>
                            </div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <form action="login.php" id="loginForm" novalidate>
                            <div class="form-group">
                                <label class="control-label" for="username">Identifiant</label>
                                <input type="text" placeholder="Identifiant" title="Entrez votre identifiant" required value="" name="username" id="username" class="form-control">
                                <span class="help-block small">Cet identifiant permet de vous connecter à l'interface d'administration</span>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="password">Mot de passe</label>
                                <input type="password" title="Please enter your password" placeholder="******" required value="" name="password" id="password" class="form-control">
                                <span class="help-block small">Indiquez votre mot de passe</span>
                            </div>
                            <div class="form-group" id="responseMsg">
                                
                            </div>
                            <div>
                                <button class="btn btn-add">Connexion</button>
                               
                            </div>
                        </form>
                        </div>
                        </div>
                </div>
            </div>
        </div>
        <!-- /.content-wrapper -->
        <!-- jQuery -->
        <script src="assets/plugins/jQuery/jquery-1.12.4.min.js" type="text/javascript"></script>
        <!-- bootstrap js -->
        <script src="assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    </body>

<!-- Mirrored from thememinister.com/crm/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 18 Jul 2019 09:25:49 GMT -->
</html>


<script>
    /*
  $(function () {
	
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
  */
  
  $( "form" ).submit(function( event ) {
	  

  //responseMsg;
   $.post($(this).attr("action"), $(this).serialize(), function(data) {
      // alert(data);
		   var obj = jQuery.parseJSON( data);  
		   if(obj.errorCode == 0 ) {
				//$('body').loading('stop');
				
				window.location.replace("main.php");
			   
		   }
		   else {
				 $('#responseMsg').html(obj.errorMessage) ;
		   }
         
        });
       // return false; // prevent normal submit
   
	event.preventDefault();

	
	//alert(this.id +  " N: " + $( "form" ).attr('toDiv') +  " R :" + $( "form" ).attr('returnPage') );
	
});
  

  
</script>