"Products", "NEW" => "News", "MAT" => "Materials", "CONT_US" => "Contact us", "ABT" => "About us", "COLG" => "HANGING LAMPS", "SBRMSA" => "TABLE LAMPS", "PIES" => "FLOOR LAMPS", "APLIQ" => "WALL LAMPS", "PLAFON" => "CEILING LAMPS", "EXTER" => "EXTERIOR", "ESPEJ" => "LUMINOUS MIRRORS", "FITECH" => "Technical data", ); break; case 'fr': $array_text = array( "PROD" => "Produits", "NEW" => "Nouvelles", "MAT" => "Materiels", "CONT_US" => "Contactez nous", "ABT" => "A propos de nous", "COLG" => "LAMPES SUSPENDUES", "SBRMSA" => "LAMPES DE TABLE", "PIES" => "LAMPES SUR PIED", "APLIQ" => "LAMPES MURALES", "PLAFON" => "PLAFONNIERS", "EXTER" => "EXTERIEUR", "ESPEJ" => "MIROIRS LUMINEUX", "FITECH" => "Technical data", ); break; case 'es': default: $array_text = array( "PROD" => "Productos", "NEW" => "Novedades", "MAT" => "Materiales", "CONT_US" => "Informacion de contacto", "ABT" => "Quienes somos", "COLG" => "COLGANTES", "SBRMSA" => "SOBREMESAS", "PIES" => "PIES", "APLIQ" => "APLIQUES", "PLAFON" => "PLAFONES", "EXTER" => "EXTERIOR", "ESPEJ" => "ESPEJOS LUMINOSOS", "FITECH" => "Ficha Tecnica", ); } return $array_text; } function get_language_bar_code($index_option, $product_name) { if (isset($index_option)){ $add_params = "&idxOpt=" . $index_option . '&prodName=' . $product_name; } echo '
     
'; } function get_footer() { echo ''; } function get_OptionBarTable($lang, $curr_page) { switch ($curr_page) { case 'index.php': $home_status = '_inactive'; break; case 'products.php': $prod_status = '_inactive'; break; case 'news.php': $novedades_status = '_inactive'; break; case 'materials.php': $materiales_status = '_inactive'; break; case 'contact_us.php': $contacta_status = '_inactive'; break; case 'about_us.php': $about_us = '_inactive'; break; default: $home_status = '_inactive'; break; } $array_text = get_all_lang_texts($lang); echo '
    ' . $array_text["PROD"] .'   ' . $array_text["MAT"] .'   ' . $array_text["CONT_US"] .'   ' . $array_text["ABT"] .' 
'; } function get_IndexMenu($lang, $index_option){ if (empty($index_option) ){ $index_option = 'COLG'; } switch ($index_option){ case 'SBRMSA': $sbrmsa_active = '_active'; break; case 'PIES': $pies_active = '_active'; break; case 'APLIQ': $apliq_active = '_active'; break; case 'PLAFON': $plafon_active = '_active'; break; case 'EXTER': $exter_active = '_active'; break; case 'ESPEJ': $espej_active = '_active'; break; case 'COLG': default: $colg_active = '_active'; break; } $array_text = get_all_lang_texts($lang); echo '
' . getIdxPictures($lang, $index_option) . '
'; } function getIdxPictures($lang, $section){ $dir = 'products/' . $section ; $listOfImages = getIndexImages($dir, 'idx_'); $counter = 0; foreach ($listOfImages as $image) { $counter = $counter + 1; if ( $counter > 5 ) { $result = $result . ''; $counter = 1; } $result = $result . ''; } return $result; } function getMainPictures($lang, $section, $product_name){ $dir = 'products/' . $section ; $listOfImages = getImages($dir, 'bdy_' . $product_name); foreach ($listOfImages as $image) { $result = $result . '
' ; } return $result; } function getProductName($image){ return substr ( $image, 4, (strlen($image)-8)); } function getFinalPicture($lang, $section, $product_name){ $dir = 'products/' . $section ; $listOfImages = getImages($dir, 'finish_' . $product_name); foreach ($listOfImages as $image) { $result = $result . '
' ; } return $result; } function getTechDetail($lang, $section, $product_name){ $dir = 'fichas_tecnicas'; $listOfPDFFiles = getFitxaTech($dir, 'FICHA TECNICA ' . $product_name . ' ' . $section) ; $array_text = get_all_lang_texts($lang); $counter = 0; foreach ($listOfPDFFiles as $pdfFile) { $counter = $counter +1; $result = $result . '' . $array_text["FITECH"] . ''; } return $result; } ?> "." && $file <> ".." && preg_match("/^" . $product_name . "[0-9].jpg$/i", $file)) { array_push($arrayMainPictures, rawurlencode($file)); } } return ($arrayMainPictures); } } function getFitxaTech($dir, $product_name){ $arrayMainPictures = array(); if (is_dir($dir)){ $files = scandir($dir) ; foreach ($files as $file) { if ($file <> "." && $file <> ".." && preg_match("/^" . $product_name . "/i", $file)) { array_push($arrayMainPictures, rawurlencode($file)); } } return ($arrayMainPictures); } } function getIndexImages($dir, $product_name){ $arrayMainPictures = array(); if (is_dir($dir)){ $files = scandir($dir) ; foreach ($files as $file) { if ($file <> "." && $file <> ".." && preg_match("/^" . $product_name . "/i", $file)) { array_push($arrayMainPictures, rawurlencode($file)); } } return ($arrayMainPictures); } } ?>