Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.199 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/mhischool.in/public_html/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $lg=$_SESSION['admin']; if(!$lg) { header("location:../admin/index.php"); } $month=$_POST['month']; $session=$_POST['session']; ?> <?php include("../link/databaseconnection.php"); $date=date("d/m/Y"); date_default_timezone_set("asia/kolkata"); $time=date("h:i:sa"); $datetime=$date." ".$time; //echo"$app1"; ?> <html> <head> <style> #name2 { font-weight:bold; } </style> <script src="../js/jquery-3.2.1.min.js"></script> <!--jquery--> <script> $(document).ready(function(){ $("#print").click(function(){ $("#pay").css("visibility","hidden"); $("#back").css("visibility","hidden"); $("#print").css("visibility","hidden"); window.print(); }); $("#back").click(function(){ window.location.href='student_showfees.php'; }); }); </script> <link href="css/student_print.css" rel="stylesheet" type="text/css"> </head> <body> <table border="1px" width="100%" cellspacing="0"> <caption style="text-align:center;font-size:25px;font-weight:bold">M.H.I. SCHOOL MaitiNagar Chandpar - Azamgarh</caption> <tr> <td> Start Date</td><td colspan="2" style="text-align:center"><?php echo $sdate;?></td><td colspan='12' align="center"><span id="name4" style="font-size:18px;font-weight:bold">Fees History</span></td><td> End Date</td><td colspan="2" style="text-align:center"><?php echo $edate;?></td> </tr> <tr align="center"> <td><span id="name2">Session</span></td> <td><span id="name2">Slip</span></td> <td><span id="name2">Name</span></td> <td><span id="name2">Class</span></td> <td><span id="name2">Month</span></td> <td><span id="name2" >Month Fee</span></td> <td><span id="name2" >Exam</span></td> <td><span id="name2">Conveyance</span></td> <td><span id="name2">Exam Fee</span></td> <td><span id="name2">Regi Fee</span></td> <td><span id="name2">Add Fee</span></td> <td><span id="name2">Fine</span></td> <td><span id="name2">Annual Charge</span></td> <td><span id="name2">Other</span></td> <td><span id="name2">Total</span></td> <td><span id="name2">Paid</span></td> <td><span id="name2">Cons</span></td> <td><span id="name2">Due Charge</span></td> </tr> <?php $sum=0; $sum1=0; $cons1=0; $remain1=0; $sel1="select * from studentfees where month='$month' and year='$session' order by search asc"; $res1=mysqli_query($conn,$sel1); while($row1=mysqli_fetch_array($res1,MYSQLI_BOTH)) { $tot=$row1['total']; $con=$row1['con']; $paid=$row1['paid']; $remain12=$row1['remain']; $sum=$tot+$sum; $sum1=$paid+$sum1; $cons1=$con+$cons1; $remain1=$remain12+$remain1; ?> <tr align="center"> <td><span id="name3"><?php echo $row1['year'];?></span></td> <td><span id="name3"><?php echo $row1['search'];?></span></td> <td><span id="name3"><?php echo $row1['name'];?></span></td> <td><span id="name3"><?php echo $row1['class'];?></span></td> <td><span id="name3"><?php echo $row1['month'];?></span></td> <td><span id="name3"><?php echo $row1['fee'];?></span></td> <td><span id="name3"><?php echo $row1['exam'];?></span></td> <td><span id="name3"><?php echo $row1['van'];?></span></td> <td><span id="name3"><?php echo $row1['exam'];?></span></td> <td><span id="name3"><?php echo $row1['reg'];?></span></td> <td><span id="name3"><?php echo $row1['addm'];?></span></td> <td><span id="name3"><?php echo $row1['fine'];?></span></td> <td><span id="name3"><?php echo $row1['ann'];?></span></td> <td><span id="name3"><?php echo $row1['other'];?></span></td> <td><span id="name3"><?php echo $row1['total'];?></span></td> <td><span id="name3"><?php echo $row1['paid'];?></span></td> <td><span id="name3"><?php echo $row1['con'];?></span></td> <td><span id="name3"><?php echo $row1['remain'];?></span></td> </tr> <?php } ?> <tr align="center"> <td colspan="14" style="font-weight:bold;font-size:18px">Total</td><td style="font-weight:bold;font-size:18px"><span id="name3"colspan="2">Rs=<?php echo $sum;?></span></td><td style="font-weight:bold;font-size:18px"><span id="name3"colspan="2">Rs=<?php echo $sum1;?></span></td><td style="font-weight:bold;font-size:18px"><span id="name3"colspan="2">Rs=<?php echo $cons1;?></span></td><td style="font-weight:bold;font-size:18px"><span id="name3"colspan="2">Rs=<?php echo $remain1;?></span></td> </tr> </table> <table width="100%" frame="border"> <tr align="center"> <td width="50%" ><span id="name3" style="font-size:15px;font-weight:bold">Datetime</span></td><td width="50%"><span id="name3" style="font-size:15px;font-weight:bold">Signature</span></td> </tr> <tr> <td align="center"><span ><?php echo $datetime;?></span></td><td><br/><br/></td> </tr> </table> <br/> <button id="print" style="margin-left:500px;" >Print</button>      <span><button id="back" >Back</button></span> </body> </html>