'; } $T1_loppu =' '; function nappi($teksti,$linkki,$onclick) { echo ' '.$teksti.' '; } function kasittele($string){ $string = str_replace("'", '', trim($string)); $string = preg_replace("/[^a-zA-Z0-9]/", "", $string); $string = strtolower($string); return $string; } function hae_taytteet($tayte,$lahetys='') { global $S; $tayte = explode(',',$tayte); include('asetukset/'.$_SESSION['val_pizzeria'].'/tuotetaulukko.php'); foreach($tayte as $key => $name) { foreach($tayteNimi as $taytekey => $taytename) { if ($tayteNro[$taytekey] == $name) { if ($lahetys == 1) $re .= substr($taytename,0,20).', '; else $re .= $taytename.', '; } } foreach($S['lisuke'] as $taytekey => $taytename) { if ($taytekey == $name) { if ($lahetys == 1) $re .= substr($taytename,0,20).', '; else $re .= $taytename.', '; } } } return substr($re,0,-2); } ?>