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.105.222
Current Path : /var/www/oasis/bnu/ |
| Current File : /var/www/oasis/bnu/pgadmfeepaid.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>PG Admission statistics</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 = "getAppDetFeePaid()">
<!-- #END# Page Loader -->
<!-- Top Bar -->
<?php
include("/var/www/config.php");
// $servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
// $username = "admin";
// $password = "Logisys2104";
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$conn = new mysqli($servername, $username, $password);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
// echo "<br/><br/><br/><br/>";
$url = $_SERVER['REQUEST_URI'];
$path = explode("/", $url);
// var_dump($path[1]);
if ($path[1] == "bcu")
$db = "logisys3_bcu";
else if ($path[1] == "bnu")
$db = "logisys3_bnu";
else if ($path[1] == "dud")
$db = "logisys3_dud";
else if ($path[1] == "rcub")
$db = "logisys3_rcu";
else if ($path[1] == "ru")
$db = "logisys3_rur";
else if ($path[1] == "bnu")
$db = "logisys3_bnu";
$Query = "select fboardcode, fboardname,
funivcode, funivname, date_format(now(), '%d/%m/%Y %r') as fdate
FROM {$db}.masboard, {$db}.control c order by fboardcode";
$result = mysqli_query($conn, $Query);
$row = mysqli_fetch_assoc($result);
$Query2 = "select distinct fdegree, fdescpn from {$db}.entdeg";
$result2 = mysqli_query($conn, $Query2);
$row2 = mysqli_fetch_assoc($result2);
?>
<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;"><?php echo $row['funivname'] ?></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 text-center">
<h2>Summary</h2>
</div>
<table class="m-b-12 table table-condensed table-bordered table-striped table-hover" id="summary">
</table>
<div class="header bg-blue text-center">
<h2>PG Admission - Coursewise Statistics</h2>
</div>
<!-- <div class="col-md-6">
<b>Select Board</b>
<div class="form-group p-b-20">
<div>
<select id="fboard" onchange="getQpcodesDet()" class="form-control" name="Combination">
<option value="%">All Boards</option>
<?php
/*echo "<option value='{$row['fboardcode']}'>{$row['fboardcode']} - {$row['fboardname']}</option>";
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value='{$row['fboardcode']}'>{$row['fboardcode']} - {$row['fboardname']}</option>";
}*/
?>
</select>
</div>
</div>
</div>
<div class="row clearfix body" style='margin-right: 0px;margin-left: 0px;'>
<div class="col-md-6">
<b>Semester</b>
<div class="form-group p-b-20">
<div>
<select id="sem" onchange="getQpcodesDet()" class="form-control" name="Combination">
<option value="">All Semesters</option>
<option value="A"> I Semester</option>
<option value="B"> II Semester</option>
<option value="C"> III Semester</option>
<option value="D"> IV Semester</option>
<option value="E"> V Semester</option>
<option value="F"> VI Semester</option>
</select>
</div>
</div>
</div>
<div class="col-md-6">
<b>Valuation Status</b>
<div class="form-group p-b-20">
<div>
<select id="status" onchange="getQpcodesDet()" class="form-control" name="Combination">
<option value="">All</option>
<option value="Pending">Valuation Pending</option>
<option value="Completed">Valuation Completed</option>
</select>
</div>
</div>
</div> -->
<table class="m-b-12 table table-condensed table-bordered table-striped table-hover" id="appdetfee">
</table>
<div class="header bg-blue text-center">
<h2>Collegewise Coursewise statistics</h2>
</div>
<table class="m-b-12 table table-condensed table-bordered table-striped table-hover" id="appdetfeedegcoll">
</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 getAppDetFeePaid() {
var degree ='';
$.ajax({
type: "GET",
async: false,
url: "getfeepaid.php",
success: function(responce) {
var apptabfee = JSON.parse(responce);
console.log(apptabfee.tab1[0].totalpaid);
var tab1 = apptabfee.tab1;
var tab2 = apptabfee.tab2;
var tot = apptabfee.sum;
// console.log(tot.totalseatallot)
$summary1 = `<tr><th width='10%'></th></tr>
<tr>
<td width='25%'>Total Seat Alloted</td>
<td width='75%'>${tot.totalseatallot}</td>
</tr>
<tr><th width='10%'></th></tr>
<tr>
<td width='25%'>No. of Candidates Paid Fees</td>
<td width='75%'>${tot.totalpaid}</td>
</tr>`;
// $summary1 = `<tr>
// <td width='30%'><center>Total Paid</center></td>
// <td width='30%'><center>${tot.totalpaid}</center></td>
// </tr>`;
$("#summary").html($summary1);
$html = `<tr class='bg-green'>
<th width='10%'><center>Sl. No.</center></th>
<th width='10%'><center>Degree Code</center></th>
<th width='40%'><center>Degree Name</center></th>
<th width='15%'><center>Total Seat Alloted</center></th>
<th width='15%'><center>No. of Candidates Paid Fees</center></th>
</tr>`;
if(tab1 == null){
$html += `<tr>
<td colspan="6"><center>No data Found</center></td>
</tr>`;
}else{
var slno = 1;
var paid = 0;
var not_paid = 0;
var tot_app = 0;
var totalseatallot = 0;
var totalpaid = 0;
for(let i in tab1){
$html += `<tr>
<td><center>${slno++}</center></td>
<td><center>${tab1[i].fdegree}</center></td>
<td>${tab1[i].fdescpn}</td>
<td style='text-align:center'>${tab1[i].totalseatallot}</td>
<td style='text-align:center'>${tab1[i].totalpaid}</td>
</tr>`;
// paid += ${i.paid};
// not_paid = not_paid + apptab['not_paid'];
// // console.log(i.tot_app);
totalseatallot += parseInt(tab1[i].totalseatallot);
totalpaid += parseInt(tab1[i].totalpaid);
// console.log(apptab['tot_app']);
}
$html += `<tr>
<td colspan='3' style='text-align:center'><b>Total</b></td>
<td style='text-align:center'><b>${totalseatallot}</td>
<td style='text-align:center'><b>${totalpaid}<b></td>
</tr>`;
}
$("#appdetfee").html($html);
$html1 = `<tr class='bg-green'>
<th width='5%'><center>Sl. No.</center></th>
<th width='10%'><center>College Code</center></th>
<th width='40%'><center>College Name</center></th>
<th width='10%'><center>Degree Code</center></th>
<th width='20%'><center>Degree Name</center></th>
<th width='10%'><center>Total Seat Alloted</center></th>
<th width='10%'><center>No. of Candidates Paid Fees</center></th>
</tr>`;
if(tab2 == null){
$html1 += `<tr>
<td colspan="6"><center>No data Found</center></td>
</tr>`;
}else{
var slno = 1;
var paid = 0;
var not_paid = 0;
var tot_app = 0;
var totalseatallot = 0;
var totalpaid = 0;
for(let i in tab2){
$html1 += `<tr>
<td><center>${slno++}</center></td>
<td><center>${tab2[i].fcollcode}</center></td>
<td>${tab2[i].fcollname}</td>
<td><center>${tab2[i].fdegree}</center></td>
<td>${tab2[i].fdescpn}</td>
<td style='text-align:center'>${tab2[i].totalseatallot}</td>
<td style='text-align:center'>${tab2[i].totalpaid}</td>
</tr>`;
// paid += ${i.paid};
// not_paid = not_paid + apptab['not_paid'];
// // console.log(i.tot_app);
totalseatallot += parseInt(tab2[i].totalseatallot);
totalpaid += parseInt(tab2[i].totalpaid);
// console.log(apptab['tot_app']);
}
$html1 += `<tr>
<td colspan='5' style='text-align:center'><b>Total</b></td>
<td style='text-align:center'><b>${totalseatallot}</td>
<td style='text-align:center'><b>${totalpaid}<b></td>
</tr>`;
}
$("#appdetfeedegcoll").html($html1);
}
});
}
// function getBoardDet() {
// var fdeggrp = $("#fdegree").val();
// var sem = $("#sem").val();
// $.ajax({
// type: "POST",
// async: false,
// data: "type=board" + "&fdeggrp=" + fdeggrp + "&sem=" + sem,
// url: "getQPdet.php",
// success: function(responce) {
// var board = JSON.parse(responce);
// var options;
// options += `<option value="%">All Boards</option>`;
// for (var i = 0; i < board.length; i++) {
// options += `<option value="${board[i].fboardcode}">${board[i].fboardcode} - ${board[i].fboardname}</options>`;
// }
// $("#fboard").html(options);
// }
// });
// }
</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.
}
?>
|