Tn Jones Shell Bypass
:
3.144.252.243
:
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/admin_salaryreport.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"); exit(); } 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> </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> </div> <!-- search-scripts --> <script src="js/classie.js"></script> <script src="js/uisearch.js"></script> <!-- //search-scripts --> <div class="clearfix"></div> </div> <div class="clearfix"></div> </div> <!-- header-section-ends --> <div class="content"> <div class="good-design"> <h3>SALARY</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 Scheme</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> <?php $sql=mysql_query("select distinct scheme from login order by scheme")or die(""); while($r = mysql_fetch_array($sql)) { ?> <option value="<?php echo $r['scheme'];?>"><?php echo $r['scheme'];?></option> <?php } ?> </select> </td> <td><font color="black"><b>Select District</b></font><br> <select name="t3" style="height:32px;width:250px;"> <option style="font-weight: bold;background-color:gray;color:white;" value="<?php echo $w3; ?>"><b><?php echo $w3; ?></b></option> <?php $sql=mysql_query("select distinct district from login order by district")or die(""); while($r = mysql_fetch_array($sql)) { ?> <option value="<?php echo $r['district'];?>"><?php echo $r['district'];?></option> <?php } ?> </select> </td> <td><font color="black"><b>Select Month</b></font><br> <select name="t2" style="height:32px;width:250px;" > <option style="font-weight: bold;background-color:gray;color:white;" value="<?php echo $w2; ?>"><b><?php echo $w2; ?></b></option> <?php $sql=mysql_query("SELECT m.DB_MonthName, m.Display_Name FROM monthorder m order by m.MonthOrder DESC")or die("Error in qurey"); //$sql=mysql_query("SELECT distinct DB_MonthName FROM monthorder order by DB_MonthName")or die(mysql_error()); while($r = mysql_fetch_array($sql)) { ?> <option value="<?php echo $r['DB_MonthName'];?>"><?php echo $r['DB_MonthName'];?></option> <?php } ?> </select> </td> <td> <br><input type="submit" value="Search" style="font-weight:bold;height:30px;width:80px;background:#2A5CAA;color:#FFF;" /></td> <td> <br><input type="button" value="Reset" style="font-weight:bold;height:30px;width:80px;background:#2A5CAA;color:#FFF;" onClick="window.location.href=window.location.href"/></td> <td> <br><a href="page2.php"><input type="button" value="Back" style="text-align:center;font-weight:bold;height:30px;width:80px;background:#2A5CAA;color:#FFF;" /></a></td> </center></table> <br> <?php include ('paginate.php'); //include of paginat page $per_page = 500; $result = mysql_query("SELECT * FROM health where scheme like '$w%' AND month like '$w2%' AND district like '$w3%' and payment <> '' and payment is not null ORDER BY sno desc") or die("SELECT * FROM health where scheme like '$w%' AND month like '$w2%' AND district like '$w3%' and payment <> '' and payment is not null ORDER BY salary"); $total_results = mysql_num_rows($result); $total_pages = ceil($total_results / $per_page);//total pages we going to have //-------------if page is set check------------------// if (isset($_GET['page'])) { $show_page = $_GET['page']; //it will telles the current page if ($show_page > 0 && $show_page <= $total_pages) { $start = ($show_page - 1) * $per_page; $end = $start + $per_page; } else { // error - show first set of results $start = 0; $end = $per_page; } } else { // if page isn't set, show first set of results $start = 0; $end = $per_page; } // display pagination $page = intval($_GET['page']); $tpages=$total_pages; if ($page <= 0) $page = 1; ?> <?php $reload = $_SERVER['PHP_SELF'] . "?tpages=" . $tpages; echo "<div class='panel-body'>"; echo "<div class='table-responsive'>"; // display data in table echo "<table class='table table-striped table-bordered table-hover' style='font-size:15px;' border='1px' cellspacing='0' cellpadding='0'>"; echo " <thead> <tr style='background-color:#2A5CAA;color:#FFFFFF;font-size:14px'> <th width='20px' height='45px'><center>S.No</center></th> <th width='100px' height='45px'><center>Department</center></th> <th width='100px' height='45px'><center>Scheme</center></th> <th width='100px' height='45px'><center>District</center></th> <th width='100px' height='45px'><center>Sub Location</center></th> <th width='100px' height='45px'><center>Month</center></th> <th width='100px' height='45px'><center>Payment</center></th> <th width='100px' height='45px'><center>Date</center></th> <th width='100px' height='45px'><center>Salary</center></th> <th width='100px' height='45px'><center>Date</center></th> <th width='100px' height='45px'><center>Remark</center></th> </tr> </thead>"; // loop through results of database query, displaying them in the table $count1=0; for ($i = $start; $i < $end; $i++) { $count1=$i+1; // make sure that PHP doesn't try to show results that don't exist if ($i == $total_results) { break; } // echo out the contents of each row into a table echo " <tbody>"; echo "<tr " . $cls . " class='odd gradeX'>"; ?> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo $count1;?></td> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'department');?></td> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'scheme');?></td> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'district');?></td> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'hospital');?></td> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'month');?></td> <?php $att=mysql_result($result, $i, 'payment'); if($att !='') { ?> <td align='center' height="45px" style='background-color:#73C259;color:white'><a target="_blank" onClick="this.style.color='yellow';" href="<?php echo mysql_result($result, $i, 'payment');?>"><font size='3'><b>Y</b></font></a></td> <?php } else { ?> <td align='center' height="45px" style='background-color:#E32942;color:white'><a><font size='3'>N</font></a></td> <?php } ?> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'payformdate');?></td> <?php $att=mysql_result($result, $i, 'salary'); if($att !='') { ?> <td align='center' height="45px" style='background-color:#73C259;color:white'><a style="color:white;" target="_blank" href="<?php echo mysql_result($result, $i, 'salary');?>"><font size='3'><b>Y</b></font></a></td> <?php } else { ?> <td align='center' height="45px" style='background-color:#E32942;color:white'><font size='3'><b><a style="color:white;" href="admin_salaryupload_next.php?dept1=<?php echo mysql_result($result, $i, 'department');?>&sche1=<?php echo mysql_result($result, $i, 'scheme');?>&host1=<?php echo mysql_result($result, $i, 'hospital');?>&dist1=<?php echo mysql_result($result, $i, 'district');?>&month1=<?php echo mysql_result($result, $i, 'month');?>">Upload</a></b></font></td> <?php } ?> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'salformdate');?></td> <td style='color:black;padding: 10px 0;text-align: center;' height="45px"><?php echo mysql_result($result, $i, 'text1');?></td> </tr> <?php echo " </tbody>"; } // close table> echo "</table>"; ?> <?php echo '<div class="pagination"><ul>'; if ($total_pages > 1) { echo paginate($reload, $show_page, $total_pages); } echo "</ul></div>"; // pagination ?> <!-- /.table-responsive --> </div> <!-- /.panel-body --> </div> <div class="footer"> <div class="container"> <div class="clearfix"></div> <div class="footer-bottom"> <p>© 2016 | Design by<a href="http://ramaipl.com/"> Rama Infotech Pvt Ltd</a> || For Updated View Press Ctrl+F5 </p> </div> <script type="text/javascript"> $(document).ready(function() { /* var defaults = { containerID: 'toTop', // fading element id containerHoverID: 'toTopHover', // fading element hover id scrollSpeed: 1200, easingType: 'linear' }; */ $().UItoTop({ easingType: 'easeOutQuart' }); }); </script> <a href="#" id="toTop" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a> </div> </div> </body> </html>