source: temp/trunk/html/admin/design/css.php @ 3574

Revision 3574, 1.1 KB checked in by kakinaka, 20 years ago (diff)

blank

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2
3require_once("../../require.php");
4
5class LC_Page {
6    var $arrForm;
7    var $arrHidden;
8
9    function LC_Page() {
10        $this->tpl_mainpage = 'design/css.tpl';
11        $this->tpl_subnavi  = 'design/subnavi.tpl';
12        $this->area_row = 30;
13        $this->tpl_subno = "css";
14        $this->tpl_mainno = "design";
15        $this->tpl_subtitle = 'CSSÊÔ½¸';
16    }
17}
18
19$objPage = new LC_Page();
20$objView = new SC_AdminView();
21
22// ǧ¾Ú²ÄÈݤÎȽÄê
23$objSess = new SC_Session();
24sfIsSuccess($objSess);
25
26$css_path = ROOT_DIR . USER_DIR . "css/contents.css";
27
28// ¥Ç¡¼¥¿¹¹¿·½èÍý
29if ($_POST['mode'] == 'confirm'){
30    // ¥×¥ì¥Ó¥å¡¼Íѥƥó¥×¥ì¡¼¥È¤Ë½ñ¤­¹þ¤ß   
31    $fp = fopen($css_path,"w");
32    fwrite($fp, $_POST['css']);
33    fclose($fp);
34   
35    $objPage->tpl_onload="alert('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');";
36}
37
38// CSS¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß
39if(file_exists($css_path)){
40    $css_data = file_get_contents($css_path);
41}
42
43// ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤Ëɽ¼¨
44$objPage->css_data = $css_data;
45
46// ²èÌ̤Îɽ¼¨
47$objView->assignobj($objPage);
48$objView->display(MAIN_FRAME);
49
50//---------------------------------------------------------------------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.