source: branches/rel/html/entry/kiyaku.php @ 12157

Revision 12157, 1.3 KB checked in by uehara, 16 years ago (diff)
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7require_once("../require.php");
8
9class LC_Page {
10    function LC_Page() {
11        $this->tpl_mainpage = 'entry/kiyaku.tpl';
12        $this->tpl_title="¤´ÍøÍѵ¬Ìó";
13    }
14}
15
16$objPage = new LC_Page();
17$objView = new SC_SiteView();
18$objCustomer = new SC_Customer();
19$objCampaignSess = new SC_CampaignSession();
20
21// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
22$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
23
24// µ¬ÌóÆâÍƤμèÆÀ
25$objQuery = new SC_Query();
26$objQuery->setorder("rank DESC");
27$arrRet = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1");
28
29$max = count($arrRet);
30$objPage->tpl_kiyaku_text = "";
31for ($i = 0; $i < $max; $i++) {
32    $objPage->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_title'] . "\n\n";
33    $objPage->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_text'] . "\n\n";
34}
35
36// ¥­¥ã¥ó¥Ú¡¼¥ó¤«¤é¤ÎÁ«°Ü¤¬¥Á¥§¥Ã¥¯
37$objPage->is_campaign = $objCampaignSess->getIsCampaign();
38$objPage->campaign_dir = $objCampaignSess->getCampaignDir();
39
40$objView->assignobj($objPage);
41// ¥Õ¥ì¡¼¥à¤òÁªÂò(¥­¥ã¥ó¥Ú¡¼¥ó¥Ú¡¼¥¸¤«¤éÁ«°Ü¤Ê¤éÊѹ¹)
42$objCampaignSess->pageView($objView);
43//--------------------------------------------------------------------------------------------------------------------------
44?>
Note: See TracBrowser for help on using the repository browser.