".$line['item']."\n"; if($id==$line['id']){ $podstr = $line['link']; } } function categories(){ global $id; $categories_query = mysql_query("SELECT * FROM offer_categories ORDER BY c_sort_order"); $cols = '0'; $cols_max = '4'; $width = (floor(100 / $cols_max)); $categories_count_rows = mysql_num_rows($categories_query); //echo $products_count_rows; $count_rows = '0'; echo '' . "\n"; while($categories_rows = mysql_fetch_array($categories_query)){ if ($cols == 0) { echo ' ' . "\n"; } echo " \n"; $cols++; $count_rows++; if ($cols > ($cols_max - 1) or $count_rows == $categories_count_rows) { echo ' ' . "\n"; $cols = 0; } } echo '
\"".$categories_rows['c_name']."\"
".$categories_rows['c_name']."


' . "\n"; } function products_list(){ global $id, $cid; $cols = '0'; $cols_max = '4'; $width = (floor(100 / $cols_max)); $category_description_query = mysql_query("SELECT * FROM offer_categories where cid=".$cid." ORDER BY c_sort_order") or die("bad query - programs category: ".mysql_error()); $category_description_rows = mysql_fetch_array($category_description_query); echo "

".$category_description_rows['c_name']."

" . "\n"; echo '' . "\n"; echo ' ' . "\n"; echo " \n"; echo ' ' . "\n"; echo '' . "\n"; echo '

".$category_description_rows['c_description']."

' . "\n"; echo ' ' . "\n"; $products_list_query = mysql_query("SELECT * FROM offer_products where category_id=".$cid." ORDER BY p_sort_order") or die("bad query - programs category: ".mysql_error()); $products_count_rows = mysql_num_rows($products_list_query); $count_rows = '0'; while($products_list_rows = mysql_fetch_array($products_list_query)){ if ($cols == 0) { echo ' ' . "\n"; } echo " \n"; $cols++; $count_rows++; if ($cols > ($cols_max - 1) or $count_rows == $products_count_rows) { echo ' ' . "\n"; $cols = 0; } } echo '
\"".$products_list_rows['p_name']."\"
".$products_list_rows['p_name']."
' . "\n"; echo '
' . "\n"; } function product(){ global $id, $pid; $product_query = mysql_query("SELECT * FROM offer_products where pid=".$pid.""); $cols = '0'; $rows = '1'; $cols_max = '4'; $width = (floor(100 / $cols_max)); while($product_rows = mysql_fetch_array($product_query)){ echo "

".$product_rows['p_name']."

" . "\n"; echo '' . "\n"; echo ' ' . "\n"; echo " \n"; echo ' ' . "\n"; echo '' . "\n"; echo '

".$product_rows['p_description']."

' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; } echo '
' . "\n"; echo '
' . "\n"; $product_fotos_query = mysql_query("SELECT * FROM offer_products_foto where product_id=".$pid.""); while($product_fotos_rows = mysql_fetch_array($product_fotos_query)){ echo " \n"; echo " \"\"\n"; echo " \n"; } echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; } function text_intro(){ global $text; $ti_query = mysql_query("SELECT * FROM offer_text_intro"); $ti_row = mysql_fetch_array($ti_query); echo nl2br($ti_row['text']) . "\n"; } /** * Makes the page numbers * * This function makes page numbers in a Google-like manner * where only a certain number of page numbers are printed on the * screen at any time. This is helpful for very large galleries * with a lot of images * * {@source } */ function make_user_page_nums($total_results, $print_query, $page_name, $results_per_page, $page, $max_pages_to_show) { echo "Strony: "; /* PREV LINK: print a Prev link, if the page number is not 1 */ if($page != 1) { $pageprev = $page - 1; echo "« Poprzednia "; } /* get the total number of pages that are needed */ $showpages = round($max_pages_to_show/2); $numofpages = $total_results/$results_per_page; if ($numofpages > $showpages ) { $startpage = $page - $showpages ; } else { $startpage = 0; } if ($startpage < 0){ $startpage = 0; } if ($numofpages > $showpages ) { $endpage = $page + $showpages; } else { $endpage = $showpages; } if ($endpage > $numofpages){ $endpage = $numofpages; } /* loop through the page numbers and print them out */ for($i = $startpage; $i < $endpage; $i++) { /* if the page number in the loop is not the same as the page we're on, make it a link */ $real_page = $i + 1; if ($real_page!=$page){ echo " ".$real_page." "; /* otherwise, if the loop page number is the same as the page we're on, do not make it a link, but rather just print it out */ } else { echo "[".$real_page."]"; } } /* NEXT LINK -If the totalrows - $results_per_page * $page is > 0 (meaning there is a remainder), print the Next button. */ if(($total_results-($results_per_page*$page)) > 0){ $pagenext = $page + 1; echo " Następna » "; } } ?> CIARKA MEBEL - Producent mebli
Rzetelna Firma

Witamy!

Budujesz dom i potrzebujesz fachowej porady w zakresie wyposażenia wnętrz? Remontujesz mieszkanie i chcesz je wyposażyć w nowe meble? Otworzyłeś firmę i potrzebujesz funkcjonalnego wyposażenia pomieszczeń w miejscu prowadzenia działalności?

Zrób to z nami!

Nasza firma zajmuje się projektowaniem, produkcją oraz kompleksowym wyposażaniem w meble mieszkań, hoteli, biur, salonów, aptek, gabinetów, sklepów, banków i innych obiektów użyteczności publicznej.

Nasze realizacje

Zapraszamy do naszej galerii zdjęć: