Esempio n. 1
0
function qtpro_doctor_product_healthy($products_id)
{
    $results = qtpro_doctor_investigate_product($products_id);
    if ($results['any_problems'] == false) {
        return true;
    } else {
        return false;
    }
}
Esempio n. 2
0
//list($product_name,$option_name,$option_id,$value,$value_id)
if (tep_db_num_rows($q) > 0) {
    $flag = 1;
    while ($list = tep_db_fetch_array($q)) {
        $options[$list[_option_id]][] = array($list[_value], $list[_value_id]);
        $option_names[$list[_option_id]] = $list[_option];
        $product_name = $list[products_name];
    }
} else {
    //  $flag=0;
    $q = tep_db_query("select products_quantity,products_name from " . TABLE_PRODUCTS . " p,products_description pd where pd.products_id=" . (int) $VARS['product_id'] . " and p.products_id=" . (int) $VARS['product_id']);
    $list = tep_db_fetch_array($q);
    $db_quantity = $list[products_quantity];
    $product_name = stripslashes($list[products_name]);
}
$product_investigation = qtpro_doctor_investigate_product($VARS['product_id']);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo CHARSET;
?>
">
<title><?php 
echo TITLE;
?>
</title>