13 lines
No EOL
672 B
PHP
13 lines
No EOL
672 B
PHP
<?php
|
|
$temp1=$GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$_POST['maID']."'");
|
|
$temp2=$GLOBALS['mysql']->query_single("SELECT * FROM planer WHERE mid='".$_POST['maID']."' and jahr='".$_POST['jahr']."' and grund in(4,31) ");
|
|
$temp3=$temp1['urlaubprojahr']-$temp2['num_rows'];
|
|
if ($temp3<0) { $anz=1; } else { $anz=0; }
|
|
|
|
$template->assign('anz', $anz);
|
|
$template->assign('jahr', $_POST['jahr']);
|
|
$template->assign('u_gesa', $temp1['urlaubprojahr']);
|
|
$template->assign('u_geno', $temp2['num_rows']);
|
|
$template->assign('u_rest', $temp3);
|
|
$template->assign('content', 'tpl/ajax/kal_rest_u.tpl');
|
|
?>
|