Changeset 15689


Ignore:
Timestamp:
2007/09/12 16:50:10 (17 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

Location:
branches/feature-module-update
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/admin/design/css.php

    r15532 r15689  
    55 * http://www.lockon.co.jp/ 
    66 */ 
     7 
     8// {{{ requires 
    79require_once("../../require.php"); 
     10require_once(CLASS_PATH . "page_extends/admin/design/LC_Page_Admin_Design_CSS_Ex.php"); 
    811 
    9 class LC_Page { 
    10     var $arrForm; 
    11     var $arrHidden; 
     12// }}} 
     13// {{{ generate page 
    1214 
    13     function LC_Page() { 
    14         $this->tpl_mainpage = 'design/css.tpl'; 
    15         $this->tpl_subnavi  = 'design/subnavi.tpl'; 
    16         $this->area_row = 30; 
    17         $this->tpl_subno = "css"; 
    18         $this->tpl_mainno = "design"; 
    19         $this->tpl_subtitle = 'CSS編集'; 
    20     } 
    21 } 
    22  
    23 $objPage = new LC_Page(); 
    24 $objView = new SC_AdminView(); 
    25  
    26 // 認証可否の判定 
    27 $objSess = new SC_Session(); 
    28 sfIsSuccess($objSess); 
    29  
    30 $css_path = USER_PATH . "css/contents.css"; 
    31  
    32 // データ更新処理 
    33 if ($_POST['mode'] == 'confirm'){ 
    34     // プレビュー用テンプレートに書き込み     
    35     $fp = fopen($css_path,"w"); 
    36     fwrite($fp, $_POST['css']); 
    37     fclose($fp); 
    38      
    39     $objPage->tpl_onload="alert('登録が完了しました。');"; 
    40 } 
    41  
    42 // CSSファイルの読み込み 
    43 if(file_exists($css_path)){ 
    44     $css_data = file_get_contents($css_path); 
    45 } 
    46  
    47 // テキストエリアに表示 
    48 $objPage->css_data = $css_data; 
    49  
    50 // 画面の表示 
    51 $objView->assignobj($objPage); 
    52 $objView->display(MAIN_FRAME); 
    53  
    54 //--------------------------------------------------------------------------------------------------------------------------------------------------------- 
     15$objPage = new LC_Page_Admin_Design_CSS_Ex(); 
     16$objPage->init(); 
     17$objPage->process(); 
     18register_shutdown_function(array($objPage, "destroy")); 
     19?> 
Note: See TracChangeset for help on using the changeset viewer.