init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
66
scripts/ajax/lohnsave.php
Normal file
66
scripts/ajax/lohnsave.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
|
||||
if(isset($_GET['a']))
|
||||
$action=$_GET['a'];
|
||||
else
|
||||
$action='load_free_cars';
|
||||
switch($action):
|
||||
|
||||
case 'glohn_save';
|
||||
$GLOBALS['mysql']->insert("UPDATE mitarbeiter SET tarifg='".$_POST['info']."' WHERE id='".$_POST['maID']."'");
|
||||
$GLOBALS['mysql']->insert("INSERT INTO ma_glohn (mid,monat,jahr,glohn)
|
||||
VALUES(
|
||||
'".$_POST['maID']."',
|
||||
'".(int)date('m')."',
|
||||
'".(int)date('Y')."',
|
||||
'".$_POST['info']."')
|
||||
");
|
||||
$back['success'] = true;
|
||||
$back['lastnote']="Grundlohn auf ".$_POST['info']." € geändert.";
|
||||
$back['alt'] = 5;
|
||||
echo json_encode($back);
|
||||
|
||||
break;
|
||||
|
||||
case 'lohntyp_save'; //---------------------------------------------- save lohntyp ---------------------------------
|
||||
$GLOBALS['mysql']->insert("UPDATE mitarbeiter SET tarifgtyp='".$_POST['info']."' WHERE id='".$_POST['maID']."'");
|
||||
$back['success'] = true;
|
||||
$back['lastnote']="Information: Lohntyp auf ".$_POST['info']." geändert.";
|
||||
$back['alt'] = 5;
|
||||
echo json_encode($back);
|
||||
|
||||
break;
|
||||
|
||||
case 'lohngeld_save';
|
||||
$GLOBALS['mysql']->insert("UPDATE tourenliste SET tarif='".$_POST['info']."' WHERE id='".$_POST['maID']."'");
|
||||
$back['success'] = true;
|
||||
$back['lastnote']="Lohnpreis auf ".$_POST['info']." € gespeichert.";
|
||||
$back['alt'] = 5;
|
||||
echo json_encode($back);
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case 'lohnstunden_save';
|
||||
$GLOBALS['mysql']->insert("UPDATE tourenliste SET tarifh='".$_POST['info']."' WHERE id='".$_POST['maID']."'");
|
||||
$back['success'] = true;
|
||||
$back['lastnote']="Stunden auf ".$_POST['info']." gespeichert.";
|
||||
$back['alt'] = 5;
|
||||
echo json_encode($back);
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
|
||||
default:
|
||||
|
||||
|
||||
|
||||
|
||||
endswitch;
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue