$value) { $classes_a[] = $key; $options_a[] = $value; } $nr_elem_class = count($classes_a); if ($nr_elem_class > 1) { $classes_1 = implode(',',$classes_a); } if ($nr_elem_class == 1) { $classes_1 = $classes_a[0]; } $nr_elem_option = count($options_a); if ($nr_elem_option > 1) { $options_1 = implode(',',$options_a); } if ($nr_elem_option == 1) { $options_1 = $options_a[0]; } } } require("Smarty.class.php"); $smarty = new Smarty; include('includes/fill_template_data.inc.php'); include('bestseller_box.php'); include('newproduct_box.php'); include('specialoffer_box.php'); include('manufacturer_box.php'); include('includes/meta_css.php'); include('includes/page_title.php'); if (!valid_show($show)) { include ("shop-error.php"); exit; } switch($show) { case 'add': if($product_id) { include('cart-add.php'); } else { include('shop-error.php'); } break; case 'basket': include('cart-main.php'); break; case 'continue': include('cart-continue-shopping.php'); break; case 'paydel': include('cart-paydel.php'); break; case 'basketall': include('cart-basket-all.php'); break; case 'basketok': include('cart-basket-finished.php'); break; default: include('cart-main.php'); } include ("close_mysql.php"); ?>