query_single("SELECT * FROM touren WHERE job!=0"); if($tmp0['num_rows']!=0) { $anzeige=0; $nochmenge=$tmp0['num_rows']; $zeitraum=substr($tmp0['job'],4)."/".substr($tmp0['job'], 0,4); $template->assign('zeitraum', $zeitraum); $template->assign('nochmenge', $nochmenge); $template->assign('aktuell',$tmp0['tour']); } else { $template->assign('fehler', 1); } $template->assign('content', 'tpl/ajax/i_tour_a.tpl'); ?>