ALLEGRINI FERMODELLISMO

Il vostro Märklin Shop-in-Shops

Negozio: 091 857 68 57

Fax: 091 857 68 57

Natel: 079 337 45 48

Email: shop@allegrini.ch

1) { $sbuffer = "

"; if ($start>0) { $start_back = $start - $step; $sbuffer = $sbuffer."<<<  \n"; } else $sbuffer = $sbuffer."<<< "; for ($i=0; $i<$pages AND $i<20; $i++) { $start_page = $i * $step; if($start == $start_page) $sbuffer = $sbuffer."" .($i+1)." "." \n"; else $sbuffer = $sbuffer."" . ($i+1) . " \n"; } if ($start + $step < $rowtot) { $start_next = $start + $step; $sbuffer = $sbuffer."$nbsp>>>\n"; } else $sbuffer = $sbuffer."$nbsp>>>"; $sbuffer = $sbuffer."

"; return $sbuffer; } } function redirect($url,$tempo = FALSE ){ if($url == 'root') $url = "index.php"; if($url == 'basket') $url = "articoli.php"; if($url == 'account') $url = "account.php"; if($url == 'confirm') $url = "confirm.php"; if(!headers_sent() && $tempo == FALSE ){ header('Location:' . $url); }elseif(!headers_sent() && $tempo != FALSE ){ header('Refresh:' . $tempo . ';' . $url); }else{ if($tempo == FALSE ){ $tempo = 0; } echo ""; } } function AddError($errors, $newerror) { $errors = $errors."\n".$newerror; return $errors ; } function gethtmlbody($sbody) { return "".$sbody.""; } function getboolvalue($sval){ if ($sval != null) $ret = 1; else $ret = 0; return $ret; } function getshipcosts($tot){ //Calcolo spese di spedizione e poi dello sconto $ssped = 0; if($tot > Gestione::CambioSpese()) $ssped = Gestione::SpeseSup(); else $ssped = Gestione::SpeseInf(); return $ssped; } ?>