Tn Jones Shell Bypass
:
18.216.11.230
:
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/month_insertdemo.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']; ?> <?php include("connection.php"); $msg=""; if(isset($_REQUEST['submit'])) { $DB_MonthName=$_REQUEST['DB_MonthName']; $Display_Name=$_REQUEST['Display_Name']; $att_month=$_REQUEST['att_month']; $att_year=$_REQUEST['att_year']; $sq=mysql_query("select * from allmonth where DB_MonthName LIKE '$DB_MonthName' and Display_Name LIKE '$Display_Name'")or die("Details already Exist in our Record"); $r = mysql_fetch_array($sq); $a1=$r['DB_MonthName']; $a=$r['Display_Name']; if(mysql_num_rows($sq)>0) { $msg="<font color='red'>ALready Uploaded Attandance in this Month $a1 , $a</font>"; } else { $sql1=mysql_query("insert into monthpoly(DB_MonthName, Display_Name ,att_month, att_year) values ('$DB_MonthName','$Display_Name','$att_month','$att_year');"); $sql2=mysql_query("insert into monthorder(DB_MonthName, Display_Name, att_month, att_year) values ('$DB_MonthName','$Display_Name','$att_month','$att_year');"); $sql3=mysql_query("insert into monthinv(DB_MonthName, Display_Name) values ('$DB_MonthName','$Display_Name');"); $sql4=mysql_query("insert into monthatma(DB_MonthName, Display_Name) values ('$DB_MonthName','$Display_Name');"); $sql5=mysql_query("insert into monthall(DB_MonthName, Display_Name) values ('$DB_MonthName','$Display_Name');"); $sql6=mysql_query("insert into allmonth2(DB_MonthName, Display_Name) values ('$DB_MonthName','$Display_Name');"); if($sql=mysql_query("insert into allmonth(DB_MonthName, Display_Name) values ('$DB_MonthName','$Display_Name');")) { echo "<script>"; echo "location.href='page2.php'"; echo "</script>"; $msg="<font color='navy'>Record saved</font>"; } else { $msg="ALready exist in record<br>insert into allmonth(DB_MonthName, Display_Name) values ('$DB_MonthName','$Display_Name');"; } } } ?> <!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"> <br> <div class="good-design"> <h3>INSERT MONTH</h3> <form method="POST" enctype="multipart/form-data"> <table style="border:1px solid black;width:45%;" class="form" cellpadding="2px" align="center" > <tr><td colspan="2" style="border:1px solid black;background-color:#2A5CAA;color:white" align="center"><b>Month</b></td></tr> <tr><td colspan="2"><br></td></tr> <tr> <td align="right"><strong><font color="navy">DB_MonthName</font></strong></td> <td><select name="DB_MonthName" style="height:32px;width:250px;" required="required"> <option value=''></option> <option value='<?php echo date('F Y');?>'><?php echo date('F Y');?></option> <option value='<?php echo date('F Y', strtotime($date .' -1 Month'));?>'><?php echo date('F Y', strtotime($date .' -1 Month'));?></option> </select> </td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td align="right"><strong><font color="navy">Display_Name</font></strong></td> <td><select class="inp-text" name="Display_Name" id="Display_Name" required="required" style="height:32px;width:250px;" /> <option value=''></option> <option value='<?php echo date('M-Y');?>'><?php echo date('M-Y');?></option> <option value='<?php echo date('M-Y', strtotime($date .' -1 Month'));?>'><?php echo date('M-Y', strtotime($date .' -1 Month'));?></option> </select> </td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td align="right"><strong><font color="navy">ATT_MONTH</font></strong></td> <td><select name="att_month" style="height:32px;width:250px;" required="required"> <option value=''></option> <option value='<?php echo date('m');?>'><?php echo date('m');?></option> <option value='<?php echo date('m', strtotime($date .' -1 Month'));?>'><?php echo date('m', strtotime($date .' -1 Month'));?></option> </select> </td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td align="right"><strong><font color="navy">ATT_YEAR</font></strong></td> <td><select class="inp-text" name="att_year" id="att_year" required="required" style="height:32px;width:250px;" /> <option value='<?php echo date('Y');?>'><?php echo date('Y');?></option> </select> </td> </tr> <tr><td colspan="2"><br></td></tr> <tr> <td align="center" colspan="2"> <table style="width:20%;"><tr><td> <input class="send_btn" name="submit" type="submit" value="Submit" alt="Submit" title="Submit" style="font-weight:bold;width:100px;height:30px;background-color:#2A5CAA;color:white;"/></td> <td> <a href="page2.php"><input type="button" name="" value="Home" style="font-weight:bold;width:130px;height:30px;background-color:#2A5CAA;color:white;"></a> </td> </tr></table></td> </tr> </table> <br> <?php echo $msg;?> </div><br><br><br> </form> <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>