init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
58
scripts/phistory.php
Normal file
58
scripts/phistory.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?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');
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue