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

Revision 21539, 5.0 KB checked in by Seasoft, 12 years ago (diff)

#1613 (ソース整形・ソースコメントの改善)

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