58 lines
1.8 KiB
PHP
58 lines
1.8 KiB
PHP
<?php
|
|
//$_SESSION['m1']=0; $_SESSION['m2']=0;
|
|
|
|
error_reporting(E_ALL); ini_set('display_errors',0);
|
|
|
|
$tagname = array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
|
|
|
|
//$hinfo[0]['zahl']=1;
|
|
$htour1 = $GLOBALS['mysql']->query("SELECT * FROM tourenliste WHERE tour='".$_GET['tour']."' ORDER BY id"); $key=0; $zahl=0;
|
|
while($trow = $htour1->fetch_assoc()) {
|
|
$row_fahrerx = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$trow['fahrer']."' AND aktiv=1");
|
|
if($row_fahrerx['num_rows'] >0) {
|
|
$fahrer=$trow['fahrer'];
|
|
$hinfo[$fahrer]['zahl']=$hinfo[$fahrer]['zahl']+1;
|
|
$hinfo[$fahrer]['name']=$row_fahrerx['name'];
|
|
$hinfo[$fahrer]['last']=$trow['tag'].".".$trow['monat'].".".$trow['jahr'];
|
|
$key++;
|
|
}
|
|
}
|
|
//echo "<pre>"; print_r($hinfo); echo "</pre>";
|
|
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
//-------------------------------------------------------------------------------------------
|
|
$template->assign('hinfo', $hinfo);
|
|
$template->assign('content', 'tpl/phistory.tpl');
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|