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

Revision 21234, 4.6 KB checked in by nanasess, 13 years ago (diff)

#1471 (スマートフォン 購入フロー等の form action が HTTP_URL になっている)

  • ROOT_URLPATH に修正
  • 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-2011 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<!--▼CONTENTS-->
23<script>
24  function ajaxLogin() {
25      var checkLogin = fnCheckLogin('member_form');
26
27      if (checkLogin == false) {
28          return false;
29      } else {
30
31          var postData = new Object;
32          postData['<!--{$smarty.const.TRANSACTION_ID_NAME}-->'] = "<!--{$transactionid}-->";
33          postData['mode'] = 'login';
34          postData['login_email'] = $('input[type=email]').val();
35          postData['login_pass'] = $('input[type=password]').val();
36
37          $.ajax({
38              type: "POST",
39              url: "<!--{$smarty.const.ROOT_URLPATH}-->shopping/index.php",
40              data: postData,
41              cache: false,
42              dataType: "json",
43              error: function(XMLHttpRequest, textStatus, errorThrown){
44                  alert(textStatus);
45              },
46              success: function(result){
47                  if (result.success) {
48                      location.href = '<!--{$smarty.const.ROOT_URLPATH}-->shopping/' + result.success;
49                  } else {
50                      alert(result.login_error);
51                  }
52              }
53          });
54      }
55  }
56</script>
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|sfTrimURL}-->/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.HTTP_URL}-->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
91    </div>
92</form>
93
94</section>
95<!--▼検索バー -->
96<section id="search_area">
97<form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php">
98<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
99<input type="hidden" name="mode" value="search" />
100<input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" >
101</form>
102</section>
103<!--▲検索バー -->
104<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.