Changeset 6475 for temp/trunk/html/rss


Ignore:
Timestamp:
2006/10/24 12:24:52 (20 years ago)
Author:
kakinaka
Message:

* empty log message *

Location:
temp/trunk/html/rss
Files:
2 edited

Legend:

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

    r6474 r6475  
    8181} 
    8282 
    83 /* 
    84  * ´Ø¿ô̾:lfGetProducts 
    85  * ÀâÌÀ¡¡:¾¦ÉʾðÊó¤ò¼èÆÀ¤¹¤ë 
    86  * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
    87  * Ìá¤êÃÍ:$arrNews      ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
    88  */ 
    89 function lfGetProducts($objQuery, $product_id){ 
    90     $col = ""; 
    91     $col .= "     news_id ";                                //¿·Ãå¾ðÊóID 
    92     $col .= "     ,news_title ";                            //¿·Ãå¾ðÊ󥿥¤¥È¥ë 
    93     $col .= "     ,news_comment ";                          //¿·Ãå¾ðÊóËÜʸ 
    94     $col .= "     ,to_char(news_date, 'YYYY') AS YEAR ";    //ÆüÉÕ(ǯ) 
    95     $col .= "     ,to_char(news_date, 'MM') AS MONTH ";     //ÆüÉÕ(·î) 
    96     $col .= "     ,to_char(news_date, 'DD') AS DAY ";       //ÆüÉÕ(Æü) 
    97     $col .= "     ,to_char(news_date, 'HH24') AS HOUR ";    //ÆüÉÕ(»þ´Ö) 
    98     $col .= "     ,to_char(news_date, 'MI') AS MINUTE ";    //ÆüÉÕ(ʬ) 
    99     $col .= "     ,to_char(news_date, 'SS') AS SECOND ";    //ÆüÉÕ(ÉÃ) 
    100     $col .= "     ,news_url ";                              //¿·Ãå¾ðÊóURL 
    101     $col .= "     ,news_select ";                           //¿·Ãå¾ðÊó¤Î¶èʬ(1:URL¡¢2:ËÜʸ) 
    102     $col .= "     ,(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name  ";    //Ź̾ 
    103     $col .= "     ,(SELECT email04 FROM dtb_baseinfo limit 1) AS email ";           //ÂåɽEmail¥¢¥É¥ì¥¹ 
    104     $from = "dtb_news"; 
    105     $where = "del_flg = '0'"; 
    106     $order = "rank DESC"; 
    107     $objQuery->setorder($order); 
    108     $arrNews = $objQuery->select($col,$from,$where); 
    109     return $arrNews; 
    110 } 
    111  
    11283?> 
  • temp/trunk/html/rss/product.php

    r6474 r6475  
    5353//******************************************************************************************/ 
    5454/* 
    55  * ´Ø¿ô̾:lfGetNews 
    56  * ÀâÌÀ¡¡:¿·Ãå¾ðÊó¤ò¼èÆÀ¤¹¤ë 
    57  * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
    58  * Ìá¤êÃÍ:$arrNews      ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
    59  */ 
    60 function lfGetNews($objQuery){ 
    61     $col = ""; 
    62     $col .= "     news_id ";                                //¿·Ãå¾ðÊóID 
    63     $col .= "     ,news_title ";                            //¿·Ãå¾ðÊ󥿥¤¥È¥ë 
    64     $col .= "     ,news_comment ";                          //¿·Ãå¾ðÊóËÜʸ 
    65     $col .= "     ,to_char(news_date, 'YYYY') AS YEAR ";    //ÆüÉÕ(ǯ) 
    66     $col .= "     ,to_char(news_date, 'MM') AS MONTH ";     //ÆüÉÕ(·î) 
    67     $col .= "     ,to_char(news_date, 'DD') AS DAY ";       //ÆüÉÕ(Æü) 
    68     $col .= "     ,to_char(news_date, 'HH24') AS HOUR ";    //ÆüÉÕ(»þ´Ö) 
    69     $col .= "     ,to_char(news_date, 'MI') AS MINUTE ";    //ÆüÉÕ(ʬ) 
    70     $col .= "     ,to_char(news_date, 'SS') AS SECOND ";    //ÆüÉÕ(ÉÃ) 
    71     $col .= "     ,news_url ";                              //¿·Ãå¾ðÊóURL 
    72     $col .= "     ,news_select ";                           //¿·Ãå¾ðÊó¤Î¶èʬ(1:URL¡¢2:ËÜʸ) 
    73     $col .= "     ,(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name  ";    //Ź̾ 
    74     $col .= "     ,(SELECT email04 FROM dtb_baseinfo limit 1) AS email ";           //ÂåɽEmail¥¢¥É¥ì¥¹ 
    75     $from = "dtb_news"; 
    76     $where = "del_flg = '0'"; 
    77     $order = "rank DESC"; 
    78     $objQuery->setorder($order); 
    79     $arrNews = $objQuery->select($col,$from,$where); 
    80     return $arrNews; 
    81 } 
    82  
    83 /* 
    8455 * ´Ø¿ô̾:lfGetProducts 
    8556 * ÀâÌÀ¡¡:¾¦ÉʾðÊó¤ò¼èÆÀ¤¹¤ë 
    8657 * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
    87  * Ìá¤êÃÍ:$arrNews      ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
     58 * Ìá¤êÃÍ:$arrProduct       ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
    8859 */ 
    8960function lfGetProducts($objQuery, $product_id){ 
     
    10273    $col .= "     ,(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name  ";    //Ź̾ 
    10374    $col .= "     ,(SELECT email04 FROM dtb_baseinfo limit 1) AS email ";           //ÂåɽEmail¥¢¥É¥ì¥¹ 
    104     $from = "dtb_news"; 
     75    $from = "dtb_produts"; 
    10576    $where = "del_flg = '0'"; 
    10677    $order = "rank DESC"; 
    10778    $objQuery->setorder($order); 
    108     $arrNews = $objQuery->select($col,$from,$where); 
    109     return $arrNews; 
     79    $arrProduct = $objQuery->select($col,$from,$where); 
     80    return $arrProduct; 
    11081} 
    11182 
Note: See TracChangeset for help on using the changeset viewer.