[19713] | 1 | <!--{* |
---|
| 2 | * This file is part of EC-CUBE |
---|
| 3 | * |
---|
[20764] | 4 | * Copyright(c) 2000-2011 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 | *}--> |
---|
| 22 | <!--▼CONTENTS--> |
---|
[21138] | 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> |
---|
[21050] | 57 | <section id="slidewindow"> |
---|
[21157] | 58 | <h2 class="title"><!--{$tpl_title|h}--></h2> |
---|
[21138] | 59 | <!--<!--{$smarty.const.HTTP_URL}-->shopping/index.php--> |
---|
| 60 | <form name="member_form" id="member_form" method="post" action="javascript:;" onSubmit="return ajaxLogin()"> |
---|
[21050] | 61 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
| 62 | <input type="hidden" name="mode" value="login" /> |
---|
[21094] | 63 | <div class="login_area"> |
---|
[20614] | 64 | |
---|
[21094] | 65 | <div class="loginareaBox data-role-none"> |
---|
[21050] | 66 | <!--{assign var=key value="login_email"}--> |
---|
| 67 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 68 | <input type="email" name="<!--{$key}-->" value="<!--{$tpl_login_email|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="mailtextBox data-role-none" placeholder="メールアドレス" /> |
---|
| 69 | <!--{assign var=key value="login_pass"}--> |
---|
| 70 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 71 | <input type="password" name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="passtextBox data-role-none" placeholder="パスワード" /> |
---|
| 72 | </div> |
---|
[20614] | 73 | |
---|
[21073] | 74 | <p class="arrowRtxt"><a rel="external" href="<!--{$smarty.const.HTTPS_URL|sfTrimURL}-->/forgot/<!--{$smarty.const.DIR_INDEX_PATH}-->">パスワードを忘れた方</a></p> |
---|
[21050] | 75 | <div class="btn_area"> |
---|
[21132] | 76 | <p><input type="submit" value="ログイン" class="btn data-role-none" name="log" id="log" /></p> |
---|
[21050] | 77 | </div> |
---|
| 78 | </div><!--▲loginarea--> |
---|
| 79 | </form> |
---|
| 80 | <form name="member_form2" id="member_form2" method="post" action="<!--{$smarty.const.HTTP_URL}-->shopping/index.php"> |
---|
[20407] | 81 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
[19713] | 82 | <input type="hidden" name="mode" value="nonmember" /> |
---|
[21050] | 83 | <div class="login_area_btm"> |
---|
| 84 | <nav> |
---|
| 85 | <ul class="navBox"> |
---|
| 86 | <li><a rel="external" href="<!--{$smarty.const.ROOT_URLPATH}-->entry/kiyaku.php" class="navBox_link">新規会員登録</a></li> |
---|
[21132] | 87 | <li><input type="submit" value="会員登録をせずに購入" class="nav_nonmember data-role-none" name="buystep" id="buystep" /></li> |
---|
[21050] | 88 | </ul> |
---|
| 89 | </nav> |
---|
| 90 | <p class="message">会員登録をすると便利なMyページをご利用いただけます。</p> |
---|
| 91 | |
---|
[19713] | 92 | </div> |
---|
| 93 | </form> |
---|
[21050] | 94 | |
---|
| 95 | </section> |
---|
[21107] | 96 | <!--▼検索バー --> |
---|
| 97 | <section id="search_area"> |
---|
| 98 | <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php"> |
---|
| 99 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
[21228] | 100 | <input type="hidden" name="mode" value="search" /> |
---|
[21107] | 101 | <input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" > |
---|
| 102 | </form> |
---|
| 103 | </section> |
---|
| 104 | <!--▲検索バー --> |
---|
[21132] | 105 | <!--▲CONTENTS--> |
---|