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'); ?>