43 lines
No EOL
1.7 KiB
PHP
43 lines
No EOL
1.7 KiB
PHP
<?php
|
|
//---------------------------------------------------------------------------------------------------------
|
|
$kw = (int)date('W'); $jahr = (int)date('Y');
|
|
//if(($week = date('W', mktime(0, 0, 0, 12, 31,$jahr_aktuell))) == 1) { $kwgesamt=52; } else { $kwgesamt=53; }
|
|
|
|
//---------------------------------------------------------------------------------------------------------
|
|
//------------------------------ SaSo
|
|
$key=0; $tmp=0; $fertig=0; $fehler=0;
|
|
$s19_tour = $GLOBALS['mysql']->query("SELECT * FROM tourenliste WHERE jahr='".$jahr."' and kw='".$kw."' and typ=19");
|
|
while($row = $s19_tour->fetch_assoc()) {
|
|
$tmp=$tmp+$row['gewicht4'];
|
|
$fertig=$fertig+$row['fertig'];
|
|
if ($row['gewicht3']!=0) { if ($row['fahrer']==0 || $row['auto']==0) { $fehler++; }}
|
|
$key++;
|
|
}
|
|
if($key>0) {
|
|
$temp=number_format($tmp,-2,'','.');
|
|
$template->assign('d19',$temp);
|
|
$template->assign('m19',$key);
|
|
$template->assign('fehler19',$fehler);
|
|
$template->assign('fertig19',$fertig);
|
|
}
|
|
//------------------------------ FAZ
|
|
/*
|
|
$key=0; $tmp=0; $fertig=0; $fehler=0;
|
|
$s15_tour = $GLOBALS['mysql']->query("SELECT * FROM tourenliste WHERE jahr='".$jahr."' and kw='".$kw."' and typ=15");
|
|
while($row = $s15_tour->fetch_assoc()) {
|
|
$tmp=$tmp+$row['exemplare'];
|
|
$fertig=$fertig+$row['fertig'];
|
|
if ($row['exemplare']!=0) { if ($row['fahrer']==0 || $row['auto']==0) { $fehler++; }}
|
|
$key++;
|
|
}
|
|
if($key>0) {
|
|
$template->assign('d15',$tmp);
|
|
$template->assign('m15',$key);
|
|
$template->assign('fehler15',$fehler);
|
|
$template->assign('fertig15',$fertig);
|
|
}
|
|
*/
|
|
|
|
//---------------------------------------------------------------------------------------------------------
|
|
$template->assign('content', 'tpl/ajax/ue_info_werb.tpl');
|
|
?>
|