Ignore:
Timestamp:
2007/10/29 12:06:29 (16 years ago)
Author:
nanasess
Message:

ライセンス表記変更

Location:
branches/feature-module-update/data/downloads
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/downloads/module/mdl_epsilon/card.php

    r16329 r16582  
    11<?php 
    22/* 
     3 * This file is part of EC-CUBE 
     4 * 
    35 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    46 * 
    57 * 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. 
    622 */ 
    723 
  • branches/feature-module-update/data/downloads/module/mdl_epsilon/convenience.php

    r16329 r16582  
    11<?php 
    22/* 
     3 * This file is part of EC-CUBE 
     4 * 
    35 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    46 * 
    57 * 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. 
    622 */ 
    723 
  • branches/feature-module-update/data/downloads/module/mdl_epsilon/convenience.tpl

    r15079 r16582  
    11<!--{* 
     2/* 
     3 * This file is part of EC-CUBE 
     4 * 
    25 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    36 * 
    47 * 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 */ 
    523 *}--> 
    624<!--▼CONTENTS--> 
    725<table width="760" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    8     <tr> 
    9         <td align="center" bgcolor="#ffffff"> 
    10         <!--▼MAIN ONTENTS--> 
    11         <!--{*購入手続きの流れ--> 
    12         <table width="700" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    13             <tr> 
    14                 <td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/flow03.gif" width="700" height="36" alt="購入手続きの流れ"></td> 
    15             </tr> 
    16             <tr><td height="15"></td></tr> 
    17         </table> 
    18         <!--購入手続きの流れ*}--> 
    19          
    20         <table width="700" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    21             <tr> 
    22                 <td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/convenience_title.jpg" width="700" height="40" alt="コンビニ決済"></td> 
    23             </tr> 
    24             <tr><td height="15"></td></tr> 
    25             <tr> 
    26                 <td class="fs12">下記から、お支払いするコンビニをご選択し、必要事項を入力してください。<br /> 
    27                 入力後、一番下の「ご注文完了ページへ」ボタンをクリックしてください。</td> 
    28             </tr> 
    29             <tr><td height="20"></td></tr> 
    30             <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
    31             <input type="hidden" name="mode" value="send"> 
    32             <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->"> 
    33             <tr><td class="fs12n"><span class="red"><!--{$arrErr.convenience}--></span></td></tr> 
    34             <tr> 
    35                 <td bgcolor="#cccccc"> 
    36                 <!--お支払方法・お届け時間の指定・その他お問い合わせここから--> 
    37                 <table width="700" border="0" cellspacing="1" cellpadding="10" summary=" "> 
    38                     <tr> 
    39                         <td width="10%" align="center" bgcolor="#f0f0f0" class="fs12">選択</td> 
    40                         <td width="90%" bgcolor="#f0f0f0" class="fs12">コンビニの種類</td> 
    41                     </tr> 
    42                     <!--{foreach key=key item=item from=$arrConv}--> 
    43                     <tr> 
    44                         <td align="center" bgcolor="#ffffff" class="fs12"><input type="radio" name="convenience" id="<!--{$key}-->" value="<!--{$key}-->" style="<!--{$arrErr.convenience|sfGetErrorColor}-->" <!--{if $smarty.post.convenience == $key}-->checked<!--{/if}-->></td> 
    45                         <td bgcolor="#ffffff" class="fs12"><label for="<!--{$key}-->"><!--{$item|escape}--></label></td> 
    46                     </tr> 
    47                     <!--{/foreach}--> 
    48                 </table> 
    49                 <!--お支払方法・お届け時間の指定・その他お問い合わせここまで--> 
    50                 </td> 
    51             </tr> 
    52              
    53             <tr><td height="20"></td></tr> 
    54              
    55             <tr> 
    56                 <td bgcolor="#cccccc"> 
    57                 <!--お支払方法・お届け時間の指定・その他お問い合わせここから-->      
    58                 <table width="700" border="0" cellspacing="1" cellpadding="10" summary=" "> 
    59                     <tr> 
    60                         <td width="20%" bgcolor="#f0f0f0" class="fs12n">お名前(カタカナ)<span class="red">※</span></td> 
    61                         <td width="80%" bgcolor="#ffffff" class="fs12n"><span class="red"><!--{$arrErr.order_kana01}--><!--{$arrErr.order_kana02}--></span>セイ&nbsp;<input type="text" name="order_kana01" size="15" class="box15" value="<!--{$arrForm.order_kana01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr.order_kana01|sfGetErrorColor}-->; ime-mode: active;" /> メイ&nbsp;<input type="text" name="order_kana02" size="15" class="box15" value="<!--{$arrForm.order_kana02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr.order_kana02|sfGetErrorColor}-->; ime-mode: active;" /></td> 
    62                     </tr> 
    63                     <tr> 
    64                         <td bgcolor="#f0f0f0" class="fs12n">電話番号<span class="red">※</span></td> 
    65                         <td bgcolor="#ffffff" class="fs12n"><span class="red"><!--{$arrErr.order_tel01}--><!--{$arrErr.order_tel02}--><!--{$arrErr.order_tel03}--></span><input type="text" name="order_tel01" size="6" value="<!--{$arrForm.order_tel01|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" style="<!--{$arrErr.order_tel01|sfGetErrorColor}-->; ime-mode: disabled;" />&nbsp;-&nbsp;<input type="text" name="order_tel02" size="6" value="<!--{$arrForm.order_tel02|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" style="<!--{$arrErr.order_tel02|sfGetErrorColor}-->; ime-mode: disabled;" />&nbsp;-&nbsp;<input type="text" name="order_tel03" size="6" value="<!--{$arrForm.order_tel03|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" style="<!--{$arrErr.order_tel03|sfGetErrorColor}-->; ime-mode: disabled;" /></td> 
    66                     </tr>                
    67                 </table> 
    68                 <!--お支払方法・お届け時間の指定・その他お問い合わせここまで--> 
    69                 </td> 
    70             </tr> 
    71              
    72             <tr><td height="20"></td></tr> 
    73             <tr> 
    74                 <td align="center"> 
    75                     <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onmouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/common/b_back_on.gif',back03)" onmouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/common/b_back.gif',back03)" onclick="fnModeSubmit('return', '', ''); return false;"><img src="<!--{$smarty.const.URL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="戻る" border="0" name="back03" id="back03"/></a> 
    76                     <img src="<!--{$smarty.const.URL_DIR}-->img/_.gif" width="20" height="" alt="" /> 
    77                     <input type="image" onmouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/shopping/b_ordercomp_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/shopping/b_ordercomp.gif',this)" src="<!--{$smarty.const.URL_DIR}-->img/shopping/b_ordercomp.gif" width="150" height="30" alt="ご注文完了ページへ" border="0" name="next" id="next" /> 
    78                 </td> 
    79             </tr> 
    80             </form> 
    81         </table> 
    82         <!--▲MAIN ONTENTS--> 
    83         </td> 
    84     </tr> 
     26    <tr> 
     27        <td align="center" bgcolor="#ffffff"> 
     28        <!--▼MAIN ONTENTS--> 
     29        <!--{*購入手続きの流れ--> 
     30        <table width="700" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     31            <tr> 
     32                <td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/flow03.gif" width="700" height="36" alt="購入手続きの流れ"></td> 
     33            </tr> 
     34            <tr><td height="15"></td></tr> 
     35        </table> 
     36        <!--購入手続きの流れ*}--> 
     37 
     38        <table width="700" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     39            <tr> 
     40                <td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/convenience_title.jpg" width="700" height="40" alt="コンビニ決済"></td> 
     41            </tr> 
     42            <tr><td height="15"></td></tr> 
     43            <tr> 
     44                <td class="fs12">下記から、お支払いするコンビニをご選択し、必要事項を入力してください。<br /> 
     45                入力後、一番下の「ご注文完了ページへ」ボタンをクリックしてください。</td> 
     46            </tr> 
     47            <tr><td height="20"></td></tr> 
     48            <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
     49            <input type="hidden" name="mode" value="send"> 
     50            <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->"> 
     51            <tr><td class="fs12n"><span class="red"><!--{$arrErr.convenience}--></span></td></tr> 
     52            <tr> 
     53                <td bgcolor="#cccccc"> 
     54                <!--お支払方法・お届け時間の指定・その他お問い合わせここから--> 
     55                <table width="700" border="0" cellspacing="1" cellpadding="10" summary=" "> 
     56                    <tr> 
     57                        <td width="10%" align="center" bgcolor="#f0f0f0" class="fs12">選択</td> 
     58                        <td width="90%" bgcolor="#f0f0f0" class="fs12">コンビニの種類</td> 
     59                    </tr> 
     60                    <!--{foreach key=key item=item from=$arrConv}--> 
     61                    <tr> 
     62                        <td align="center" bgcolor="#ffffff" class="fs12"><input type="radio" name="convenience" id="<!--{$key}-->" value="<!--{$key}-->" style="<!--{$arrErr.convenience|sfGetErrorColor}-->" <!--{if $smarty.post.convenience == $key}-->checked<!--{/if}-->></td> 
     63                        <td bgcolor="#ffffff" class="fs12"><label for="<!--{$key}-->"><!--{$item|escape}--></label></td> 
     64                    </tr> 
     65                    <!--{/foreach}--> 
     66                </table> 
     67                <!--お支払方法・お届け時間の指定・その他お問い合わせここまで--> 
     68                </td> 
     69            </tr> 
     70 
     71            <tr><td height="20"></td></tr> 
     72 
     73            <tr> 
     74                <td bgcolor="#cccccc"> 
     75                <!--お支払方法・お届け時間の指定・その他お問い合わせここから--> 
     76                <table width="700" border="0" cellspacing="1" cellpadding="10" summary=" "> 
     77                    <tr> 
     78                        <td width="20%" bgcolor="#f0f0f0" class="fs12n">お名前(カタカナ)<span class="red">※</span></td> 
     79                        <td width="80%" bgcolor="#ffffff" class="fs12n"><span class="red"><!--{$arrErr.order_kana01}--><!--{$arrErr.order_kana02}--></span>セイ&nbsp;<input type="text" name="order_kana01" size="15" class="box15" value="<!--{$arrForm.order_kana01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr.order_kana01|sfGetErrorColor}-->; ime-mode: active;" /> メイ&nbsp;<input type="text" name="order_kana02" size="15" class="box15" value="<!--{$arrForm.order_kana02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr.order_kana02|sfGetErrorColor}-->; ime-mode: active;" /></td> 
     80                    </tr> 
     81                    <tr> 
     82                        <td bgcolor="#f0f0f0" class="fs12n">電話番号<span class="red">※</span></td> 
     83                        <td bgcolor="#ffffff" class="fs12n"><span class="red"><!--{$arrErr.order_tel01}--><!--{$arrErr.order_tel02}--><!--{$arrErr.order_tel03}--></span><input type="text" name="order_tel01" size="6" value="<!--{$arrForm.order_tel01|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" style="<!--{$arrErr.order_tel01|sfGetErrorColor}-->; ime-mode: disabled;" />&nbsp;-&nbsp;<input type="text" name="order_tel02" size="6" value="<!--{$arrForm.order_tel02|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" style="<!--{$arrErr.order_tel02|sfGetErrorColor}-->; ime-mode: disabled;" />&nbsp;-&nbsp;<input type="text" name="order_tel03" size="6" value="<!--{$arrForm.order_tel03|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" style="<!--{$arrErr.order_tel03|sfGetErrorColor}-->; ime-mode: disabled;" /></td> 
     84                    </tr> 
     85                </table> 
     86                <!--お支払方法・お届け時間の指定・その他お問い合わせここまで--> 
     87                </td> 
     88            </tr> 
     89 
     90            <tr><td height="20"></td></tr> 
     91            <tr> 
     92                <td align="center"> 
     93                    <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onmouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/common/b_back_on.gif',back03)" onmouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/common/b_back.gif',back03)" onclick="fnModeSubmit('return', '', ''); return false;"><img src="<!--{$smarty.const.URL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="戻る" border="0" name="back03" id="back03"/></a> 
     94                    <img src="<!--{$smarty.const.URL_DIR}-->img/_.gif" width="20" height="" alt="" /> 
     95                    <input type="image" onmouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/shopping/b_ordercomp_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/shopping/b_ordercomp.gif',this)" src="<!--{$smarty.const.URL_DIR}-->img/shopping/b_ordercomp.gif" width="150" height="30" alt="ご注文完了ページへ" border="0" name="next" id="next" /> 
     96                </td> 
     97            </tr> 
     98            </form> 
     99        </table> 
     100        <!--▲MAIN ONTENTS--> 
     101        </td> 
     102    </tr> 
    85103</table> 
    86104<!--▲CONTENTS--> 
  • branches/feature-module-update/data/downloads/module/mdl_epsilon/mdl_epsilon.inc

    r15079 r16582  
    11<?php 
     2/* 
     3 * This file is part of EC-CUBE 
     4 * 
     5 * Copyright(c) 2000-2007 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 
    224/** 
    3  *  
     25 * 
    426 * @copyright   2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    527 * @version CVS: $Id: mdl_epsilon.inc 7162 2006-11-18 09:53:33Z kakinaka $ 
     
    1537//コンビニの種類 
    1638$arrConvenience = array( 
    17     11 => 'セブンイレブン' 
    18     ,21 => 'ファミリーマート' 
    19     ,31 => 'ローソン' 
    20     ,32 => 'セイコーマート' 
    21     ,33 => 'ミニストップ' 
    22     ,34 => 'デイリーヤマザキ' 
     39    11 => 'セブンイレブン' 
     40    ,21 => 'ファミリーマート' 
     41    ,31 => 'ローソン' 
     42    ,32 => 'セイコーマート' 
     43    ,33 => 'ミニストップ' 
     44    ,34 => 'デイリーヤマザキ' 
    2345); 
    2446 
    2547$arrConveni_message = array( 
    26     11 => "上記のページをプリントアウトされるか払込票番号をメモして、 
     48    11 => "上記のページをプリントアウトされるか払込票番号をメモして、 
    2749お支払い期限までに、最寄りのセブンイレブンにて代金をお支払いください。" 
    28     ,21 =>"ファミリーマート店頭にございます 
     50    ,21 =>"ファミリーマート店頭にございます 
    2951Famiポート/ファミネットにて以下の「企業コード」と「注文番号」を入力し、 
    3052申込券を印字後、お支払い期限までに代金をお支払い下さい。" 
    31     ,31 =>"<お支払い方法> 
     53    ,31 =>"<お支払い方法> 
    32541. ローソンの店内に設置してあるLoppiのトップ画面の中から、 
    3355  「インターネット受付」をお選びください。 
     
    3658 
    37593. 画面に従って「お支払い受付番号」と、ご注文いただいた際の 
    38   「電話番号」をご入力下さい。→Loppiより「申込券」が発券されます。  
     60  「電話番号」をご入力下さい。→Loppiより「申込券」が発券されます。 
    3961    ※申込券の有効時間は30分間です。お早めにレジへお持ち下さい。 
    4062 
     
    44665. 代金と引換に「領収書」をお渡しいたします。領収書は大切に保管 
    4567   してください。代金払込の証書となります。" 
    46     ,32 =>"<お支払い方法> 
     68    ,32 =>"<お支払い方法> 
    47691. セイコーマートの店内に設置してあるセイコーマートクラブステーション 
    4870   (情報端末)のトップ画面の中から、「インターネット受付」をお選び下さい。 
     
    54763.  発券された「決済サービス払込取扱票・払込票兼受領証・領収書(計3枚)」 
    5577  をお持ちの上、レジにて代金をお支払い下さい。 " 
    56     ,33 =>"お支払い期限までにミニストップにて代金をお支払い下さい。 
     78    ,33 =>"お支払い期限までにミニストップにて代金をお支払い下さい。 
    5779お支払いの際には「払込取扱票」が必要となりますので、上記URLで表示 
    5880されるページを印刷してレジまでお持ち下さい。" 
    59     ,34 =>"お支払い期限までにデイリーヤマザキ/ヤマザキデイリーストア 
     81    ,34 =>"お支払い期限までにデイリーヤマザキ/ヤマザキデイリーストア 
    6082にて代金をお支払い下さい。 
    6183お支払いの際には「払込取扱票」が必要となりますので、上記URLで表示 
     
    7294 **************************************************************************************************************/ 
    7395function sfGetXMLValue($arrVal, $tag, $att) { 
    74     $ret = ""; 
    75     foreach((array)$arrVal as $array) { 
    76         if($tag == $array['tag']) { 
    77             if(!is_array($array['attributes'])) { 
    78                 continue; 
    79             } 
    80             foreach($array['attributes'] as $key => $val) { 
    81                 if($key == $att) { 
    82                     $ret = mb_convert_encoding(urldecode($val), 'EUC-JP', 'SJIS'); 
    83                     break; 
    84                 } 
    85             }            
    86         } 
    87     } 
    88      
    89     return $ret; 
     96    $ret = ""; 
     97    foreach((array)$arrVal as $array) { 
     98        if($tag == $array['tag']) { 
     99            if(!is_array($array['attributes'])) { 
     100                continue; 
     101            } 
     102            foreach($array['attributes'] as $key => $val) { 
     103                if($key == $att) { 
     104                    $ret = mb_convert_encoding(urldecode($val), 'EUC-JP', 'SJIS'); 
     105                    break; 
     106                } 
     107            } 
     108        } 
     109    } 
     110 
     111    return $ret; 
    90112} 
    91113 
     
    97119 **************************************************************************************************************/ 
    98120function sfPostPaymentData($order_url, $arrData, $err_page = true){ 
    99     $arrVal = array(); 
    100     $response = ""; 
     121    $arrVal = array(); 
     122    $response = ""; 
    101123 
    102     // POSTデータを送信し、応答情報を取得する 
    103     $response = sfSendPostData($order_url, $arrData, array(200)); 
    104      
    105     // なにも返ってこなれば、エラー 
    106     if ($response == "") { 
    107         if ($err_page) { 
    108             // エラー画面を表示する。 
    109             $_SESSION['site']['now_page'] =""; 
    110             sfDispSiteError(FREE_ERROR_MSG, "", true, "購入処理中にエラーが発生しました。<br>この手続きは無効となりました。"); 
    111         }else{ 
    112             return "" ; 
    113         } 
    114     } 
     124    // POSTデータを送信し、応答情報を取得する 
     125    $response = sfSendPostData($order_url, $arrData, array(200)); 
    115126 
    116     // Shift-JISをUNICODEに変換する 
    117     $response = str_replace("x-sjis-cp932", "UTF-8", $response); 
    118     // XML内のエンコードもUNICODEに変換 
    119     $response = mb_convert_encoding($response, "UTF-8", "UTF-8"); 
     127    // なにも返ってこなれば、エラー 
     128    if ($response == "") { 
     129        if ($err_page) { 
     130            // エラー画面を表示する。 
     131            $_SESSION['site']['now_page'] =""; 
     132            sfDispSiteError(FREE_ERROR_MSG, "", true, "購入処理中にエラーが発生しました。<br>この手続きは無効となりました。"); 
     133        }else{ 
     134            return "" ; 
     135        } 
     136    } 
    120137 
    121     // XMLパーサを生成する。 
    122     $parser = xml_parser_create('utf-8'); 
    123      
    124     // 空白文字は読み飛ばしてXMLを読み取る 
    125     xml_parser_set_option($parser,XML_OPTION_TARGET_ENCODING,"UTF-8"); 
    126     xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1); 
    127      
    128     // 配列にXMLのデータを格納する 
    129     $err = xml_parse_into_struct($parser,$response,$arrVal,$idx); 
     138    // Shift-JISをUNICODEに変換する 
     139    $response = str_replace("x-sjis-cp932", "UTF-8", $response); 
     140    // XML内のエンコードもUNICODEに変換 
     141    $response = mb_convert_encoding($response, "UTF-8", "UTF-8"); 
    130142 
    131     // 開放する 
    132     xml_parser_free($parser); 
    133      
    134     return $arrVal; 
     143    // XMLパーサを生成する。 
     144    $parser = xml_parser_create('utf-8'); 
     145 
     146    // 空白文字は読み飛ばしてXMLを読み取る 
     147    xml_parser_set_option($parser,XML_OPTION_TARGET_ENCODING,"UTF-8"); 
     148    xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1); 
     149 
     150    // 配列にXMLのデータを格納する 
     151    $err = xml_parse_into_struct($parser,$response,$arrVal,$idx); 
     152 
     153    // 開放する 
     154    xml_parser_free($parser); 
     155 
     156    return $arrVal; 
    135157} 
    136158 
  • branches/feature-module-update/data/downloads/module/mdl_epsilon/mdl_epsilon.php

    r15532 r16582  
    11<?php 
     2/* 
     3 * This file is part of EC-CUBE 
     4 * 
     5 * Copyright(c) 2000-2007 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 
    224/** 
    3  *  
     25 * 
    426 * @copyright   2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    5  * @version CVS: $Id$ 
     27 * @version CVS: $Id:mdl_epsilon.php 15532 2007-08-31 14:39:46Z nanasess $ 
    628 * @link        http://www.lockon.co.jp/ 
    729 * 
     
    1032 
    1133$arrPayment = array( 
    12     1 => 'クレジット', 
    13     2 => 'コンビニ' 
     34    1 => 'クレジット', 
     35    2 => 'コンビニ' 
    1436); 
    1537 
    1638$arrCredit = array( 
    17     1 => 'VISA, MASTER, Diners', 
    18     2 => 'JCB, AMEX' 
     39    1 => 'VISA, MASTER, Diners', 
     40    2 => 'JCB, AMEX' 
    1941); 
    2042 
    2143//ページ管理クラス 
    2244class LC_Page { 
    23     //コンストラクタ 
    24     function LC_Page() { 
    25         //メインテンプレートの指定 
    26         $this->tpl_mainpage = MODULE_PATH . 'mdl_epsilon/mdl_epsilon.tpl'; 
    27         $this->tpl_subtitle = 'イプシロン決済モジュール'; 
    28         global $arrPayment; 
    29         $this->arrPayment = $arrPayment; 
    30         global $arrCredit; 
    31         $this->arrCredit = $arrCredit; 
    32         global $arrConvenience; 
    33         $this->arrConvenience = $arrConvenience; 
    34     } 
     45    //コンストラクタ 
     46    function LC_Page() { 
     47        //メインテンプレートの指定 
     48        $this->tpl_mainpage = MODULE_PATH . 'mdl_epsilon/mdl_epsilon.tpl'; 
     49        $this->tpl_subtitle = 'イプシロン決済モジュール'; 
     50        global $arrPayment; 
     51        $this->arrPayment = $arrPayment; 
     52        global $arrCredit; 
     53        $this->arrCredit = $arrCredit; 
     54        global $arrConvenience; 
     55        $this->arrConvenience = $arrConvenience; 
     56    } 
    3557} 
    3658$objPage = new LC_Page(); 
     
    5678switch($_POST['mode']) { 
    5779case 'edit': 
    58     // 入力エラー判定 
    59     $objPage->arrErr = lfCheckError(); 
    60  
    61     // エラーなしの場合にはデータを更新  
    62     if(count($objPage->arrErr) == 0) { 
    63         // データ更新 
    64         lfUpdPaymentDB(); 
    65          
    66         // javascript実行 
    67         $objPage->tpl_onload = 'alert("登録完了しました。\n基本情報>支払方法設定より詳細設定をしてください。"); window.close();'; 
    68     } 
    69     break; 
     80    // 入力エラー判定 
     81    $objPage->arrErr = lfCheckError(); 
     82 
     83    // エラーなしの場合にはデータを更新 
     84    if(count($objPage->arrErr) == 0) { 
     85        // データ更新 
     86        lfUpdPaymentDB(); 
     87 
     88        // javascript実行 
     89        $objPage->tpl_onload = 'alert("登録完了しました。\n基本情報>支払方法設定より詳細設定をしてください。"); window.close();'; 
     90    } 
     91    break; 
    7092case 'module_del': 
    71     // 汎用項目の存在チェック 
    72     if(sfColumnExists("dtb_payment", "memo01")){ 
    73         // データの削除フラグをたてる 
    74         $objQuery->query("UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ?", array(MDL_EPSILON_ID)); 
    75     } 
    76     break; 
     93    // 汎用項目の存在チェック 
     94    if(sfColumnExists("dtb_payment", "memo01")){ 
     95        // データの削除フラグをたてる 
     96        $objQuery->query("UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ?", array(MDL_EPSILON_ID)); 
     97    } 
     98    break; 
    7799default: 
    78     // データのロード 
    79     lfLoadData();    
    80     break; 
     100    // データのロード 
     101    lfLoadData(); 
     102    break; 
    81103} 
    82104 
     
    88110/* パラメータ情報の初期化 */ 
    89111function lfInitParam($objFormParam) { 
    90     $objFormParam->addParam("契約コード", "code", INT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    91     $objFormParam->addParam("接続先URL", "url", URL_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "URL_CHECK")); 
    92     $objFormParam->addParam("利用決済", "payment", "", "", array("EXIST_CHECK")); 
    93     $objFormParam->addParam("利用クレジット", "credit");    
    94     $objFormParam->addParam("利用コンビニ", "convenience");    
    95     return $objFormParam; 
     112    $objFormParam->addParam("契約コード", "code", INT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
     113    $objFormParam->addParam("接続先URL", "url", URL_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "URL_CHECK")); 
     114    $objFormParam->addParam("利用決済", "payment", "", "", array("EXIST_CHECK")); 
     115    $objFormParam->addParam("利用クレジット", "credit"); 
     116    $objFormParam->addParam("利用コンビニ", "convenience"); 
     117    return $objFormParam; 
    96118} 
    97119 
    98120// エラーチェックを行う 
    99121function lfCheckError(){ 
    100     global $objFormParam; 
    101      
    102     $arrErr = $objFormParam->checkError(); 
    103      
    104     // 利用クレジット、利用コンビニのエラーチェック 
    105     $arrChkPay = $_POST["payment"]; 
    106     foreach((array)$arrChkPay as $key => $val){ 
    107         // 利用クレジット 
    108         if($val == 1 and count($_POST["credit"]) <= 0){ 
    109             $arrErr["credit"] = "利用クレジットが選択されていません。<br />"; 
    110         } 
    111         // 利用コンビニ 
    112         if($val == 2 and count($_POST["convenience"]) <= 0){ 
    113             $arrErr["convenience"] = "利用コンビニが選択されていません。<br />"; 
    114         } 
    115     } 
    116  
    117     // ssl対応判定 
    118     if(!extension_loaded('openssl') and ereg( "^https://", $_POST["url"] )){ 
    119         $arrErr["url"] = "このサーバーはSSLに対応していません。<br>httpで接続してください。"; 
    120     } 
    121  
    122     // 接続チェックを行う 
    123     if(count($arrErr) == 0) $arrErr = lfChkConnect(); 
    124  
    125     return $arrErr; 
     122    global $objFormParam; 
     123 
     124    $arrErr = $objFormParam->checkError(); 
     125 
     126    // 利用クレジット、利用コンビニのエラーチェック 
     127    $arrChkPay = $_POST["payment"]; 
     128    foreach((array)$arrChkPay as $key => $val){ 
     129        // 利用クレジット 
     130        if($val == 1 and count($_POST["credit"]) <= 0){ 
     131            $arrErr["credit"] = "利用クレジットが選択されていません。<br />"; 
     132        } 
     133        // 利用コンビニ 
     134        if($val == 2 and count($_POST["convenience"]) <= 0){ 
     135            $arrErr["convenience"] = "利用コンビニが選択されていません。<br />"; 
     136        } 
     137    } 
     138 
     139    // ssl対応判定 
     140    if(!extension_loaded('openssl') and ereg( "^https://", $_POST["url"] )){ 
     141        $arrErr["url"] = "このサーバーはSSLに対応していません。<br>httpで接続してください。"; 
     142    } 
     143 
     144    // 接続チェックを行う 
     145    if(count($arrErr) == 0) $arrErr = lfChkConnect(); 
     146 
     147    return $arrErr; 
    126148} 
    127149 
    128150// 接続チェックを行う 
    129151function lfChkConnect(){ 
    130     global $objQuery; 
    131     global $objPage; 
    132      
    133     $arrRet = array(); 
    134      
    135     // メールアドレス取得 
    136     $email = $objQuery->getone("SELECT email03 FROM dtb_baseinfo"); 
    137  
    138     // 契約コード     
    139     (in_array(1, (array)$_POST["payment"])) ? $cre = "1" : $cre = "0"; 
    140     (in_array(2, (array)$_POST["payment"])) ? $con = "1" : $con = "0"; 
    141     $st_code = $cre . "0" . $con . "00-0000-00000"; 
    142      
    143     // 送信データ生成 
    144     $arrSendData = array( 
    145         'contract_code' => $_POST["code"],      // 契約コード 
    146         'user_id' => "connect_test",            // ユーザID 
    147         'user_name' => "接続テスト",         // ユーザ名 
    148         'user_mail_add' => $email,              // メールアドレス 
    149         'st_code' => $st_code,                  // 決済区分 
    150         'process_code' => '3',                  // 処理区分(固定) 
    151         'xml' => '1',                           // 応答形式(固定) 
    152     ); 
    153      
    154     // データ送信 
    155     $arrXML = sfPostPaymentData($_POST["url"], $arrSendData, false); 
    156     if($arrXML == "") { 
    157         $arrRet["url"] = "接続できませんでした。<br>"; 
    158         return $arrRet;  
    159     } 
    160      
    161     // エラーがあるかチェックする 
    162     $err_code = sfGetXMLValue($arrXML,'RESULT','ERR_CODE'); 
    163     switch ($err_code) { 
    164         case "": 
    165             break; 
    166         case "607": 
    167             $arrRet["code"] = "契約コードが違います。<br>"; 
    168             return $arrRet; 
    169         default : 
    170             $arrRet["service"] = sfGetXMLValue($arrXML,'RESULT','ERR_DETAIL'); 
    171             return $arrRet; 
    172     } 
    173  
    174     // コンビニ指定があればコンビニ分ループし、チェックを行う 
    175     if(count($_POST["convenience"]) > 0){ 
    176         foreach($_POST["convenience"] as $key => $val){ 
    177             // 送信データ生成 
    178             $arrSendData['conveni_code'] = $val;            // コンビニコード 
    179             $arrSendData['user_tel'] = "0300000000";        // ダミー電話番号 
    180             $arrSendData['user_name_kana'] = "送信テスト";   // ダミー氏名(カナ) 
    181             $arrSendData['haraikomi_mail'] = 0;             // 払込メール(送信しない) 
    182              
    183             // データ送信 
    184             $arrXML = sfPostPaymentData($_POST["url"], $arrSendData, false); 
    185             if($arrXML == "") { 
    186                 $arrRet["url"] = "接続できませんでした。<br>"; 
    187                 return $arrRet;  
    188             } 
    189              
    190             // エラーがあるかチェックする 
    191             $err_code = sfGetXMLValue($arrXML,'RESULT','ERR_CODE'); 
    192             if($err_code != ""){ 
    193                 $arrRet["service"] = sfGetXMLValue($arrXML,'RESULT','ERR_DETAIL'); 
    194                 return $arrRet; 
    195             } 
    196         } 
    197     } 
    198      
    199     return $arrRet;  
     152    global $objQuery; 
     153    global $objPage; 
     154 
     155    $arrRet = array(); 
     156 
     157    // メールアドレス取得 
     158    $email = $objQuery->getone("SELECT email03 FROM dtb_baseinfo"); 
     159 
     160    // 契約コード 
     161    (in_array(1, (array)$_POST["payment"])) ? $cre = "1" : $cre = "0"; 
     162    (in_array(2, (array)$_POST["payment"])) ? $con = "1" : $con = "0"; 
     163    $st_code = $cre . "0" . $con . "00-0000-00000"; 
     164 
     165    // 送信データ生成 
     166    $arrSendData = array( 
     167        'contract_code' => $_POST["code"],      // 契約コード 
     168        'user_id' => "connect_test",            // ユーザID 
     169        'user_name' => "接続テスト",         // ユーザ名 
     170        'user_mail_add' => $email,              // メールアドレス 
     171        'st_code' => $st_code,                  // 決済区分 
     172        'process_code' => '3',                  // 処理区分(固定) 
     173        'xml' => '1',                           // 応答形式(固定) 
     174    ); 
     175 
     176    // データ送信 
     177    $arrXML = sfPostPaymentData($_POST["url"], $arrSendData, false); 
     178    if($arrXML == "") { 
     179        $arrRet["url"] = "接続できませんでした。<br>"; 
     180        return $arrRet; 
     181    } 
     182 
     183    // エラーがあるかチェックする 
     184    $err_code = sfGetXMLValue($arrXML,'RESULT','ERR_CODE'); 
     185    switch ($err_code) { 
     186        case "": 
     187            break; 
     188        case "607": 
     189            $arrRet["code"] = "契約コードが違います。<br>"; 
     190            return $arrRet; 
     191        default : 
     192            $arrRet["service"] = sfGetXMLValue($arrXML,'RESULT','ERR_DETAIL'); 
     193            return $arrRet; 
     194    } 
     195 
     196    // コンビニ指定があればコンビニ分ループし、チェックを行う 
     197    if(count($_POST["convenience"]) > 0){ 
     198        foreach($_POST["convenience"] as $key => $val){ 
     199            // 送信データ生成 
     200            $arrSendData['conveni_code'] = $val;            // コンビニコード 
     201            $arrSendData['user_tel'] = "0300000000";        // ダミー電話番号 
     202            $arrSendData['user_name_kana'] = "送信テスト";   // ダミー氏名(カナ) 
     203            $arrSendData['haraikomi_mail'] = 0;             // 払込メール(送信しない) 
     204 
     205            // データ送信 
     206            $arrXML = sfPostPaymentData($_POST["url"], $arrSendData, false); 
     207            if($arrXML == "") { 
     208                $arrRet["url"] = "接続できませんでした。<br>"; 
     209                return $arrRet; 
     210            } 
     211 
     212            // エラーがあるかチェックする 
     213            $err_code = sfGetXMLValue($arrXML,'RESULT','ERR_CODE'); 
     214            if($err_code != ""){ 
     215                $arrRet["service"] = sfGetXMLValue($arrXML,'RESULT','ERR_DETAIL'); 
     216                return $arrRet; 
     217            } 
     218        } 
     219    } 
     220 
     221    return $arrRet; 
    200222} 
    201223 
    202224// 登録データを読み込む 
    203225function lfLoadData(){ 
    204     global $objFormParam; 
    205      
    206     //データを取得 
    207     $arrRet = lfGetPaymentDB(" AND del_flg = '0'"); 
    208      
    209     // 値をセット 
    210     $objFormParam->setParam($arrRet[0]); 
    211  
    212     // 画面表示用にデータを変換 
    213     $arrDisp = array(); 
    214     foreach($arrRet as $key => $val){ 
    215         // 利用決済を表示用に変換 
    216         $arrDisp["payment"][$key] = $val["payment"]; 
    217          
    218         // クレジットの決済区分を取得 
    219         if($val["payment"] == 1) $credit = $val["payment_code"]; 
    220          
    221         // コンビニ 
    222         if($val["payment"] == 2) $arrDisp["convenience"] = $val["convenience"]; 
    223     } 
    224     $objFormParam->setParam($arrDisp); 
    225     $objFormParam->splitParamCheckBoxes("convenience"); 
    226      
    227     // クレジット 
    228     if(substr($credit, 0, 1)) $arrCredit["credit"][] = 1; 
    229     if(substr($credit, 1, 1)) $arrCredit["credit"][] = 2; 
    230     $objFormParam->setParam($arrCredit); 
     226    global $objFormParam; 
     227 
     228    //データを取得 
     229    $arrRet = lfGetPaymentDB(" AND del_flg = '0'"); 
     230 
     231    // 値をセット 
     232    $objFormParam->setParam($arrRet[0]); 
     233 
     234    // 画面表示用にデータを変換 
     235    $arrDisp = array(); 
     236    foreach($arrRet as $key => $val){ 
     237        // 利用決済を表示用に変換 
     238        $arrDisp["payment"][$key] = $val["payment"]; 
     239 
     240        // クレジットの決済区分を取得 
     241        if($val["payment"] == 1) $credit = $val["payment_code"]; 
     242 
     243        // コンビニ 
     244        if($val["payment"] == 2) $arrDisp["convenience"] = $val["convenience"]; 
     245    } 
     246    $objFormParam->setParam($arrDisp); 
     247    $objFormParam->splitParamCheckBoxes("convenience"); 
     248 
     249    // クレジット 
     250    if(substr($credit, 0, 1)) $arrCredit["credit"][] = 1; 
     251    if(substr($credit, 1, 1)) $arrCredit["credit"][] = 2; 
     252    $objFormParam->setParam($arrCredit); 
    231253} 
    232254 
    233255// DBからデータを取得する 
    234256function lfGetPaymentDB($where = "", $arrWhereVal = array()){ 
    235     global $objQuery; 
    236      
    237     $arrVal = array(MDL_EPSILON_ID); 
    238     $arrVal = array_merge($arrVal, $arrWhereVal); 
    239      
    240     $arrRet = array(); 
    241     $sql = "SELECT  
    242                 module_id,  
    243                 memo01 as code,  
    244                 memo02 as url,  
    245                 memo03 as payment, 
    246                 memo04 as payment_code,  
    247                 memo05 as convenience 
    248             FROM dtb_payment WHERE module_id = ? " . $where; 
    249     $arrRet = $objQuery->getall($sql, $arrVal); 
    250  
    251     return $arrRet; 
     257    global $objQuery; 
     258 
     259    $arrVal = array(MDL_EPSILON_ID); 
     260    $arrVal = array_merge($arrVal, $arrWhereVal); 
     261 
     262    $arrRet = array(); 
     263    $sql = "SELECT 
     264                module_id, 
     265                memo01 as code, 
     266                memo02 as url, 
     267                memo03 as payment, 
     268                memo04 as payment_code, 
     269                memo05 as convenience 
     270            FROM dtb_payment WHERE module_id = ? " . $where; 
     271    $arrRet = $objQuery->getall($sql, $arrVal); 
     272 
     273    return $arrRet; 
    252274} 
    253275 
     
    255277// データの更新処理 
    256278function lfUpdPaymentDB(){ 
    257     global $objQuery; 
    258     global $objSess; 
    259      
    260     // 利用コンビニにチェックが入っている場合には、ハイフン区切りに編集する 
    261     $convCnt = count($_POST["convenience"]); 
    262     if($convCnt > 0){ 
    263         $convenience = $_POST["convenience"][0]; 
    264         for($i = 1 ; $i < $convCnt ; $i++){ 
    265             $convenience .= "-" . $_POST["convenience"][$i]; 
    266         } 
    267     } 
    268          
    269     // del_flgを削除にしておく 
    270     $del_sql = "UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ? "; 
    271     $arrDel = array(MDL_EPSILON_ID); 
    272     $objQuery->query($del_sql, $arrDel); 
    273      
    274     // データ登録 
    275     foreach($_POST["payment"] as $key => $val){ 
    276         // ランクの最大値を取得する 
    277         $max_rank = $objQuery->getone("SELECT max(rank) FROM dtb_payment"); 
    278  
    279         // 支払方法データを取得            
    280         $arrPaymentData = lfGetPaymentDB("AND memo03 = ?", array($val)); 
    281          
    282         // クレジットにチェックが入っていればクレジットを登録する 
    283         if($val == 1){ 
    284             (in_array(1, $_POST["credit"])) ? $visa = "1" : $visa = "0"; 
    285             (in_array(2, $_POST["credit"])) ? $jcb = "1" : $jcb = "0"; 
    286             $arrData = array(            
    287                 "payment_method" => "Epsilonクレジット" 
    288                 ,"fix" => 3 
    289                 ,"creator_id" => $objSess->member_id 
    290                 ,"create_date" => "now()" 
    291                 ,"update_date" => "now()" 
    292                 ,"upper_rule" => 500000 
    293                 ,"module_id" => MDL_EPSILON_ID 
    294                 ,"module_path" => MODULE_PATH . "mdl_epsilon/card.php" 
    295                 ,"memo01" => $_POST["code"] 
    296                 ,"memo02" => $_POST["url"] 
    297                 ,"memo03" => $val 
    298                 ,"memo04" => $visa . $jcb . "000-0000-00000" 
    299                 ,"del_flg" => "0" 
    300                 ,"charge_flg" => "2" 
    301                 ,"upper_rule_max" => CHARGE_MAX 
    302                  
    303             ); 
    304         } 
    305          
    306         // コンビニにチェックが入っていればコンビニを登録する 
    307         if($val == 2){ 
    308              
    309             // セブンイレブンのみ選択した場合には利用上限を30万にする。 
    310             if(count($_POST["convenience"]) == 1 and $_POST["convenience"][0] == 11) { 
    311                 $upper_rule_max = SEVEN_CHARGE_MAX; 
    312                 ($arrPaymentData["upper_rule"] > $upper_rule_max or $arrPaymentData["upper_rule"] == "") ? $upper_rule = $upper_rule_max : $upper_rule = $arrPaymentData["upper_rule"]; 
    313             }else{ 
    314                 $upper_rule_max = CHARGE_MAX; 
    315                 $upper_rule = $upper_rule_max; 
    316             } 
    317              
    318             $arrData = array( 
    319                 "payment_method" => "Epsilonコンビニ" 
    320                 ,"fix" => 3 
    321                 ,"creator_id" => $objSess->member_id 
    322                 ,"create_date" => "now()" 
    323                 ,"update_date" => "now()" 
    324                 ,"upper_rule" => $upper_rule 
    325                 ,"module_id" => MDL_EPSILON_ID 
    326                 ,"module_path" => MODULE_PATH . "mdl_epsilon/convenience.php" 
    327                 ,"memo01" => $_POST["code"] 
    328                 ,"memo02" => $_POST["url"] 
    329                 ,"memo03" => $val 
    330                 ,"memo04" => "00100-0000-00000" 
    331                 ,"memo05" => $convenience 
    332                 ,"del_flg" => "0" 
    333                 ,"charge_flg" => "1" 
    334                 ,"upper_rule_max" => $upper_rule_max 
    335             ); 
    336         } 
    337  
    338         // データが存在していればUPDATE、無ければINSERT 
    339         if(count($arrPaymentData) > 0){ 
    340             $objQuery->update("dtb_payment", $arrData, " module_id = '" . MDL_EPSILON_ID . "' AND memo03 = '" . $val ."'"); 
    341         }else{ 
    342             $arrData["rank"] = $max_rank + 1; 
    343             $objQuery->insert("dtb_payment", $arrData); 
    344         } 
    345     } 
     279    global $objQuery; 
     280    global $objSess; 
     281 
     282    // 利用コンビニにチェックが入っている場合には、ハイフン区切りに編集する 
     283    $convCnt = count($_POST["convenience"]); 
     284    if($convCnt > 0){ 
     285        $convenience = $_POST["convenience"][0]; 
     286        for($i = 1 ; $i < $convCnt ; $i++){ 
     287            $convenience .= "-" . $_POST["convenience"][$i]; 
     288        } 
     289    } 
     290 
     291    // del_flgを削除にしておく 
     292    $del_sql = "UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ? "; 
     293    $arrDel = array(MDL_EPSILON_ID); 
     294    $objQuery->query($del_sql, $arrDel); 
     295 
     296    // データ登録 
     297    foreach($_POST["payment"] as $key => $val){ 
     298        // ランクの最大値を取得する 
     299        $max_rank = $objQuery->getone("SELECT max(rank) FROM dtb_payment"); 
     300 
     301        // 支払方法データを取得 
     302        $arrPaymentData = lfGetPaymentDB("AND memo03 = ?", array($val)); 
     303 
     304        // クレジットにチェックが入っていればクレジットを登録する 
     305        if($val == 1){ 
     306            (in_array(1, $_POST["credit"])) ? $visa = "1" : $visa = "0"; 
     307            (in_array(2, $_POST["credit"])) ? $jcb = "1" : $jcb = "0"; 
     308            $arrData = array( 
     309                "payment_method" => "Epsilonクレジット" 
     310                ,"fix" => 3 
     311                ,"creator_id" => $objSess->member_id 
     312                ,"create_date" => "now()" 
     313                ,"update_date" => "now()" 
     314                ,"upper_rule" => 500000 
     315                ,"module_id" => MDL_EPSILON_ID 
     316                ,"module_path" => MODULE_PATH . "mdl_epsilon/card.php" 
     317                ,"memo01" => $_POST["code"] 
     318                ,"memo02" => $_POST["url"] 
     319                ,"memo03" => $val 
     320                ,"memo04" => $visa . $jcb . "000-0000-00000" 
     321                ,"del_flg" => "0" 
     322                ,"charge_flg" => "2" 
     323                ,"upper_rule_max" => CHARGE_MAX 
     324 
     325            ); 
     326        } 
     327 
     328        // コンビニにチェックが入っていればコンビニを登録する 
     329        if($val == 2){ 
     330 
     331            // セブンイレブンのみ選択した場合には利用上限を30万にする。 
     332            if(count($_POST["convenience"]) == 1 and $_POST["convenience"][0] == 11) { 
     333                $upper_rule_max = SEVEN_CHARGE_MAX; 
     334                ($arrPaymentData["upper_rule"] > $upper_rule_max or $arrPaymentData["upper_rule"] == "") ? $upper_rule = $upper_rule_max : $upper_rule = $arrPaymentData["upper_rule"]; 
     335            }else{ 
     336                $upper_rule_max = CHARGE_MAX; 
     337                $upper_rule = $upper_rule_max; 
     338            } 
     339 
     340            $arrData = array( 
     341                "payment_method" => "Epsilonコンビニ" 
     342                ,"fix" => 3 
     343                ,"creator_id" => $objSess->member_id 
     344                ,"create_date" => "now()" 
     345                ,"update_date" => "now()" 
     346                ,"upper_rule" => $upper_rule 
     347                ,"module_id" => MDL_EPSILON_ID 
     348                ,"module_path" => MODULE_PATH . "mdl_epsilon/convenience.php" 
     349                ,"memo01" => $_POST["code"] 
     350                ,"memo02" => $_POST["url"] 
     351                ,"memo03" => $val 
     352                ,"memo04" => "00100-0000-00000" 
     353                ,"memo05" => $convenience 
     354                ,"del_flg" => "0" 
     355                ,"charge_flg" => "1" 
     356                ,"upper_rule_max" => $upper_rule_max 
     357            ); 
     358        } 
     359 
     360        // データが存在していればUPDATE、無ければINSERT 
     361        if(count($arrPaymentData) > 0){ 
     362            $objQuery->update("dtb_payment", $arrData, " module_id = '" . MDL_EPSILON_ID . "' AND memo03 = '" . $val ."'"); 
     363        }else{ 
     364            $arrData["rank"] = $max_rank + 1; 
     365            $objQuery->insert("dtb_payment", $arrData); 
     366        } 
     367    } 
    346368} 
    347369 
    348370// コンビニ入金確認処理 
    349371function lfEpsilonCheck(){ 
    350     global $objQuery; 
    351      
    352     // trans_code を指定されていて且つ、入金済みの場合 
    353     if($_POST["trans_code"] != "" and $_POST["paid"] == 1 and $_POST["order_number"] != ""){ 
    354         // ステータスを入金済みに変更する 
    355         $sql = "UPDATE dtb_order SET status = 6, update_date = now() WHERE order_id = ? AND memo04 = ? "; 
    356         $objQuery->query($sql, array($_POST["order_number"], $_POST["trans_code"])); 
    357          
    358         // POSTの内容を全てログ保存 
    359         $log_path = DATA_PATH . "logs/epsilon.log"; 
    360         gfPrintLog("epsilon conveni start---------------------------------------------------------", $log_path); 
    361         foreach($_POST as $key => $val){ 
    362             gfPrintLog( "\t" . $key . " => " . $val, $log_path); 
    363         } 
    364         gfPrintLog("epsilon conveni end-----------------------------------------------------------", $log_path); 
    365          
    366         //応答結果を表示 
    367         echo "1"; 
    368     } 
     372    global $objQuery; 
     373 
     374    // trans_code を指定されていて且つ、入金済みの場合 
     375    if($_POST["trans_code"] != "" and $_POST["paid"] == 1 and $_POST["order_number"] != ""){ 
     376        // ステータスを入金済みに変更する 
     377        $sql = "UPDATE dtb_order SET status = 6, update_date = now() WHERE order_id = ? AND memo04 = ? "; 
     378        $objQuery->query($sql, array($_POST["order_number"], $_POST["trans_code"])); 
     379 
     380        // POSTの内容を全てログ保存 
     381        $log_path = DATA_PATH . "logs/epsilon.log"; 
     382        gfPrintLog("epsilon conveni start---------------------------------------------------------", $log_path); 
     383        foreach($_POST as $key => $val){ 
     384            gfPrintLog( "\t" . $key . " => " . $val, $log_path); 
     385        } 
     386        gfPrintLog("epsilon conveni end-----------------------------------------------------------", $log_path); 
     387 
     388        //応答結果を表示 
     389        echo "1"; 
     390    } 
    369391} 
    370392 
  • branches/feature-module-update/data/downloads/module/mdl_epsilon/mdl_epsilon.tpl

    r15079 r16582  
    11<!--{* 
    22/* 
     3 * This file is part of EC-CUBE 
     4 * 
    35 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    46 * 
    57 * 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. 
    622 */ 
    723*}--> 
     
    2743 
    2844function lfnCheckPayment(){ 
    29     var fm = document.form1; 
    30     var val = 0; 
    31      
    32     payment = new Array('payment[]'); 
    33  
    34     for(pi = 0; pi < payment.length; pi++) { 
    35      
    36         list = new Array('credit[]'); 
    37         if(fm[payment[pi]][0].checked){ 
    38             fnChangeDisabled(list, false); 
    39         }else{ 
    40             fnChangeDisabled(list); 
    41         } 
    42  
    43         list = new Array('convenience[]'); 
    44         if(fm[payment[pi]][1].checked){ 
    45             fnChangeDisabled(list, false); 
    46         }else{ 
    47             fnChangeDisabled(list); 
    48         } 
    49     } 
     45    var fm = document.form1; 
     46    var val = 0; 
     47 
     48    payment = new Array('payment[]'); 
     49 
     50    for(pi = 0; pi < payment.length; pi++) { 
     51 
     52        list = new Array('credit[]'); 
     53        if(fm[payment[pi]][0].checked){ 
     54            fnChangeDisabled(list, false); 
     55        }else{ 
     56            fnChangeDisabled(list); 
     57        } 
     58 
     59        list = new Array('convenience[]'); 
     60        if(fm[payment[pi]][1].checked){ 
     61            fnChangeDisabled(list, false); 
     62        }else{ 
     63            fnChangeDisabled(list); 
     64        } 
     65    } 
    5066} 
    5167 
    5268function fnChangeDisabled(list, disable) { 
    53     len = list.length; 
    54  
    55     if(disable == null) { disable = true; } 
    56      
    57     for(i = 0; i < len; i++) { 
    58         if(document.form1[list[i]]) { 
    59             // ラジオボタン、チェックボックス等の配列に対応 
    60             max = document.form1[list[i]].length 
    61             if(max > 1) { 
    62                 for(j = 0; j < max; j++) { 
    63                     // 有効、無効の切り替え 
    64                     document.form1[list[i]][j].disabled = disable; 
    65                 } 
    66             } else { 
    67                 // 有効、無効の切り替え 
    68                 document.form1[list[i]].disabled = disable; 
    69             } 
    70         } 
    71     } 
     69    len = list.length; 
     70 
     71    if(disable == null) { disable = true; } 
     72 
     73    for(i = 0; i < len; i++) { 
     74        if(document.form1[list[i]]) { 
     75            // ラジオボタン、チェックボックス等の配列に対応 
     76            max = document.form1[list[i]].length 
     77            if(max > 1) { 
     78                for(j = 0; j < max; j++) { 
     79                    // 有効、無効の切り替え 
     80                    document.form1[list[i]][j].disabled = disable; 
     81                } 
     82            } else { 
     83                // 有効、無効の切り替え 
     84                document.form1[list[i]].disabled = disable; 
     85            } 
     86        } 
     87    } 
    7288} 
    7389 
    7490function win_open(URL){ 
    75     var WIN; 
    76     WIN = window.open(URL); 
    77     WIN.focus(); 
     91    var WIN; 
     92    WIN = window.open(URL); 
     93    WIN.focus(); 
    7894} 
    7995//--> 
     
    91107<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> 
    92108<input type="hidden" name="mode" value="edit"> 
    93     <tr valign="top"> 
    94         <td class="mainbg"> 
    95             <!--▼登録テーブルここから--> 
    96             <table width="500" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    97                 <!--メインエリア--> 
    98                 <tr> 
    99                     <td align="center"> 
    100                         <table width="470" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    101                             <tr><td height="14"></td></tr> 
    102                             <tr> 
    103                                 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="470" height="14" alt=""></td> 
    104                             </tr> 
    105                             <tr> 
    106                                 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    107                                 <td bgcolor="#cccccc" > 
    108                                     <table width="442" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    109                                         <tr> 
    110                                             <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="442" height="7" alt=""></td> 
    111                                         </tr> 
    112                                         <tr> 
    113                                             <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 
    114                                             <td bgcolor="#636469" width="402" class="fs14n"><span class="white"><!--コンテンツタイトル--><!--{$tpl_subtitle}--></span></td> 
    115                                             <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 
    116                                         </tr> 
    117                                         <tr> 
    118                                             <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="442" height="7" alt=""></td> 
    119                                         </tr> 
    120                                         <tr> 
    121                                             <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td> 
    122                                         </tr> 
    123                                     </table> 
    124  
    125                                     <table width="442" border="0" cellspacing="1" cellpadding="8" summary=" "> 
    126                                         <tr class="fs12n"> 
    127                                             <td bgcolor="#ffffff"> 
    128                                                 イプシロン決済モジュールをご利用頂く為には、ユーザ様ご自身で 
    129                                                 イプシロン株式会社様とご契約を行っていただく必要があります。 <br/> 
    130                                                 お申し込みにつきましては、下記のページから、お申し込みを行って下さい。<br/><br/> 
    131                                                 <a href="#" onClick="win_open('http://www.rapidsite.jp/product/support/shop/epsilon.html')" > >> イプシロン決済システムについて</a><br/> 
    132                                                 <a href="#" onClick="win_open('http://wiki.ec-cube.net/')" > >> イプシロン決済モジュール設定マニュアル</a> 
    133                                             </td> 
    134                                         </tr> 
    135                                     </table> 
    136                                     <table width="442" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    137                                         <tr><td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td></tr> 
    138                                     </table> 
    139                                      
    140                                     <table width="442" border="0" cellspacing="1" cellpadding="8" summary=" "> 
    141                                         <tr class="fs12n"> 
    142                                             <td width="" bgcolor="#f3f3f3">契約コード<span class="red">※</span></td> 
    143                                             <td width="337" bgcolor="#ffffff"> 
    144                                             <!--{assign var=key value="code"}--> 
    145                                             <span class="red12"><!--{$arrErr[$key]}--></span> 
    146                                             <input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$smarty.const.INT_LEN}-->"> 
    147                                             </td> 
    148                                         </tr> 
    149                                         <tr class="fs12n"> 
    150                                             <td width="" bgcolor="#f3f3f3">接続先URL<span class="red">※</span></td> 
    151                                             <td width="337" bgcolor="#ffffff"> 
    152                                             <!--{assign var=key value="url"}--> 
    153                                             <span class="red12"><!--{$arrErr[$key]}--></span> 
    154                                             <input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box40" maxlength="<!--{$smarty.const.URL_LEN}-->"> 
    155                                             </td> 
    156                                         </tr> 
    157                                         <tr class="fs12n"> 
    158                                             <td width="90" bgcolor="#f3f3f3">利用決済<span class="red">※</span></td> 
    159                                             <td width="337" bgcolor="#ffffff"> 
    160                                             <!--{assign var=key value="payment"}--> 
    161                                             <span class="red12"><!--{$arrErr[$key]}--></span> 
    162                                             <!--{html_checkboxes_ex name="$key" options=$arrPayment selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor onclick="lfnCheckPayment();"}--> 
    163                                             </td> 
    164                                         </tr> 
    165                                         <tr class="fs12n"> 
    166                                             <td width="90" bgcolor="#f3f3f3">利用クレジット</td> 
    167                                             <td width="337" bgcolor="#ffffff"> 
    168                                             <!--{assign var=key value="credit"}--> 
    169                                             <span class="red12"><!--{$arrErr[$key]}--></span> 
    170                                             <!--{html_checkboxes_ex name="$key" options=$arrCredit selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor}--> 
    171                                             </td> 
    172                                         </tr> 
    173                                         <tr class="fs12n"> 
    174                                             <td width="90" bgcolor="#f3f3f3">利用コンビニ</td> 
    175                                             <td width="337" bgcolor="#ffffff"> 
    176                                             <!--{assign var=key value="convenience"}--> 
    177                                             <span class="red12"><!--{$arrErr[$key]}--></span> 
    178                                             <!--{html_checkboxes_ex name="$key" options=$arrConvenience selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor}--> 
    179                                             </td> 
    180                                         </tr> 
    181                                         <!--{assign var=key value="service"}--> 
    182                                         <!--{if $arrErr[$key] != ""}--> 
    183                                         <tr class="fs12n"> 
    184                                             <td bgcolor="#ffffff" colspan=2> 
    185                                             <span class="red12"><!--{$arrErr[$key]}--></span> 
    186                                             </td> 
    187                                         </tr> 
    188                                         <!--{/if}--> 
    189                                     </table> 
    190  
    191                                     <table width="442" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    192                                         <tr> 
    193                                             <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 
    194                                             <td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="440" height="7" alt=""></td> 
    195                                             <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 
    196                                         </tr> 
    197                                         <tr> 
    198                                             <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 
    199                                             <td bgcolor="#e9e7de" align="center"> 
    200                                             <table border="0" cellspacing="0" cellpadding="0" summary=" "> 
    201                                                 <tr> 
    202                                                     <td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0" name="subm" onClick="document.body.style.cursor = 'wait';"></td> 
    203                                                 </tr> 
    204                                             </table> 
    205                                             </td> 
    206                                             <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 
    207                                         </tr> 
    208                                         <tr> 
    209                                             <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="442" height="8" alt=""></td> 
    210                                         </tr> 
    211                                     </table> 
    212                                 </td> 
    213                                 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
    214                             </tr> 
    215                             <tr> 
    216                                 <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="470" height="14" alt=""></td> 
    217                             </tr> 
    218                             <tr><td height="30"></td></tr> 
    219                         </table> 
    220                     </td> 
    221                 </tr> 
    222                 <!--メインエリア--> 
    223             </table> 
    224             <!--▲登録テーブルここまで--> 
    225         </td> 
    226     </tr> 
     109    <tr valign="top"> 
     110        <td class="mainbg"> 
     111            <!--▼登録テーブルここから--> 
     112            <table width="500" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     113                <!--メインエリア--> 
     114                <tr> 
     115                    <td align="center"> 
     116                        <table width="470" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     117                            <tr><td height="14"></td></tr> 
     118                            <tr> 
     119                                <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="470" height="14" alt=""></td> 
     120                            </tr> 
     121                            <tr> 
     122                                <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
     123                                <td bgcolor="#cccccc" > 
     124                                    <table width="442" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     125                                        <tr> 
     126                                            <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="442" height="7" alt=""></td> 
     127                                        </tr> 
     128                                        <tr> 
     129                                            <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 
     130                                            <td bgcolor="#636469" width="402" class="fs14n"><span class="white"><!--コンテンツタイトル--><!--{$tpl_subtitle}--></span></td> 
     131                                            <td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 
     132                                        </tr> 
     133                                        <tr> 
     134                                            <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="442" height="7" alt=""></td> 
     135                                        </tr> 
     136                                        <tr> 
     137                                            <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td> 
     138                                        </tr> 
     139                                    </table> 
     140 
     141                                    <table width="442" border="0" cellspacing="1" cellpadding="8" summary=" "> 
     142                                        <tr class="fs12n"> 
     143                                            <td bgcolor="#ffffff"> 
     144                                                イプシロン決済モジュールをご利用頂く為には、ユーザ様ご自身で 
     145                                                イプシロン株式会社様とご契約を行っていただく必要があります。 <br/> 
     146                                                お申し込みにつきましては、下記のページから、お申し込みを行って下さい。<br/><br/> 
     147                                                <a href="#" onClick="win_open('http://www.rapidsite.jp/product/support/shop/epsilon.html')" > >> イプシロン決済システムについて</a><br/> 
     148                                                <a href="#" onClick="win_open('http://wiki.ec-cube.net/')" > >> イプシロン決済モジュール設定マニュアル</a> 
     149                                            </td> 
     150                                        </tr> 
     151                                    </table> 
     152                                    <table width="442" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     153                                        <tr><td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td></tr> 
     154                                    </table> 
     155 
     156                                    <table width="442" border="0" cellspacing="1" cellpadding="8" summary=" "> 
     157                                        <tr class="fs12n"> 
     158                                            <td width="" bgcolor="#f3f3f3">契約コード<span class="red">※</span></td> 
     159                                            <td width="337" bgcolor="#ffffff"> 
     160                                            <!--{assign var=key value="code"}--> 
     161                                            <span class="red12"><!--{$arrErr[$key]}--></span> 
     162                                            <input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$smarty.const.INT_LEN}-->"> 
     163                                            </td> 
     164                                        </tr> 
     165                                        <tr class="fs12n"> 
     166                                            <td width="" bgcolor="#f3f3f3">接続先URL<span class="red">※</span></td> 
     167                                            <td width="337" bgcolor="#ffffff"> 
     168                                            <!--{assign var=key value="url"}--> 
     169                                            <span class="red12"><!--{$arrErr[$key]}--></span> 
     170                                            <input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box40" maxlength="<!--{$smarty.const.URL_LEN}-->"> 
     171                                            </td> 
     172                                        </tr> 
     173                                        <tr class="fs12n"> 
     174                                            <td width="90" bgcolor="#f3f3f3">利用決済<span class="red">※</span></td> 
     175                                            <td width="337" bgcolor="#ffffff"> 
     176                                            <!--{assign var=key value="payment"}--> 
     177                                            <span class="red12"><!--{$arrErr[$key]}--></span> 
     178                                            <!--{html_checkboxes_ex name="$key" options=$arrPayment selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor onclick="lfnCheckPayment();"}--> 
     179                                            </td> 
     180                                        </tr> 
     181                                        <tr class="fs12n"> 
     182                                            <td width="90" bgcolor="#f3f3f3">利用クレジット</td> 
     183                                            <td width="337" bgcolor="#ffffff"> 
     184                                            <!--{assign var=key value="credit"}--> 
     185                                            <span class="red12"><!--{$arrErr[$key]}--></span> 
     186                                            <!--{html_checkboxes_ex name="$key" options=$arrCredit selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor}--> 
     187                                            </td> 
     188                                        </tr> 
     189                                        <tr class="fs12n"> 
     190                                            <td width="90" bgcolor="#f3f3f3">利用コンビニ</td> 
     191                                            <td width="337" bgcolor="#ffffff"> 
     192                                            <!--{assign var=key value="convenience"}--> 
     193                                            <span class="red12"><!--{$arrErr[$key]}--></span> 
     194                                            <!--{html_checkboxes_ex name="$key" options=$arrConvenience selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor}--> 
     195                                            </td> 
     196                                        </tr> 
     197                                        <!--{assign var=key value="service"}--> 
     198                                        <!--{if $arrErr[$key] != ""}--> 
     199                                        <tr class="fs12n"> 
     200                                            <td bgcolor="#ffffff" colspan=2> 
     201                                            <span class="red12"><!--{$arrErr[$key]}--></span> 
     202                                            </td> 
     203                                        </tr> 
     204                                        <!--{/if}--> 
     205                                    </table> 
     206 
     207                                    <table width="442" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     208                                        <tr> 
     209                                            <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 
     210                                            <td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="440" height="7" alt=""></td> 
     211                                            <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> 
     212                                        </tr> 
     213                                        <tr> 
     214                                            <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 
     215                                            <td bgcolor="#e9e7de" align="center"> 
     216                                            <table border="0" cellspacing="0" cellpadding="0" summary=" "> 
     217                                                <tr> 
     218                                                    <td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0" name="subm" onClick="document.body.style.cursor = 'wait';"></td> 
     219                                                </tr> 
     220                                            </table> 
     221                                            </td> 
     222                                            <td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 
     223                                        </tr> 
     224                                        <tr> 
     225                                            <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="442" height="8" alt=""></td> 
     226                                        </tr> 
     227                                    </table> 
     228                                </td> 
     229                                <td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 
     230                            </tr> 
     231                            <tr> 
     232                                <td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="470" height="14" alt=""></td> 
     233                            </tr> 
     234                            <tr><td height="30"></td></tr> 
     235                        </table> 
     236                    </td> 
     237                </tr> 
     238                <!--メインエリア--> 
     239            </table> 
     240            <!--▲登録テーブルここまで--> 
     241        </td> 
     242    </tr> 
    227243</form> 
    228244</table> 
  • branches/feature-module-update/data/downloads/module2/mdl_speedmail/LC_Page_Mdl_SpeedMail.php

    r16339 r16582  
    11<?php 
    22/* 
     3 * This file is part of EC-CUBE 
     4 * 
    35 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    46 * 
    57 * 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. 
    622 */ 
    723 
     
    2137     var $arrErr; 
    2238     var $objQuery; 
    23       
    24     /** 
     39 
     40    /** 
    2541     * Page を初期化する. 
    2642     * 
     
    2844     */ 
    2945    function init() { 
    30         parent::init(); 
     46        parent::init(); 
    3147        $this->tpl_mainpage = MODULE2_PATH . THIS_MODULE_NAME . "/config.tpl"; 
    3248        $this->objFormParam = new SC_FormParam(); 
    33         $this->intiParam();  
    34         $this->arrErr = array(); 
    35         $this->objQuery = new SC_Query(); 
    36         $this->loadData(); 
     49        $this->intiParam(); 
     50           $this->arrErr = array(); 
     51           $this->objQuery = new SC_Query(); 
     52           $this->loadData(); 
    3753    } 
    3854 
     
    4359     */ 
    4460    function process() { 
    45         $objView = new SC_AdminView(); 
     61           $objView = new SC_AdminView(); 
    4662        $objSess = new SC_Session(); 
    47                 
     63 
    4864        // 認証可否の判定 
    4965        //SC_Utils_Ex::sfIsSuccess($objSess); 
    5066        $this->objFormParam->setParam($_POST); 
    51          
     67 
    5268        switch($_POST['mode']) { 
    53             case 'regist': 
    54                 // エラーチェック 
    55                 $this->arrErr = $this->checkError(); 
    56                 if(count($objPage->arrErr) <= 0) { 
    57                     $this->registData();          
    58                 } 
    59             break; 
    60         }         
     69            case 'regist': 
     70                // エラーチェック 
     71                $this->arrErr = $this->checkError(); 
     72                if(count($objPage->arrErr) <= 0) { 
     73                    $this->registData(); 
     74                } 
     75            break; 
     76        } 
    6177        $this->arrForm = $this->objFormParam->getFormParamList(); 
    6278        $objView->assignobj($this); 
    6379        $objView->display($this->tpl_mainpage); 
    6480    } 
    65      
     81 
    6682    /** 
    6783     * デストラクタ. 
     
    7288        parent::destroy(); 
    7389    } 
    74      
    75     /** 
    76     * 値の初期化 
    77      *  
    78     * @return void なし 
    79     */ 
    80     function intiParam() { 
     90 
     91    /** 
     92    * 値の初期化 
     93     * 
     94    * @return void なし 
     95    */ 
     96    function intiParam() { 
    8197        $this->objFormParam->addParam("IPアドレス1", "ip01", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    8298        $this->objFormParam->addParam("IPアドレス2", "ip02", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    8399        $this->objFormParam->addParam("IPアドレス3", "ip03", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    84         $this->objFormParam->addParam("IPアドレス4", "ip04", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    85     } 
    86      
    87     /** 
    88     * エラーチェック 
    89      *  
    90     * @return array $arr->arrErr 
    91     */ 
    92     function checkError() { 
    93         $arrErr = $this->objFormParam->checkError(); 
    94         $arrParam = $this->objFormParam->getHashArray(); 
    95          
    96         foreach($arrParam as $key => $val) { 
    97             if(!(($val >= 0) && ($val <= 255))) { 
    98                 $arrErr[$key] = "※ 不正なIPアドレスです。<br>"; 
    99                 break; 
    100             } 
    101         } 
    102         return $arrErr; 
    103     } 
    104      
    105     // 登録データを読み込む 
    106     function loadData(){ 
    107         // 設定されているSMTP_HOSTを取得する 
    108         $arrRet = $this->objQuery->select("id, name", "mtb_constants", "id = ?", array('SMTP_HOST')); 
    109         $name = ereg_replace("\"", "", $arrRet[0]['name']); 
    110         list($arrParam['ip01'], $arrParam['ip02'], $arrParam['ip03'], $arrParam['ip04']) = split("\.", $name); 
    111         $this->objFormParam->setParam($arrParam); 
    112     } 
    113      
    114     // データの更新処理 
    115     function registData(){ 
    116         $arrParam = $this->objFormParam->getHashArray(); 
    117         $strIP = "\"" . $arrParam['ip01'] . "." .  $arrParam['ip02'] . "." . $arrParam['ip03'] . "." . $arrParam['ip04'] . "\""; 
    118         $sqlval['name'] = $strIP; 
    119         $this->objQuery->update("mtb_constants", $sqlval, "id = ?", array('SMTP_HOST')); 
    120     } 
     100           $this->objFormParam->addParam("IPアドレス4", "ip04", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
     101    } 
     102 
     103    /** 
     104    * エラーチェック 
     105     * 
     106    * @return array $arr->arrErr 
     107    */ 
     108    function checkError() { 
     109        $arrErr = $this->objFormParam->checkError(); 
     110        $arrParam = $this->objFormParam->getHashArray(); 
     111 
     112        foreach($arrParam as $key => $val) { 
     113            if(!(($val >= 0) && ($val <= 255))) { 
     114                $arrErr[$key] = "※ 不正なIPアドレスです。<br>"; 
     115                break; 
     116            } 
     117        } 
     118        return $arrErr; 
     119    } 
     120 
     121    // 登録データを読み込む 
     122    function loadData(){ 
     123        // 設定されているSMTP_HOSTを取得する 
     124        $arrRet = $this->objQuery->select("id, name", "mtb_constants", "id = ?", array('SMTP_HOST')); 
     125        $name = ereg_replace("\"", "", $arrRet[0]['name']); 
     126        list($arrParam['ip01'], $arrParam['ip02'], $arrParam['ip03'], $arrParam['ip04']) = split("\.", $name); 
     127        $this->objFormParam->setParam($arrParam); 
     128    } 
     129 
     130    // データの更新処理 
     131    function registData(){ 
     132        $arrParam = $this->objFormParam->getHashArray(); 
     133        $strIP = "\"" . $arrParam['ip01'] . "." .  $arrParam['ip02'] . "." . $arrParam['ip03'] . "." . $arrParam['ip04'] . "\""; 
     134        $sqlval['name'] = $strIP; 
     135        $this->objQuery->update("mtb_constants", $sqlval, "id = ?", array('SMTP_HOST')); 
     136    } 
    121137} 
    122138?> 
  • branches/feature-module-update/data/downloads/module2/mdl_speedmail/SC_SendMail_Ex.php

    r16339 r16582  
    11<?php 
    22/* 
     3 * This file is part of EC-CUBE 
     4 * 
    35 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    46 * 
    57 * 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. 
    622 */ 
    723 
     
    1531 * SC_SendMail をカスタマイズする場合はこのクラスを使用する. 
    1632 * 
    17  * @package  
     33 * @package 
    1834 * @author LOCKON CO.,LTD. 
    1935 * @version $Id: SC_SendMail_Ex.php 16326 2007-10-08 10:26:55Z naka $ 
    2036 */ 
    2137class SC_SendMail_Ex extends SC_SendMail { 
    22     function SC_SendMail_Ex() { 
    23         parent::SC_SendMail(); 
    24     } 
    25      
    26     //  TXTメール送信を実行する 
    27     function sendMail() { 
    28         $this->setReturnPath(ERROR_MAIL); 
    29         return parent::sendMail(); 
    30     } 
    31      
    32     // HTMLメール送信を実行する 
    33     function sendHtmlMail() { 
    34         $this->setReturnPath(ERROR_MAIL); 
    35         return parent::sendHtmlMail(); 
    36     }    
     38    function SC_SendMail_Ex() { 
     39        parent::SC_SendMail(); 
     40    } 
     41 
     42    //  TXTメール送信を実行する 
     43    function sendMail() { 
     44        $this->setReturnPath(ERROR_MAIL); 
     45        return parent::sendMail(); 
     46    } 
     47 
     48    // HTMLメール送信を実行する 
     49    function sendHtmlMail() { 
     50        $this->setReturnPath(ERROR_MAIL); 
     51        return parent::sendHtmlMail(); 
     52    } 
    3753} 
    3854?> 
  • branches/feature-module-update/data/downloads/module2/mdl_speedmail/config.php

    r16330 r16582  
    11<?php 
    22/* 
     3 * This file is part of EC-CUBE 
     4 * 
    35 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    46 * 
    57 * 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. 
    622 */ 
    723 
Note: See TracChangeset for help on using the changeset viewer.