/*****************************************************************************\
+-----------------------------------------------------------------------------+
| X-Cart |
| Copyright (c) 2001-2002 Ruslan R. Fazliev. All rights reserved. |
+-----------------------------------------------------------------------------+
| The Ruslan R. Fazliev forbids, under any circumstances, the unauthorized |
| reproduction of software or use of illegally obtained software. Making |
| illegal copies of software is prohibited. Individuals who violate copyright |
| law and software licensing agreements may be subject to criminal or civil |
| action by the owner of the copyright. |
| |
| 1. It is illegal to copy a software, and install that single program for |
| simultaneous use on multiple machines. |
| |
| 2. Unauthorized copies of software may not be used in any way. This applies |
| even though you yourself may not have made the illegal copy. |
| |
| 3. Purchase of the appropriate number of copies of a software is necessary |
| for maintaining legal status. |
| |
| DISCLAIMER |
| |
| THIS SOFTWARE IS PROVIDED BY Ruslan R. Fazliev ``AS IS'' AND ANY |
| EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| DISCLAIMED. IN NO EVENT SHALL Ruslan R. Fazliev OR ITS |
| CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| |
| The Initial Developer of the Original Code is Ruslan R. Fazliev. |
| Portions created by Ruslan R. Fazliev are Copyright (C) 2001-2002 |
| Ruslan R. Fazliev. All Rights Reserved. |
+-----------------------------------------------------------------------------+
\*****************************************************************************/
#
# $Id: product.php,v 1.49 2002/11/29 14:46:02 vod Exp $
#
require "../smarty.php";
require "../config.php";
checkuser();
@include "./https.php";
require "./auth.php";
#
# Put all product info into $product array
#
$product_info = func_select_product($productid, $user_account['membership']);
if (empty($cat)) {
$cat = $product_info["categoryid"];
}
if($active_modules["Detailed_Product_Images"])
include "../modules/Detailed_Product_Images/product_images.php";
if($active_modules["Product_Options"])
include "../modules/Product_Options/customer_options.php";
if($active_modules["Upselling_Products"])
include "../modules/Upselling_Products/related_products.php";
if($active_modules["Advanced_Statistics"])
include "../modules/Advanced_Statistics/prod_viewed.php";
if($active_modules["Extra_Fields"]) {
$extra_fields_provider=$product_info["provider"];
include "../modules/Extra_Fields/extra_fields.php";
}
if($active_modules["Subscriptions"])
include "../modules/Subscriptions/subscription_modify.php";
if($active_modules["Recommended_Products"])
include "./recommends.php";
include "./vote.php";
#
# Wholesales table
#
$wresult = func_query ("SELECT * FROM $sql_tbl[pricing] WHERE productid='$productid' AND ($sql_tbl[pricing].membership='$user_account[membership]' or $sql_tbl[pricing].membership='') AND $sql_tbl[pricing].quantity>1 ORDER BY quantity");
if ($wresult) {
$f = true;
foreach ($wresult as $wk=>$wv) {
if ($f)
$wresult [$wk]["next_quantity"] = 0;
else
$wresult [$wk-1]["next_quantity"] = $wv["quantity"]-1;
$f = false;
}
$smarty->assign ("product_wholesale", $wresult);
}
$smarty->assign("pricing",$pricing);
require "../include/categories.php";
if(!empty($current_category)) $location = $category_location;
$smarty->assign("location",$location);
$smarty->assign("product",$product_info);
$smarty->assign("main","product");
$smarty->display("customer/home_dvd.tpl");
?>
brightlinks">Audiovisual Production Services
Audiovisual Recovery Services
Auditing & Fraud
Auditorium
Auditors
Auditory Training Equipment
Auto
Auto & Truck Brokers
Auto & Truck Leasing & Rental
Auto Accessories Retail
Auto Accessories Wholesale and Manufacturers
Auto Air Conditioning and Heating Retail
Auto Air Conditioning Commercial
Auto Air Conditioning Service and Repair
Auto alarm and security systems
Auto Alarms and Security Systems
Auto Alignment
Auto Alignment Frames and Axles Service and Repair
Auto Alternators and Starters
Auto Alternators and Starters Service and Repair
Auto and Motorcycle Accident Attorneys
Auto and Truck Lifts
Auto and Truck Wrecking
Auto Appearance and Protection
Auto Appraisers
Auto Auctions
Auto Batteries
Auto Bodies Commercial
Auto Bodies Wholesale and Manufacturers
Auto Body Repair and Painting
Auto Body Shop Equipment & Supplies
Auto Body Shop Equipment and Supplies Retail
Auto Body Shop Equipment and Supplies Wholesale an
Auto Body Shop Equipment Repair
Auto Bumpers and Grills
Auto Buyers
Auto Buying Information and Referral Services
Auto Cars and Trucks
Auto Cleaning and Detailing
Auto Clutches Service and Repair
Auto Consultants and Information
Auto Covers
Auto Cruise Control Devices
Auto Customizing
Auto Customizing Conversion and Restoration
Auto CV Joints and Axles
Auto Damage Appraisers
Auto Dealer
Auto Dealers
Auto Dealers Used
|
Auto Detailing Equipment and Supplies Auto Diagnostic Equipment Auto Diagnostic Equipment Parts and Supplies Auto Diagnostic Equipment Repair Auto Diagnostic Services Auto Differentials Auto Electric Equipment and Supplies Auto electrical services Auto Electrical Systems Service and Repair Auto Emissions Testing and Repair Auto Engine Balancing Auto Engine Rebuilding Auto Engines and Engine Parts Auto Engines Service and Repair Auto Equipment and Supplies Retail Auto Equipment and Supplies Wholesale and Manufact Auto Financing and Loans Auto Fleet Maintenance Auto Fleet Sales Auto Floor Coverings Auto Frames Service and Repair Auto Fuel Injection Service and Repair Auto Gas Tank Installation and Removal Auto Gas Tanks Auto Gas Tanks Service and Repair Auto Glass Auto Glass Coating & Tinting Auto Glass Replacement and Repair Auto Glass Retail Auto Glass Wholesale and Manufacturers Auto Hand and Foot Controls Auto Impounding Services Auto Information and Referral Services Auto Inspection Auto Inspection Equipment and Supplies Auto Insurance Auto Interiors Repair Auto Leasing Auto Licenses Auto Loans Auto Locators Auto Locks and Lockout Services More categories... |