0byt3m1n1
Path:
/
home
/
k74ns2xygros
/
www
/
globetech
/
cms
/
[
Home
]
File: otp.php
<?php session_start(); include 'assets/config.php'; $user = new User(); if (!isset($_SESSION['otp'])) { header("Location: generate_otp.php"); } $session_otp = $_SESSION['otp']; //$_SESSION['phone']; //$_SESSION['name']; ?> <?php include 'head_out.php'; ?> <?php include 'header_out.php'; ?> <html> <head> <title>VERIFY OTP</title> <script src="vendors/jquery/dist/jquery.min.js"></script> <style> body { overflow-x: hidden; } .x_panel{ background-color: #d4dc87; border-radius: 10px; } .form-control{ background-color: khaki; } </style> </head> <body> <div class="right_col" role="main" style="padding-top: 10px;"> <div class="row"> <!-- <br> <div class="col-md-6 col-md-offset-3 col-sm-6 col-md-offset-3 col-xs-12 text-center"> <h3 style="font-weight: bold;">कार्यालय -- सहायक प्रबन्धक (कार्मिक)</h3> <h4 style="font-weight: bold;">ग्लोबटेक क्रिएशन्स प्राइवेट लिमिटेड</h4> <h5 style="font-weight: bold;">पंजीकृत कार्यालय - गोपाल नगर, सिसवा बाज़ार, जनपद- महराजगंज (उ०प्र०) - २७३१६३</h5> </div> <br>--> <div class="col-md-6 col-md-offset-3 col-sm-6 col-md-offset-3 col-xs-12"> <?php if ($_SESSION['msg_err']) { ?> <div class="alert alert-danger"> <span><strong>Oops!</strong> <?php echo $_SESSION['msg_err']; unset($_SESSION['msg_err']); ?> </span> </div> <?php } ?> <?php if ($_SESSION['name']) { ?> <div class="alert alert-success text-center"> <span><strong>Welcome !</strong> <?php echo strtoupper($_SESSION['name']); ?> </span> </div> <?php } ?> <div class="x_panel"> <div class="x_title"> <h4>VERIFY OTP <small style="color: red;">Please Enter OTP : <?php echo $session_otp; ?></small></h4> <div class="clearfix"></div> </div> <div class="x_content" style="text-transform: uppercase"> <!--<br>--> <form class="form-horizontal form-label-left input_mask" action="otpprocess.php" method="post" style="margin-bottom:-20px;"> <div class="form-group"> <label class="control-label col-md-4 col-sm-4 col-xs-12">Mobile No.</label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" name="phone" class="form-control" readonly="" value="<?php echo$_SESSION['phone']; ?>"> </div> </div> <div class="form-group"> <label class="control-label col-md-4 col-sm-4 col-xs-12">Enter OTP</label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" name="otpvalue" class="form-control" placeholder="Enter OTP" required=""> </div> </div> <div class="ln_solid"></div> <div class="form-group"> <div class="col-md-8 col-sm-8 col-xs-12 col-sm-offset-2 col-md-offset-2 text-center"> <button type="submit" name="btn_verify" class="btn btn-success">VERIFY OTP</button> <a href="generate_otp.php" name="btn_resend" id="btn_resend" style="display: none" class="btn btn-primary">RESEND OTP</a> <!--<button name="btn_resend" id="btn_resend" onclick="resend_opt('<?php echo $_SESSION['phone']; ?>')" style="display: none" class="btn btn-primary">Resend OTP</button>--> <br><br><p id="notice" style="color: green;font-weight: bold;">You can resend the OTP after 60 seconds</p> <p id="notice1" style="color: green;font-weight: bold;display:none"> </p> </div> </div> </form> </div> </div> </div> </div> </div> </body> </html> <?php //if (isset($_POST['btn_verify'])) { // $user->verify_otp(); //} //if (isset($_POST['btn_resend'])) { // $user->send_otp(); //} ?> <script> $(document).ready(function () { var counter = 60; var id = setInterval(function () { counter--; if (counter > 0) { var msg = "You can resend the OTP after " + counter + " seconds"; $('#notice').text(msg); } else { $('#notice').hide(); $('#btn_resend').show(); clearInterval(id); } }, 1000); }); </script>