source: branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_complete.tpl @ 20407

Revision 20407, 3.3 KB checked in by kotani, 13 years ago (diff)

#812 (トランザクションIDの自動生成/自動検証), #1053 (transactionidが埋め込まれる前にクリックされるとエラー)

  • transactionid用hiddenタグをJavaScriptで生成しないように変更
  • 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-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
25<script type="text/javascript">
26<!--
27
28    function fnReturn() {
29        document.search_form.action = './<!--{$smarty.const.DIR_INDEX_PATH}-->';
30        document.search_form.submit();
31        return false;
32    }
33//-->
34</script>
35
36<form name="search_form" method="post" action="">
37    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
38    <input type="hidden" name="mode" value="search" />
39
40    <!--{foreach from=$arrSearchData key="key" item="item"}-->
41        <!--{if $key ne "customer_id" && $key ne "mode" && $key ne "edit_customer_id" && $key ne $smarty.const.TRANSACTION_ID_NAME}-->
42          <!--{if is_array($item)}-->
43            <!--{foreach item=c_item from=$item}-->
44              <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
45            <!--{/foreach}-->
46          <!--{else}-->
47            <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
48          <!--{/if}-->
49        <!--{/if}-->
50    <!--{/foreach}-->
51</form>
52
53<form name="form1" id="form1" method="post" action="?">
54    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
55    <input type="hidden" name="mode" value="complete_return" />
56
57    <!-- 検索条件の保持 -->
58    <!--{foreach from=$arrSearchData key="key" item="item"}-->
59        <!--{if $key ne "customer_id" && $key ne "mode" && $key ne "edit_customer_id" && $key ne $smarty.const.TRANSACTION_ID_NAME}-->
60          <!--{if is_array($item)}-->
61            <!--{foreach item=c_item from=$item}-->
62              <input type="hidden" name="search_data[<!--{$key|h}-->][]" value="<!--{$c_item|h}-->" />
63            <!--{/foreach}-->
64          <!--{else}-->
65            <input type="hidden" name="search_data[<!--{$key|h}-->]" value="<!--{$item|h}-->" />
66          <!--{/if}-->
67        <!--{/if}-->
68    <!--{/foreach}-->
69
70    <div id="complete">
71        <div class="complete-top"></div>
72        <div class="contents">
73            <div class="message">
74                登録が完了致しました。
75            </div>
76        </div>
77        <div class="btn-area-top"></div>
78        <div class="btn-area">
79            <ul>
80                <!--{if $arrSearchData}-->
81                <li><a class="btn-action" href="javascript:;" onclick="return fnReturn();"><span class="btn-prev">検索結果へ戻る</span></a></li>
82                <!--{/if}-->
83                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'complete_return', '', ''); return false;"><span class="btn-next">続けて登録を行う</span></a></li>
84            </ul>
85        </div>
86        <div class="btn-area-bottom"></div>
87    </div>
88</form>
Note: See TracBrowser for help on using the repository browser.