source: branches/feature-module-update/html/admin/design/css.php @ 15079

Revision 15079, 1.3 KB checked in by nanasess, 17 years ago (diff)

svn:mime-type application/x-httpd-php; charset=UTF-8 設定

  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
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    var $arrForm;
11    var $arrHidden;
12
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();
28sfIsSuccess($objSess);
29
30$css_path = USER_PATH . "css/contents.css";
31
32// データ更新処理
33if ($_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ファイルの読み込み
43if(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//---------------------------------------------------------------------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.