|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.20 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/js/../mjcacademy/admin/../app/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include('php-includes/connect.php');
include('php-includes/check-login.php');
$userid = $_SESSION['userid'];
$search = $userid;
$sch=$_REQUEST['flag'];
$session=$_REQUEST['session'];
$status=$_REQUEST['status'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Attendence </title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
<!-- overlayScrollbars -->
<link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/adminlte.min.css">
</head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.css" />
<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">
<!-- Navbar -->
<?php include('link/menu.php')?>
<!-- /.navbar -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- Student Profile -->
<?php
?>
<style>
td{font-size:15px}
th{font-size:15px}
</style>
<link href="jq/jquery.dataTables.min.css" type="text/css" rel="stylesheet"/>
<link href="jq/buttons.dataTables.min.css" type="text/css" rel="stylesheet"/>
<link href="/your-path-to-fontawesome/css/fontawesome.css" rel="stylesheet">
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
<script src="jq/jquery.dataTables.min.js"></script>
<script src="jq/dataTables.buttons.min.js"></script>
<script src="jq/buttons.flash.min.js"></script>
<script src="jq/jszip.min.js"></script>
<script src="jq/pdfmake.min.js"></script>
<script src="jq/vfs_fonts.js"></script>
<script src="jq/buttons.html5.min.js"></script>
<script src="jq/buttons.print.min.js"></script>
<script>
$(document).ready(function() {
$('#example').DataTable( {
fixedHeader: true,
dom: 'Bfrtip',
lengthMenu: [
[ 10, 25, 50, -1 ],
[ '10 rows', '25 rows', '50 rows', 'Show all' ]
],
buttons: [
'pageLength','print','excel',
{ extend: 'pdfHtml5', footer: true,
orientation: 'protland',
pageSize: 'LEGAL'
}
]
} );
} );
</script>
<div class="card shadow-sm">
<div class="card-header bg-transparent border-0">
<h3 class="mb-0"><i class="far fa-clone pr-1"></i>Attendence Records<span style='font-size:25px;font-weight:bold;color:'>→</span></h3>
</div>
<div class="card-body pt-0">
<div class="table-responsive">
<table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px">
<thead>
<tr >
<td> Sr </td>
<td> Sch </td>
<td> Name </td>
<td> Father </a></td>
<td> Date </td>
<td> Status</td>
</tr>
</thead>
<tbody>
<?php
$s=1;
$total=0;
$sel12="select * from present1 where session='$session' and sch='$sch' and status='$status' order by id asc ";
$res12=mysqli_query($conn,$sel12);
$p=0;
;
while($row455=mysqli_fetch_array($res12,MYSQLI_BOTH))
{
$app=$row455['sch'];
$sel1="select * from registration where session='$session' and application='$app' order by id desc ";
$res1=mysqli_query($conn,$sel1);
$row41=mysqli_fetch_array($res1,MYSQLI_BOTH);
$subject=$row41['subject'];
$class=$row41['subject'];
////////////for month show///////////
//echo $conc;
// echo $max;
////max for month/////////
////////for month cal close/////
if($row455)
{
?>
<tr style='font-size:15px;style='color:white'>
<td style='font-size:15px;color:white'><?php echo $s?></td>
<td style='font-size:15px;color:white'><?php echo $row41['application']?></td>
<td style='font-size:15px;color:white'><?php echo $row41['name']?></td>
<td style='font-size:15px;color:white'><?php echo $row41['fname']?></td>
<td style='font-size:15px;color:white'><?php echo date("d/m/Y", strtotime($row455['date'])); ?></td>
<?php if($row455['status']=='A'){ ?> <td style='font-size:15px;color:red;font-weight:bold'><?php echo $row455['status']?></td><?php } else {?>
<td style='font-size:18px;color:green;font-weight:bold'><?php echo $row455['status']?></td> <?php }?>
</tr>
<?php
$s++;
}
}
//////////
///////////
?>
<tfoot>
<tr>
<td> Sr </td>
<td> Sch </td>
<td> Name </td>
<td> Father </a></td>
<td> Date </td>
<td> Status</td> </tr>
</tfoot>
</tbody>
</table>
</div>
</div>
</div>
<!-- /.info-box -->
</div>
<a href='app.php'><button type="button" class="btn btn-danger btn-lg btn-block">Click For Back</button></a>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- /.row -->
<!-- Main row -->
<div class="row">
<!-- Left col -->
<!-- /.content-wrapper -->
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Main Footer -->
<?php include('link/footer.php');?>
</div>
<!-- ./wrapper -->
<!-- REQUIRED SCRIPTS -->
<?php include('link/jquery.php')?>
</body>
</html>