Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

Location:
branches/version-2_12-dev/data/class/pages/rss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/rss/LC_Page_Rss.php

    r21481 r21514  
    4444    function init() { 
    4545        parent::init(); 
    46         $this->tpl_mainpage = "rss/index.tpl"; 
    47         $this->encode = "UTF-8"; 
    48         $this->description = "新着情報"; 
     46        $this->tpl_mainpage = 'rss/index.tpl'; 
     47        $this->encode = 'UTF-8'; 
     48        $this->description = '新着情報'; 
    4949    } 
    5050 
     
    6262 
    6363        //キャッシュしない(念のため) 
    64         header("pragma: no-cache"); 
     64        header('pragma: no-cache'); 
    6565 
    6666        //XMLテキスト(これがないと正常にRSSとして認識してくれないツールがあるため) 
    67         header("Content-type: application/xml"); 
     67        header('Content-type: application/xml'); 
    6868 
    6969        //新着情報をセット 
     
    9999     */ 
    100100    function lfGetNews(&$objQuery) { 
    101         $col = ""; 
    102         $col .= "news_id ";        // 新着情報ID 
    103         $col .= ",news_title ";    // 新着情報タイトル 
    104         $col .= ",news_comment ";  // 新着情報本文 
    105         $col .= ",news_date ";     // 日付 
    106         $col .= ",news_url ";      // 新着情報URL 
    107         $col .= ",news_select ";   // 新着情報の区分(1:URL、2:本文) 
    108         $col .= ",(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name  ";    // 店名 
    109         $col .= ",(SELECT email04 FROM dtb_baseinfo limit 1) AS email ";           // 代表Emailアドレス 
     101        $col = ''; 
     102        $col .= 'news_id ';        // 新着情報ID 
     103        $col .= ',news_title ';    // 新着情報タイトル 
     104        $col .= ',news_comment ';  // 新着情報本文 
     105        $col .= ',news_date ';     // 日付 
     106        $col .= ',news_url ';      // 新着情報URL 
     107        $col .= ',news_select ';   // 新着情報の区分(1:URL、2:本文) 
     108        $col .= ',(SELECT shop_name FROM dtb_baseinfo limit 1) AS shop_name  ';    // 店名 
     109        $col .= ',(SELECT email04 FROM dtb_baseinfo limit 1) AS email ';           // 代表Emailアドレス 
    110110        $from = 'dtb_news'; 
    111111        $where = "del_flg = '0'"; 
    112         $order = "rank DESC"; 
     112        $order = 'rank DESC'; 
    113113        $objQuery->setOrder($order); 
    114114        $arrNews = $objQuery->select($col,$from,$where); 
  • branches/version-2_12-dev/data/class/pages/rss/LC_Page_Rss_Products.php

    r21508 r21514  
    4444    function init() { 
    4545        parent::init(); 
    46         $this->tpl_mainpage = "rss/products.tpl"; 
    47         $this->encode = "UTF-8"; 
    48         $this->title = "商品一覧情報"; 
     46        $this->tpl_mainpage = 'rss/products.tpl'; 
     47        $this->encode = 'UTF-8'; 
     48        $this->title = '商品一覧情報'; 
    4949    } 
    5050 
     
    107107 
    108108        //キャッシュしない(念のため) 
    109         header("Pragma: no-cache"); 
     109        header('Pragma: no-cache'); 
    110110 
    111111        //XMLテキスト(これがないと正常にRSSとして認識してくれないツールがあるため) 
    112         header("Content-type: application/xml"); 
     112        header('Content-type: application/xml'); 
    113113        P_DETAIL_URLPATH; 
    114114 
Note: See TracChangeset for help on using the changeset viewer.