Tn Jones Shell Bypass
:
18.222.60.144
:
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_attreport.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); $username = $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> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script> <style> #parent { height: 450px; } #fixTable { width: 1800px !important; } </style> <style> th { border: 1px solid white; text-align: center; vertical-align: top; height: 50px; } td { border: 1px solid white; text-align: center; vertical-align: center; height: 45px; } .verticalText { vertical-align: middle; width: 10px; -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); } </style> <style> /* The Modal (background) */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ padding-top: 100px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0, 0, 0); /* Fallback color */ background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */ } /* Modal Content */ .modal-content { position: relative; background-color: #fefefe; margin: auto; padding: 0; border: 1px solid #888; width: 85%; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -webkit-animation-name: animatetop; -webkit-animation-duration: 0.4s; animation-name: animatetop; animation-duration: 0.4s } .modal-backdrop .show { position: static; top: 0; left: 0; z-index: 1040; width: 100vw; height: 100vh; opacity: 0; } .modal-backdrop { position: static; top: 0; left: 0; z-index: 1040; width: 100vw; height: 100vh; opacity: 0; } /* Add Animation */ @-webkit-keyframes animatetop { from { top: -300px; opacity: 0 } to { top: 0; opacity: 1 } } @keyframes animatetop { from { top: -300px; opacity: 0 } to { top: 0; opacity: 1 } } /* The Close Button */ .close { color: white; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; } .modal-header { padding: 2px 16px; background-color: #2A5CAA; color: white; } .modal-body { padding: 2px 16px; } .modal-footer { padding: 2px 16px; background-color: #2A5CAA; color: white; } .button { padding: 05px 10px; font-size: 24px; text-align: center; cursor: pointer; outline: none; color: #fff; background-color: #4CAF50; border: none; border-radius: 15px; box-shadow: 0 9px #999; } .btn12 { background-color: #2A5CAA; color: #fff; } .btn12:hover { background-color: #2A5CAA; color: #fff; } .button:hover { background-color: #3e8e41 } .button:active { background-color: #3e8e41; box-shadow: 0 5px #666; transform: translateY(4px); } </style> </head> <body> <div class="header"> <div class="container"> <div class="logo"> <a href="#"><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> </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="good-design"> <h3>Attendance</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> <td> <br><a href="ad_attandance.php"><input type="button" value="Upload" style="text-align:center;font-weight:bold;height:30px;width:80px;background:#2A5CAA;color:#FFF;" /></a> </td> <td> <br><a href="att_button.php"><input type="button" value="button" style="text-align:center;font-weight:bold;height:30px;width:80px;background:#2A5CAA;color:#FFF;" /></a> </td> <td><button style="text-align:center;font-weight:bold;height:30px;background:#2A5CAA;color:white !important;margin-top:20px;"><a style="color:#FFF;text-decoration:none" href="newphpfile.php?w=<?php echo $w; ?>&w2=<?php echo $w2; ?>&w3=<?php echo $w3; ?>" >Excel Download</a></button></td> </center> </table> <br> <table width="95%" border="2" align="center" style="top:-20px;background-color:#B7CCED;border-color: white;" class="maint"> <tr style="background-color:#2A5CAA;color:#FFFFFF;font-size:14px"> <td rowspan="2" width="20px" align="center" style="border-color:white;"> <font size="3"> S.No </font> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=0"; ?>"> <font size="3" color='white'>Department</font> </a> </td> <td width="100px" rowspan="2" align="center"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=1"; ?>"> <font size="3" color='white'>Scheme</font> </a> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=2"; ?>"> <font size="3" color='white'>District</font> </a> </font> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=3"; ?>"> <font size="3" color='white'>Sub Location</font> </a> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=4"; ?>"> <font size="3" color='white'>Month</font> </a> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=5"; ?>"> <font size="3" color='white'>Attendance</font> </a> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=6"; ?>"> <font size="3" color='white'>Letter Issue Date</font> </a> </td> <td width="100px" rowspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=7"; ?>"> <font size="3" color='white'>Date</font> </a> </td> <td width="100px" colspan="2" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=8"; ?>"> <font size="3" color='white'>Total Employee </font> <a> </td> </tr> <tr style="background-color:#2A5CAA;color:#FFFFFF;font-size:14px"> <td width="50px" align="center" style="border-color:white;"> <a href="<?php echo $_SERVER['PHP_SELF'] . "?sort=9"; ?>"> <font size="3" color='white'>Working</font> </a> </font> </td> <td width="50px" align="center" style="border-color:white;"> <font size="3"> Attd. </font> </td> </tr> <?php $sort = ""; if (isset($_GET['sort'])) { switch ($_GET['sort']) { case 0: $sort = " ORDER BY department DESC"; break; case 1: $sort = ' ORDER BY scheme DESC'; break; case 2: $sort = ' ORDER BY district DESC'; break; case 3: $sort = ' ORDER BY hospital DESC'; break; case 4: $sort = ' ORDER BY month DESC'; break; case 5: $sort = ' ORDER BY attandance DESC'; break; case 6: $sort = ' ORDER BY letter_issue_date DESC'; break; case 7: $sort = ' ORDER BY attformdate DESC'; break; case 8: $sort = ' ORDER BY totempatt DESC'; break; case 9: $sort = ' ORDER BY totemp DESC'; break; } } //$sql=mysql_query("SELECT * FROM health where scheme like '$w%' AND month like '$w2%' AND district like '$w3%' ORDER BY $field $sort"); //$count1=0; //for($i=0;$r=mysql_fetch_assoc($sql);$i++) //{ //$count1=$i+1; include ('paginate.php'); //include of paginat page $per_page = 500; // number of results to show per page $result = mysql_query("SELECT * FROM health where scheme like '$w%' AND month like '$w2%' AND district like '$w3%' order by sno DESC"); $total_results = mysql_num_rows($result); $total_pages = ceil($total_results / $per_page);//total pages we going to have //-------------if page is setcheck------------------// 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; // loop through results of database query, displaying them in the table $count1 = 0; for ($i = $start; $i < $end; $i++) { $r = mysql_fetch_array($result); $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'>"; ?> <tr style="color:Black;font-size:14px;font-family:Andalus"> <td align="center"> <font size="3"><?php echo $count1; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['department']; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['scheme']; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['district']; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['hospital']; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['month']; ?></font> </td> <?php $att = $r['attandance']; if ($att != '') { ?> <td align='center' style='background-color:#73C259;color:white'><a target="_blank" onClick="this.style.color='yellow';" href="<?php echo $r['attandance']; ?>"> <font size='3'><b>Y</b></font> </a></td> <?php } else { ?> <td align='center' style='background-color:#E32942;color:white'><a> <font size='3'>N</font> </a></td> <?php } ?> <?php $letter_issue_date = $r['letter_issue_date']; ?> <td align='center' height="45px"> <?php if ($letter_issue_date != '') { ?> <font size='3'><b><?= $letter_issue_date ?></b></font> <?php } else { ?> <div id="<?= $r['sno']; ?>" align='center' height="45px" style='background-color:#E32942;color:white'> <i style="color:white;" class="btn updateBtn" data-id="<?= $r['sno']; ?>" data-date="<?= $letter_issue_date; ?>"> <font size='3'>Update</font> </i> </div> <?php } ?> </td> <td align="center"> <font size="+1"><?php echo $r['attformdate']; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['totempatt']; ?></font> </td> <td align="center"> <font size="+1"><?php echo $r['totemp']; ?></font> </td> </tr> <?php echo " </tbody>"; } // close table> echo "</table>"; echo '<div class="pagination"><ul>'; if ($total_pages > 1) { echo paginate($reload, $show_page, $total_pages); } echo "</ul></div>"; // pagination ?> </table> </form> </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> <a href="#" id="toTop" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a> </div> </div> <div style="text-align:left;" class="modal" id="updateModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Update Letter Issue Date <button type="button" class="close" style="display:block;color: #FFFFFF;" data-dismiss="modal">×</button></h4> </div> <!--<form action="update_letter_issue_date.php" method="post">--> <form id="updateFormLetterIssue"> <div class="modal-body"> <input type="hidden" name="sno" id="sno"> <div class="form-group"> <label for="letter_issue_date">Letter Issue Date</label> <input type="date" class="form-control" id="letter_issue_date" name="letter_issue_date" required="required"> </div> <input type="submit" class="btn btn12" value="Update"> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <script> $(document).ready(function () { $('.updateBtn').on('click', function () { var sno = $(this).data('id'); var date = $(this).data('date'); $('#sno').val(sno); $('#letter_issue_date').val(date); $('#updateModal').modal('show'); }); $('#updateFormLetterIssue').on('submit', function (e) { e.preventDefault(); var sno = $('#sno').val(); var letter_issue_date = $('#letter_issue_date').val(); var dateRegex = /^\d{4}-\d{2}-\d{2}$/; if (!dateRegex.test(letter_issue_date)) { alert("Please enter a valid date in the format YYYY-MM-DD."); $(this).trigger("reset"); return; } $.ajax({ url: 'update_letter_issue_date.php', type: 'POST', data: { sno: sno, letter_issue_date: letter_issue_date }, success: function (response) { var cell = $('#' + sno); cell.css('background-color', ''); cell.css('color', ''); cell.html('<font size="3"><b>' + letter_issue_date + '</b></font>'); alert("Letter issue date updated successfully"); $('#updateModal').modal('hide'); } }); }); }); </script> <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> </body> </html>