Changeset 16582 for branches/feature-module-update/data/downloads
- Timestamp:
- 2007/10/29 12:06:29 (16 years ago)
- 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 1 1 <?php 2 2 /* 3 * This file is part of EC-CUBE 4 * 3 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 4 6 * 5 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. 6 22 */ 7 23 -
branches/feature-module-update/data/downloads/module/mdl_epsilon/convenience.php
r16329 r16582 1 1 <?php 2 2 /* 3 * This file is part of EC-CUBE 4 * 3 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 4 6 * 5 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. 6 22 */ 7 23 -
branches/feature-module-update/data/downloads/module/mdl_epsilon/convenience.tpl
r15079 r16582 1 1 <!--{* 2 /* 3 * This file is part of EC-CUBE 4 * 2 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 3 6 * 4 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 */ 5 23 *}--> 6 24 <!--▼CONTENTS--> 7 25 <table width="760" border="0" cellspacing="0" cellpadding="0" summary=" "> 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 <!--お支払方法・お届け時間の指定・その他お問い合わせここから--> 58 59 60 61 62 63 64 65 66 </tr> 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 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>セイ <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;" /> メイ <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;" /> - <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;" /> - <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> 85 103 </table> 86 104 <!--▲CONTENTS--> -
branches/feature-module-update/data/downloads/module/mdl_epsilon/mdl_epsilon.inc
r15079 r16582 1 1 <?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 2 24 /** 3 * 25 * 4 26 * @copyright 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 5 27 * @version CVS: $Id: mdl_epsilon.inc 7162 2006-11-18 09:53:33Z kakinaka $ … … 15 37 //コンビニの種類 16 38 $arrConvenience = array( 17 18 19 20 21 22 39 11 => 'セブンイレブン' 40 ,21 => 'ファミリーマート' 41 ,31 => 'ローソン' 42 ,32 => 'セイコーマート' 43 ,33 => 'ミニストップ' 44 ,34 => 'デイリーヤマザキ' 23 45 ); 24 46 25 47 $arrConveni_message = array( 26 48 11 => "上記のページをプリントアウトされるか払込票番号をメモして、 27 49 お支払い期限までに、最寄りのセブンイレブンにて代金をお支払いください。" 28 50 ,21 =>"ファミリーマート店頭にございます 29 51 Famiポート/ファミネットにて以下の「企業コード」と「注文番号」を入力し、 30 52 申込券を印字後、お支払い期限までに代金をお支払い下さい。" 31 53 ,31 =>"<お支払い方法> 32 54 1. ローソンの店内に設置してあるLoppiのトップ画面の中から、 33 55 「インターネット受付」をお選びください。 … … 36 58 37 59 3. 画面に従って「お支払い受付番号」と、ご注文いただいた際の 38 「電話番号」をご入力下さい。→Loppiより「申込券」が発券されます。 60 「電話番号」をご入力下さい。→Loppiより「申込券」が発券されます。 39 61 ※申込券の有効時間は30分間です。お早めにレジへお持ち下さい。 40 62 … … 44 66 5. 代金と引換に「領収書」をお渡しいたします。領収書は大切に保管 45 67 してください。代金払込の証書となります。" 46 68 ,32 =>"<お支払い方法> 47 69 1. セイコーマートの店内に設置してあるセイコーマートクラブステーション 48 70 (情報端末)のトップ画面の中から、「インターネット受付」をお選び下さい。 … … 54 76 3. 発券された「決済サービス払込取扱票・払込票兼受領証・領収書(計3枚)」 55 77 をお持ちの上、レジにて代金をお支払い下さい。 " 56 78 ,33 =>"お支払い期限までにミニストップにて代金をお支払い下さい。 57 79 お支払いの際には「払込取扱票」が必要となりますので、上記URLで表示 58 80 されるページを印刷してレジまでお持ち下さい。" 59 81 ,34 =>"お支払い期限までにデイリーヤマザキ/ヤマザキデイリーストア 60 82 にて代金をお支払い下さい。 61 83 お支払いの際には「払込取扱票」が必要となりますので、上記URLで表示 … … 72 94 **************************************************************************************************************/ 73 95 function sfGetXMLValue($arrVal, $tag, $att) { 74 75 76 77 78 79 80 81 82 83 84 85 } 86 87 88 89 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; 90 112 } 91 113 … … 97 119 **************************************************************************************************************/ 98 120 function sfPostPaymentData($order_url, $arrData, $err_page = true){ 99 100 121 $arrVal = array(); 122 $response = ""; 101 123 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)); 115 126 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 } 120 137 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"); 130 142 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; 135 157 } 136 158 -
branches/feature-module-update/data/downloads/module/mdl_epsilon/mdl_epsilon.php
r15532 r16582 1 1 <?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 2 24 /** 3 * 25 * 4 26 * @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 $ 6 28 * @link http://www.lockon.co.jp/ 7 29 * … … 10 32 11 33 $arrPayment = array( 12 13 34 1 => 'クレジット', 35 2 => 'コンビニ' 14 36 ); 15 37 16 38 $arrCredit = array( 17 18 39 1 => 'VISA, MASTER, Diners', 40 2 => 'JCB, AMEX' 19 41 ); 20 42 21 43 //ページ管理クラス 22 44 class LC_Page { 23 24 25 26 27 28 29 30 31 32 33 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 } 35 57 } 36 58 $objPage = new LC_Page(); … … 56 78 switch($_POST['mode']) { 57 79 case 'edit': 58 59 60 61 // エラーなしの場合にはデータを更新 62 63 64 65 66 67 68 69 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; 70 92 case 'module_del': 71 72 73 74 75 76 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; 77 99 default: 78 79 lfLoadData(); 80 100 // データのロード 101 lfLoadData(); 102 break; 81 103 } 82 104 … … 88 110 /* パラメータ情報の初期化 */ 89 111 function lfInitParam($objFormParam) { 90 91 92 93 $objFormParam->addParam("利用クレジット", "credit"); 94 $objFormParam->addParam("利用コンビニ", "convenience"); 95 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; 96 118 } 97 119 98 120 // エラーチェックを行う 99 121 function lfCheckError(){ 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 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; 126 148 } 127 149 128 150 // 接続チェックを行う 129 151 function lfChkConnect(){ 130 131 132 133 134 135 136 137 138 // 契約コード 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 return $arrRet; 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 return $arrRet; 188 189 190 191 192 193 194 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; 200 222 } 201 223 202 224 // 登録データを読み込む 203 225 function lfLoadData(){ 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 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); 231 253 } 232 254 233 255 // DBからデータを取得する 234 256 function lfGetPaymentDB($where = "", $arrWhereVal = array()){ 235 236 237 238 239 240 241 $sql = "SELECT 242 module_id, 243 memo01 as code, 244 memo02 as url, 245 246 memo04 as payment_code, 247 248 249 250 251 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; 252 274 } 253 275 … … 255 277 // データの更新処理 256 278 function lfUpdPaymentDB(){ 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 // 支払方法データを取得 280 281 282 283 284 285 286 $arrData = array( 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 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 } 346 368 } 347 369 348 370 // コンビニ入金確認処理 349 371 function lfEpsilonCheck(){ 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 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 } 369 391 } 370 392 -
branches/feature-module-update/data/downloads/module/mdl_epsilon/mdl_epsilon.tpl
r15079 r16582 1 1 <!--{* 2 2 /* 3 * This file is part of EC-CUBE 4 * 3 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 4 6 * 5 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. 6 22 */ 7 23 *}--> … … 27 43 28 44 function lfnCheckPayment(){ 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 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 } 50 66 } 51 67 52 68 function fnChangeDisabled(list, disable) { 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 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 } 72 88 } 73 89 74 90 function win_open(URL){ 75 76 77 91 var WIN; 92 WIN = window.open(URL); 93 WIN.focus(); 78 94 } 79 95 //--> … … 91 107 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> 92 108 <input type="hidden" name="mode" value="edit"> 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 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> 227 243 </form> 228 244 </table> -
branches/feature-module-update/data/downloads/module2/mdl_speedmail/LC_Page_Mdl_SpeedMail.php
r16339 r16582 1 1 <?php 2 2 /* 3 * This file is part of EC-CUBE 4 * 3 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 4 6 * 5 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. 6 22 */ 7 23 … … 21 37 var $arrErr; 22 38 var $objQuery; 23 24 39 40 /** 25 41 * Page を初期化する. 26 42 * … … 28 44 */ 29 45 function init() { 30 46 parent::init(); 31 47 $this->tpl_mainpage = MODULE2_PATH . THIS_MODULE_NAME . "/config.tpl"; 32 48 $this->objFormParam = new SC_FormParam(); 33 $this->intiParam(); 34 35 36 49 $this->intiParam(); 50 $this->arrErr = array(); 51 $this->objQuery = new SC_Query(); 52 $this->loadData(); 37 53 } 38 54 … … 43 59 */ 44 60 function process() { 45 61 $objView = new SC_AdminView(); 46 62 $objSess = new SC_Session(); 47 63 48 64 // 認証可否の判定 49 65 //SC_Utils_Ex::sfIsSuccess($objSess); 50 66 $this->objFormParam->setParam($_POST); 51 67 52 68 switch($_POST['mode']) { 53 54 55 56 57 $this->registData(); 58 59 60 } 69 case 'regist': 70 // エラーチェック 71 $this->arrErr = $this->checkError(); 72 if(count($objPage->arrErr) <= 0) { 73 $this->registData(); 74 } 75 break; 76 } 61 77 $this->arrForm = $this->objFormParam->getFormParamList(); 62 78 $objView->assignobj($this); 63 79 $objView->display($this->tpl_mainpage); 64 80 } 65 81 66 82 /** 67 83 * デストラクタ. … … 72 88 parent::destroy(); 73 89 } 74 75 76 77 * 78 79 80 90 91 /** 92 * 値の初期化 93 * 94 * @return void なし 95 */ 96 function intiParam() { 81 97 $this->objFormParam->addParam("IPアドレス1", "ip01", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 82 98 $this->objFormParam->addParam("IPアドレス2", "ip02", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 83 99 $this->objFormParam->addParam("IPアドレス3", "ip03", 3, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 84 85 86 87 88 89 * 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 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 } 121 137 } 122 138 ?> -
branches/feature-module-update/data/downloads/module2/mdl_speedmail/SC_SendMail_Ex.php
r16339 r16582 1 1 <?php 2 2 /* 3 * This file is part of EC-CUBE 4 * 3 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 4 6 * 5 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. 6 22 */ 7 23 … … 15 31 * SC_SendMail をカスタマイズする場合はこのクラスを使用する. 16 32 * 17 * @package 33 * @package 18 34 * @author LOCKON CO.,LTD. 19 35 * @version $Id: SC_SendMail_Ex.php 16326 2007-10-08 10:26:55Z naka $ 20 36 */ 21 37 class SC_SendMail_Ex extends SC_SendMail { 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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 } 37 53 } 38 54 ?> -
branches/feature-module-update/data/downloads/module2/mdl_speedmail/config.php
r16330 r16582 1 1 <?php 2 2 /* 3 * This file is part of EC-CUBE 4 * 3 5 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 4 6 * 5 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. 6 22 */ 7 23
Note: See TracChangeset
for help on using the changeset viewer.