Changeset 9558 for temp/trunk


Ignore:
Timestamp:
2006/11/29 23:23:27 (20 years ago)
Author:
uehara
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/contents/file_manager.php

    r9557 r9558  
    126126$objPage->$tpl_onload .= "fnTreeView('tree', arrTree, '$now_dir')"; 
    127127// ¥Ä¥ê¡¼ÇÛÎóºîÀ®ÍÑ javascript 
    128 $objPage->$tpl_javascript .= "arrTree = new Array();". 
    129                             "<!--{section name=cnt loop=$arrTree}-->". 
    130                             "arrTree[<!--{$arrTree[cnt].count}-->] = new Array(\"<!--{$arrTree[cnt].count}-->\", \"<!--{$arrTree[cnt].type}-->\", \"<!--{$arrTree[cnt].path}-->\", <!--{$arrTree[cnt].rank}-->, <!--{if $arrTree[cnt].open}-->true<!--{else}-->false<!--{/if}-->);"; 
    131                             "<!--{/section}-->"; 
     128$objPage->$tpl_javascript .= "arrTree = new Array();"; 
     129foreach($arrTree as $arrVal) { 
     130    $objPage->$tpl_javascript .= "arrTree[".$arrVal['count']."] = new Array(".$arrVal['count'].", ".$arrVal['type'].", ".$arrVal['path'].", $arrVal['rank'],"; 
     131    if ($arrVal['open']) { 
     132        $objPage->$tpl_javascript .= "true);"; 
     133    } else { 
     134        $objPage->$tpl_javascript .= "false);"; 
     135    } 
     136} 
    132137 
    133138// ²èÌ̤Îɽ¼¨ 
Note: See TracChangeset for help on using the changeset viewer.