ok
Direktori : /home2/globaltriumphfou/public_html/admin_panel/ |
Current File : /home2/globaltriumphfou/public_html/admin_panel/index.php |
<?php session_start(); $pre="TrendData_"; if(isset($_SESSION[$pre.'userid'])) { header("location:home"); } ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Admin</title> <meta name="author" content="pankaj Technotym 9513465230" /> <link rel="stylesheet" type="text/css" href="css/demo.css" /> <link rel="stylesheet" type="text/css" href="css/tabs.css" /> <style> html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } </style> </head> <body> <header> <h1> <img src="images/logo.png" alt="Global Triumph Foundation Logo" class="img-responsive" width="200" /></h1> </header> <div class="container"> <h4 align="center"><span id="errormsgbox"></span></h4> <section class="tabblue"> <ul class="tabs blue"> <li> <input type="radio" name="tabs blue" id="tab2" checked /> <label for="tab2">Login</label> <div id="tab-content2" class="tab-content"> <form name="formcontacta" id="formcontacta"> <span class="tabaddon"><i class="fa fa-envelope fa-2x"></i></span> <input class="bigfld" name="email" required type="email" placeholder="myusername@gmail.com"/> <span class="tabaddon"><i class="fa fa-lock fa-2x"></i></span> <input class="bigfld" name="password" required type="password" placeholder="mypassword"/> <div class="btn"> <input type="hidden" name="operation" value="Login" /> <input type="submit" value="Login" id="adda"/> </div> </form> </div> </li> </ul> </section> </div> <?php include "footer.php"; ?> <script src="js/jquery.js"></script> <script> $(document).ready(function(){ $("#formcontacta").on('submit',(function() { $("#adda").attr("disabled", true); $.ajax({ url: "operation-l.php", type: "POST", data: new FormData(this),contentType: false,cache: false,processData:false,success: function(data) { $("#adda").attr("disabled", false); if(data=='1') { $('#errormsgbox').html('Please wait....'); $("#adda").attr("disabled", false); $("#formcontacta")[0].reset(); $('#adda').html('Login'); $('#errormsgbox').html(data); }else { $('#errormsgbox').html(data); $('#adda').html('Login'); $("#adda").attr("disabled", false); } } }); return false; })); }); </script> </body> </html>