Changeset 6474 for temp


Ignore:
Timestamp:
2006/10/24 11:33:21 (20 years ago)
Author:
kakinaka
Message:

* empty log message *

Location:
temp/trunk
Files:
1 added
2 edited

Legend:

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

    r6473 r6474  
    8080    return $arrNews; 
    8181} 
    82      
     82 
     83/* 
     84 * ´Ø¿ô̾:lfGetProducts 
     85 * ÀâÌÀ¡¡:¾¦ÉʾðÊó¤ò¼èÆÀ¤¹¤ë 
     86 * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
     87 * Ìá¤êÃÍ:$arrNews      ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
     88 */ 
     89function 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 
    83112?> 
Note: See TracChangeset for help on using the changeset viewer.