Changeset 21514 for branches/version-2_12-dev/data/class/pages/rss
- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- 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 44 44 function init() { 45 45 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 = '新着情報'; 49 49 } 50 50 … … 62 62 63 63 //キャッシュしない(念のため) 64 header( "pragma: no-cache");64 header('pragma: no-cache'); 65 65 66 66 //XMLテキスト(これがないと正常にRSSとして認識してくれないツールがあるため) 67 header( "Content-type: application/xml");67 header('Content-type: application/xml'); 68 68 69 69 //新着情報をセット … … 99 99 */ 100 100 function lfGetNews(&$objQuery) { 101 $col = "";102 $col .= "news_id "; // 新着情報ID103 $col .= ",news_title "; // 新着情報タイトル104 $col .= ",news_comment "; // 新着情報本文105 $col .= ",news_date "; // 日付106 $col .= ",news_url "; // 新着情報URL107 $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アドレス 110 110 $from = 'dtb_news'; 111 111 $where = "del_flg = '0'"; 112 $order = "rank DESC";112 $order = 'rank DESC'; 113 113 $objQuery->setOrder($order); 114 114 $arrNews = $objQuery->select($col,$from,$where); -
branches/version-2_12-dev/data/class/pages/rss/LC_Page_Rss_Products.php
r21508 r21514 44 44 function init() { 45 45 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 = '商品一覧情報'; 49 49 } 50 50 … … 107 107 108 108 //キャッシュしない(念のため) 109 header( "Pragma: no-cache");109 header('Pragma: no-cache'); 110 110 111 111 //XMLテキスト(これがないと正常にRSSとして認識してくれないツールがあるため) 112 header( "Content-type: application/xml");112 header('Content-type: application/xml'); 113 113 P_DETAIL_URLPATH; 114 114
Note: See TracChangeset
for help on using the changeset viewer.