Changeset 6689 for temp/trunk/html


Ignore:
Timestamp:
2006/10/25 16:58:56 (20 years ago)
Author:
kakinaka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/rss/product.php

    r6688 r6689  
    3131if(($product_id != "" and is_numeric($product_id)) or $mode == "all"){ 
    3232    //¾¦Éʾܺ٤ò¼èÆÀ 
    33     $arrProduct = lfGetProductsDetail($objQuery, $product_id); 
     33    ($mode == "all") ? $arrProduct = lfGetProductsDetail($objQuery, $product_id):$arrProduct = lfGetProductsDetail($objQuery); 
     34     
    3435    // ÃͤΥ»¥Ã¥È¤·Ä¾¤· 
    3536    foreach($arrProduct as $key => $val){ 
    … …  
    8485 * Ìá¤êÃÍ:$arrProduct   ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
    8586 **************************************************************************************************************/ 
    86 function lfGetProductsDetail($objQuery, $product_id){ 
     87function lfGetProductsDetail($objQuery, $product_id = "all"){ 
    8788    $sql = ""; 
    8889    $sql .= "SELECT "; 
    … …  
    108109    $sql .= " WHERE prod.product_id = cls.product_id AND prod.del_flg = 0 AND prod.status = 1"; 
    109110     
    110     if($product_id != "ALL"){ 
     111    if($product_id != "all"){ 
    111112        $sql .= " AND prod.product_id = ?"; 
    112113        $arrval = array($product_id); 
Note: See TracChangeset for help on using the changeset viewer.