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

Revision 19785, 5.1 KB checked in by Seasoft, 13 years ago (diff)

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

  • 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<form name="form1" method="post" action="?"  enctype="multipart/form-data">
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-tree">
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/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|h}-->');fnSelectFile('parent_dir', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$tpl_parent_dir|h}-->', true, '<!--{$tpl_now_dir|h}-->', true)" style="" onMouseOver="fnChangeBgColor('parent_dir', '#808080');" onMouseOut="fnChangeBgColor('parent_dir', '');">
49        <td>
50          <img src="<!--{$TPL_DIR}-->img/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|h}-->');fnSelectFile('<!--{$id}-->', '#808080');" 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)" style="" onMouseOver="fnChangeBgColor('<!--{$id}-->', '#808080');" onMouseOut="fnChangeBgColor('<!--{$id}-->', '');">
59        <td>
60          <!--{if $arrFileList[cnt].is_dir}-->
61          <img src="<!--{$TPL_DIR}-->img/contents/folder_close.gif" alt="フォルダ">
62          <!--{else}-->
63          <img src="<!--{$TPL_DIR}-->img/contents/file.gif">
64          <!--{/if}-->
65          <!--{$arrFileList[cnt].file_name|h}-->
66        </td>
67        <td class="right"><!--{$arrFileList[cnt].file_size|number_format}--></td>
68        <td><!--{$arrFileList[cnt].file_time|h}--></td>
69      </tr>
70      <!--{/section}-->
71    </table>
72  </div>
73  <div class="btn">
74    <a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');fnModeSubmit('view','',''); return false;"><span>表示</span></a>
75    <a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');fnModeSubmit('download','',''); return false;"><span>ダウンロード</span></a>
76    <a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');fnModeSubmit('delete','',''); return false;"><span>削除</span></a>
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|h}-->"<!--{/if}-->><a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');fnModeSubmit('upload','',''); return false;">アップロード</a>
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|h}--><!--{/if}-->"><a class="btn-normal" href="javascript:;" onclick="setTreeStatus('tree_status');fnModeSubmit('create','',''); return false;">作成</a>
94      </td>
95    </tr>
96  </table>
97</div>
98
99</div>
100</form>
Note: See TracBrowser for help on using the repository browser.