Ignore:
Timestamp:
2006/08/28 13:03:29 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_View.php

    r2244 r2249  
    66     
    77    var $_smarty; 
     8    var $arrInfo;   // ¥µ¥¤¥È¾ðÊó 
    89     
    910    // ¥³¥ó¥¹¥È¥é¥¯¥¿ 
    1011    function SC_View() { 
    1112        global $SC_VIEW_PHP_DIR; 
    12          
     13 
    1314        $this->_smarty = new Smarty; 
    1415        $this->_smarty->left_delimiter = '<!--{'; 
     
    3334        $this->_smarty->register_function("sf_mktime","sf_mktime"); 
    3435        $this->_smarty->register_function("sf_date","sf_date");      
    35          
     36 
    3637        if(ADMIN_MODE == '1') {      
    3738            $this->time_start = time(); 
    3839        } 
     40 
     41        // ¥µ¥¤¥È¾ðÊó¤ò³ä¤êÅö¤Æ¤ë 
     42        $objSiteInfo = new SC_SiteInfo(); 
     43        $this->arrInfo['arrSiteInfo'] = $objSiteInfo->data; 
     44 
     45        // ÅÔÆ»Éܸ©Ì¾¤òÊÑ´¹ 
     46        global $arrPref; 
     47        $this->arrInfo['arrSiteInfo']['pref'] = $arrPref[$arrInfo['arrSiteInfo']['pref']]; 
     48         
    3949    } 
    4050     
     
    6777        } 
    6878         
     79        // ¥µ¥¤¥È¾ðÊó¤ò¤¹¤Ù¤Æ³ä¤êÅö¤Æ¤ë 
     80        foreach ($this->arrInfo as $key => $value){ 
     81            $this->_smarty->assign($key, $value); 
     82        } 
    6983        if($siteinfo) { 
    7084            // ¥µ¥¤¥È¾ðÊó¤ò³ä¤êÅö¤Æ¤ë 
     
    106120        $this->initpath(); 
    107121    } 
    108      
     122 
    109123    function printr($data){ 
    110124        print_r($data); 
Note: See TracChangeset for help on using the changeset viewer.