source: branches/version-2_5-dev/data/Smarty/templates/admin/contents/file_manager.tpl @ 19983

Revision 19983, 5.5 KB checked in by Seasoft, 12 years ago (diff)

#834(パスに関わるパラメータ名が不適切)

  • TPL_DIR -> TPL_URLPATH
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24<script type="text/javascript">
25var IMG_FOLDER_CLOSE   = "<!--{$TPL_URLPATH}-->img/contents/folder_close.gif";      // フォルダクローズ時画像
26var IMG_FOLDER_OPEN    = "<!--{$TPL_URLPATH}-->img/contents/folder_open.gif";       // フォルダオープン時画像
27var IMG_PLUS           = "<!--{$TPL_URLPATH}-->img/contents/plus.gif";              // プラスライン
28var IMG_MINUS          = "<!--{$TPL_URLPATH}-->img/contents/minus.gif";             // マイナスライン
29var IMG_NORMAL         = "<!--{$TPL_URLPATH}-->img/contents/space.gif";             // スペース
30</script>
31<form name="form1" method="post" action="?"  enctype="multipart/form-data">
32<input type="hidden" name="mode" value="" />
33<input type="hidden" name="now_file" value="<!--{$tpl_now_dir}-->" />
34<input type="hidden" name="tree_select_file" value="" />
35<input type="hidden" name="tree_status" value="" />
36<input type="hidden" name="select_file" value="" />
37<div id="admin-contents" class="contents-main">
38<div id="contents-filemanager-tree">
39  <div id="tree"></div>
40</div>
41
42<div id="contents-filemanager-right">
43  <table class="now_dir">
44    <tr>
45      <th>ファイルのアップロード</th>
46      <td>
47        <!--{if $arrErr.upload_file}--><span class="attention"><!--{$arrErr.upload_file}--></span><!--{/if}-->
48        <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');fnModeSubmit('upload','',''); return false;">アップロード</a>
49      </td>
50    </tr>
51    <tr>
52      <th>フォルダ作成</th>
53      <td>
54        <!--{if $arrErr.create_file}--><span class="attention"><!--{$arrErr.create_file}--></span><!--{/if}-->
55        <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');fnModeSubmit('create','',''); return false;">作成</a>
56      </td>
57    </tr>
58  </table>
59
60  <h2><!--{$tpl_now_dir|h}--></h2>
61
62    <table class="list">
63      <tr>
64        <th>ファイル名</th>
65        <th>サイズ</th>
66        <th>更新日付</th>
67        <th class="edit">表示</th>
68        <th>ダウンロード</th>
69        <th class="delete">削除</th>
70      </tr>
71      <!--{if !$tpl_is_top_dir}-->
72      <tr id="parent_dir" onclick="fnSetFormVal('form1', 'select_file', '<!--{$tpl_parent_dir|h}-->');fnSelectFile('parent_dir', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$tpl_parent_dir|h}-->', true, '<!--{$tpl_now_dir|h}-->', true)" style="">
73        <td>
74          <img src="<!--{$TPL_URLPATH}-->img/contents/folder_parent.gif" alt="フォルダ">&nbsp;..
75        </td>
76        <td>&nbsp;</td>
77        <td>&nbsp;</td>
78        <td>&nbsp;</td>
79        <td>&nbsp;</td>
80        <td>&nbsp;</td>
81      </tr>
82      <!--{/if}-->
83      <!--{section name=cnt loop=$arrFileList}-->
84      <!--{assign var="id" value="select_file`$smarty.section.cnt.index`"}-->
85      <tr id="<!--{$id}-->" style="">
86        <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)">
87          <!--{if $arrFileList[cnt].is_dir}-->
88          <img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ">
89          <!--{else}-->
90          <img src="<!--{$TPL_URLPATH}-->img/contents/file.gif">
91          <!--{/if}-->
92          <!--{$arrFileList[cnt].file_name|h}-->
93        </td>
94        <td class="right"><!--{$arrFileList[cnt].file_size|number_format}--></td>
95        <td class="center"><!--{$arrFileList[cnt].file_time|h}--></td>
96        <td class="center"><a href="javascript:;" onclick="fnSetFormVal('form1', 'select_file', '<!--{$arrFileList[cnt].file_path|h}-->');fnSelectFile('<!--{$id}-->', '#808080');fnModeSubmit('view','',''); return false;">表示</a></td>
97        <td class="center"><a href="javascript:;" onclick="fnSetFormVal('form1', 'select_file', '<!--{$arrFileList[cnt].file_path|h}-->');fnSelectFile('<!--{$id}-->', '#808080');setTreeStatus('tree_status');fnModeSubmit('download','',''); return false;">ダウンロード</a></td>
98        <td class="center"><a href="javascript:;" onclick="fnSetFormVal('form1', 'select_file', '<!--{$arrFileList[cnt].file_path|h}-->');fnSelectFile('<!--{$id}-->', '#808080');setTreeStatus('tree_status');fnModeSubmit('delete','',''); return false;">削除</a></td>
99      </tr>
100      <!--{/section}-->
101    </table>
102  </div>
103</div>
104
105</form>
Note: See TracBrowser for help on using the repository browser.