source: temp/trunk/data/class/SC_PageLayout.php @ 1328

Revision 1328, 1.7 KB checked in by naka, 20 years ago (diff)

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2class SC_PageLayout {
3   
4    var $arrPageData;       // ¥Ú¡¼¥¸¥Ç¡¼¥¿³ÊǼÍÑ
5    var $arrPageList;       // ¥Ú¡¼¥¸¥Ç¡¼¥¿³ÊǼÍÑ
6   
7    // ¥³¥ó¥¹¥È¥é¥¯¥¿
8    function SC_PageLayout() {
9        $this->arrPageList = $this->getPageData();
10    }
11   
12    /**************************************************************************************************************
13     * ´Ø¿ô̾   ¡§getPageData
14     * ½èÍýÆâÍÆ ¡§¥Ö¥í¥Ã¥¯¾ðÊó¤ò¼èÆÀ¤¹¤ë
15     * °ú¿ô1    ¡§$where  ޥޥޥ Where¶çʸ
16     * °ú¿ô2    ¡§$arrVal ޥޥޥ Where¶ç¤Î¹Ê¹þ¾ò·ïÃÍ
17     * Ìá¤êÃÍ   ¡§¥Ö¥í¥Ã¥¯¾ðÊó
18     **************************************************************************************************************/
19    function getPageData($where = '', $arrVal = ''){
20        $objDBConn = new SC_DbConn;     // DBÁàºî¥ª¥Ö¥¸¥§¥¯¥È
21        $sql = "";                      // ¥Ç¡¼¥¿¼èÆÀSQLÀ¸À®ÍÑ
22        $arrRet = array();              // ¥Ç¡¼¥¿¼èÆÀÍÑ
23       
24        // SQLÀ¸À®
25        $sql .= " SELECT";
26        $sql .= " page_id";             // ¥Ú¡¼¥¸ID
27        $sql .= " ,page_name";          // ̾¾Î
28        $sql .= " ,url";                // URL
29        $sql .= " ,php_dir";            // phpÊݸÀè¥Ç¥£¥ì¥¯¥È¥ê
30        $sql .= " ,tpl_dir";            // tplÊݸÀè¥Ç¥£d¥ì¥¯¥È¥ê
31        $sql .= " ,filename";           // ¥Õ¥¡¥¤¥ë̾¾Î
32        $sql .= " ,header_chk ";        // ¥Ø¥Ã¥À¡¼»ÈÍÑFLG
33        $sql .= " ,footer_chk ";        // ¥Õ¥Ã¥¿¡¼»ÈÍÑFLG
34        $sql .= " ,author";             // author¥¿¥°
35        $sql .= " ,description";        // description¥¿¥°
36        $sql .= " ,keyword";            // keyword¥¿¥°
37        $sql .= " ,update_url";         // ¹¹¿·URL
38        $sql .= " ,create_date";        // ¥Ç¡¼¥¿ºîÀ®Æü
39        $sql .= " ,update_date";        // ¥Ç¡¼¥¿¹¹¿·Æü
40        $sql .= " FROM ";
41        $sql .= "     dtb_pagelayout";
42       
43        // where¶ç¤Î»ØÄ꤬¤¢¤ì¤ÐÄɲà  
44        if ($where != '') {
45            $sql .= " WHERE " . $where;
46        }
47       
48        $sql .= " ORDER BY  page_id";
49       
50        $arrRet = $objDBConn->getAll($sql, $arrVal);
51       
52        $this->arrPageData = $arrRet;
53       
54        return $arrRet;
55    }
56
57
58}
59?>
Note: See TracBrowser for help on using the repository browser.