init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
57
scripts/ajax/ue_info_werb_mini.php
Normal file
57
scripts/ajax/ue_info_werb_mini.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?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; }
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------
|
||||
//------------------------------ RS
|
||||
$key=0; $tmp=0; $temp=0; $fertig=0; $fehler=0;
|
||||
$s7_tour = $GLOBALS['mysql']->query("SELECT * FROM tourenliste WHERE jahr='".$jahr."' and kw='".$kw."' and typ=13");
|
||||
while($row = $s7_tour->fetch_assoc()) {
|
||||
$tmp=$tmp+$row['gewicht'];
|
||||
$fertig=$fertig+$row['fertig'];
|
||||
if ($row['gewicht']!=0) { if ($row['fahrer']==0 || $row['auto']==0) { $fehler++; }}
|
||||
$key++;
|
||||
}
|
||||
if($key>0) {
|
||||
$temp=number_format($tmp,-2,'','.');
|
||||
$template->assign('d7',$temp);
|
||||
$template->assign('m7',$key);
|
||||
$template->assign('fehler7',$fehler);
|
||||
$template->assign('fertig7',$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);
|
||||
}
|
||||
//------------------------------ 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);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------
|
||||
$template->assign('content', 'tpl/ajax/ue_info_werb_mini.tpl');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue