Ignore:
Timestamp:
2008/06/16 12:13:09 (16 years ago)
Author:
pineray
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/admin/contents/file_manager.tpl

    r16582 r17351  
    1 <!--{* 
     1<!--{* 
    22/* 
    33 * This file is part of EC-CUBE 
    44 * 
    5  * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
     5 * Copyright(c) 2000-2008 LOCKON CO.,LTD. All Rights Reserved. 
    66 * 
    77 * http://www.lockon.co.jp/ 
     
    2222 */ 
    2323*}--> 
    24 <!--★★メインコンテンツ★★--> 
    25 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    2624<form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"  enctype="multipart/form-data"> 
    27 <input type="hidden" name="mode" value=""> 
    28 <input type="hidden" name="now_file" value="<!--{$tpl_now_dir}-->"> 
    29 <input type="hidden" name="tree_select_file" value=""> 
    30 <input type="hidden" name="tree_status" value=""> 
    31 <input type="hidden" name="select_file" value=""> 
    32     <tr valign="top"> 
    33         <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> 
    34             <!--▼SUB NAVI--> 
    35             <!--{include file=$tpl_subnavi}--> 
    36             <!--▲SUB NAVI--> 
    37         </td> 
    38         <td class="mainbg"> 
    39             <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    40                 <!--メインエリア--> 
    41                 <tr> 
    42                     <td align="center"> 
    43                         <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    44                             <tr><td height="14"></td></tr> 
    45                             <tr> 
    46                                 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> 
    47                             </tr> 
    48                             <tr valign="top"> 
    49                                 <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    50                                 <td bgcolor="#cccccc"> 
    51                                 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    52                                     <tr> 
    53                                         <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> 
    54                                     </tr> 
    55                                     <tr> 
    56                                         <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 
    57                                         <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->ファイル管理</span></td> 
    58                                         <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 
    59                                     </tr> 
    60                                     <tr> 
    61                                         <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> 
    62                                     </tr> 
    63                                     <tr> 
    64                                         <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 
    65                                     </tr> 
    66                                 </table> 
    67                                 <!--▼ファイル管理テーブルここから--> 
    68                                 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> 
    69                                     <tr class="fs12n" bgcolor="#f2f1ec"> 
    70                                         <td>ディレクトリ</td> 
    71                                         <td> 
    72                                             <div id="now_dir"> 
    73                                             <img src="<!--{$TPL_DIR}-->img/admin/contents/folder_open.gif" alt="フォルダ"> 
    74                                             &nbsp;<!--{$tpl_now_file}--> 
    75                                             </div> 
    76                                         </td> 
    77                                     </tr> 
    78                                     <tr class="fs12n" bgcolor="#ffffff"> 
    79                                         <td> 
    80                                             <div id="tree"></div> 
    81                                         </td> 
    82                                         <td><span class="red"><!--{$arrErr.select_file}--></span> 
    83                                             <div id="file_view"> 
    84                                                 <table border="0" cellspacing="0" cellpadding="2" summary=" "> 
    85                                                     <tr class="fs12n" bgcolor="#f2f1ec"> 
    86                                                         <td>ファイル名</td> 
    87                                                         <td align="right">サイズ</td> 
    88                                                         <td>更新日付</td> 
    89                                                     </tr> 
    90                                                     <!--{if !$tpl_is_top_dir}--> 
    91                                                     <tr class="fs12n" id="parent_dir" onclick="fnSetFormVal('form1', 'select_file', '<!--{$tpl_parent_dir|escape}-->');fnSelectFile('parent_dir', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$tpl_parent_dir|escape}-->', true, '<!--{$tpl_now_dir|escape}-->', true)" style="" onMouseOver="fnChangeBgColor('parent_dir', '#808080');" onMouseOut="fnChangeBgColor('parent_dir', '');"> 
    92                                                         <td> 
    93                                                             <img src="<!--{$TPL_DIR}-->img/admin/contents/folder_parent.gif" alt="フォルダ">&nbsp;.. 
    94                                                         </td> 
    95                                                         <td align="right"></td> 
    96                                                         <td></td> 
    97                                                     </tr> 
    98                                                     <!--{/if}--> 
    99                                                     <!--{section name=cnt loop=$arrFileList}--> 
    100                                                     <!--{assign var="id" value="select_file`$smarty.section.cnt.index`"}--> 
    101                                                     <tr class="fs12n" id="<!--{$id}-->" onclick="fnSetFormVal('form1', 'select_file', '<!--{$arrFileList[cnt].file_path|escape}-->');fnSelectFile('<!--{$id}-->', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$arrFileList[cnt].file_path|escape}-->', <!--{if $arrFileList[cnt].is_dir|escape}-->true<!--{else}-->false<!--{/if}-->, '<!--{$tpl_now_dir|escape}-->', false)" style="" onMouseOver="fnChangeBgColor('<!--{$id}-->', '#808080');" onMouseOut="fnChangeBgColor('<!--{$id}-->', '');"> 
    102                                                         <td> 
    103                                                             <!--{if $arrFileList[cnt].is_dir}--> 
    104                                                             <img src="<!--{$TPL_DIR}-->img/admin/contents/folder_close.gif" alt="フォルダ"> 
    105                                                             <!--{else}--> 
    106                                                             <img src="<!--{$TPL_DIR}-->img/admin/contents/file.gif"> 
    107                                                             <!--{/if}--> 
    108                                                             <!--{$arrFileList[cnt].file_name|escape}--> 
    109                                                         </td> 
    110                                                         <td align="right"><!--{$arrFileList[cnt].file_size|number_format}--></td> 
    111                                                         <td><!--{$arrFileList[cnt].file_time|escape}--></td> 
    112                                                     </tr> 
    113                                                     <!--{/section}--> 
    114                                                 </table> 
    115                                             </div> 
    116                                             <table border="0" cellspacing="0" cellpadding="5" summary=" "> 
    117                                                 <tr> 
    118                                                     <td><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('view','',''); return false;" value="表示"></td> 
    119                                                     <td><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('download','',''); return false;" value="ダウンロード"></td> 
    120                                                     <td><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('delete','',''); return false;" value="削除"></td> 
    121                                                 </tr> 
    122                                             </table> 
    123                                         </td> 
    124                                     </tr> 
    125                                 </table> 
    126                                 <table width="678" border="1" cellspacing="1" cellpadding="8" summary=" "> 
    127                                     <tr class="fs12n"> 
    128                                         <td>現在のディレクトリ&nbsp;:&nbsp;<!--{$tpl_now_dir|sfTrimURL}-->/</td> 
    129                                     </tr> 
    130                                 </table> 
    131                                 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> 
    132                                     <tr class="fs12n"> 
    133                                         <td bgcolor="#f2f1ec">ファイルのアップロード</td> 
    134                                         <td bgcolor="#ffffff"><span class="red"><!--{$arrErr.upload_file}--></span><input type="file" name="upload_file" size="64" <!--{if $arrErr.upload_file}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('upload','',''); return false;" value="アップロード"></td> 
    135                                     </tr> 
    136                                     <tr class="fs12n"> 
    137                                         <td bgcolor="#f2f1ec">フォルダ作成</td> 
    138                                         <td bgcolor="#ffffff"><span class="red"><!--{$arrErr.create_file}--></span><input type="text" name="create_file" value="" style="width:336px;<!--{if $arrErr.create_file}--> background-color:<!--{$smarty.const.ERR_COLOR|escape}--><!--{/if}-->"><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('create','',''); return false;" value="作成"></td> 
    139                                     </tr> 
    140                                     <thead> 
    141                                 </table> 
    142                                 <!--▲ファイル管理テーブルここまで--> 
    143                                 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    144                                     <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr> 
    145                                 </table> 
     25<input type="hidden" name="mode" value="" /> 
     26<input type="hidden" name="now_file" value="<!--{$tpl_now_dir}-->" /> 
     27<input type="hidden" name="tree_select_file" value="" /> 
     28<input type="hidden" name="tree_status" value="" /> 
     29<input type="hidden" name="select_file" value="" /> 
     30<div id="admin-contents" class="contents-main"> 
     31<div id="contents-filemanager-directory"> 
     32  ディレクトリ 
     33  <div id="tree"></div> 
     34</div> 
     35<div id="contents-filemanager-nowdir"> 
     36  <div id="now_dir"> 
     37    <img src="<!--{$TPL_DIR}-->img/admin/contents/folder_open.gif" alt="フォルダ"> 
     38    &nbsp;<!--{$tpl_now_file}--> 
     39  </div> 
     40  <div id="file_view"> 
     41    <table id="contents-filemanager-filelist" class="list"> 
     42      <tr> 
     43        <th>ファイル名</th> 
     44        <th>サイズ</th> 
     45        <th>更新日付</th> 
     46      </tr> 
     47      <!--{if !$tpl_is_top_dir}--> 
     48      <tr id="parent_dir" onclick="fnSetFormVal('form1', 'select_file', '<!--{$tpl_parent_dir|escape}-->');fnSelectFile('parent_dir', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$tpl_parent_dir|escape}-->', true, '<!--{$tpl_now_dir|escape}-->', true)" style="" onMouseOver="fnChangeBgColor('parent_dir', '#808080');" onMouseOut="fnChangeBgColor('parent_dir', '');"> 
     49        <td> 
     50          <img src="<!--{$TPL_DIR}-->img/admin/contents/folder_parent.gif" alt="フォルダ">&nbsp;.. 
     51        </td> 
     52        <td class="right">&nbsp;</td> 
     53        <td>&nbsp;</td> 
     54      </tr> 
     55      <!--{/if}--> 
     56      <!--{section name=cnt loop=$arrFileList}--> 
     57      <!--{assign var="id" value="select_file`$smarty.section.cnt.index`"}--> 
     58      <tr id="<!--{$id}-->" onclick="fnSetFormVal('form1', 'select_file', '<!--{$arrFileList[cnt].file_path|escape}-->');fnSelectFile('<!--{$id}-->', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$arrFileList[cnt].file_path|escape}-->', <!--{if $arrFileList[cnt].is_dir|escape}-->true<!--{else}-->false<!--{/if}-->, '<!--{$tpl_now_dir|escape}-->', false)" style="" onMouseOver="fnChangeBgColor('<!--{$id}-->', '#808080');" onMouseOut="fnChangeBgColor('<!--{$id}-->', '');"> 
     59        <td> 
     60          <!--{if $arrFileList[cnt].is_dir}--> 
     61          <img src="<!--{$TPL_DIR}-->img/admin/contents/folder_close.gif" alt="フォルダ"> 
     62          <!--{else}--> 
     63          <img src="<!--{$TPL_DIR}-->img/admin/contents/file.gif"> 
     64          <!--{/if}--> 
     65          <!--{$arrFileList[cnt].file_name|escape}--> 
     66        </td> 
     67        <td class="right"><!--{$arrFileList[cnt].file_size|number_format}--></td> 
     68        <td><!--{$arrFileList[cnt].file_time|escape}--></td> 
     69      </tr> 
     70      <!--{/section}--> 
     71    </table> 
     72  </div> 
     73  <div class="btn"> 
     74    <button type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('view','',''); return false;"><span>表示</span></button> 
     75    <button type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('download','',''); return false;"><span>ダウンロード</span></button> 
     76    <button type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('delete','',''); return false;"><span>削除</span></button> 
     77  </div> 
     78</div> 
     79<div id="contents-filemanager-action"> 
     80  <p>現在のディレクトリ&nbsp;:&nbsp;<!--{$tpl_now_dir|sfTrimURL}-->/</p> 
     81  <table class="form"> 
     82    <tr> 
     83      <th>ファイルのアップロード</th> 
     84      <td> 
     85        <!--{if $arrErr.upload_file}--><span class="attention"><!--{$arrErr.upload_file}--></span><!--{/if}--> 
     86        <input type="file" name="upload_file" size="64" <!--{if $arrErr.upload_file}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('upload','',''); return false;" value="アップロード" /> 
     87      </td> 
     88    </tr> 
     89    <tr> 
     90      <th>フォルダ作成</th> 
     91      <td> 
     92        <!--{if $arrErr.create_file}--><span class="attention"><!--{$arrErr.create_file}--></span><!--{/if}--> 
     93        <input type="text" name="create_file" value="" style="width:336px;<!--{if $arrErr.create_file}--> background-color:<!--{$smarty.const.ERR_COLOR|escape}--><!--{/if}-->"><input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('create','',''); return false;" value="作成" /> 
     94      </td> 
     95    </tr> 
     96  </table> 
     97</div> 
    14698 
    147                                 </td> 
    148                                 <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    149                             </tr> 
    150                             <tr> 
    151                                 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> 
    152                             </tr> 
    153                             <tr><td height="30"></td></tr> 
    154                         </table> 
    155                     </td> 
    156                 </tr> 
    157                 <!--メインエリア--> 
    158             </table> 
    159         </td> 
    160     </tr> 
     99</div> 
    161100</form> 
    162 </table> 
    163 <!--★★メインコンテンツ★★--> 
Note: See TracChangeset for help on using the changeset viewer.