Ignore:
Timestamp:
2013/08/28 09:41:18 (11 years ago)
Author:
m_uehara
Message:

#2348 r23128 - r23137 をマージ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_0/data/Smarty/templates/admin/contents/file_manager.tpl

    r23103 r23140  
    3232        for (var i in bread_crumbs) { 
    3333            file_path += bread_crumbs[i] + '/'; 
    34             $('<a href="javascript:;" onclick="fnFolderOpen(\'' + file_path + '\'); return false;" />') 
     34            $('<a href="javascript:;" onclick="eccube.fileManager.openFolder(\'' + file_path + '\'); return false;" />') 
    3535                .text(bread_crumbs[i]) 
    3636                .appendTo($node); 
     
    3939    }); 
    4040 
    41     var IMG_FOLDER_CLOSE   = "<!--{$TPL_URLPATH}-->img/contents/folder_close.gif";  // フォルダクローズ時画像 
    42     var IMG_FOLDER_OPEN    = "<!--{$TPL_URLPATH}-->img/contents/folder_open.gif";   // フォルダオープン時画像 
    43     var IMG_PLUS           = "<!--{$TPL_URLPATH}-->img/contents/plus.gif";          // プラスライン 
    44     var IMG_MINUS          = "<!--{$TPL_URLPATH}-->img/contents/minus.gif";         // マイナスライン 
    45     var IMG_NORMAL         = "<!--{$TPL_URLPATH}-->img/contents/space.gif";         // スペース 
     41    eccube.fileManager.IMG_FOLDER_CLOSE   = "<!--{$TPL_URLPATH}-->img/contents/folder_close.gif";  // フォルダクローズ時画像 
     42    eccube.fileManager.IMG_FOLDER_OPEN    = "<!--{$TPL_URLPATH}-->img/contents/folder_open.gif";   // フォルダオープン時画像 
     43    eccube.fileManager.IMG_PLUS           = "<!--{$TPL_URLPATH}-->img/contents/plus.gif";          // プラスライン 
     44    eccube.fileManager.IMG_MINUS          = "<!--{$TPL_URLPATH}-->img/contents/minus.gif";         // マイナスライン 
     45    eccube.fileManager.IMG_NORMAL         = "<!--{$TPL_URLPATH}-->img/contents/space.gif";         // スペース 
    4646//]]></script> 
    47 <form name="form1" method="post" action="?"  enctype="multipart/form-data"> 
     47<form name="form1" id="form1" method="post" action="?"  enctype="multipart/form-data"> 
    4848    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    4949    <input type="hidden" name="mode" value="" /> 
     
    6363                    <td> 
    6464                        <!--{if $arrErr.upload_file}--><span class="attention"><!--{$arrErr.upload_file}--></span><!--{/if}--> 
    65                         <input type="file" name="upload_file" size="40" <!--{if $arrErr.upload_file}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}--> /><a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');eccube.setModeAndSubmit('upload','',''); return false;">アップロード</a> 
     65                        <input type="file" name="upload_file" size="40" <!--{if $arrErr.upload_file}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}--> /><a class="btn-normal" href="javascript:;" onclick="eccube.fileManager.setTreeStatus('tree_status');eccube.setModeAndSubmit('upload','',''); return false;">アップロード</a> 
    6666                    </td> 
    6767                </tr> 
     
    7070                    <td> 
    7171                        <!--{if $arrErr.create_file}--><span class="attention"><!--{$arrErr.create_file}--></span><!--{/if}--> 
    72                         <input type="text" name="create_file" value="" style="width:336px;<!--{if $arrErr.create_file}--> background-color:<!--{$smarty.const.ERR_COLOR|h}--><!--{/if}-->" /><a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');eccube.setModeAndSubmit('create','',''); return false;">作成</a> 
     72                        <input type="text" name="create_file" value="" style="width:336px;<!--{if $arrErr.create_file}--> background-color:<!--{$smarty.const.ERR_COLOR|h}--><!--{/if}-->" /><a class="btn-normal" href="javascript:;" onclick="eccube.fileManager.setTreeStatus('tree_status');eccube.setModeAndSubmit('create','',''); return false;">作成</a> 
    7373                    </td> 
    7474                </tr> 
     
    8585                </tr> 
    8686                <!--{if !$tpl_is_top_dir}--> 
    87                     <tr id="parent_dir" onclick="eccube.setValue('select_file', '<!--{$tpl_parent_dir|h}-->', 'form1');fnSelectFile('parent_dir', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$tpl_parent_dir|h}-->', true, '<!--{$tpl_now_dir|h}-->', true)" style=""> 
     87                    <tr id="parent_dir" onclick="eccube.setValue('select_file', '<!--{$tpl_parent_dir|h}-->', 'form1'); eccube.fileManager.selectFile('parent_dir', '#808080');" onDblClick="eccube.fileManager.setTreeStatus('tree_status');eccube.fileManager.toggleTreeMenu('tree'+cnt, 'rank_img'+cnt, arrTree[cnt][2]);eccube.fileManager.doubleClick(arrTree, '<!--{$tpl_parent_dir|h}-->', true, '<!--{$tpl_now_dir|h}-->', true)" style=""> 
    8888                        <td> 
    8989                            <img src="<!--{$TPL_URLPATH}-->img/contents/folder_parent.gif" alt="フォルダ">&nbsp;.. 
     
    9999                    <!--{assign var="id" value="select_file`$smarty.section.cnt.index`"}--> 
    100100                    <tr id="<!--{$id}-->" style=""> 
    101                         <td class="file-name" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$arrFileList[cnt].file_path|h}-->', <!--{if $arrFileList[cnt].is_dir|h}-->true<!--{else}-->false<!--{/if}-->, '<!--{$tpl_now_dir|h}-->', false)"> 
     101                        <td class="file-name" onDblClick="eccube.fileManager.setTreeStatus('tree_status');eccube.fileManager.doubleClick(arrTree, '<!--{$arrFileList[cnt].file_path|h}-->', <!--{if $arrFileList[cnt].is_dir|h}-->true<!--{else}-->false<!--{/if}-->, '<!--{$tpl_now_dir|h}-->', false)"> 
    102102                            <!--{if $arrFileList[cnt].is_dir}--> 
    103103                                <img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ" /> 
     
    115115                        <!--{if $arrFileList[cnt].is_dir}--> 
    116116                            <td class="center"> 
    117                                 <a href="javascript:;" onclick="eccube.setValue('tree_select_file', '<!--{$arrFileList[cnt].file_path}-->', 'form1');fnSelectFile('<!--{$id}-->', '#808080');eccube.setModeAndSubmit('move','',''); return false;">表示</a> 
     117                                <a href="javascript:;" onclick="eccube.setValue('tree_select_file', '<!--{$arrFileList[cnt].file_path}-->', 'form1'); eccube.fileManager.selectFile('<!--{$id}-->', '#808080');eccube.setModeAndSubmit('move','',''); return false;">表示</a> 
    118118                            </td> 
    119119                        <!--{else}--> 
    120120                            <td class="center"> 
    121                                 <a href="javascript:;" onclick="eccube.setValue('select_file', '<!--{$arrFileList[cnt].file_path|h}-->', 'form1');fnSelectFile('<!--{$id}-->', '#808080');eccube.setModeAndSubmit('view','',''); return false;">表示</a> 
     121                                <a href="javascript:;" onclick="eccube.setValue('select_file', '<!--{$arrFileList[cnt].file_path|h}-->', 'form1');eccube.fileManager.selectFile('<!--{$id}-->', '#808080');eccube.setModeAndSubmit('view','',''); return false;">表示</a> 
    122122                            </td> 
    123123                        <!--{/if}--> 
     
    127127                        <!--{else}--> 
    128128                            <td class="center"> 
    129                                 <a href="javascript:;" onclick="eccube.setValue('select_file', '<!--{$arrFileList[cnt].file_path|h}-->', 'form1');fnSelectFile('<!--{$id}-->', '#808080');setTreeStatus('tree_status');eccube.setModeAndSubmit('download','',''); return false;">ダウンロード</a> 
     129                                <a href="javascript:;" onclick="eccube.setValue('select_file', '<!--{$arrFileList[cnt].file_path|h}-->', 'form1');eccube.fileManager.selectFile('<!--{$id}-->', '#808080');eccube.fileManager.setTreeStatus('tree_status');eccube.setModeAndSubmit('download','',''); return false;">ダウンロード</a> 
    130130                            </td> 
    131131                        <!--{/if}--> 
    132132                        <td class="center"> 
    133                             <a href="javascript:;" onclick="eccube.setValue('select_file', '<!--{$arrFileList[cnt].file_path|h}-->', 'form1');fnSelectFile('<!--{$id}-->', '#808080');setTreeStatus('tree_status');eccube.setModeAndSubmit('delete','',''); return false;">削除</a> 
     133                            <a href="javascript:;" onclick="eccube.setValue('select_file', '<!--{$arrFileList[cnt].file_path|h}-->', 'form1');eccube.fileManager.selectFile('<!--{$id}-->', '#808080');eccube.fileManager.setTreeStatus('tree_status');eccube.setModeAndSubmit('delete','',''); return false;">削除</a> 
    134134                        </td> 
    135135                    </tr> 
Note: See TracChangeset for help on using the changeset viewer.