ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.190.239.19 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 > 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')) { /*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->addSalary($_POST ); } if (($_SERVER["REQUEST_METHOD"] == "POST") and ($_POST['submit'] == 'Update')) { $msg = $sc->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 } </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="400" 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="386" border="0"> <tr> <td colspan="2"><?php if(isset($msg)) echo $msg; //} ?></td> </tr> <tr> <td><div align="right">Employee type</div></td> <td><select name="employee_type" id="employee_type" required="true"> <option selected="selected">Select type</option> <option value="judicial">Judicial</option> <option value="Health">Health</option> </select></td> </tr> <tr> <td width="158"><div align="right">Grade</div></td> <td width="218"><select name="grade" id="grade" required="true"> <option>Staff Grade</option> <option value="1">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> </tr> <tr> <td><div align="right">Step</div></td> <td><select name="step" id="step" required="true"> <option selected="selected">Staff Step</option> <option value="1">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> </select></td> </tr> <tr> <td><div align="right">Basic Salary</div></td> <td><input type="text" name="amount" required="true"/></td> </tr> <tr> <td><div align="right">PAYE(Tax this Month)</div></td> <td><input name="tax" type="text" id="tax" required="true"/></td> </tr> <tr> <td><div align="right">Domestic Servants</div></td> <td><input name="domestic_s" type="text" id="domestic_s" value="0.00" required="true"/></td> </tr> <tr> <td><div align="right">Meal subsidy</div></td> <td><input name="meal" type="text" id="meal" required="true"/></td> </tr> <tr> <td><div align="right">Driver</div></td> <td><input name="driver" type="text" id="driver" 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();?>