$domain="http://revendex.Kasparek.org"; // domain $servPat="/var/www/vhosts/kasparek.org/httpdocs/Revendex/"; // server path $pdfPat=$servPat."pdf/"; // pdf path ?>

|
Mitarbeiter/in |
Zeitraum |
|
|
|
|
|
von-/bis-Datum |
Unter „1. Auswählen“ getroffene Auswahl ausführen?
/*------------------------------------------------------ Plausi Auswahl und Zeitraum */ $tilt='no'; /* error switch */ $DoIt=0; /* perform switch */ $an=''; /* reset Auswahl query amendment to default empty */ $tm=''; /* reset date range query amendment to default empty */ function gf($v1,$v2) {return $v1 . '","' . $v2;}; /* mandatory function for array_reduce */ if ($_GET["Execute"]) /* Knopf gedrückt yes */ if (count($_GET["component-select"])>0) /* Auswahl getroffen */ {$DoIt=1; if (strchr(array_reduce($_GET["component-select"],"gf"),"jede/r")) /* "jede/r" kommt vor */ $an=''; /* no restriction on persons */ else $an=' and u_name in (' . substr(array_reduce($_GET["component-select"],"gf") . "\")",2); /* form sql "and" expression */ } else {$tm='';$tilt='yes'; $err='Bitte Mitarbeiter/innen auswählen!'; } else echo 'Parameter zurückgesetzt.'; $an=utf8_encode($an); /* Kodiere um, damit in DB auch Umlaute gefunden werden */ //if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {$localeCode = 'ge';else $localeCode = 'de_DE';$v=setlocale(LC_TIME, $localeCode);} /* funzt nöd */ $monat=array(1=>"Januar",2=>"Februar",3=>"März",4=>"April",5=>"Mai",6=>"Juni",7=>"Juli",8=>"August",9=>"September",10=>"Oktober",11=>"November",12=>"Dezember"); if ($_GET["chk"]=='chk1') {$dvon = explode("-",$_GET["von_Datum"]);$dbis = explode("-",$_GET["bis_Datum"]);$Abrechmonat=$dvon[2].".".$monat[$dvon[1]*1]." ".$dvon[0] . ' bis ' . $dbis[2].".".$monat[$dbis[1]*1]." ".$dbis[0];$tm=' and activity_log.al_date between "' . $_GET["von_Datum"] . '" and "' . $_GET["bis_Datum"] . '" '; } elseif ($_GET["chk"]=='chk2') {$mon=explode("-",$_GET["month-select"]);$Abrechmonat=$monat[$mon[0]*1]." ".$mon[1];$tm=' and extract(year from al_date)="' . $mon[1] . '" and extract(month from al_date)="' . $mon[0] . '" '; } elseif ($_GET["chk"]=='chk3') {if (strlen(filter_var($_GET["Jahr"], FILTER_VALIDATE_INT))>0) {$Abrechmonat=$monat[$_GET["Monat"]*1] . ' ' . $_GET["Jahr"];$tm=' and extract(year from activity_log.al_date)="' . $_GET["Jahr"] . '" and extract(month from activity_log.al_date)="' . $_GET["Monat"] . '" ';} else {$tilt='yes'; $err='tilt: kein numerisches Jahr!'; }} mysql_close($link); /*-------------------------------------------------------------------------- execute */ ?>
| erstellen | löschen |
Verknüpfung auswählen
';
for ($i = 0; $i| ';
for ($i = 0; $i | |