]]jkjjgdjffksdkdxmnvbcbcvbvcbbbbbbbbbvcbcbvcbmnmbnwqeqwewqskfgj
במ12[cvbnvbnvcvbcvbcvbvvvccccccccccccccvbcvbcvbnmnmqewv;'
/
home
/
u729855735
/
public_html
/
lystlynk
/
Upload FileeE
HOME
<?php require('inc/db.php'); $msg = ''; if(isset($_POST['reg'])){ $layout = mysqli_real_escape_string($conn, $_POST['layout']); $pay = mysqli_real_escape_string($conn, $_POST['pay']); $name = mysqli_real_escape_string($conn, $_POST['name']); $email = mysqli_real_escape_string($conn, $_POST['email']); $pass = mysqli_real_escape_string($conn, $_POST['password']); if($layout == 'selling'){ $type = 'Agent'; } elseif($layout == 'both'){ $type = 'Agent'; } else{ $type = 'User'; } $date = date('Y-m-d'); $insert = "INSERT INTO admin(email,psw,type,name,subscription,date,user_mode) VALUES('$email','$pass','$type','$name','$pay','$date','$layout')"; $run = mysqli_query($conn, $insert); if($run){ $msg = "<span style='color:green;font-weight:600;font-size:16px;margin-top:20px'>Registration successful.</span>"; } else{ $msg = "<span style='color:red;font-weight:600;font-size:16px;margin-top:20px'>Failed! Something went wrong.</span>"; } } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> <link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,300,700&subset=latin,latin-ext" rel="stylesheet" type="text/css"> <link href="assets/fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="assets/libraries/owl-carousel/owl.carousel.css" rel="stylesheet" type="text/css"> <link href="assets/libraries/chartist/chartist.min.css" rel="stylesheet" type="text/css"> <link href="assets/css/leaflet.css" rel="stylesheet" type="text/css"> <link href="assets/css/leaflet.markercluster.css" rel="stylesheet" type="text/css"> <link href="assets/css/leaflet.markercluster.default.css" rel="stylesheet" type="text/css"> <link href="assets/css/villareal-turquoise.css" rel="stylesheet" type="text/css" id="css-primary"> <link rel="shortcut icon" type="image/x-icon" href="assets/favicon.png"> <title>Real Estate</title> <style> /* image checkbox style */ .image { opacity: 1; width: 80px; height: 40px; background-position: center center; background-color: #1358af; display: inline-block; margin: 10px; color: #FFF; text-align: center; line-height: 40px; border-radius:5px; } .image:hover { opacity: 1; } .radio-img > input { display: none; } .radio-img > .image { cursor: pointer; border: 2px solid #FFF; } .radio-img > input:checked + .image { border: 2px solid orangered; } .image-amt{ background: #FFF; padding: 10px 20px; border-radius: 5px; font-size: 18px; font-weight: 500; display: inline-block; margin: 10px; } .radio-img > .image-amt { cursor: pointer; border: 2px solid rgb(223, 223, 223); } .radio-img > input:checked + .image-amt { border: 2px solid green; } /* image checkbox style */ .subscription-fields { display: none; } .error-message { color: red; margin-bottom:10px; } </style> </head> <body class=""> <div class="page-wrapper"> <div class="dashboard-login-wrapper"> <div class="dashboard-login-inner"> <div class="dashboard-login-left"> <h2>Please Register</h2> <form method="POST" id="subscriptionForm"> <span><strong>Why are you here?</strong></span><br><br> <div> <label class="radio-img"> <input type="radio" name="layout" value="selling"/> <div class="image">Selling</div> </label> <label class="radio-img"> <input type="radio" name="layout" value="buying"/> <div class="image">Buying</div> </label> <label class="radio-img"> <input type="radio" name="layout" value="both"/> <div class="image">Both</div> </label> </div> <div class="error-message" style="display: none;">Please select an option for "Why are you here?"</div> <div class="subscription-fields"> <span><strong>Select Subscription Plan:</strong></span><br><br> <label class="radio-img"> <input type="radio" name="pay" value="99"/> <div class="image" style="width:124px !important">$99 / month</div> </label> <label class="radio-img"> <input type="radio" name="pay" value="499" /> <div class="image" style="width:124px !important">$499 / 6 month</div> </label> </div> <div class="form-group"> <label for="">Name</label> <input type="text" class="form-control" name="name" placeholder="Enter name.."> <div class="error-message1" style="display: none;color:red;margin-top:10px">Name field required.</div> </div><!-- /.form-group --> <div class="form-group"> <label for="">Email</label> <input type="text" class="form-control" name="email" placeholder="Enter email.."> <div class="error-message2" style="display: none;color:red;margin-top:10px">Email field required.</div> </div><!-- /.form-group --> <div class="form-group"> <label for="">Password</label> <input type="text" class="form-control" name="password" placeholder="Enter password"> <div class="error-message3" style="display: none;color:red;margin-top:10px">Password field required.</div> </div><!-- /.form-group --> <div class="form-group-btn"> <button type="submit" class="btn btn-primary pull-right" id="submit" name="reg">Register</button><br> </div><!-- /.form-group-btn --> </form> <?php echo $msg;?><Br> <span>ALready have an account? <a href="https://lystlynk.kyptronixllp.co.in/realestate_admin/sign-in.php">Login</a></span> </div><!-- /.dashboard-login-left --> <div class="dashboard-login-right"> <div class="dashboard-login-right-content"> <a href="index.php"><i class="fa fa-long-arrow-left"></i> Back To Home</a> <h1>Lorem Ipsum is simply dummy text</h1> <h2> Mauris ut rutrum lacus. Donec vulputate, lorem et volutpat consectetur, sapien mauris consectetur sapien, eu sagittis dui quam id justo. </h2> </div><!-- /.dashboard-login-right-content --> </div><!-- /.dashboard-login-right --> </div><!-- /.dashboard-login --> </div><!-- /.dashboard-login --> </div><!-- /.page-wrapper --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script type="text/javascript" src="assets/js/jquery.ezmark.min.js"></script> <script type="text/javascript" src="assets/js/tether.min.js"></script> <script type="text/javascript" src="assets/js/bootstrap.min.js"></script> <script type="text/javascript" src="assets/js/gmap3.min.js"></script> <script type="text/javascript" src="assets/js/leaflet.js"></script> <script type="text/javascript" src="assets/js/leaflet.markercluster.js"></script> <script type="text/javascript" src="assets/libraries/owl-carousel/owl.carousel.min.js"></script> <script type="text/javascript" src="assets/libraries/chartist/chartist.min.js"></script> <script type="text/javascript" src="assets/js/scrollPosStyler.js"></script> <script type="text/javascript" src="assets/js/villareal.js"></script> <script> $(document).ready(function() { // Initially hide subscription fields $('.subscription-fields').hide(); // Show subscription fields when selling or both is clicked $('input[name="layout"]').click(function() { var value = $(this).val(); if (value === 'selling' || value === 'both') { $('.subscription-fields').show(); } else { $('.subscription-fields').hide(); } }); // Validate radio button selection on form submit $('#subscriptionForm').submit(function(event) { var isChecked = $('input[name="layout"]:checked').length > 0; var name = $('input[name="name"]').val(); var email = $('input[name="email"]').val(); var password = $('input[name="password"]').val(); if (!isChecked) { $('.error-message').show(); event.preventDefault(); // Prevent form submission } else if(name === ""){ $('.error-message1').show(); event.preventDefault(); } else if(email === ""){ $('.error-message2').show(); event.preventDefault(); } else if(password === ""){ $('.error-message3').show(); event.preventDefault(); } else { $('.error-message').hide(); } }); }); </script> </body> </html>