\'; if ($lb_esNIF) { // Verifica que sea NIF (f_LetraNIF($ls_numero) == $ls_letra) ? $li_ret = 1 : $li_ret = -1; }; if ($lb_esCIF) { // Verifica que sea CIF f_ValidarCIF($ls_numero) ? $li_ret = 2 : $li_ret = -2; }; } return $li_ret; } // // Calcula la letra de un NIF // (C)2004 Juan Prada www.silueth.com // // string $dni Nmeros que conforman el DNI o CIF (SIN LETRA) // // Retorno string La letra correspondiente // function f_LetraNIF($dni) { $valor = (int) ($dni / 23); $valor *= 23; $valor = $dni - $valor; $letras = "TRWAGMYFPDXBNJZSQVHLCKEO"; $letraNif = substr($letras, $valor, 1); return $letraNif; } // // Valida el nmero CIF // (C)2004 Juan Prada www.silueth.com // // string $ccNumber (El CIF (Sin letra) a verificar) // // Retorno boolean true Es correcto // false No vale // function f_ValidarCIF($ccNumber) { $lb_ret = false; if (strlen($ccNumber) == 8) { $lb_ret = true; $numOfDigits = 0 - strlen($ccNumber); $i = -1; while ($i >= $numOfDigits) { if (($i % 2) == 0) { $double = 2 * (substr($ccNumber, $i, 1)); $total += substr($double, 0, 1); if (strlen($double > 1)) { $total += substr($double, 1, 1); } } else { $total += substr($ccNumber, $i, 1); } $i--; } if (($total % 10) != 0) { $lb_ret = false; } } return $lb_ret; } function convert2Money($val) { $pos = strpos($val, "."); if ($pos === false) { $t = $val . ",00"; } else { if ($pos == 0) { $t = "0," . substr($val, 1, strlen($val)); } else { $t = substr($val, 0, $pos); $t .= ","; $t .= substr($val . "00", strrpos($val, ".") + 1, 2); } } return $t; } function convert2Moneywithdot($val) { $pos = strpos($val, "."); if ($pos === false) { $t = $val . ",00"; } else { if ($pos == 0) { $t = "0," . substr($val, 1, strlen($val)); } else { $t = substr($val, 0, $pos); $t .= "."; $t .= substr($val . "00", strrpos($val, ".") + 1, 2); } } return $t; } function printMYSQLDate($val, $lang) { switch ($lang) { case "en" : $r = substr($val, 5, 2) . "/" . substr($val, 8, 2) . "/" . substr($val, 0, 4); break; default : $r = substr($val, 8, 2) . "/" . substr($val, 5, 2) . "/" . substr($val, 0, 4); break; } return $r; } function printProjectType($val) { $result = ""; switch ($val) { case 'event' : $result = "Events"; break; case 'booking' : $result = "Booking"; break; case 'renting' : $result = "Renting"; break; case 'labdeco': $result = "Labdeco"; break; case 'screen_design': $result = "Screen Design"; break; case 'print_design': $result = "Print Design"; break; case 'photography': $result = "Photography"; break; case 'motiongraphics': $result = "Motiongraphics"; break; } return $result; } function getRandomFile($dir, $filetypes) { $foundfiles = array(); $handle = opendir($dir); while ($file = readdir($handle)) { if ($file != "." && $file != "..") { $ok = false; for ($i = 0; $i < count($filetypes); $i++) { if (strtoupper(substr(strrchr($file, "."), 1)) == strtoupper($filetypes[$i])) { $ok = true; } } if ($ok) { $foundfiles[] = $file; } } } closedir($handle); $i = rand(0, count($foundfiles) - 1); return $dir . $foundfiles[$i]; } function getWords($text, $count, $points = ' [...]') { $result = ""; $text = strip_tags($text); $words = explode(" ", $text); $i = 0; while (($i < count($words)) && ($i < $count)) { $result .= $words[$i] . " "; $i++; } if ($i < count($words)) { $result .= $points; } return $result; } function getCharacters($text, $count, $points = ' [...]') { $return = substr($text, 0, $count); if ($count < strlen($text)) $return .= $points; return $return; } function kill_lf($str) { return str_replace(chr(10), "", $str); } function mysql_slashes($text) { //return addslashes($text); return (get_magic_quotes_gpc()) ? $text : addslashes($text); } function file_ok($directory, $filename) { $ok = false; if (strlen(trim($filename)) > 0) { if (file_exists($directory . $filename)) { $ok = true; } } return $ok; } function showImage($file, $alt, $width = 0, $height = 0) { $file = trim($file); if ((strlen($file) > 0) && file_exists($file)) { $imgsize = getimagesize($file); if ($width > $imgsize[0]) { $padding_h = ceil(($width - $imgsize[0]) / 2); $width = $imgsize[0]; } else { $padding_h = 0; } if ($height > $imgsize[1]) { $padding_v = ceil(($height - $imgsize[1]) / 2); $height = $imgsize[1]; } else { $padding_v = 0; } $ret = '' . $alt . ' 0 && $height > 0) { $ret .= 'width="' . $width . '" height="' . $height . '"'; } else { if ($width > 0) { $height = ceil($width / $imgsize[0] * $imgsize[1]); $ret .= 'width="' . $width . '" height="' . $height . '"'; } else { if ($height > 0) { $width = ceil($height / $imgsize[1] * $imgsize[0]); $ret .= 'width="' . $width . '" height="' . $height . '"'; } else { $ret .= $imgsize[3]; } } } if ($padding_h > 0 || $padding_v > 0) $ret .= 'style="padding: ' . $padding_v . 'px ' . $padding_h . 'px;"'; $ret .= ' />'; return $ret; } else { return ''; } } function getFileExtension($file) { $arr = explode('.', $file); return strtolower(end($arr)); } ?> Forme din carton microondul
Home : Produse : Forme speciale termorezistente pentru cuptor : Forme din carton microondul

Forme speciale termorezistente pentru cuptor

Forme din carton microondul

Forme din carton microondul.

Consultati-ne pentru dimensiuni si preturi.

revenire
Forme din carton microondul