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 : 18.217.242.39
Current Path : /var/www/html/dud/ |
| Current File : /var/www/html/dud/studymaterialupddet.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>Study Material Uploaded Details</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>
<!-- #END# Page Loader -->
<!-- Top Bar -->
<?php
include ("/var/www/config.php");
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$conn = new mysqli($servername,$username,$password);
if(!$conn)
{
die("Connection failed: " . mysqli_connect_error());
}
$db = "logisys3_dud";
$Query = "select distinct d.fdegree, d.fdescpn
FROM $db.degree d inner join $db.osmmain o on d.fdegree = o.fdegree
and d.fexamno = o.fexamno
where d.fdeggrp = 'PG'
order by d.fdescpn";
$result = mysqli_query($conn, $Query);
//$row = mysqli_fetch_assoc($result);
?>
<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" style = " margin: 100px 15px 0 70px;">
<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>Study Material Uploaded Details</h2>
</div>
<div class="row clearfix body">
<div class="col-md-5">
<b>Select Degree</b>
<div class="form-group p-b-10">
<div>
<select id="fdegree" class="form-control" onchange="getSubject()" name="Combination">
<option value="">--Select--</option>
<?php
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value='{$row['fdegree']}'>{$row['fdescpn']}</option>";
}
?>
</select>
</div>
</div>
</div>
</div>
<div class="row clearfix body" >
<div class="col-md-5 " >
<b>Select Semester</b>
<div class="form-group p-b-10">
<div>
<select id="sem" onchange="getSubject()" class="form-control" name="Combination">
<option value="All">All</option>
<option value="B"> 2nd sem</option>
<option value="D"> 4th sem</option>
</select>
</div>
</div>
</div>
</div>
<div class="row clearfix body" >
<div class="col-md-5">
<b>Select Subject </b>
<div class="form-group p-b-10">
<div>
<select id="subject" class="form-control" name="Combination">
<option value="">-select-</option>
</select>
</div>
</div>
</div>
</div>
<div class="row clearfix body">
<div class="col-md-5">
<b></b>
<div class="form-group p-b-10">
<div >
<button class="btn btn-success col-lg-5 col-md-5 col-sm-10 col-xs-10" onclick = 'saveStudyMaterial()' > Submit </button>
</div>
</div>
</div>
</div>
<table class="m-b-20 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 saveStudyMaterial()
{
var fdegree = $("#fdegree").val();
var sem = $("#sem").val();
var subject = $("#subject").val();
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
async: false,
data: "&type=study&sem="+sem+"&fdegree="+fdegree+"&subject="+subject,
url: "studymatdet.php",
success: function(responce)
{
$.unblockUI();
var { error_code, data } = JSON.parse(responce);
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>Department</center></th>
<th style = "width:15%;"><center>Teacher Name</center></th>
<th style = "width:20%;"><center>Degree</center></th>
<th style = "width:9%;" ><center>Semester</center></th>
<th style = "width:10%;" ><center>Subject</center></th>
<th style = "width:10%;" ><center>Chapter</center></th>
<th style = "width:5%;" ><center>View Document</center></th>
<th style = "width:5%;" ><center>Status</center></th>
<th style = "width:8%;" ><center>No. of Students Viewed</center></th>
</tr>`;
for (let i in data) {
table += `<tr>
<td><center> ${parseInt(i) + 1} </center></td>
<td><center> ${data[i]["upddate"]} </center></td>
<td>${data[i]["FUPDDEPT"]}</td>
<td>${data[i]["FUPDTEACH"]}</td>
<td>${data[i]["fdescpn"]}</td>
<td>${data[i]["fexamname"]}</td>
<td>${data[i]["fsubname"]}</td>
<td>${data[i]["fchapter"]}</td>
<td><center><a href = "http://studentportal.universitysolutions.in/${data[i]["fpath"]}" target = '_blank'>View</a></center></td>
<td>${data[i]["fapprstatus"]}</td>
<td><center>${data[i]["viewed"]}</center></td>
</tr>`;
}
table += `</table>`;
$("#boarddet").html(table);
}else
{
alert(data);
$("#boarddet").html("");
}
}
});
}
function getSubject()
{
var degree = $("#fdegree").val();
var sem = $("#sem").val();
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
async: false,
data: "type=loadsub"+"°ree="+degree+"&sem="+sem,
url: "studymatdet.php",
success: function(responce)
{
$.unblockUI();
var board = JSON.parse(responce);
var options;
options +=`<option value="All">All</option>`;
for(var i = 0; i< board.length; i++)
{
options += `<option value="${board[i].fsubcode}">${board[i].fsubname}</options>`;
}
$("#subject").html(options);
}
});
}
</script>
</body>
</html>
|