Ignore:
Timestamp:
2011/01/13 19:57:47 (13 years ago)
Author:
uemoto
Message:

#382(管理画面XHTMLに変更)

  • デザインを刷新
Location:
branches/version-2_5-dev/data/class/pages/admin/contents
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php

    r19805 r19909  
    9898 
    9999            // ファイル表示 
     100 
    100101        case 'view': 
    101102            // エラーチェック 
     103 
    102104            $arrErr = $this->lfErrorCheck(); 
    103105 
     
    105107                // 選択されたファイルがディレクトリなら移動 
    106108                if(is_dir($_POST['select_file'])) { 
    107                     ///$now_dir = $_POST['select_file']; 
    108                     // ツリー遷移用のjavascriptを埋め込む 
    109                     $arrErr['select_file'] = "※ ディレクトリを表示することは出来ません。<br/>"; 
    110  
     109                    $now_dir = $this->lfCheckSelectDir($_POST['select_file']); 
    111110                } else { 
    112111                    // javascriptで別窓表示(テンプレート側に渡す) 
     
    114113                    $file_url = ereg_replace(USER_REALDIR, "", $_POST['select_file']); 
    115114                    $this->tpl_onload = "win02('./file_view.php?file=". $file_url ."', 'user_data', '600', '400');"; 
     115                    $now_dir = $this->lfCheckSelectDir(dirname($_POST['select_file'])); 
    116116                } 
    117117            } 
    118             break; 
     118 
     119            break; 
     120             
    119121            // ファイルダウンロード 
    120122        case 'download': 
     
    188190        $this->tpl_is_top_dir = $is_top_dir; 
    189191        $this->tpl_parent_dir = $parent_dir; 
    190         $this->tpl_now_dir = $now_dir; 
     192        // TODO JSON で投げて, フロント側で処理した方が良い? 
     193        $this->tpl_now_dir = ""; 
     194        $arrNowDir = preg_split('/\//', str_replace(HTML_REALDIR, '', $now_dir)); 
     195        for ($i = 0; $i < count($arrNowDir); $i++) { 
     196            if (!empty($arrNowDir)) { 
     197                $this->tpl_now_dir .= $arrNowDir[$i]; 
     198                if ($i < count($arrNowDir) - 1) { 
     199                     // フロント側で &gt; へエスケープするため, ここでは > を使用 
     200                    $this->tpl_now_dir .= ' > '; 
     201                } 
     202            } 
     203        } 
    191204        $this->tpl_now_file = basename($now_dir); 
    192205        $this->arrErr = isset($arrErr) ? $arrErr : ""; 
  • branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php

    r19908 r19909  
    9292        } else { 
    9393            SC_Response_Ex::sendRedirect(USER_URL . $_GET['file']); 
    94             exit; 
    9594        } 
     95        exit; 
    9696    } 
    9797 
  • branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php

    r19805 r19909  
    4444    function init() { 
    4545        parent::init(); 
    46         $this->tpl_mainpage = 'contents/recomend_search.tpl'; 
    4746        $this->tpl_mainno = 'contents'; 
    4847        $this->tpl_subnavi = ''; 
     
    143142        // カテゴリ取得 
    144143        $this->arrCatList = $objDb->sfGetCategoryList(); 
     144 
     145        $this->setTemplate('contents/recomend_search.tpl'); 
    145146    } 
    146147 
Note: See TracChangeset for help on using the changeset viewer.