Changeset 6478 for temp


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

* empty log message *

Location:
temp/trunk
Files:
3 edited

Legend:

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

    r6475 r6478  
    3939$objPage->email = $arrNews[0]['email']; 
    4040 
    41 //DESCRIPTION¤ò¥»¥Ã¥È 
    42 $objPage->description = $objPage->description; 
    43  
    44 //XML¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥³¡¼¥É¤ò¥»¥Ã¥È 
    45 $objPage->encode = $objPage->encode; 
    46  
    4741//¥»¥Ã¥È¤·¤¿¥Ç¡¼¥¿¤ò¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Ë½ÐÎÏ 
    4842$objView->assignobj($objPage); 
     
    5145$objView->display($objPage->tpl_mainpage, true); 
    5246 
    53 //******************************************************************************************/ 
    54 /* 
     47//--------------------------------------------------------------------------------------------------------------------- 
     48/*************************************************************************************************************** 
    5549 * ´Ø¿ô̾:lfGetNews 
    5650 * ÀâÌÀ¡¡:¿·Ãå¾ðÊó¤ò¼èÆÀ¤¹¤ë 
    5751 * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
    5852 * Ìá¤êÃÍ:$arrNews      ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
    59  */ 
     53 ***************************************************************************************************************/ 
    6054function lfGetNews($objQuery){ 
    6155    $col = ""; 
  • temp/trunk/html/rss/product.php

    r6475 r6478  
    1111class LC_Page{ 
    1212    function LC_Page(){ 
    13         $this->tpl_mainpage = "rss/index.tpl"; 
     13        $this->tpl_mainpage = "rss/product.tpl"; 
    1414        $this->encode = "UTF-8"; 
    1515        $this->description = "¿·Ãå¾ðÊó"; 
     
    2020$objPage = new LC_Page(); 
    2121$objView = new SC_SiteView(); 
     22$objSiteInfo = new SC_SiteInfo(); 
     23 
     24sfprintr($objSiteInfo); 
     25exit(); 
    2226 
    2327//¿·Ãå¾ðÊó¤ò¼èÆÀ 
    24 $arrNews = lfGetNews($objQuery); 
     28$arrProduct = lfGetProductsDetail($objQuery, 1); 
    2529 
    2630//¥­¥ã¥Ã¥·¥å¤·¤Ê¤¤(ǰ¤Î¤¿¤á) 
     
    3034header("Content-type: application/xml"); 
    3135 
    32 //¿·Ãå¾ðÊó¤ò¥»¥Ã¥È 
    33 $objPage->arrNews = $arrNews; 
     36//¾¦ÉʾðÊó¤ò¥»¥Ã¥È 
     37$objPage->$arrProduct = $arrProduct; 
    3438 
    3539//Ź̾¤ò¥»¥Ã¥È 
    36 $objPage->site_title = $arrNews[0]['shop_name']; 
     40$objPage->site_title = $arrProduct[0]['shop_name']; 
    3741 
    3842//ÂåɽEmail¥¢¥É¥ì¥¹¤ò¥»¥Ã¥È 
    39 $objPage->email = $arrNews[0]['email']; 
    40  
    41 //DESCRIPTION¤ò¥»¥Ã¥È 
    42 $objPage->description = $objPage->description; 
    43  
    44 //XML¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥³¡¼¥É¤ò¥»¥Ã¥È 
    45 $objPage->encode = $objPage->encode; 
     43$objPage->email = $arrProduct[0]['email']; 
    4644 
    4745//¥»¥Ã¥È¤·¤¿¥Ç¡¼¥¿¤ò¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Ë½ÐÎÏ 
     
    5149$objView->display($objPage->tpl_mainpage, true); 
    5250 
    53 //******************************************************************************************/ 
    54 /* 
     51//--------------------------------------------------------------------------------------------------------------------- 
     52/************************************************************************************************************** 
    5553 * ´Ø¿ô̾:lfGetProducts 
    5654 * ÀâÌÀ¡¡:¾¦ÉʾðÊó¤ò¼èÆÀ¤¹¤ë 
    5755 * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
    58  * Ìá¤êÃÍ:$arrProduct       ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
    59  */ 
    60 function lfGetProducts($objQuery, $product_id){ 
     56 * °ú¿ô£²:$product_id   ¾¦ÉÊID 
     57 * Ìá¤êÃÍ:$arrProduct   ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
     58 ***************************************************************************************************************/ 
     59function lfGetProductsDetail($objQuery, $product_id){ 
     60    $sql = ""; 
     61    $sql .= "SELECT  
     62                prod.product_id 
     63                ,prod.name 
     64                ,prod.category_id 
     65                ,prod.point_rate 
     66                ,prod.comment3 
     67                ,prod.main_list_comment 
     68                ,prod.main_list_image 
     69                ,prod.main_comment 
     70                ,prod.main_image 
     71                ,prod.main_large_image 
     72                ,cls.price01 
     73                ,cls.price02 
     74                ,(SELECT name FROM dtb_classcategory AS clscat WHERE clscat.classcategory_id = cls.classcategory_id1) AS classcategory_name1 
     75                ,(SELECT name FROM dtb_classcategory AS clscat WHERE clscat.classcategory_id = cls.classcategory_id2) AS classcategory_name2 
     76                ,(SELECT category_name FROM dtb_category AS cat WHERE cat.category_id = prod.category_id) AS category_name 
     77            FROM dtb_products AS prod, dtb_products_class AS cls 
     78            WHERE prod.product_id = cls.product_id AND prod.del_flg = 0 AND prod.status = 1 AND prod.product_id = ? 
     79            ORDER BY prod.product_id, cls.classcategory_id1, cls.classcategory_id2 
     80            "; 
     81    $arrProduct = $objQuery->getall($sql, array($product_id)); 
     82    return $arrProduct; 
     83} 
     84 
     85/*************************************************************************************************************** 
     86 * ´Ø¿ô̾:lfGetNews 
     87 * ÀâÌÀ¡¡:¿·Ãå¾ðÊó¤ò¼èÆÀ¤¹¤ë 
     88 * °ú¿ô£±:$objQuery     DBÁàºî¥¯¥é¥¹ 
     89 * Ìá¤êÃÍ:$arrNews      ¼èÆÀ·ë²Ì¤òÇÛÎó¤ÇÊÖ¤¹ 
     90 ***************************************************************************************************************/ 
     91function lfGetShopData($objQuery){ 
    6192    $col = ""; 
    6293    $col .= "     news_id ";                                //¿·Ãå¾ðÊóID 
     
    73104    $col .= "     ,(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name  ";    //Ź̾ 
    74105    $col .= "     ,(SELECT email04 FROM dtb_baseinfo limit 1) AS email ";           //ÂåɽEmail¥¢¥É¥ì¥¹ 
    75     $from = "dtb_produts"; 
     106    $from = "dtb_news"; 
    76107    $where = "del_flg = '0'"; 
    77108    $order = "rank DESC"; 
    78109    $objQuery->setorder($order); 
    79     $arrProduct = $objQuery->select($col,$from,$where); 
    80     return $arrProduct; 
     110    $arrNews = $objQuery->select($col,$from,$where); 
     111    return $arrNews; 
    81112} 
    82113 
     114 
    83115?> 
Note: See TracChangeset for help on using the changeset viewer.