D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
sign-up.php
back
Copy
<?php ob_start(); session_start(); include 'config.php'; $logo = "SELECT * FROM company_details"; $logoresult = mysqli_query($conn,$logo); $logorow = mysqli_fetch_array($logoresult); $com_logo = $logorow['company_logo'] ; $com_name = $logorow['company_name'] ; ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- Basic Page Needs ================================================== --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- For Search Engine Meta Data --> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="author" content="yoursite.com"> <title>Invoice Managment | Login</title> <!-- Favicon --> <link rel="shortcut icon" type="image/icon" href="images/favicon-16x16.png"> <!-- Font Awsome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Main structure css file --> <link rel="stylesheet" href="css/login2-style.css"> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="plugins/sweet-alert2/sweetalert2.min.css" rel="stylesheet" type="text/css"> <link href="plugins/jquery-toastr/jquery.toast.min.css" rel="stylesheet" /> </head> <body> <!-- Start Preloader --> <div id="preload-block"> <div class="square-block"></div> </div> <!-- Preloader End --> <div class="container-fluid"> <div class="row"> <div class="col-xs-12 col-sm-7 col-md-5 col-lg-4 authfy-panel-left"> <!-- brand-logo start --> <div class="brand-logo text-center"> <?php if($com_logo == ''){ ?> <img src="images\logo.png" width="150" alt="brand-logo"> <?php } else { ?> <img src="images\<?php echo $com_logo ?>" width="150" alt="brand-logo"> <?php } ?> </div> <!-- ./brand-logo --> <!-- authfy-login start --> <div class="authfy-login"> <!-- panel-login start --> <div class="authfy-panel panel-login text-center active"> <div class="row"> <div class="col-xs-12 col-sm-12"> <div class="authfy-heading"> <h3 class="auth-title">Sign up !</h3> </div> <form id="signupForm" class="signupForm" action="sendgrid-php/coorporate_registration.php" method="POST"> <div class="form-group"> <input type="email" class="form-control" name="username" id="username" placeholder="Email address" required> </div> <div class="form-group"> <div class="pwdMask"> <input type="password" class="form-control" name="password" id="password" placeholder="Password" required> <span class="fa fa-eye-slash pwd-toggle"></span> </div> </div> <div class="form-group"> <div class="pwdMask"> <input type="password" class="form-control" name="cpassword" id="cpassword" placeholder="Confirm Password" required> <span class="fa fa-eye-slash pwd-toggle"></span> </div> </div> <div class="form-group"> <p class="term-policy text-muted small">I agree to the <a href="#">privacy policy</a> and <a href="#">terms of service</a>. </p> </div> <div class="form-group"> <button class="btn btn-lg btn-primary btn-block" type="button" id="signup">Sign up </button> </div> </form> <a class="lnk-toggler" data-panel=".panel-login" href="index.php">Already have an account?</a> </div> </div> </div> <!-- ./panel-login --> <!-- panel-signup start --> </div> <!-- ./authfy-login --> </div> <!-- ./authfy-panel-left --> <div class="col-md-7 col-lg-8 authfy-panel-right hidden-xs hidden-sm"> <div class="hero-heading"> <div class="headline"> <?php if($com_name == ''){ ?> <h3>Welcome to Invoice Management Pvt Ltd.</h3> <?php }else{ ?> <h4>Create unlimited invoice, maintain customer records, payment & inventory with Invoice Management for free.</h4> <?php } ?> </div> </div> </div> </div> <!-- ./row --> </div> <!-- ./container --> <!-- initialize jQuery Library --> <script src="js/jquery-2.2.4.min.js"></script> <!-- for Bootstrap js --> <script src="js/bootstrap.min.js"></script> <!-- Custom js--> <!-- <script src="js/custom.js"></script>--> <script src="plugins/sweet-alert2/sweetalert2.min.js"></script> <script src="plugins/jquery-toastr/jquery.toast.min.js" type="text/javascript"></script> <script> $(document).ready(function(){ if (localStorage.getItem("mailSent") == "true") { successMessage("Please Check your mail & verify your Email Id."); localStorage.setItem("mailSent", "false"); } if (localStorage.getItem("emailExists") == "true") { errorMessage("Email Address Already Exists."); localStorage.setItem("emailExists", "false"); } if (localStorage.getItem("sessionExpire") == "true") { errorMessage("Session Expired."); localStorage.setItem("sessionExpire", "false"); } }) $("#signup").click(function(){ if($("#username").val() == ""){ errorToast("Please Enter Email Address."); } else if($("#password").val() == ""){ errorToast("Please Enter Password."); } else if($("#cpassword").val() == ""){ errorToast("Please Enter confirm Password."); } else if($("#password").val() != $("#cpassword").val()){ errorToast("Password doesn't match."); } else{ $.ajax({ url : "PHP/response.php", data : "action=checkEmailAddress&email="+$("#username").val(), async : false, method: "POST", success : function(response){ if(response.trim() == "SUCCESS"){ $("#signupForm").submit(); } else{ errorMessage("Email Address Already Exists."); } }, error:function(error){ } }); } }) function errorToast(msg){ $.toast({ heading: 'Error!', text: msg, position: 'top-right', loaderBg: '#bf441d', icon: 'error', hideAfter: 3000, stack: 1 }); } function successMessage(msg){ swal({ title: 'Success!', text: msg, type: 'success', confirmButtonColor: '#4fa7f3' }); } function errorMessage(msg){ swal({ title: 'Error!', text: msg, type: 'error', confirmButtonColor: '#4fa7f3' }); } </script> </body> </html>