source: branches/version-2_13-dev/data/Smarty/templates/admin/system/masterdata.tpl @ 23066

Revision 23066, 3.6 KB checked in by pineray, 9 years ago (diff)

#2342 JavaScript?のグローバルな宣言を減らす
eccubeオブジェクト内の階層を減らす.

  • 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<div id="basis" class="contents-main">
26    <form name="form1" id="form1" method="post" action="?">
27        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
28        <input type="hidden" name="mode" value="show" />
29        <div id="basis-masterdata-select" class="btn">
30            <select name="master_data_name" id="master_data_name">
31            <!--{html_options output=$arrMasterDataName values=$arrMasterDataName selected=$masterDataName}-->
32            </select>
33            <a class="btn-normal" href="javascript:;" onclick="eccube.fnFormModeSubmit('form1', 'show', '', ''); return false;"><span>選択</span></a>
34        </div>
35    </form>
36
37    <!--{if $smarty.post.mode == 'show'}-->
38        <form name="form2" id="form2" method="post" action="?">
39            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
40            <input type="hidden" name="mode" value="edit" />
41            <input type="hidden" name="master_data_name" value="<!--{$masterDataName}-->" />
42            <p class="remark attention">
43                マスターデータの値を設定できます。<br />
44                重複したIDを登録することはできません。<br />
45                空のIDを登録すると、値は削除されます。<br />
46                設定値によってはサイトが機能しなくなる場合もありますので、十分ご注意下さい。
47            </p>
48            <!--{if $errorMessage != ""}-->
49                <div class="message">
50                    <span class="attention"><!--{$errorMessage}--></span>
51                </div>
52            <!--{/if}-->
53
54            <table class="form">
55                <!--{foreach from=$arrMasterData item=val key=key}-->
56                    <tr>
57                        <th>ID:<input type="text" name="id[]" value="<!--{$key|h}-->" size="6" /></th>
58                        <td>値:<input type="text" name="name[]" value="<!--{$val|h}-->" style="" size="60" class="box60" /></td>
59                    </tr>
60                <!--{/foreach}-->
61            </table>
62
63            <h2>追加のデータ</h2>
64            <table class="form">
65                <tr>
66                    <th>ID:<input type="text" name="id[]" size="6" /></th>
67                    <td>値:<input type="text" name="name[]" style="" size="60" class="box60" /></td>
68                </tr>
69            </table>
70            <div class="btn-area">
71                <ul>
72                    <li><a class="btn-action" href="javascript:;" onclick="document.form2.submit(); return false;"><span class="btn-next">この内容で登録する</span></a></li>
73                </ul>
74            </div>
75        </form>
76    <!--{/if}-->
77
78</div>
Note: See TracBrowser for help on using the repository browser.