1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
require_once 'PayRoll_Sql.php';
$rate = $_GET['rate']; $hour = $_GET['hour']; $root_id = $_GET['root_id']; $row_id = $_GET['row_id']; $sth = Salary_rootid($root_id); $salary = $sth->fetch(PDO::FETCH_NUM); array_push($salary, 0); array_push($salary, "Other_Amount"); $rate_amount = Find_Ratetype($salary,$rate); $Amount = Cal_Salary($salary, $rate, $hour);
echo number_format($Amount, 2)." ".$row_id." ".$rate_amount." ".$rate6_present; ?>
|