コード例 #1
0
ファイル: employer_admin.php プロジェクト: pamalite/yel
$data['employer'] = $employer_id;
$data['service_fee'] = 7.5;
$data['premier_fee'] = 1.0;
$data['discount'] = 0.01;
$data['salary_start'] = 65001.0;
$data['salary_end'] = 70000.0;
$fees[4] = $data;
$data = array();
$data['employer'] = $employer_id;
$data['service_fee'] = 8;
$data['premier_fee'] = 1.0;
$data['discount'] = 0;
$data['salary_start'] = 70001.0;
$data['salary_end'] = 85000.0;
$fees[5] = $data;
if ($employer->create_fees($fees)) {
    print_array($employer->get_fees());
} else {
    echo "failed";
    exit;
}
?>
</p><p style="font-weight: bold;">Add a stack of employer extras for ken123... </p><p><?php 
$extras = array();
$data = array();
$data['employer'] = $employer_id;
$data['charges'] = -10;
$extras[0] = $data;
$data = array();
$data['employer'] = $employer_id;
$data['charges'] = 0.5;