source: branches/version-2_13-dev/data/Smarty/templates/sphone/shopping/index.tpl @ 23002

Revision 23002, 4.4 KB checked in by Yammy, 8 years ago (diff)

スマートフォンテンプレート下部にある検索エリアを
共通テンプレート化して、includeするように修正

refs #2257

  • 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 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22
23<script>
24    function ajaxLogin() {
25        var checkLogin = fnCheckLogin('member_form');
26
27        if (checkLogin == false) {
28            return false;
29        } else {
30            var postData = new Object;
31            postData['<!--{$smarty.const.TRANSACTION_ID_NAME}-->'] = "<!--{$transactionid}-->";
32            postData['mode'] = 'login';
33            postData['login_email'] = $('input[type=email]').val();
34            postData['login_pass'] = $('input[type=password]').val();
35
36            $.ajax({
37                type: "POST",
38                url: "<!--{$smarty.const.ROOT_URLPATH}-->shopping/index.php",
39                data: postData,
40                cache: false,
41                dataType: "json",
42                error: function(XMLHttpRequest, textStatus, errorThrown){
43                    alert(textStatus);
44                },
45                success: function(result){
46                    if (result.success) {
47                        location.href = '<!--{$smarty.const.ROOT_URLPATH}-->shopping/' + result.success;
48                    } else {
49                        alert(result.login_error);
50                    }
51                }
52            });
53        }
54    }
55</script>
56
57<section id="slidewindow">
58    <h2 class="title"><!--{$tpl_title|h}--></h2>
59    <form name="member_form" id="member_form" method="post" action="javascript:;" onSubmit="return ajaxLogin()">
60        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
61        <input type="hidden" name="mode" value="login" />
62        <div class="login_area">
63
64        <div class="loginareaBox data-role-none">
65        <!--{assign var=key value="login_email"}-->
66        <span class="attention"><!--{$arrErr[$key]}--></span>
67        <input type="email" name="<!--{$key}-->" value="<!--{$tpl_login_email|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="mailtextBox data-role-none" placeholder="メールアドレス" />
68        <!--{assign var=key value="login_pass"}-->
69        <span class="attention"><!--{$arrErr[$key]}--></span>
70        <input type="password" name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="passtextBox data-role-none" placeholder="パスワード" />
71        </div>
72
73        <p class="arrowRtxt"><a rel="external" href="<!--{$smarty.const.HTTPS_URL}-->forgot/<!--{$smarty.const.DIR_INDEX_PATH}-->">パスワードを忘れた方</a></p>
74        <div class="btn_area">
75        <p><input type="submit" value="ログイン" class="btn data-role-none" name="log" id="log" /></p>
76        </div>
77        </div><!--▲loginarea-->
78    </form>
79    <form name="member_form2" id="member_form2" method="post" action="<!--{$smarty.const.ROOT_URLPATH}-->shopping/index.php">
80        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
81        <input type="hidden" name="mode" value="nonmember" />
82        <div class="login_area_btm">
83            <nav>
84                <ul class="navBox">
85                    <li><a rel="external" href="<!--{$smarty.const.ROOT_URLPATH}-->entry/kiyaku.php" class="navBox_link">新規会員登録</a></li>
86                    <li><input type="submit" value="会員登録をせずに購入" class="nav_nonmember data-role-none" name="buystep" id="buystep" /></li>
87                </ul>
88            </nav>
89            <p class="message">会員登録をすると便利なMyページをご利用いただけます。</p>
90        </div>
91    </form>
92</section>
93
94<!--{include file= 'frontparts/search_area.tpl'}-->
95
Note: See TracBrowser for help on using the repository browser.