$la_view_prod_sel"; } else { $select_prod = mysql_query( "SELECT * FROM ".$prefix."store_inventory WHERE product='".$product."'"); $totalrows = mysql_num_rows($select_prod); if($totalrows==0) { echo"

$la_view_prod_noexist

"; } // build page for product if($totalrows!==0) { while ($row = mysql_fetch_array($select_prod)) { $title = $row["title"]; $image = $row["image"]; $description = $row["description"]; $quantity = $row["quantity"]; $rozmiar = $row["rozmiar"]; $price = $row["price"]; $sale_price = $row["sale_price"]; $cat_id = $row["cat_id"]; $popularity = $row["popularity"]; $autor = $row["autor"]; } // add 1 to products popularity $new_pop = $popularity + 1; $sql_update = "update ".$prefix."store_inventory set popularity='$new_pop' where product='".$product."'"; $result = mysql_query ($sql_update); $title=stripslashes($title); $description = stripslashes($description); $description = nl2br($description); $select_cat = mysql_query( "SELECT * FROM ".$prefix."store_category WHERE cat_id='".$cat_id."'"); while ($row = mysql_fetch_array($select_cat)) { $category = $row["category"]; $cat_image = $row["cat_image"]; } // navigation if directed from search.php if($searchlink=="yes") { echo"$la_search_home > $la_view_prod_search_res > $title
"; } // navigation if directed from elsewhere else { include( "link_navi.php"); } // echo "asdfasdfafds
"; //if ($cat_image!='catnophoto.gif') // { // echo"


"; // } // view_cart.php?add=$product\ extract($_POST); extract($_REQUEST); if (policz()==0){ echo"
"; } else { echo"
"; } echo""; // z 282 background=\"images/white_button.gif\" // style='cursor:hand;' onClick='add_product.submit();'>$la_add_to_basket //z 280 echo"
$product_cena="aca033004-6110-019"; $select = mysql_query("SELECT * FROM ".$prefix."store_inventory WHERE ( product='".$product."') AND (`p_date` LIKE '%2003%' OR `p_date` LIKE '%2004%' OR `p_date` LIKE '%2005%' OR `p_date` LIKE '%2006%' OR `p_date` LIKE '%2007%')"); $count = mysql_num_rows($select); //echo"roz=$rozmiar
"; //criteria.petla($rozmiar); if($count>0) { echo "
"; echo "
"; echo "
"; echo"

For general sales inquiries and pricing please email us at:

"; echo"

info@tennispress.com

"; } else { // START PRODUCT OPTIONS $select = mysql_query("SELECT distinct option_id FROM ".$prefix."store_options_bot WHERE product='$product_cena'"); $count = mysql_num_rows($select); $count=0; //echo"roz=$rozmiar
"; criteria.petla($rozmiar); if($count>0) { echo"$la_product_options_view
"; //start table echo"
$title

$la_store_description:

$description"; // next line for when stock quanity mod is made //

$la_order_quan: $quantity

if(($sale=="Y")and($sale_price!=="0.00")) { // echo"

$la_normal_price $currency$price

"; // echo"

$la_sale_price $currency$sale_price

"; } if(($sale=="Y")and($sale_price=="0.00")) { // echo"

$la_store_price: $currency$price

"; } if($sale=="N") { // echo"

$la_store_price: $currency$price

"; } echo"

"; echo"
"; echo "Author:
"; echo $autor; echo"
"; echo"
"; echo "Copyright:
"; echo "© Tennis Press-Photo Agency
"; echo "ALL RIGHTS RESERVED
"; echo"
"; echo"

"; echo"

$la_view_prod_tellfriend

"; // future link to wishlist.php ;) //echo"

$la_view_prod_add_wish

"; // find options $option_number = 0; while ($row = mysql_fetch_array($select)) { $option_id = $row["option_id"]; $option_number = $option_number + 1; echo"
"; // build option name $query = "select * from ".$prefix."store_options_top where option_id = '$option_id'"; $result = mysql_query($query)or die("Error: " . mysql_error()); while ($row = mysql_fetch_array($result)) { $option_name=$row["option_name"]; } //echo"$option_name:"; echo"
"; } /////// ============================ wstawka ================================ // echo"
"; /////// ============================ koniec wstawki ================================ echo"
"; // build select echo""; echo"
"; // ======================wstawka po pierwszym // echo"
"; } //end if($count>0) // END PRODUCT OPTIONS } echo"
$la_view_prod_code $product  


"; } }//end if there is a result // end border eb($bg_colour,$colour_1); include("subfooter.inc.php"); include("footer.inc.php"); ?>