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

Revision 23002, 4.4 KB checked in by Yammy, 11 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
RevLine 
[19713]1<!--{*
2 * This file is part of EC-CUBE
3 *
[22206]4 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
[19713]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 *}-->
[21533]22
[21138]23<script>
[21533]24    function ajaxLogin() {
25        var checkLogin = fnCheckLogin('member_form');
[21138]26
[21533]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();
[21138]35
[21533]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    }
[21138]55</script>
[21533]56
[21050]57<section id="slidewindow">
[21533]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">
[20614]63
[21533]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>
[20614]72
[22788]73        <p class="arrowRtxt"><a rel="external" href="<!--{$smarty.const.HTTPS_URL}-->forgot/<!--{$smarty.const.DIR_INDEX_PATH}-->">パスワードを忘れた方</a></p>
[21533]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>
[21050]93
[23002]94<!--{include file= 'frontparts/search_area.tpl'}-->
95
Note: See TracBrowser for help on using the repository browser.