Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/.trash/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/.trash/form-old.php

<?php 

require_once('admin/lib/functions.php');

$db		=	new login_function();


    $flag = 0;
    
    if (isset($_SESSION['current_login_user']) && isset($_SESSION['current_login_user_id'])) 
	{
		$current_login_user	        =	$_SESSION['current_login_user'];
        $current_login_user_id	    =	$_SESSION['current_login_user_id'];
	}
	
	if(!isset($_SESSION['current_login_user']) && isset($_SESSION['current_login_user_id']))
	{	
		header("location:index.php");
	}

    // $mobile_number1 = "";
    // if(isset($_GET['mobile_number'])){
    //     $mobile_number1 = $_GET['mobile_number'];
    //      $_SESSION['mobile_number'] = $mobile_number1;  
    // }

	if(isset($_POST['submit1']))
	{
        $rating = isset($_POST['rating']) ? intval($_POST['rating']) : 0;
		$name = $_POST['name'];
        $contact_number = $_POST['contact_number'];
        $thoughts = $_POST['thoughts'];
        $bussiness_id = "7";
         // Default to 0 if rating is not provided

       

		
	if($db->add_form_details($rating, $name, $contact_number, $thoughts, $current_login_user_id))
	{
		$flag = 1;
	}
		
		
	}
?>

<doctype html>
    <html>
        <head>

    <!-- GLOBAL MAINLY STYLES-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/line-awesome.min.css" rel="stylesheet" />
    <link href="css/themify-icons.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" />
    <link href="css/toastr.min.css" rel="stylesheet" />
    <link href="css/bootstrap-select.min.css" rel="stylesheet" />
	<!--<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">-->
  
    <!-- PLUGINS STYLES-->
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">

    <link rel="stylesheet" href="styles.css">
            <meta charset="UTF-8">
	        <title>Star Rating Form</title>
	        <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=1.0, maximum-scale=1.0"> -->
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <link rel="stylesheet" href="form-old.css">
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" >        

 <style>
    .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 70px;
}

/* Success Alert */
.alert-success {
    background-color: #d4edda;
    color: #66ff66;
    border: 1px solid #c3e6cb;
}

.alert-success i {
    color: #1a1a1a;
    margin-right: 10px;
}
</style>
        </head>
        <body>
            <div class="main">
            <div class="page-content fade-in-up">
            <?php
					if($flag == 1)
					{
					?>
					<div class="alert alert-success">

                    Details Add Successfully.
						</div>
					<?php
					}
					if($flag == 2)
					{
					?>
					<div class="alert alert-warning">

						Failed to Add.
						</div>
					<?php
					}
					?>
                    </div>
                <form class="parent" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
                    <div class="child1">
                        <h2>Luciano Guest House</h2>
                        <div class="child1-1">
                            <span class="fa fa-star" data-star="1" style="font-size: 25px;"></span>
                            <span class="fa fa-star" data-star="2" style="font-size: 25px;"></span>
                            <span class="fa fa-star" data-star="3" style="font-size: 25px;"></span>
                            <span class="fa fa-star" data-star="4" style="font-size: 25px;"></span>
                            <span class="fa fa-star" data-star="5" style="font-size: 25px;"></span>

                            <input type="hidden" id="rating" name="rating" value="0">
                            </div>
                        <div class="child1-2">
                            <p>Tell Us About Your Experience With Luciano Guest House</p>
                        </div>
                    </div>
                    <div class="child2">
                        <div class="child2-1">
                            <label for="">Your Name</label>
                            <input type="text" name="name" placeholder="Enter Your Name">
                        </div>
                        <div class="child2-1">
                            <label for="">Your Contact Number</label>
                            <input type="number" name="contact_number" placeholder="Enter Your Contact Number">
                        </div>
                        <div class="child2-3">
                        <textarea name="thoughts" placeholder="Enter Your Thoughts" required></textarea>
                        </div>
                    </div>
                    <div class="child3">
                        <button type="submit" name="submit1">Submit</button>
                    </div>
                </form>
 <script>
    // JavaScript to handle star rating
    const stars = document.querySelectorAll('.fa-star');
    const ratingInput = document.getElementById('rating');

    stars.forEach((star, index) => {
        star.addEventListener('click', () => {
            stars.forEach((s, i) => {
                if (i <= index) {
                    s.classList.add('checked');
                } else {
                    s.classList.remove('checked');
                }
            });
            // Set the rating input value based on the selected star
            ratingInput.value = index + 1;
        });
    });
</script>
                <div class="child4">
                    <p style="font-size: 13px; color: #686969;">Copyright © 2022 PulseCoder All rights reserved.
                        <br>
                    </p>
                    <div class="social-icons">
                        <a href="https://www.facebook.com"><i class="fab fa-facebook" style="font-size: 20px;"></i></a>
                        <a href="https://www.twitter.com"><i class="fab fa-twitter" style="font-size: 20px;"></i></a>
                    </div>
                    <p style="font-size: 13px; color: #686969;">This is an Automated QR-Code. If Any Problem Persists Please Mail Us: <a href="mailto:ansh@pulsecoder.in" style="color:#F77E21">ansh@pulsecoder.in</a></p>
                </div>
            </div>
        
            <!-- Include FontAwesome -->
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
        
            <!-- Include jQuery (for simplicity) -->
            <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
            <!-- Custom JavaScript -->
            <script>
                $(document).ready(function() {
                    $('.fa-star').on('click', function() {
                        var selectedStar = $(this).data('star');
                        $('.fa-star').each(function() {
                            if ($(this).data('star') <= selectedStar) {
                                $(this).addClass('checked');
                            } else {
                                $(this).removeClass('checked');
                            }
                        });
                    });
                });
            </script>
        
            <!-- Custom CSS -->
            <style>
                .fa-star {
                    color: gray;
                    cursor: pointer;
                }
                .fa-star.checked {
                    color: gold;
                }
            </style>
        </body>
        
    </html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4