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.1.100
Current Path : /var/www/oasis/dud/ |
| Current File : /var/www/oasis/dud/quiz_upd.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>
<!-- #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);
//$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">
<div class="container-fluid">
<div class="tab-content" id="loadtab">
<!--///////Personal Details Card\\\\\\\-->
<div class="row clearfix" id = "personal_det">
<div class="col-lg-10 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">
<div class="row clearfix body" style = "margin-left:3%; text-align: justify;">
<div class="col-md-11 col-md-11" >
<P>Conducting COVID 19 GENERAL AWARENESS ACTIVITIES </P>
<p>The prime factor in hosting this General Awareness activities is to empower the Citizens with the right knowledge and precautions at the time of COVID-19 Pandemic. The key to knockdown this lock-down is the awareness about the spread of the virus. This outbreak of the virus has upended life in unimaginable ways. In an effort to create awareness among the students and staff of Davangere University, Internal Quality Assurance Cell (IQAC) Davangere University, is conducting 20 different activities, participants can choose any activity of their choice and prepare and upload in the link given below, which can be attempted for free with an e-certificate.</P>
</div>
</div>
<div class="row clearfix body" style = "margin-left: 1px;">
<div class="col-md-5">
<b>Select Topic </b>
<div class="form-group p-b-10">
<div>
<select class="form-control" id = "topic">
<option>
--select--
</option>
<?php
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value='{$row['fid']}'>{$row['fdescpn']}</option>";
}
?>
</select>
</div>
</div>
</div>
</div>
<div class="row clearfix body" style = "margin-left: 1px;">
<div class="col-md-5">
<b>Enter Name</b>
<div class="form-group p-b-10">
<div>
<input type = 'text' id = 'name' class="form-control" placeholder = "Enter Your Name">
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix body">
<div class="col-md-5">
<b>Enter Contact Number</b>
<div class="form-group p-b-10">
<div>
<input type = 'text' id = 'mob' class="form-control" placeholder = "Enter Contact Number">
</div>
</div>
</div>
</div>
<div class="row clearfix body">
<div class="col-md-5">
<b>Enter College/ Organization</b>
<div class="form-group p-b-10">
<div>
<input type = 'text' id = 'coll' class="form-control" placeholder = "Enter College/ Organization">
</div>
</div>
</div>
</div>
<div class="row clearfix body">
<div class="col-md-5">
<b>Enter E-Mail </b>
<div class="form-group p-b-10">
<div>
<input type = 'text' id = 'email' class="form-control" placeholder = "Enter E-Mail ">
</div>
</div>
</div>
</div>
<div class="row clearfix body">
<div class="col-md-5">
<b>File Upload</b>
<div class="form-group p-b-10">
<div>
<input type="file" class="form-control" id="studymatrial" onchange="upload_qz('studymatrial');">
<input type="hidden" class="form-control" id="h_studymatrial">
</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 = 'saveQuiz()' > Upload </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 saveQuiz()
{
var topic = $("#topic").val();
var name = $("#name").val();
var mob = $("#mob").val();
var coll = $("#coll").val();
var email = $("#email").val();
var path = $("#h_studymatrial").val();
if(topic == '')
{
alert("Please Select Topic");
document.getElementById("topic").focus();
return;
}
if(name == '')
{
alert("Please Enter Name");
document.getElementById("name").focus();
return;
}
if(mob == '')
{
alert("Please Enter MOB");
document.getElementById("mob").focus();
return;
}
if(coll == '')
{
alert("Please Enter College Name");
document.getElementById("coll").focus();
return;
}
if(email == '')
{
alert("Please Select Subject");
document.getElementById("email").focus();
return;
}
if(path == '')
{
alert("Please Upload File");
document.getElementById("path").focus();
return;
}
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
async: false,
data: "topic="+topic+"&name="+name+"&type=study&mob="+mob+"&path="+path+"&coll="+coll+"&email="+email,
url: "saveQuiz.php",
success: function(responce)
{
$.unblockUI();
var data = JSON.parse(responce);
$("#lesson").val("");
$("#subject").val("");
$("#sem").val("");
$("#fdegree").val("");
$("#h_studymatrial").val("");
document.getElementById("studymatrial").value = "";
alert(data);
}
});
}
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: "studymaterialdet_bcu.php",
success: function(responce)
{
$.unblockUI();
var board = JSON.parse(responce);
var options;
options +=`<option value="">--Select--</option>`;
for(var i = 0; i< board.length; i++)
{
options += `<option value="${board[i].fsubcode}">${board[i].fsubname}</options>`;
}
$("#subject").html(options);
}
});
}
function upload_qz(file_file)
{
var file_name = $("#"+file_file).val();
var file_size = $("#"+file_file)[0].files[0].size;
var file_extn = file_name.split('.').pop();
var file_extn = file_extn.toLowerCase();
var file_data = $("#"+file_file).prop('files')[0];
var form_data = new FormData();
form_data.append('file', file_data);
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: "upload_qz.php",
data: form_data,
cache: false,
contentType: false,
processData: false,
success: function(data)
{
$.unblockUI();
$('#h_'+file_file).val(data);
},
error: function(data)
{
$.unblockUI();
alert(data);
}
});
}
</script>
</body>
</html>
<?php
function moneyFormatIndia($num) {
$explrestunits = "" ;
if(strlen($num)>3) {
$lastthree = substr($num, strlen($num)-3, strlen($num));
$restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits
$restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping.
$expunit = str_split($restunits, 2);
for($i=0; $i<sizeof($expunit); $i++) {
// creates each of the 2's group and adds a comma to the end
if($i==0) {
$explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer
} else {
$explrestunits .= $expunit[$i].",";
}
}
$thecash = $explrestunits.$lastthree;
} else {
$thecash = $num;
}
return $thecash; // writes the final format where $currency is the currency symbol.
}
?>
|