source: branches/version-2_12-dev/data/Smarty/templates/admin/system/bkup.tpl @ 22572

Revision 22572, 5.3 KB checked in by Qwert, 11 years ago (diff)

#2153 (各種テンプレート修正)

管理画面のデザイン管理・システム設定・オーナーズストアの直せそうな範囲を修正。管理画面のonClickをonclickに修正。

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • 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-2013 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
25<script type="text/javascript">
26    function fnRestore(list_name) {
27        if (window.confirm('リストアしますか?')) {
28            document.body.style.cursor = 'wait';
29            fnModeSubmit('restore', 'list_name', list_name);
30        }
31    }
32</script>
33<form name="form1" id="form1" method="post" action="" onsubmit="return false;">
34<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
35<input type="hidden" name="mode" value="edit" />
36<input type="hidden" name="list_name" value="" />
37<div id="system" class="contents-main">
38    <p class="remark">
39        データベースのバックアップを行います。<br />
40        テンプレートファイル等はバックアップされません。
41    </p>
42    <table class="form">
43        <tr>
44            <th>バックアップ名<span class="attention"> *</span></th>
45            <td>
46                <!--{if $arrErr.bkup_name}-->
47                <span class="attention"><!--{$arrErr.bkup_name}--></span>
48                <!--{/if}-->
49                <input type="text" name="bkup_name" value="<!--{$arrForm.bkup_name|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.bkup_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}--> ime-mode: disabled;" /><span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
50            </td>
51        </tr>
52        <tr>
53            <th>バックアップメモ</th>
54            <td>
55                <!--{if $arrErr.bkup_memo}-->
56                    <span class="attention"><!--{$arrErr.bkup_memo}--></span>
57                <!--{/if}-->
58                <textarea name="bkup_memo" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" cols="60" rows="5" class="area60" style="<!--{if $arrErr.bkup_memo != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"><!--{"\n"}--><!--{$arrForm.bkup_memo|h}--></textarea>
59                <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span>
60            </td>
61        </tr>
62    </table>
63
64    <div class="btn"><a class="btn-normal" href="javascript:;" name="cre_bkup" onclick="document.body.style.cursor = 'wait'; form1.mode.value='bkup'; document.form1.submit(); return false;"><span>バックアップデータを作成する</span></a></div>
65
66
67    <h2>バックアップ一覧</h2>
68
69
70    <!--{if $arrErr.list_name}-->
71    <span class="attention"><!--{$arrErr.list_name}--></span><br />
72    <!--{/if}-->
73    <!--{* 一覧が存在する場合のみ表示する *}-->
74    <!--{if count($arrBkupList) > 0}-->
75        <table class="list">
76            <tr>
77                <th>バックアップ名</th>
78                <th>バックアップメモ</th>
79                <th>作成日</th>
80                <th>リストア</th>
81                <th>ダウンロード</th>
82                <th class="delete">削除</th>
83            </tr>
84            <!--{section name=cnt loop=$arrBkupList}-->
85                <tr>
86                    <td ><!--{$arrBkupList[cnt].bkup_name}--></td>
87                    <td ><!--{$arrBkupList[cnt].bkup_memo}--></td>
88                    <td align="center"><!--{$arrBkupList[cnt].create_date|sfCutString:19:true:false}--></td>
89                    <td align="center"><a href="javascript:;" onclick="fnRestore('<!--{$arrBkupList[cnt].bkup_name}-->'); return false;">リストア</a></td>
90                    <td align="center"><a href="javascript:;" onclick="fnModeSubmit('download','list_name','<!--{$arrBkupList[cnt].bkup_name}-->'); return false;">ダウンロード</a></td>
91                    <td align="center">
92                        <a href="javascript:;" onclick="fnModeSubmit('delete','list_name','<!--{$arrBkupList[cnt].bkup_name}-->'); return false;">削除</a>
93                    </td>
94                </tr>
95            <!--{/section}-->
96        </table>
97    <!--{/if}-->
98
99    <!--{if strlen($tpl_restore_msg) >= 1}-->
100        <h2>実行結果</h2>
101        <div class="message">
102            <!--{if $tpl_restore_err == false}-->
103                <div class="btn"><a class="btn-normal" href="javascript:;" name="restore_config" onclick="document.body.style.cursor = 'wait'; form1.mode.value='restore_config'; form1.list_name.value='<!--{$tpl_restore_name|h}-->'; submit(); return false;"><span>エラーを無視してリストアする</span></a></div>
104            <!--{/if}-->
105            <!--{$tpl_restore_msg|h}-->
106        </div>
107    <!--{/if}-->
108
109</div>
110</form>
Note: See TracBrowser for help on using the repository browser.