174 lines
7.0 KiB
PHP
174 lines
7.0 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Siddharth | Admin System Log in</title>
|
|
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
|
<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="<?php echo base_url(); ?>assets/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!-- WARNING: Respond.js doesn't work if you view the page via file: -->
|
|
<!--[if lt IE 9]>
|
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
[endif]-->
|
|
</head>
|
|
<body class="login-page">
|
|
<div class="login-box">
|
|
<div class="login-logo">
|
|
<a href="#"><b>Siddharth Industries</b><br>Admin System</a>
|
|
</div><!-- /.login-logo -->
|
|
<div class="login-box-body">
|
|
<p class="login-box-msg">Forgot Password</p>
|
|
<!-- <form action="<?php echo base_url(); ?>resetPasswordConfirmUser" method="post"> // this form action for OTP -->
|
|
<form action="<?php echo base_url(); ?>resetPasswordUser" method="post">
|
|
<div class="form-group has-feedback">
|
|
<input type="text" class="form-control" placeholder="Mobile Number" name ="phno" id= "phno" maxlength="10" onkeypress="return isNumber(event)">
|
|
<span class="glyphicon glyphicon glyphicon-phone form-control-feedback"></span>
|
|
</div>
|
|
<div class="form-group has-feedback">
|
|
<input type="text" class="form-control" placeholder="Email" name="email" required />
|
|
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
|
</div>
|
|
<!--
|
|
<div class="form-group has-feedback" id="pin">
|
|
<input type="text" class="form-control" placeholder="One time Code" name ="otp" id= "otp" maxlength="4">
|
|
<span class="glyphicon glyphicon-paperclip form-control-feedback"></span>
|
|
</div>
|
|
<div id="passwordfields">
|
|
<hr>
|
|
<div>
|
|
<label for="inputPassword1">New Password</label>
|
|
<input type="password" class="form-control required" id="NewPassword" placeholder="New password" name="newPassword" maxlength="10" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="inputPassword2">Confirm New Password</label>
|
|
<input type="password" class="form-control required equalTo" required id="ConfirmPassword" placeholder="Confirm new password" name="confirmPassword" maxlength="10" required>
|
|
<span id='message'></span>
|
|
</div>
|
|
<input type="text" id="hideuserid" name="hideuserid" readonly>
|
|
</div> -->
|
|
<br/>
|
|
<div class="row">
|
|
<div class="col-xs-8">
|
|
</div><!-- /.col -->
|
|
<div class="col-xs-4">
|
|
<input type="submit" id="submit" class="btn btn-primary btn-block btn-flat" value="Submit"/>
|
|
</div><!-- /.col -->
|
|
</div>
|
|
<!-- </form> -->
|
|
<a href="<?php echo base_url() ?>">Login</a><br>
|
|
</div><!-- /.login-box-body -->
|
|
</div><!-- /.login-box -->
|
|
<script src="<?php echo base_url(); ?>assets/js/jQuery-2.1.4.min.js"></script>
|
|
<script src="<?php echo base_url(); ?>assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
|
|
<script>
|
|
/** This for Used as OTP
|
|
* var dbOTP = '' ;
|
|
*
|
|
* $(function() {
|
|
* $('#passwordfields').hide();
|
|
* $('#pin').hide();
|
|
* $('#NewPassword, #ConfirmPassword').on('keyup', function () {
|
|
* if ($('#NewPassword').val() == $('#ConfirmPassword').val()) {
|
|
* $('#message').html('Matching').css('color', 'green');
|
|
* //$("input[type=submit]").attr("disabled", "disabled");
|
|
* } else
|
|
* $('#message').html('Password MisMatch').css('color', 'red');
|
|
* //$("input[type=submit]").attr("disabled", "disabled");
|
|
* });
|
|
* });
|
|
|
|
* $('#phno').change(function() {
|
|
* var id = $(this).val();
|
|
* //alert(id);
|
|
* $.ajax({
|
|
* data:{id:id},
|
|
* type:"POST",
|
|
* url:"<?php echo base_url();?>login/temp",
|
|
* success:function(data) {
|
|
* if(data.length == 4){
|
|
* $('#pin').show();
|
|
* dbOTP = data; }
|
|
* else{ alert(data); }
|
|
* }
|
|
* // var data = JSON.parse(data);
|
|
* // $.each(data,function(index,value){ var i = value.ContactNumber
|
|
* // if( i == id ){
|
|
* // alert('OTP send successfully, please check your mobile.');
|
|
* // }
|
|
* // else{
|
|
* // alert(id+'This Mobile Number is not registered with us.');
|
|
* // }
|
|
* // });
|
|
|
|
* // }
|
|
* });
|
|
* });
|
|
|
|
|
|
* $('#otp').change(function() {
|
|
* var enteredOTP = $(this).val();
|
|
* //alert('dbOTP'+dbOTP);
|
|
* if(enteredOTP == dbOTP){
|
|
* //alert("cont. true");
|
|
* $('#passwordfields').show();
|
|
* }
|
|
* else{
|
|
* alert("One Time Code Does not Matched. Try Next Times");
|
|
* $('#passwordfields').hide();
|
|
* }
|
|
* });//change function closed
|
|
*/
|
|
</script>
|
|
<script>
|
|
function isNumber(evt) {
|
|
evt = (evt) ? evt : window.event;
|
|
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
|
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// $('#phno').change(function() {
|
|
// var id = $(this).val();
|
|
// //alert(id);
|
|
// $.ajax({
|
|
// data:{id:id},
|
|
// type:"POST",
|
|
// url:"<?php echo base_url();?>login/sendthepassword",
|
|
// success:function(data) {
|
|
// alert(data);
|
|
// // if(data){
|
|
// // alert('Password Send successfully, Please check your mobile.');
|
|
// // }
|
|
// // else{
|
|
// // alert(id+'This Mobile Number is not registered with us.');
|
|
// // alert(data);
|
|
// // }
|
|
// }
|
|
// // var data = JSON.parse(data);
|
|
// // $.each(data,function(index,value){ var i = value.ContactNumber
|
|
// // if( i == id ){
|
|
// // alert('OTP send successfully, please check your mobile.');
|
|
// // }
|
|
// // else{
|
|
// // alert(id+'This Mobile Number is not registered with us.');
|
|
// // }
|
|
// // });
|
|
// });
|
|
// });
|
|
|
|
// $('#submit').click(function() {
|
|
// alert("adlkhadskjfjhadf");
|
|
// window.location.href = "loginMe";
|
|
|
|
// });
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|