質問 > フロント機能 > 新しくページを追加して新着情報を掲載したい |
フロント機能
スレッド表示 | 古いものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
groove |
投稿日時: 2007/6/13 20:54
対応状況: −−−
|
新米 登録日: 2007/6/13 居住地: 投稿: 1 |
新しくページを追加して新着情報を掲載したい 新しくページを追加して新着情報を掲載したいのですが、新着として記載した内容が掲載されず、ソースが何も入ってない状態で掲載されてしまいます。
お手数ですが教えて頂けませんでしょうか。 php側 <?php require_once("./require.php"); class LC_Page { function LC_Page() { /** 必ず変更する **/ $this->tpl_css = URL_DIR.'css/layout/contact/news.css'; // CSSパス } } $objPage = new LC_Page(); $objView = new SC_SiteView(); // レイアウトデザインを取得 $objPage = sfGetPageLayout($objPage, DEF_LAYOUT); // 画面の表示 $objView = new SC_SiteView(); $objView->assignobj($objPage); $objView->display(SITE_FRAME); //----------------------------------------------------------------------------------------------------------------------------------- ?> tpi側 <link rel="alternate" type="application/rss+xml" title="RSS" href="<!--{$smarty.const.SITE_URL}-->/rss/index.php"> <table width="400" border="0" cellspacing="0" cellpadding="0" summary=" "> <tr> <td colspan="3"></td> </tr> <tr> <td colspan="3"><span class="fs10"> 新着情報は<a href="<!--{$smarty.const.URL_DIR}-->rss/index.php" target="_blank">RSS</a>で配信しています。</span></td> </tr> <tr> <td height="10"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="16" height="1" alt=""></td> <td><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="90" height="1" alt=""></td> <td><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="294" height="1" alt=""></td> </tr> <!--{section name=data loop=$arrNews max=5}--> <tr valign="top"> <td><img src="<!--{$smarty.const.URL_DIR}-->img/top/news_icon.gif" width="16" height="16" alt=""></td> <td class="fs10"><!--{$arrNews[data].news_date_disp|escape}--></td> <td class="fs10"><!--{if $arrNews[data].news_url}--><a href="<!--{$arrNews[data].news_url}-->" <!--{if $arrNews[data].link_method eq "2"}-->target="_blank"<!--{/if}--> ><!--{/if}--><!--{$arrNews[data].news_title|escape|nl2br}--><!--{if $arrNews[data].news_url}--></a><!--{/if}--><br/><!--{$arrNews[data].news_comment|escape|nl2br}--></td> </tr> <!--{if !$smarty.section.data.last}--> <tr><td colspan="3" height="20"><img src="<!--{$smarty.const.URL_DIR}-->img/common/line_400.gif" width="400" height="1" alt=""></td></tr> <!--{/if}--> <!--{/section}--> <tr><td height="10" colspan="3"></td></tr> </table> |
« 1 (2) |
スレッド表示 | 古いものから | 前のトピック | 次のトピック | トップ |