Index: /tags/modules/remise-1.2/mdl_remise.inc
===================================================================
--- /tags/modules/remise-1.2/mdl_remise.inc	(revision 16722)
+++ /tags/modules/remise-1.2/mdl_remise.inc	(revision 16722)
@@ -0,0 +1,98 @@
+<?php
+/**
+ *
+ * @copyright	2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ * @version	CVS: $Id: mdl_remise.inc 7162 2006-11-18 09:53:33Z inoue $
+ * @link		http://www.lockon.co.jp/
+ *
+ */
+
+// ¥ë¥ß¡¼¥º¥â¥¸¥å¡¼¥ë¥Ð¡¼¥¸¥ç¥ó
+define('MDL_REMISE_VERSION', 1.2);
+// ¥ë¥ß¡¼¥º¥â¥¸¥å¡¼¥ëID
+define("MDL_REMISE_ID", 5);
+
+// EC-CUBE¡¦¥ë¥ß¡¼¥º¶¦ÄÌID
+define("MDL_REMISE_POST_VALUE", A0000155);
+
+// ¥ë¥ß¡¼¥º¤Ø¤Î¥Ç¡¼¥¿Á÷¿®ÍÑ¥¨¥ó¥³¡¼¥É
+define("REMISE_SEND_ENCODE", 'SJIS-win');
+
+// ¥¯¥ì¥¸¥Ã¥È·èºÑ¡¦¥³¥ó¥Ó¥Ë·èºÑ¾å¸Â¡¦²¼¸Â¶â³Û
+define("REMISE_CREDIT_UPPER", 500000);
+define("REMISE_CONVENIENCE_UPPER", 500000);
+define("REMISE_CONVENIENCE_BOTTOM", 200);
+
+// ¥¯¥ì¥¸¥Ã¥È»ÙÊ§¤¤¥³¡¼¥É(10:°ì³ç 61:Ê¬³ä 80:¥ê¥Ü)
+define("REMISE_PAYMENT_METHOD_LUMP", 10);
+define("REMISE_PAYMENT_METHOD_DIVIDE", 61);
+define("REMISE_PAYMENT_METHOD_REVO", 80);
+
+// ¥¯¥ì¥¸¥Ã¥ÈºÇÂç»ÙÊ§¤¤²ó¿ô
+// EC¥µ¥¤¥ÈÍÍ¤Î¾ò·ï¤Ë¹ç¤ï¤»¤ÆÊÑ¹¹¤·¤Æ²¼¤µ¤¤
+define("REMISE_PAYMENT_DIVIDE_MAX", 2);
+
+// EC¥µ¥¤¥ÈÍÍ¤Î¾ò·ï¤Ë¹ç¤ï¤»¤ÆÊÑ¹¹¤·¤Æ²¼¤µ¤¤
+// AUTH(²¾Çä¾å)
+// CAPTURE(¼ÂÇä¾å)
+define("REMISE_PAYMENT_JOB_CODE", "AUTH");
+
+// Ê¬³ä²ó¿ô
+$arrCreditDivide = array(
+	2 => "2"
+);
+
+// ¥¯¥ì¥¸¥Ã¥È·ë²Ì¥¹¥Æ¡¼¥¿¥¹
+define("REMISE_PAYMENT_CHARGE_OK", "<SDBKDATA>STATUS=800</SDBKDATA>");
+
+// ¥³¥ó¥Ó¥Ë¼ýÇ¼¼õ¿®¥Õ¥é¥°(0:¼«Æ°¼õ¿®¤·¤Ê¤¤ 1:¼«Æ°¼õ¿®¤¹¤ë)
+define("REMISE_CONVENIENCE_RECIVE", 1);
+
+// ¥³¥ó¥Ó¥Ë¼ýÇ¼ºÑ¥Õ¥é¥°
+define("REMISE_CONVENIENCE_CHARGE", 1);
+
+// ¥³¥ó¥Ó¥Ë·ë²Ì¥¹¥Æ¡¼¥¿¥¹
+define("REMISE_CONVENIENCE_CHARGE_OK", "<SDBKDATA>STATUS=800</SDBKDATA>");
+
+// ¥¨¥é¡¼ÆâÍÆ
+$arrRemiseErrorWord = array(
+	"OK" => "0:0000"
+);
+
+// ¥ë¥ß¡¼¥º¤«¤é¤ÎÄÌ¿®¤ÎIPÀ©¸æ(0:¤·¤Ê¤¤ 1:¤¹¤ë)
+define("REMISE_IP_ADDRESS_DENY", 0);
+
+// ¥ë¥ß¡¼¥º¥µ¡¼¥Ð¤ÎIP¥¢¥É¥ì¥¹
+// ¼ÂºÝ¤Ë»ÈÍÑ¤¹¤ë¾ì¹ç¤ÏºÇ¿·¤ÎIP¥¢¥É¥ì¥¹ÂÓ°è¤ò³ÎÇ§¤·¤Æ²¼¤µ¤¤
+define("REMISE_IP_ADDRESS_S", "211.0.149.169");
+define("REMISE_IP_ADDRESS_E", "211.0.149.169");
+
+// eLIO·èºÑ¤ò»ÈÍÑ¤¹¤ë¤«¤É¤¦¤«¤Î¥Õ¥é¥°(0:¤·¤Ê¤¤ 1:¤¹¤ë)
+define('REMISE_ELIO_USE', 1);
+
+// ·èºÑÊýË¡
+$arrPayment = array(
+	1 => "¥³¥ó¥Ó¥Ë"
+);
+
+// »ÙÊ§¤¤ÊýË¡
+$arrCredit = array(
+	10 => "°ì³çÊ§¤¤",
+	61 => "Ê¬³äÊ§¤¤",
+	80 => "¥ê¥Ü¥ë¥Ó¥ó¥°Ê§¤¤"
+);
+
+// ¥³¥ó¥Ó¥Ë¤Î¼ïÎà
+$arrConvenience = array(
+	D001 => "¥»¥Ö¥ó¥¤¥ì¥Ö¥ó"
+	,D002 => "¥í¡¼¥½¥ó"
+	,D030 => "¥Õ¥¡¥ß¥ê¡¼¥Þ¡¼¥È"
+	,D004 => "¥µ¡¼¥¯¥¹£Ë"
+	,D003 => "¥µ¥ó¥¯¥¹"
+	,D015 => "¥»¥¤¥³¡¼¥Þ¡¼¥È"
+	,D005 => "¥ß¥Ë¥¹¥È¥Ã¥×"
+	,D010 => "¥Ç¥¤¥ê¡¼¥ä¥Þ¥¶¥­"
+	,D011 => "¥ä¥Þ¥¶¥­¥Ç¥¤¥ê¡¼¥¹¥È¥¢"
+);
+
+?>
Index: /tags/modules/remise-1.2/remise_recv.php
===================================================================
--- /tags/modules/remise-1.2/remise_recv.php	(revision 16656)
+++ /tags/modules/remise-1.2/remise_recv.php	(revision 16656)
@@ -0,0 +1,169 @@
+<?php
+/**
+ *
+ * @copyright   2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ * @version CVS: $Id$
+ * @link        http://www.lockon.co.jp/
+ *
+ */
+require_once '../require.php';
+require_once MODULE_PATH . "mdl_remise/mdl_remise.inc";
+
+// ¥ë¥ß¡¼¥º¥«¡¼¥É¥¯¥ì¥¸¥Ã¥È·èºÑ·ë²ÌÄÌÃÎ½èÍý
+lfRemiseCreditResultCheck();
+
+// ¥³¥ó¥Ó¥ËÆþ¶â¥Á¥§¥Ã¥¯
+lfRemiseConveniCheck();
+
+//-------------------------------------------------------------------------------------------------------
+
+// ¥ë¥ß¡¼¥º¥«¡¼¥É¥¯¥ì¥¸¥Ã¥È·èºÑ·ë²ÌÄÌÃÎ½èÍý
+function lfRemiseCreditResultCheck(){
+    $objQuery = new SC_Query;
+
+    $log_path = DATA_PATH . "logs/remise_card_result.log";
+    gfPrintLog("remise card result : ".$_POST["X-TRANID"] , $log_path);
+
+    // TRAN_ID ¤ò»ØÄê¤µ¤ì¤Æ¤¤¤Æ¡¢¥«¡¼¥É¾ðÊó¤¬¤¢¤ë¾ì¹ç
+    if (isset($_POST["X-TRANID"]) && isset($_POST["X-PARTOFCARD"])) {
+
+        $errFlg = FALSE;
+
+        gfPrintLog("remise card result start----------", $log_path);
+        foreach($_POST as $key => $val){
+            gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+        }
+        gfPrintLog("remise credit result end  ----------", $log_path);
+
+        // IP¥¢¥É¥ì¥¹À©¸æ¤¹¤ë¾ì¹ç
+        if (REMISE_IP_ADDRESS_DENY == 1) {
+            gfPrintLog("remise remoto ip address : ".$_SERVER["REMOTE_HOST"]."-".$_SERVER["REMOTE_ADDR"], $log_path);
+            if (!isset($_SERVER["REMOTE_ADDR"]) || !lfIpAddressDenyCheck($_SERVER["REMOTE_ADDR"])) {
+                print("NOT REMISE SERVER");
+                exit;
+            }
+        }
+
+        // ÀÁµáÈÖ¹æ¤È¶â³Û¤Î¼èÆÀ
+        $order_id = 0;
+        $payment_total = 0;
+
+        if (isset($_POST["X-S_TORIHIKI_NO"])) {
+            $order_id = $_POST["X-S_TORIHIKI_NO"];
+        }
+
+        if (isset($_POST["X-TOTAL"])) {
+            $payment_total = $_POST["X-TOTAL"];
+        }
+
+        gfPrintLog("order_id : ".$order_id, $log_path);
+        gfPrintLog("payment_total : ".$payment_total, $log_path);
+
+        // ÃíÊ¸¥Ç¡¼¥¿¼èÆÀ
+        $arrTempOrder = $objQuery->getall("SELECT payment_total FROM dtb_order_temp WHERE order_id = ? ", array($order_id));
+
+        // ¶â³Û¤ÎÁê°ã
+        if (count($arrTempOrder) > 0) {
+            gfPrintLog("ORDER payment_total : ".$arrTempOrder[0]['payment_total'], $log_path);
+            if ($arrTempOrder[0]['payment_total'] == $payment_total) {
+                $errFlg = TRUE;
+            }
+        }
+
+        if ($errFlg) {
+            print(REMISE_PAYMENT_CHARGE_OK);
+            exit;
+        }
+        print("ERROR");
+        exit;
+    }
+}
+
+// ¥³¥ó¥Ó¥ËÆþ¶â³ÎÇ§½èÍý
+function lfRemiseConveniCheck(){
+    $objQuery = new SC_Query;
+
+    $log_path = DATA_PATH . "logs/remise_cv_charge.log";
+    gfPrintLog("remise conveni result : ".$_POST["JOB_ID"] , $log_path);
+
+    // É¬Í×¤Ê¥Ç¡¼¥¿¤¬Á÷¿®¤µ¤ì¤Æ¤¤¤Æ¡¢¼ýÇ¼ÄÌÃÎ¤Î¼«Æ°¼õ¿®¤òµö²Ä¤·¤Æ¤¤¤ë¾ì¹ç
+    if(isset($_POST["JOB_ID"]) && isset($_POST["REC_FLG"]) && REMISE_CONVENIENCE_RECIVE == 1){
+
+        $errFlg = FALSE;
+
+        // ¼ýÇ¼ºÑ¤ß¤Î¾ì¹ç
+        if ($_POST["REC_FLG"] == REMISE_CONVENIENCE_CHARGE) {
+            // POST¤ÎÆâÍÆ¤òÁ´¤Æ¥í¥°ÊÝÂ¸
+            gfPrintLog("remise conveni charge start----------", $log_path);
+            foreach($_POST as $key => $val){
+                gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+            }
+            gfPrintLog("remise conveni charge end  ----------", $log_path);
+
+            // IP¥¢¥É¥ì¥¹À©¸æ¤¹¤ë¾ì¹ç
+            if (REMISE_IP_ADDRESS_DENY == 1) {
+                gfPrintLog("remise remoto ip address : ".$_SERVER["REMOTE_HOST"]."-".$_SERVER["REMOTE_ADDR"], $log_path);
+                if (!isset($_SERVER["REMOTE_ADDR"]) || !lfIpAddressDenyCheck($_SERVER["REMOTE_ADDR"])) {
+                    print("NOT REMISE SERVER");
+                    exit;
+                }
+            }
+
+            // ÀÁµáÈÖ¹æ¤È¶â³Û¤Î¼èÆÀ
+            $order_id = 0;
+            $payment_total = 0;
+
+            if (isset($_POST["S_TORIHIKI_NO"])) {
+                $order_id = $_POST["S_TORIHIKI_NO"];
+            }
+
+            if (isset($_POST["TOTAL"])) {
+                $payment_total = $_POST["TOTAL"];
+            }
+
+            gfPrintLog("order_id : ".$order_id, $log_path);
+            gfPrintLog("payment_total : ".$payment_total, $log_path);
+
+            // ÃíÊ¸¥Ç¡¼¥¿¼èÆÀ
+            $arrTempOrder = $objQuery->getall("SELECT payment_total FROM dtb_order_temp WHERE order_id = ? ", array($order_id));
+
+            // ¶â³Û¤ÎÁê°ã
+            if (count($arrTempOrder) > 0) {
+                gfPrintLog("ORDER payment_total : ".$arrTempOrder[0]['payment_total'], $log_path);
+                if ($arrTempOrder[0]['payment_total'] == $payment_total) {
+                    $errFlg = TRUE;
+                }
+            }
+
+            // JOB_ID¤ÈÀÁµáÈÖ¹æ¡£Æþ¶â¶â³Û¤¬°ìÃ×¤¹¤ë¾ì¹ç¤Î¤ß¡¢¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âºÑ¤ß¤ËÊÑ¹¹¤¹¤ë
+            if ($errFlg) {
+                $sql = "UPDATE dtb_order SET status = 6, update_date = now() ".
+                    "WHERE order_id = ? AND memo04 = ? ";
+                $objQuery->query($sql, array($order_id, $_POST["JOB_ID"]));
+
+                //±þÅú·ë²Ì¤òÉ½¼¨
+                print(REMISE_CONVENIENCE_CHARGE_OK);
+                exit;
+            }
+        }
+        print("ERROR");
+        exit;
+    }
+}
+
+/**
+ * IP¥¢¥É¥ì¥¹ÂÓ°è¥Á¥§¥Ã¥¯
+ * @param $ip IP¥¢¥É¥ì¥¹
+ * @return boolean
+ */
+function lfIpAddressDenyCheck($ip) {
+
+    // IP¥¢¥É¥ì¥¹ÈÏ°Ï¤ËÆþ¤Ã¤Æ¤Ê¤¤¾ì¹ç
+    if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($ip) ||
+        ip2long(REMISE_IP_ADDRESS_E) < ip2long($ip)) {
+        return FALSE;
+    }
+    return TRUE;
+}
+
+?>
Index: /tags/modules/remise-1.2/convenience.tpl
===================================================================
--- /tags/modules/remise-1.2/convenience.tpl	(revision 16689)
+++ /tags/modules/remise-1.2/convenience.tpl	(revision 16689)
@@ -0,0 +1,228 @@
+<!--{*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *}-->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=<!--{$smarty.const.CHAR_CODE}-->">
+<meta http-equiv="content-script-type" content="text/javascript">
+<meta http-equiv="content-style-type" content="text/css">
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->user_data/css/contents.css" type="text/css" media="all" />
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->css/common.css" type="text/css" media="all" />
+<link rel="stylesheet" href="<!--{$tpl_css}-->" type="text/css" media="all" />
+<title><!--{$arrSiteInfo.shop_name}-->/<!--{$tpl_title|escape}--></title>
+<meta name="author" content="<!--{$arrPageLayout.author|escape}-->">
+<meta name="description" content="<!--{$arrPageLayout.description|escape}-->">
+<meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->">
+
+<script type="text/javascript">
+<!--
+	function preLoadImg(URL){
+		arrImgList = new Array (
+			URL+"img/header/basis_on.jpg",URL+"img/header/product_on.jpg",URL+"img/header/customer_on.jpg",URL+"img/header/order_on.jpg",
+			URL+"img/header/sales_on.jpg",URL+"img/header/mail_on.jpg",URL+"img/header/contents_on.jpg",
+			URL+"img/header/mainpage_on.gif",URL+"img/header/sitecheck_on.gif",URL+"img/header/logout.gif",
+			URL+"img/contents/btn_search_on.jpg",URL+"img/contents/btn_regist_on.jpg",
+			URL+"img/contents/btn_csv_on.jpg",URL+"img/contents/arrow_left.jpg",URL+"img/contents/arrow_right.jpg"
+		);
+		arrPreLoad = new Array();
+		for (i in arrImgList) {
+			arrPreLoad[i] = new Image();
+			arrPreLoad[i].src = arrImgList[i];
+		}
+		preLoadFlag = "true";
+	}
+
+	function chgImg(fileName,imgName){
+		if (preLoadFlag == "true") {
+			document.images[imgName].src = fileName;
+		}
+	}
+
+	function chgImgImageSubmit(fileName,imgObj){
+		imgObj.src = fileName;
+	}
+
+	function fnFormModeSubmit(form, mode, keyname, keyid) {
+		document.forms[form]['mode'].value = mode;
+		if(keyname != "" && keyid != "") {
+			document.forms[form][keyname].value = keyid;
+		}
+		document.forms[form].submit();
+	}
+//-->
+
+</script>
+</head>
+
+<!-- ¢§ £Â£Ï£Ä£ÙÉô ¥¹¥¿¡¼¥È -->
+<body bgcolor="#ffe9e6" text="#555555" link="#3a75af" vlink="#3a75af" alink="#3a75af" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="preLoadImg('/'); ">
+<noscript>
+<link rel="stylesheet" href="/css/common.css" type="text/css" />
+</noscript>
+
+<div align="center">
+<a name="top" id="top"></a>
+
+<!--¢§HEADER-->
+<!--{if $arrPageLayout.header_chk != 2}--> 
+<!--{assign var=header_dir value="`$smarty.const.HTML_PATH`user_data/include/header.tpl"}-->
+<!--{include file= $header_dir}-->
+<!--{/if}-->
+<!--¢¥HEADER-->
+
+<!--¢§MAIN-->
+<div id="base">
+<table width="780" border="0" cellspacing="0" cellpadding="0" summary=" ">
+	<tr>
+		<td bgcolor="#cccccc" width="1"><img src="/img/_.gif" width="1" height="10" alt="" /></td>
+		<td bgcolor="#ffffff" width="1"><img src="/img/_.gif" width="5" height="1" alt="" /></td>
+		<td bgcolor="#ffffff" align="left" width=100%> 
+
+		
+		<table width="100%" border="0" cellspacing="0" cellpadding="0" summary=" ">
+
+			<tr valign="top">
+				<!--¢§º¸¥Ê¥Ó-->
+								<!--¢¥º¸¥Ê¥Ó-->
+			
+				<td align="center" width=100%>
+			        <table border="0" cellspacing="0" cellpadding="0" summary=" ">
+			        
+					<!--¢§¥á¥¤¥ó¾åÉô-->
+										<!--¢¥¥á¥¤¥ó¾åÉô-->
+					
+					<tr><td align="center">
+<!--¢§CONTENTS-->
+<table width="760" border="0" cellspacing="0" cellpadding="0" summary=" ">
+	<tr>
+		<td align="center" bgcolor="#ffffff">
+		<!--¢§MAIN ONTENTS-->
+		<!--{*¹ØÆþ¼êÂ³¤­¤ÎÎ®¤ì-->
+		<table width="700" border="0" cellspacing="0" cellpadding="0" summary=" ">
+			<tr>
+				<td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/flow03.gif" width="700" height="36" alt="¹ØÆþ¼êÂ³¤­¤ÎÎ®¤ì"></td>
+			</tr>
+			<tr><td height="15"></td></tr>
+		</table>
+		<!--¹ØÆþ¼êÂ³¤­¤ÎÎ®¤ì*}-->
+		
+		<table width="700" border="0" cellspacing="0" cellpadding="0" summary=" ">
+			<tr>
+				<td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/convenience_title.jpg" width="700" height="40" alt="¥³¥ó¥Ó¥Ë·èºÑ"></td>
+			</tr>
+			<tr><td height="15"></td></tr>
+			<tr>
+				<td class="fs12">É¬Í×»ö¹à¤ò³ÎÇ§¤·¡¢°ìÈÖ²¼¤Î¡Ö¤´ÃíÊ¸´°Î»¥Ú¡¼¥¸¤Ø¡×¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£</td>
+			</tr>
+			<tr><td height="20"></td></tr>
+			<form name="form2" id="form2" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
+			<input type="hidden" name="mode" value="">
+			</form>
+			<form name="form1" id="form1" method="post" action="<!--{$arrSendData.SEND_URL|escape}-->">
+			<input type="hidden" name="SHOPCO" value="<!--{$arrSendData.SHOPCO|escape}-->">
+			<input type="hidden" name="HOSTID" value="<!--{$arrSendData.HOSTID|escape}-->">
+			<input type="hidden" name="S_TORIHIKI_NO" value="<!--{$arrSendData.S_TORIHIKI_NO|escape}-->">
+			<input type="hidden" name="MAIL" value="<!--{$arrSendData.MAIL|escape}-->">
+			<input type="hidden" name="NAME1" value="<!--{$arrSendData.NAME1|escape}-->">
+			<input type="hidden" name="NAME2" value="<!--{$arrSendData.NAME2|escape}-->">
+			<input type="hidden" name="KANA1" value="<!--{$arrSendData.KANA1|escape}-->">
+			<input type="hidden" name="KANA2" value="<!--{$arrSendData.KANA2|escape}-->">
+			<input type="hidden" name="TEL" value="<!--{$arrSendData.TEL|escape}-->">
+			<input type="hidden" name="YUBIN1" value="<!--{$arrSendData.YUBIN1|escape}-->">
+			<input type="hidden" name="YUBIN2" value="<!--{$arrSendData.YUBIN2|escape}-->">
+			<input type="hidden" name="ADD1" value="<!--{$arrSendData.ADD1|escape}-->">
+			<input type="hidden" name="ADD2" value="<!--{$arrSendData.ADD2|escape}-->">
+			<input type="hidden" name="ADD3" value="<!--{$arrSendData.ADD3|escape}-->">
+			<input type="hidden" name="TOTAL" value="<!--{$arrSendData.TOTAL|escape}-->">
+			<input type="hidden" name="TAX" value="<!--{$arrSendData.TAX|escape}-->">
+			<input type="hidden" name="RETURL" value="<!--{$arrSendData.RETURL|escape}-->">
+			<input type="hidden" name="EXITURL" value="<!--{$arrSendData.EXITURL|escape}-->">
+			<input type="hidden" name="NG_RETURL" value="<!--{$arrSendData.NG_RETURL|escape}-->">
+			<input type="hidden" name="MNAME_01" value="<!--{$arrSendData.MNAME_01|escape}-->">
+			<input type="hidden" name="MSUM_01" value="<!--{$arrSendData.MSUM_01|escape}-->">
+			<input type="hidden" name="REMARKS3" value="<!--{$arrSendData.REMARKS3|escape}-->">
+			
+			<tr><td height="20"></td></tr>
+			
+			<tr>
+				<td bgcolor="#cccccc">
+				<!--¤ª»ÙÊ§ÊýË¡¡¦¤ªÆÏ¤±»þ´Ö¤Î»ØÄê¡¦¤½¤ÎÂ¾¤ªÌä¤¤¹ç¤ï¤»¤³¤³¤«¤é-->		
+				<table width="700" border="0" cellspacing="1" cellpadding="10" summary=" ">
+					<tr>
+						<td width="20%" bgcolor="#f0f0f0" class="fs12n">¤ªÌ¾Á°</td>
+						<td width="80%" bgcolor="#ffffff" class="fs12n"><!--{$arrSendData.NAME1|escape}--><!--{$arrSendData.NAME2|escape}--></td>
+					</tr>
+					<tr>
+						<td width="20%" bgcolor="#f0f0f0" class="fs12n">¤ªÌ¾Á°(¥«¥Ê)</td>
+						<td width="80%" bgcolor="#ffffff" class="fs12n"><!--{$arrSendData.KANA1|escape}--><!--{$arrSendData.KANA2|escape}--></td>
+					</tr>
+					<tr>
+						<td bgcolor="#f0f0f0" class="fs12n">ÅÅÏÃÈÖ¹æ</td>
+						<td bgcolor="#ffffff" class="fs12n"><!--{$arrSendData.TEL|escape}--></td>
+					</tr>
+					<tr>
+						<td bgcolor="#f0f0f0" class="fs12n">¹ç·×¶â³Û</td>
+						<td bgcolor="#ffffff" class="fs12n"><!--{$arrSendData.TOTAL|escape}-->±ß</td>
+					</tr>
+				</table>
+				<!--¤ª»ÙÊ§ÊýË¡¡¦¤ªÆÏ¤±»þ´Ö¤Î»ØÄê¡¦¤½¤ÎÂ¾¤ªÌä¤¤¹ç¤ï¤»¤³¤³¤Þ¤Ç-->
+				</td>
+			</tr>
+			
+			<tr><td height="20"></td></tr>
+			<tr>
+				<td align="center">
+					<a href="<!--{$smarty.const.URL_DIR}-->" onclick="fnFormModeSubmit('form2', 'return', '', '');return false;" 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)"><img src="<!--{$smarty.const.URL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="Ìá¤ë" border="0" name="back03" id="back03"/></a>
+					<img src="<!--{$smarty.const.URL_DIR}-->img/_.gif" width="20" height="" alt="" />
+					<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" />
+				</td>
+			</tr>
+			</form>
+		</table>
+		<!--¢¥MAIN ONTENTS-->
+		</td>
+	</tr>
+</table>
+<!--¢¥CONTENTS-->
+</td></tr>
+					
+					<!--¢§¥á¥¤¥ó²¼Éô-->
+					<tr><td align="center">
+										</td><tr>
+					<!--¢¥¥á¥¤¥ó²¼Éô-->					
+	
+					</table>
+				</td>
+
+				<!--¢§±¦¥Ê¥Ó-->
+								<!--¢¥±¦¥Ê¥Ó-->
+
+			</tr>
+		</table>
+		<td bgcolor="#ffffff"><img src="<!--{$smarty.const.URL_DIR}-->img/_.gif" width="9" height="1" alt="" /></td>
+		<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/_.gif" width="1" height="10" alt="" /></td>
+		</td>
+	</tr>
+</table>
+
+</div>
+<!--¢¥MAIN-->
+
+<!--¢§FOTTER-->
+<!--{if $arrPageLayout.footer_chk != 2}--> 
+<!--{include file="`$smarty.const.HTML_PATH`user_data/include/footer.tpl"}-->
+<!--{/if}-->
+<!--¢¥FOTTER-->
+</div>
+<!--{* EBiS¥¿¥°É½¼¨ÍÑ *}-->
+<!--{$tpl_mainpage|sfPrintEbisTag}-->
+<!--{* ¥¢¥Õ¥£¥ê¥¨¥¤¥È¥¿¥°É½¼¨ÍÑ *}-->
+<!--{$tpl_conv_page|sfPrintAffTag:$tpl_aff_option}-->
+
+
+</body><!-- ¢¥ £Â£Ï£Ä£ÙÉô ¥¨¥ó¥É -->
+
+</html>
Index: /tags/modules/remise-1.2/mdl_remise.tpl
===================================================================
--- /tags/modules/remise-1.2/mdl_remise.tpl	(revision 11539)
+++ /tags/modules/remise-1.2/mdl_remise.tpl	(revision 11539)
@@ -0,0 +1,252 @@
+<!--{*
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+*}-->
+<!--¡¡-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
+
+<head>
+<meta http-equiv="content-type" content="application/xhtml+xml; charset=<!--{$smarty.const.CHAR_CODE}-->" />
+<meta http-equiv="content-script-type" content="text/javascript" />
+<meta http-equiv="content-style-type" content="text/css" />
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/contents.css" type="text/css" media="all" />
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/css.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/win_op.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>
+<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/admin.js"></script>
+<!--{include file='css/contents.tpl'}-->
+<title><!--{$tpl_subtitle}--></title>
+<script type="text/javascript">
+<!--
+self.moveTo(20,20);self.focus();
+
+function lfnCheckPayment(){
+	var fm = document.form1;
+	var val = 0;
+	
+	payment = new Array('payment[]');
+	list = new Array('convenience_url', 'mobile_convenience_url');
+	
+	var max = fm["payment[]"].length;
+	
+	for (pi = 0; pi < payment.length; pi++) {
+		if (max == undefined) {
+			if (fm["payment[]"].checked) {
+				fnChangeDisabled(list, false);
+			} else {
+				fnChangeDisabled(list);
+			}
+		} else {
+			if (fm["payment[]"][0].checked) {
+				fnChangeDisabled(list, false);
+			} else {
+				fnChangeDisabled(list);
+			}
+		}
+	}
+}
+
+function fnChangeDisabled(list, disable) {
+	len = list.length;
+
+	if(disable == null) { disable = true; }
+	
+	for(i = 0; i < len; i++) {
+		if(document.form1[list[i]]) {
+			// ¥é¥¸¥ª¥Ü¥¿¥ó¡¢¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹Åù¤ÎÇÛÎó¤ËÂÐ±þ
+			max = document.form1[list[i]].length
+			if(max > 1) {
+				for(j = 0; j < max; j++) {
+					// Í­¸ú¡¢Ìµ¸ú¤ÎÀÚ¤êÂØ¤¨
+					document.form1[list[i]][j].disabled = disable;
+				}
+			} else {
+				// Í­¸ú¡¢Ìµ¸ú¤ÎÀÚ¤êÂØ¤¨
+				document.form1[list[i]].disabled = disable;
+			}
+		}
+	}
+}
+
+function win_open(URL){
+	var WIN;
+	WIN = window.open(URL);
+	WIN.focus();
+}
+//-->
+</script>
+</head>
+
+<body bgcolor="#ffffff" text="#666666" link="#007bb7" vlink="#007bb7" alink="#cc0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload='lfnCheckPayment(); <!--{$tpl_onload}-->'>
+<noscript>
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->admin/css/common.css" type="text/css" />
+</noscript>
+
+<div align="center">
+<!--¡ú¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú¡ú-->
+<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
+<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->">
+<input type="hidden" name="mode" value="edit">
+	<tr valign="top">
+		<td class="mainbg">
+			<!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
+			<table width="500" border="0" cellspacing="0" cellpadding="0" summary=" ">
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+				<tr>
+					<td align="center">
+						<table width="470" border="0" cellspacing="0" cellpadding="0" summary=" ">
+							<tr><td height="14"></td></tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="470" height="14" alt=""></td>
+							</tr>
+							<tr>
+								<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>
+								<td bgcolor="#cccccc" >
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="442" height="7" alt=""></td>
+										</tr>
+										<tr>
+											<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>
+											<td bgcolor="#636469" width="402" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë--><!--{$tpl_subtitle}--></span></td>
+											<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>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="442" height="7" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td>
+										</tr>
+									</table>
+
+									<table width="442" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n">
+											<td bgcolor="#ffffff">
+												¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ë¤ò¤´ÍøÍÑÄº¤¯°Ù¤Ë¤Ï¡¢¥æ¡¼¥¶ÍÍ¤´¼«¿È¤Ç
+												¥ë¥ß¡¼¥º³ô¼°²ñ¼ÒÍÍ¤È¤´·ÀÌó¤ò¹Ô¤Ã¤Æ¤¤¤¿¤À¤¯É¬Í×¤¬¤¢¤ê¤Þ¤¹¡£ <br/>
+												¤ª¿½¤·¹þ¤ß¤Ë¤Ä¤­¤Þ¤·¤Æ¤Ï¡¢²¼µ­¤Î¥Ú¡¼¥¸¤«¤é¡¢¤ª¿½¤·¹þ¤ß¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£<br/><br/>
+												<a href="#" onClick="win_open('http://www.remise.jp/')" > ¡ä¡ä ¥ë¥ß¡¼¥º·èºÑ¥·¥¹¥Æ¥à¤Ë¤Ä¤¤¤Æ</a><br/>
+												<a href="#" onClick="win_open('http://wiki.ec-cube.net/')" > ¡ä¡ä ¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ëÀßÄê¥Þ¥Ë¥å¥¢¥ë</a>
+											</td>
+										</tr>
+									</table>
+									
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr><td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="442" height="10" alt=""></td></tr>
+									</table>
+									
+									<table width="442" border="0" cellspacing="1" cellpadding="8" summary=" ">
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">²ÃÌÁÅ¹¥³¡¼¥É<span class="red">¢¨</span></td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{assign var=key value="code"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$smarty.const.INT_LEN}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">¥Û¥¹¥ÈÈÖ¹æ<span class="red">¢¨</span></td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{assign var=key value="host_id"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box10" maxlength="<!--{$smarty.const.INT_LEN}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">ÀÜÂ³ÀèURL<br />(¥¯¥ì¥¸¥Ã¥È)<span class="red">¢¨</span></td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{assign var=key value="credit_url"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											[PC]<br /><input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box40" maxlength="<!--{$smarty.const.URL_LEN}-->"><br />
+											<!--{assign var=key value="mobile_credit_url"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											[¥â¥Ð¥¤¥ë]<br /><input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box40" maxlength="<!--{$smarty.const.URL_LEN}-->">
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3">»ÙÊ§¤¤ÊýË¡<span class="red">¢¨</span></td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{assign var=key value="credit_method"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<!--{html_checkboxes_ex name="$key" options=$arrCredit selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor}-->
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="90" bgcolor="#f3f3f3">¥ª¥×¥·¥ç¥ó</td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{assign var=key value="payment"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<!--{html_checkboxes_ex name="$key" options=$arrPayment selected=$arrForm[$key].value style=$arrErr[$key]|sfGetErrorColor onclick="lfnCheckPayment();"}-->
+											</td>
+										</tr>
+										<tr class="fs12n">
+											<td width="" bgcolor="#f3f3f3">ÀÜÂ³ÀèURL<br />(¥³¥ó¥Ó¥Ë)</td>
+											<td width="337" bgcolor="#ffffff">
+											<!--{assign var=key value="convenience_url"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											[PC]<br /><input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box40" maxlength="<!--{$smarty.const.URL_LEN}-->"><br />
+											<!--{assign var=key value="mobile_convenience_url"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											[¥â¥Ð¥¤¥ë]<br /><input type="text" name="<!--{$key}-->" style="ime-mode:disabled; <!--{$arrErr[$key]|sfGetErrorColor}-->" value="<!--{$arrForm[$key].value}-->" class="box40" maxlength="<!--{$smarty.const.URL_LEN}-->">
+											</td>
+										</tr>
+										<!--{assign var=key value="service"}-->
+										<!--{if $arrErr[$key] != ""}-->
+										<tr class="fs12n">
+											<td bgcolor="#ffffff" colspan=2>
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											</td>
+										</tr>
+										<!--{/if}-->
+									</table>
+
+									<table width="442" border="0" cellspacing="0" cellpadding="0" summary=" ">
+										<tr>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+											<td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="440" height="7" alt=""></td>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+										</tr>
+										<tr>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+											<td bgcolor="#e9e7de" align="center">
+											<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+												<tr>
+													<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>
+												</tr>
+											</table>
+											</td>
+											<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+										</tr>
+										<tr>
+											<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="442" height="8" alt=""></td>
+										</tr>
+									</table>
+								</td>
+								<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>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="470" height="14" alt=""></td>
+							</tr>
+							<tr><td height="30"></td></tr>
+						</table>
+					</td>
+				</tr>
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+			</table>
+			<!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
+		</td>
+	</tr>
+</form>
+</table>
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+</div>
+
+</body>
+</html>
+
+
Index: /tags/modules/remise-1.2/card.php
===================================================================
--- /tags/modules/remise-1.2/card.php	(revision 17003)
+++ /tags/modules/remise-1.2/card.php	(revision 17003)
@@ -0,0 +1,174 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+require_once("../require.php");
+require_once(DATA_PATH . "module/Request.php");
+require_once(MODULE_PATH . "mdl_remise/mdl_remise.inc");
+
+class LC_Page {
+    function LC_Page() {
+        /** É¬¤º»ØÄê¤¹¤ë **/
+        $this->tpl_mainpage = MODULE_PATH . 'mdl_remise/card.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+        $this->tpl_title = "¥«¡¼¥É·èºÑ";
+        /*
+         session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+         ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+         private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+        */
+        session_cache_limiter('private-no-expire');
+    }
+}
+
+$objPage = new LC_Page();
+$objView = new SC_SiteView();
+$objSiteInfo = $objView->objSiteInfo;
+$arrInfo = $objSiteInfo->data;
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+
+// ¥«¡¼¥È½¸·×½èÍý
+$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
+
+// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
+$arrData = sfGetOrderTemp($uniqid);
+
+// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
+$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
+
+$sql = "SELECT module_id, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 ".
+    "FROM dtb_payment WHERE payment_id = ? ";
+
+// »ÙÊ§¤¤¾ðÊó¤ò¼èÆÀ
+$arrPayment = $objQuery->getall($sql, array($arrData["payment_id"]));
+
+// ²èÌÌÁ«°ÜÈ½Äê
+switch($_POST["mode"]){
+    //Ìá¤ë
+    case 'return':
+        // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+        $objSiteSess->setRegistFlag();
+        // ³ÎÇ§¥Ú¡¼¥¸¤Ø°ÜÆ°
+        header("Location: " . URL_SHOP_CONFIRM);
+        exit;
+        break;
+}
+
+// ¥ë¥ß¡¼¥º¤«¤é¤ÎÊÖ¿®¤¬¤¢¤Ã¤¿¾ì¹ç
+if (isset($_POST["X-R_CODE"])) {
+
+    $err_detail = "";
+
+    // ÄÌ¿®»þ¥¨¥é¡¼
+    if ($_POST["X-R_CODE"] != $arrRemiseErrorWord["OK"]) {
+        $err_detail = $_POST["X-R_CODE"];
+        sfDispSiteError(FREE_ERROR_MSG, "", false, "¹ØÆþ½èÍýÃæ¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br /><br /><br />¡¦" . $err_detail);
+
+    // ÄÌ¿®·ë²ÌÀµ¾ï
+    } else {
+
+        $log_path = DATA_PATH . "logs/remise_card_finish.log";
+        gfPrintLog("remise card finish start----------", $log_path);
+        foreach($_POST as $key => $val){
+            gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+        }
+        gfPrintLog("remise card finish end  ----------", $log_path);
+
+        // ¶â³Û¤ÎÀ°¹çÀ­¥Á¥§¥Ã¥¯
+        if ($arrData["payment_total"] != $_POST["X-TOTAL"] && $arrData["credit_result"] != $_POST["X-TRANID"]) {
+            sfDispSiteError(FREE_ERROR_MSG, "", false, "¹ØÆþ½èÍýÃæ¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br /><br /><br />¡¦ÀÁµá¶â³Û¤È»ÙÊ§¤¤¶â³Û¤¬°ã¤¤¤Þ¤¹¡£");
+        }
+
+        // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+        $objSiteSess->setRegistFlag();
+
+        // POST¥Ç¡¼¥¿¤òÊÝÂ¸
+        $arrVal["credit_result"] = $_POST["X-TRANID"];
+        $arrVal["memo01"] = PAYMENT_CREDIT_ID;
+        $arrVal["memo03"] = $arrPayment[0]["module_id"];
+        $arrVal["memo04"] = $_POST["X-TRANID"];
+
+        // ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¥³¡¼¥É
+        $arrMemo["trans_code"] = array("name"=>"Remise¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¥³¡¼¥É", "value" => $_POST["X-TRANID"]);
+        $arrVal["memo02"] = serialize($arrMemo);
+
+        // ·èºÑÁ÷¿®¥Ç¡¼¥¿ºîÀ®
+        $arrModule['module_id'] = MDL_REMISE_ID;
+        $arrModule['payment_total'] = $arrData["payment_total"];
+        $arrModule['payment_id'] = PAYMENT_CREDIT_ID;
+        $arrVal['memo05'] = serialize($arrModule);
+
+        // ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë¹¹¿·
+        sfRegistTempOrder($uniqid, $arrVal);
+
+        // ´°Î»²èÌÌ¤Ø
+        header("Location: " .  URL_SHOP_COMPLETE);
+    }
+}
+
+// EC-CUBEÂ¦¤ÎÄÌÃÎÍÑURL
+$retUrl = SITE_URL . 'shopping/load_payment_module.php?module_id=' . MDL_REMISE_ID;
+$exitUrl = SITE_URL . 'shopping/load_payment_module.php';
+
+$arrSendData = array(
+    'SEND_URL'      => $arrPayment[0]["memo04"],    // ÀÜÂ³ÀèURL
+    'S_TORIHIKI_NO' => $arrData["order_id"],        // ¥ª¡¼¥À¡¼ÈÖ¹æ
+    'MAIL'          => $arrData["order_email"],     // ¥á¡¼¥ë¥¢¥É¥ì¥¹
+    'AMOUNT'        => $arrData["payment_total"],   // ¶â³Û
+    'TAX'           => '0',                         // Á÷ÎÁ + ÀÇ
+    'TOTAL'         => $arrData["payment_total"],   // ¹ç·×¶â³Û
+    'SHOPCO'        => $arrPayment[0]["memo01"],    // Å¹ÊÞ¥³¡¼¥É
+    'HOSTID'        => $arrPayment[0]["memo02"],    // ¥Û¥¹¥ÈID
+    'JOB'           => REMISE_PAYMENT_JOB_CODE,     // ¥¸¥ç¥Ö¥³¡¼¥É
+    'ITEM'          => '0000120',                   // ¾¦ÉÊ¥³¡¼¥É(¥ë¥ß¡¼¥º¸ÇÄê)
+    'RETURL'        => $retUrl,                     // ´°Î»ÄÌÃÎURL
+    'NG_RETURL'     => $retUrl,                     // NG´°Î»ÄÌÃÎURL
+    'EXITURL'       => $exitUrl,                    // Ìá¤êÀèURL
+    'REMARKS3'      => MDL_REMISE_POST_VALUE,
+    'ELIO'          => 1                            // ELIO·èºÑ
+);
+
+// »ÙÊ§¤¤ÊýË¡É½¼¨½èÍý
+$objFormParam->setValue("credit_method", $arrPayment[0]["memo08"]);
+$objFormParam->splitParamCheckBoxes("credit_method");
+$arrUseCreMet = $objFormParam->getValue("credit_method");
+
+foreach($arrUseCreMet as $key => $val) {
+    $arrCreMet[$val] = $arrCredit[$val];
+}
+
+// Ê¬³ä²ó¿ôÉ½¼¨½èÍý(´ÉÍý²èÌÌ¤Ç¤ÎÀßÄê²ó¿ô°ÊÆâ¤Þ¤ÇÉ½¼¨)
+foreach($arrCreditDivide as $key => $val) {
+    if ($arrPayment[0]["memo09"] >= $val) {
+        $arrCreDiv[$val] = $val;
+    }
+}
+
+$objPage->arrCreMet = $arrCreMet;
+$objPage->arrCreDiv = $arrCreDiv;
+$objPage->arrSendData = $arrSendData;
+
+$objView->assignobj($objPage);
+
+// ½ÐÎÏÆâÍÆ¤òSJIS¤Ë¤¹¤ë(¥ë¥ß¡¼¥ºÂÐ±þ)
+mb_http_output(REMISE_SEND_ENCODE);
+$objView->display(SITE_FRAME);
+//---------------------------------------------------------------------------------------------------------------------------------------------------------
+
+//¥Ñ¥é¥á¡¼¥¿¤Î½é´ü²½
+function lfInitParam() {
+    global $objFormParam;
+    $objFormParam->addParam("»ÙÊ§¤¤ÊýË¡", "credit_method");
+}
+
+?>
Index: /tags/modules/remise-1.2/convenience.php
===================================================================
--- /tags/modules/remise-1.2/convenience.php	(revision 11660)
+++ /tags/modules/remise-1.2/convenience.php	(revision 11660)
@@ -0,0 +1,195 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+
+require_once("../require.php");
+require_once(DATA_PATH . "module/Request.php");
+require_once(MODULE_PATH . "mdl_remise/mdl_remise.inc");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = MODULE_PATH . "mdl_remise/convenience.tpl";
+		$this->tpl_title = "¥³¥ó¥Ó¥Ë·èºÑ";
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+	}
+}
+
+global $arrConvenience;
+global $arrConveni_message;
+
+$objPage = new LC_Page();
+$objView = new SC_SiteView();
+$objSiteInfo = $objView->objSiteInfo;
+$arrInfo = $objSiteInfo->data;
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+
+// ¥«¡¼¥È½¸·×½èÍý
+$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
+
+// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
+$arrData = sfGetOrderTemp($uniqid);
+
+// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
+$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
+
+// ÂåÉ½¾¦ÉÊ¾ðÊó
+$arrMainProduct = $objPage->arrProductsClass[0];
+
+// »ÙÊ§¤¤¾ðÊó¤ò¼èÆÀ
+$arrPayment = $objQuery->getall("SELECT module_id, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ? ", array($arrData["payment_id"]));
+
+// ³ÎÇ§²èÌÌ¤ËÌá¤ë
+switch($_POST["mode"]){
+	//Ìá¤ë
+	case 'return':
+		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		// ³ÎÇ§¥Ú¡¼¥¸¤Ø°ÜÆ°
+		header("Location: " . URL_SHOP_CONFIRM);
+		exit;
+		break;
+}
+
+// ¥ë¥ß¡¼¥º¤«¤é¤ÎÊÖ¿®¤¬¤¢¤Ã¤¿¾ì¹ç
+if (isset($_POST["X-R_CODE"])) {
+
+	$err_detail = "";
+	
+	// ÄÌ¿®»þ¥¨¥é¡¼
+	if ($_POST["X-R_CODE"] != $arrRemiseErrorWord["OK"]) {
+		$err_detail = $_POST["X-R_CODE"];
+		sfDispSiteError(FREE_ERROR_MSG, "", false, "¹ØÆþ½èÍýÃæ¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br /><br /><br />¡¦" . $err_detail);
+	
+	// ÄÌ¿®·ë²ÌÀµ¾ï
+	} else {
+
+		$log_path = DATA_PATH . "logs/remise_cv_finish.log";
+		gfPrintLog("remise conveni finish start----------", $log_path);
+		foreach($_POST as $key => $val){
+			gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+		}
+		gfPrintLog("remise conveni finish end  ----------", $log_path);
+
+		// ¶â³Û¤ÎÀ°¹çÀ­¥Á¥§¥Ã¥¯
+		if ($arrData["payment_total"] != $_POST["X-TOTAL"]) {
+			sfDispSiteError(FREE_ERROR_MSG, "", false, "¹ØÆþ½èÍýÃæ¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br /><br /><br />¡¦ÀÁµá¶â³Û¤È»ÙÊ§¤¤¶â³Û¤¬°ã¤¤¤Þ¤¹¡£");
+		}
+		
+		// Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		
+		// ¥ë¥ß¡¼¥º¤«¤é¤ÎÃÍ¤Î¼èÆÀ
+		$job_id = lfSetConvMSG("¥¸¥ç¥ÖID(REMISE)", $_POST["X-JOB_ID"]);
+		$payment_limit = lfSetConvMSG("»ÙÊ§¤¤´ü¸Â", $_POST["X-PAYDATE"]);
+		$conveni_type = lfSetConvMSG("»ÙÊ§¤¤¥³¥ó¥Ó¥Ë", $arrConvenience[$_POST["X-PAY_CSV"]]);
+		$payment_total = lfSetConvMSG("¹ç·×¶â³Û", $_POST["X-TOTAL"]);
+		$receipt_no = lfSetConvMSG("¥³¥ó¥Ó¥ËÊ§¤¤½Ð¤·ÈÖ¹æ", $_POST["X-PAY_NO1"]);
+
+		// ¥Õ¥¡¥ß¥ê¡¼¥Þ¡¼¥È¤Î¤ßURL¤¬¤Ê¤¤
+		if ($_POST["X-PAY_CSV"] != "D030") {
+			$payment_url = lfSetConvMSG("¥³¥ó¥Ó¥ËÊ§¤¤½Ð¤·URL", $_POST["X-PAY_NO2"]);
+		} else {
+			$payment_url = lfSetConvMSG("ÃíÊ¸ÈÖ¹æ", $_POST["X-PAY_NO2"]);
+		}
+		
+		$arrRet['cv_type'] = $conveni_type;				// ¥³¥ó¥Ó¥Ë¤Î¼ïÎà
+		$arrRet['cv_payment_url'] = $payment_url;		// Ê§¹þÉ¼URL(PC)
+		$arrRet['cv_receipt_no'] = $receipt_no;			// Ê§¹þÉ¼ÈÖ¹æ
+		$arrRet['cv_payment_limit'] = $payment_limit;	// »ÙÊ§¤¤´ü¸Â
+		$arrRet['title'] = lfSetConvMSG("¥³¥ó¥Ó¥Ë·èºÑ", true);
+		
+		// ·èºÑÁ÷¿®¥Ç¡¼¥¿ºîÀ®
+		$arrModule['module_id'] = MDL_REMISE_ID;
+		$arrModule['payment_total'] = $arrData["payment_total"];
+		$arrModule['payment_id'] = PAYMENT_CONVENIENCE_ID;
+		
+		// ¥¹¥Æ¡¼¥¿¥¹¤ÏÌ¤Æþ¶â¤Ë¤¹¤ë
+		$sqlval['status'] = 2;
+		
+		// ¥³¥ó¥Ó¥Ë·èºÑ¾ðÊó¤ò³ÊÇ¼
+		$sqlval['conveni_data'] = serialize($arrRet);
+		$sqlval['memo01'] = PAYMENT_CONVENIENCE_ID;
+		$sqlval['memo02'] = serialize($arrRet);
+		$sqlval['memo03'] = $arrPayment[0]["module_id"];
+		$sqlval['memo04'] = $_POST["X-JOB_ID"];
+		$sqlval['memo05'] = serialize($arrModule);
+
+		// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë¹¹¿·
+		sfRegistTempOrder($uniqid, $sqlval);
+
+		header("Location: " . URL_SHOP_COMPLETE);
+	}
+}
+
+// EC-CUBEÂ¦¤ÎÄÌÃÎÍÑURL
+$retUrl = SITE_URL . 'shopping/load_payment_module.php?module_id=' . MDL_REMISE_ID;
+$exitUrl = SITE_URL . 'shopping/load_payment_module.php';
+$tel = $arrData["order_tel01"].$arrData["order_tel02"].$arrData["order_tel03"];
+
+// ½»½êÀ°·Á
+$pref = $arrPref[$arrData["order_pref"]];
+$address1 = mb_convert_kana($arrData["order_addr01"], "ASKHV");
+$address2 = mb_convert_kana($arrData["order_addr02"], "ASKHV");
+
+// ¾¦ÉÊÌ¾À°·Á(ºÇÂç7¸Ä¤Î¤¿¤á¡¢¾¦ÉÊÂå¶â¤È¤·¤ÆÁ´ÂÎ¤Ç½ÐÎÏ¤¹¤ë)
+$itemName = "¾¦ÉÊÂå¶â";
+$itemPlace = $arrData["payment_total"] - $arrData["deliv_fee"];
+
+$arrSendData = array(
+	'SEND_URL' => $arrPayment[0]["memo05"],		// ÀÜÂ³ÀèURL
+	'S_TORIHIKI_NO' => $arrData["order_id"],		// ÀÁµáÈÖ¹æ(EC-CUBE)
+	'MAIL' => $arrData["order_email"],				// ¥á¡¼¥ë¥¢¥É¥ì¥¹
+	'NAME1' => $arrData["order_name01"],			// ¥æ¡¼¥¶¡¼Ì¾1
+	'NAME2' => $arrData["order_name02"],			// ¥æ¡¼¥¶¡¼Ì¾2
+	'KANA1' => $arrData["order_kana01"],			// ¥æ¡¼¥¶¡¼Ì¾(¥«¥Ê)1
+	'KANA2' => $arrData["order_kana02"],			// ¥æ¡¼¥¶¡¼Ì¾(¥«¥Ê)2
+	'TEL' => $tel,									// ÅÅÏÃÈÖ¹æ
+	'YUBIN1' => $arrData["order_zip01"],			// Í¹ÊØÈÖ¹æ1
+	'YUBIN2' => $arrData["order_zip02"],			// Í¹ÊØÈÖ¹æ2
+	'ADD1' => $pref,								// ½»½ê1
+	'ADD2' => $address1,							// ½»½ê2
+	'ADD3' => $address2,							// ½»½ê3
+	'MSUM_01' => $arrData["subtotal"],				// ¶â³Û
+	'TAX' => $arrData["deliv_fee"],					// Á÷ÎÁ + ÀÇ
+	'TOTAL' => $arrData["payment_total"],			// ¹ç·×¶â³Û
+	'SHOPCO' => $arrPayment[0]["memo01"],			// Å¹ÊÞ¥³¡¼¥É
+	'HOSTID' => $arrPayment[0]["memo02"],			// ¥Û¥¹¥ÈID
+	'RETURL' => $retUrl,							// ´°Î»ÄÌÃÎURL
+	'NG_RETURL' => $retUrl,						// NG´°Î»ÄÌÃÎURL
+	'EXITURL' => $exitUrl,							// Ìá¤êÀèURL
+	'MNAME_01' => $itemName,						// ¾¦ÉÊÌ¾
+	'MSUM_01' => $itemPlace,						// ¾¦ÉÊÂå¶â¹ç·×(Á÷ÎÁ+ÀÇ°Ê³°)
+	'REMARKS3' => MDL_REMISE_POST_VALUE
+);
+
+$objPage->arrSendData = $arrSendData;
+$objPage->arrForm =$objFormParam->getHashArray();
+$objView->assignobj($objPage);
+
+// ½ÐÎÏÆâÍÆ¤òSJIS¤Ë¤¹¤ë(¥ë¥ß¡¼¥ºÂÐ±þ)
+mb_http_output(REMISE_SEND_ENCODE);
+$objView->display(MODULE_PATH . "mdl_remise/convenience.tpl");
+
+//---------------------------------------------------------------------------------------------------------------------------------------------------------
+
+function lfSetConvMSG($name, $value){
+	return array("name" => $name, "value" => $value);
+}
+
+?>
Index: /tags/modules/remise-1.2/mdl_remise.php
===================================================================
--- /tags/modules/remise-1.2/mdl_remise.php	(revision 16687)
+++ /tags/modules/remise-1.2/mdl_remise.php	(revision 16687)
@@ -0,0 +1,424 @@
+<?php
+/**
+ *
+ * @copyright	2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ * @version	CVS: $Id$
+ * @link		http://www.lockon.co.jp/
+ *
+ */
+require_once(MODULE_PATH . "mdl_remise/mdl_remise.inc");
+
+//¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹
+class LC_Page {
+	//¥³¥ó¥¹¥È¥é¥¯¥¿
+	function LC_Page() {
+		//¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È¤Î»ØÄê
+		$this->tpl_mainpage = MODULE_PATH . 'mdl_remise/mdl_remise.tpl';
+		$this->tpl_subtitle = '¥ë¥ß¡¼¥º·èºÑ¥â¥¸¥å¡¼¥ë';
+		global $arrPayment;
+		$this->arrPayment = $arrPayment;
+		global $arrCredit;
+		$this->arrCredit = $arrCredit;
+		global $arrCreditDivide;
+		$this->arrCreditDivide = $arrCreditDivide;
+	}
+}
+$objPage = new LC_Page();
+$objView = new SC_AdminView();
+$objQuery = new SC_Query();
+
+// Ç§¾Ú³ÎÇ§
+$objSess = new SC_Session();
+sfIsSuccess($objSess);
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+$objFormParam = lfInitParam($objFormParam);
+
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ÈÆÍÑ¹àÌÜ¤òÄÉ²Ã(É¬¿Ü¡ª¡ª)
+sfAlterMemo();
+
+$mode = "";
+if (isset($_POST['mode'])) {
+	$mode = $_POST['mode'];
+}
+
+switch($mode) {
+	case 'edit':
+		// ÆþÎÏ¥¨¥é¡¼È½Äê
+		$objPage->arrErr = lfCheckError();
+
+		// ¥¨¥é¡¼¤Ê¤·¤Î¾ì¹ç¤Ë¤Ï¥Ç¡¼¥¿¤ò¹¹¿·
+		if (count($objPage->arrErr) == 0) {
+			// ¥Ç¡¼¥¿¹¹¿·
+			lfUpdPaymentDB();
+            // ·èºÑ·ë²Ì¼õÉÕ¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼
+            copy(MODULE_PATH . "mdl_remise/remise_recv.php", HTML_PATH . "user_data/remise_recv.php");
+			// javascript¼Â¹Ô
+			$objPage->tpl_onload = 'alert("ÅÐÏ¿´°Î»¤·¤Þ¤·¤¿¡£\n´ðËÜ¾ðÊó¡ä»ÙÊ§ÊýË¡ÀßÄê¤è¤ê¾ÜºÙÀßÄê¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£"); window.close();';
+		}
+		break;
+	case 'module_del':
+		// ÈÆÍÑ¹àÌÜ¤ÎÂ¸ºß¥Á¥§¥Ã¥¯
+		if (sfColumnExists("dtb_payment", "memo01")) {
+			// ¥Ç¡¼¥¿¤Îºï½ü¥Õ¥é¥°¤ò¤¿¤Æ¤ë
+			$objQuery->query("UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ?", array(MDL_REMISE_ID));
+		}
+		break;
+	default:
+		// ¥Ç¡¼¥¿¤Î¥í¡¼¥É
+		lfLoadData();
+		break;
+}
+
+$objPage->arrForm = $objFormParam->getFormParamList();
+
+$objView->assignobj($objPage);					//ÊÑ¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¥¢¥µ¥¤¥ó¤¹¤ë
+$objView->display($objPage->tpl_mainpage);		//¥Æ¥ó¥×¥ì¡¼¥È¤Î½ÐÎÏ
+//-------------------------------------------------------------------------------------------------------
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam($objFormParam) {
+	$objFormParam->addParam("²ÃÌÁÅ¹¥³¡¼¥É", "code", INT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Û¥¹¥ÈÈÖ¹æ", "host_id", INT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("¥¯¥ì¥¸¥Ã¥ÈÀÜÂ³ÀèURL(PC)", "credit_url", URL_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "URL_CHECK"));
+	$objFormParam->addParam("¥¯¥ì¥¸¥Ã¥ÈÀÜÂ³ÀèURL(¥â¥Ð¥¤¥ë)", "mobile_credit_url");
+	$objFormParam->addParam("»ÙÊ§¤¤ÊýË¡", "credit_method");
+	$objFormParam->addParam("¥ª¥×¥·¥ç¥ó", "payment");
+	$objFormParam->addParam("¥³¥ó¥Ó¥ËÀÜÂ³ÀèURL(PC)", "convenience_url");
+	$objFormParam->addParam("¥³¥ó¥Ó¥ËÀÜÂ³ÀèURL(¥â¥Ð¥¤¥ë)", "mobile_convenience_url");
+	return $objFormParam;
+}
+
+// ¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¦
+function lfCheckError(){
+	global $objFormParam;
+
+	$arrErr = $objFormParam->checkError();
+
+	// ÍøÍÑ¥¯¥ì¥¸¥Ã¥È¡¢ÍøÍÑ¥³¥ó¥Ó¥Ë¤Î¥¨¥é¡¼¥Á¥§¥Ã¥¯
+	$arrChkPay = $_POST["payment"];
+
+	// ¥¯¥ì¥¸¥Ã¥È¤Î»ÙÊ§¤¤ÊýË¡
+	if (count($_POST["credit_method"]) <= 0) {
+		$arrErr["credit_method"] = "»ÙÊ§¤¤ÊýË¡¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br />";
+	}
+
+	// ÍøÍÑ¥³¥ó¥Ó¥Ë
+	if (isset($arrChkPay)) {
+		if ($_POST["convenience_url"] == "" && $_POST["mobile_convenience_url"] == "") {
+			$arrErr["convenience_url"] = "¥³¥ó¥Ó¥ËÀÜÂ³ÀèURL(PC)¤Þ¤¿¤Ï¥³¥ó¥Ó¥ËÀÜÂ³ÀèURL(¥â¥Ð¥¤¥ë)¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br />";
+		}
+	}
+
+	return $arrErr;
+}
+
+// ÅÐÏ¿¥Ç¡¼¥¿¤òÆÉ¤ß¹þ¤à
+function lfLoadData(){
+	global $objFormParam;
+
+	//¥Ç¡¼¥¿¤ò¼èÆÀ
+	$arrRet = lfGetPaymentDB(" AND del_flg = '0'");
+
+	// ÃÍ¤ò¥»¥Ã¥È
+	$objFormParam->setParam($arrRet[0]);
+
+	// ²èÌÌÉ½¼¨ÍÑ¤Ë¥Ç¡¼¥¿¤òÊÑ´¹
+	$arrDisp = array();
+	$arrDisp["payment"][0] = 0;
+
+	foreach($arrRet as $key => $val) {
+		// ¥¯¥ì¥¸¥Ã¥È¤Î·èºÑ¶èÊ¬¤ò¼èÆÀ
+		if($val["payment"] == 1) {
+			$credit = $val["payment_code"];
+			$arrDisp["credit_url"] = $val["credit_url"];
+			$arrDisp["mobile_credit_url"] = $val["mobile_credit_url"];
+			$arrDisp["credit_method"] = $val["credit_method"];
+		}
+
+		// ¥³¥ó¥Ó¥Ë¤Î·èºÑ¶èÊ¬¤ò¼èÆÀ
+		if($val["payment"] == 2) {
+			$arrDisp["convenience"] = $val["convenience"];
+			$arrDisp["payment"][0] = 1;
+			$arrDisp["convenience_url"] = $val["convenience_url"];
+			$arrDisp["mobile_convenience_url"] = $val["mobile_convenience_url"];
+		}
+	}
+
+	$objFormParam->setParam($arrDisp);
+	$objFormParam->splitParamCheckBoxes("credit_method");
+
+	// ¥¯¥ì¥¸¥Ã¥È»ÙÊ§¤¤¶èÊ¬
+	//$objFormParam->splitParamCheckBoxes("credit_method");
+}
+
+// DB¤«¤é¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
+function lfGetPaymentDB($where = "", $arrWhereVal = array()){
+	global $objQuery;
+
+	$arrVal = array(MDL_REMISE_ID);
+	$arrVal = array_merge($arrVal, $arrWhereVal);
+
+	$arrRet = array();
+	$sql = "SELECT
+				module_id,
+				memo01 as code,
+				memo02 as host_id,
+				memo03 as payment,
+				memo04 as credit_url,
+				memo05 as convenience_url,
+				memo06 as mobile_credit_url,
+				memo07 as mobile_convenience_url,
+				memo08 as credit_method,
+				memo09 as credit_divide
+			FROM dtb_payment WHERE module_id = ? " . $where;
+	$arrRet = $objQuery->getall($sql, $arrVal);
+
+	return $arrRet;
+}
+
+
+// ¥Ç¡¼¥¿¤Î¹¹¿·½èÍý
+function lfUpdPaymentDB(){
+	global $objQuery;
+	global $objSess;
+
+	// »ÙÊ§¤¤ÊýË¡¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Ï¥¤¥Õ¥ó¶èÀÚ¤ê¤ËÊÔ½¸¤¹¤ë
+	$convCnt = count($_POST["credit_method"]);
+	if ($convCnt > 0) {
+		$credit_method = $_POST["credit_method"][0];
+		for ($i = 1 ; $i < $convCnt ; $i++) {
+			$credit_method .= "-" . $_POST["credit_method"][$i];
+		}
+	}
+
+	// del_flg¤òºï½ü¤Ë¤·¤Æ¤ª¤¯
+	$del_sql = "UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ? ";
+	$arrDel = array(MDL_REMISE_ID);
+	$objQuery->query($del_sql, $arrDel);
+
+	$arrEntry = array('1');
+
+	if (count($_POST["payment"]) > 0) {
+		$arrEntry[] = '2';
+	}
+
+	foreach($arrEntry as $key => $val){
+		// ¥é¥ó¥¯¤ÎºÇÂçÃÍ¤ò¼èÆÀ¤¹¤ë
+		$max_rank = $objQuery->getone("SELECT max(rank) FROM dtb_payment");
+
+		// »ÙÊ§ÊýË¡¥Ç¡¼¥¿¤ò¼èÆÀ
+		$arrPaymentData = lfGetPaymentDB("AND memo03 = ?", array($val));
+
+		// ¥¯¥ì¥¸¥Ã¥È·èºÑÅÐÏ¿
+		if($val == 1) {
+
+			$arrData = array(
+				"payment_method" => "remise¥¯¥ì¥¸¥Ã¥È"
+				,"fix" => 3
+				,"creator_id" => $objSess->member_id
+				,"create_date" => "now()"
+				,"update_date" => "now()"
+				,"upper_rule" => REMISE_CREDIT_UPPER
+				,"module_id" => MDL_REMISE_ID
+				,"module_path" => MODULE_PATH . "mdl_remise/card.php"
+				,"memo01" => $_POST["code"]
+				,"memo02" => $_POST["host_id"]
+				,"memo03" => $val
+				,"memo04" => $_POST["credit_url"]
+				,"memo06" => $_POST["mobile_credit_url"]
+				,"memo08" => $credit_method
+				,"memo09" => REMISE_PAYMENT_DIVIDE_MAX
+				,"del_flg" => "0"
+				,"charge_flg" => "2"
+				,"upper_rule_max" => REMISE_CREDIT_UPPER
+			);
+		}
+
+		// ¥³¥ó¥Ó¥Ë¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤ì¤Ð¥³¥ó¥Ó¥Ë¤òÅÐÏ¿¤¹¤ë
+		if($val == 2) {
+
+			$arrData = array(
+				"payment_method" => "remise¥³¥ó¥Ó¥Ë"
+				,"fix" => 3
+				,"creator_id" => $objSess->member_id
+				,"create_date" => "now()"
+				,"update_date" => "now()"
+				,"upper_rule" => REMISE_CONVENIENCE_UPPER
+				,"module_id" => MDL_REMISE_ID
+				,"module_path" => MODULE_PATH . "mdl_remise/convenience.php"
+				,"memo01" => $_POST["code"]
+				,"memo02" => $_POST["host_id"]
+				,"memo03" => $val
+				,"memo05" => $_POST["convenience_url"]
+				,"memo07" => $_POST["mobile_convenience_url"]
+				,"del_flg" => "0"
+				,"charge_flg" => "1"
+				,"upper_rule_max" => REMISE_CONVENIENCE_UPPER
+				,"rule_min" => REMISE_CONVENIENCE_BOTTOM
+			);
+		}
+
+		// ¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Æ¤¤¤ì¤ÐUPDATE¡¢Ìµ¤±¤ì¤ÐINSERT
+		if (count($arrPaymentData) > 0) {
+			$objQuery->update("dtb_payment", $arrData, " module_id = '" . MDL_REMISE_ID . "' AND memo03 = '" . $val ."'");
+		} else {
+			$arrData["rank"] = $max_rank + 1;
+			$objQuery->insert("dtb_payment", $arrData);
+		}
+	}
+}
+
+// ¥ë¥ß¡¼¥º¥«¡¼¥É¥¯¥ì¥¸¥Ã¥È·èºÑ·ë²ÌÄÌÃÎ½èÍý
+function lfRemiseCreditResultCheck(){
+	global $objQuery;
+
+	$log_path = DATA_PATH . "logs/remise_card_result.log";
+	gfPrintLog("remise card result : ".$_POST["X-TRANID"] , $log_path);
+
+	// TRAN_ID ¤ò»ØÄê¤µ¤ì¤Æ¤¤¤Æ¡¢¥«¡¼¥É¾ðÊó¤¬¤¢¤ë¾ì¹ç
+	if (isset($_POST["X-TRANID"]) && isset($_POST["X-PARTOFCARD"])) {
+
+		$errFlg = FALSE;
+
+		gfPrintLog("remise card result start----------", $log_path);
+		foreach($_POST as $key => $val){
+			gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+		}
+		gfPrintLog("remise credit result end  ----------", $log_path);
+
+		// IP¥¢¥É¥ì¥¹À©¸æ¤¹¤ë¾ì¹ç
+		if (REMISE_IP_ADDRESS_DENY == 1) {
+			gfPrintLog("remise remoto ip address : ".$_SERVER["REMOTE_HOST"]."-".$_SERVER["REMOTE_ADDR"], $log_path);
+			if (!isset($_SERVER["REMOTE_ADDR"]) || !lfIpAddressDenyCheck($_SERVER["REMOTE_ADDR"])) {
+				print("NOT REMISE SERVER");
+				exit;
+			}
+		}
+
+		// ÀÁµáÈÖ¹æ¤È¶â³Û¤Î¼èÆÀ
+		$order_id = 0;
+		$payment_total = 0;
+
+		if (isset($_POST["X-S_TORIHIKI_NO"])) {
+			$order_id = $_POST["X-S_TORIHIKI_NO"];
+		}
+
+		if (isset($_POST["X-TOTAL"])) {
+			$payment_total = $_POST["X-TOTAL"];
+		}
+
+		gfPrintLog("order_id : ".$order_id, $log_path);
+		gfPrintLog("payment_total : ".$payment_total, $log_path);
+
+		// ÃíÊ¸¥Ç¡¼¥¿¼èÆÀ
+		$arrTempOrder = $objQuery->getall("SELECT payment_total FROM dtb_order_temp WHERE order_id = ? ", array($order_id));
+
+		// ¶â³Û¤ÎÁê°ã
+		if (count($arrTempOrder) > 0) {
+			gfPrintLog("ORDER payment_total : ".$arrTempOrder[0]['payment_total'], $log_path);
+			if ($arrTempOrder[0]['payment_total'] == $payment_total) {
+				$errFlg = TRUE;
+			}
+		}
+
+		if ($errFlg) {
+			print(REMISE_PAYMENT_CHARGE_OK);
+			exit;
+		}
+		print("ERROR");
+		exit;
+	}
+}
+
+// ¥³¥ó¥Ó¥ËÆþ¶â³ÎÇ§½èÍý
+function lfRemiseConveniCheck(){
+	global $objQuery;
+
+	$log_path = DATA_PATH . "logs/remise_cv_charge.log";
+	gfPrintLog("remise conveni result : ".$_POST["JOB_ID"] , $log_path);
+
+	// É¬Í×¤Ê¥Ç¡¼¥¿¤¬Á÷¿®¤µ¤ì¤Æ¤¤¤Æ¡¢¼ýÇ¼ÄÌÃÎ¤Î¼«Æ°¼õ¿®¤òµö²Ä¤·¤Æ¤¤¤ë¾ì¹ç
+	if(isset($_POST["JOB_ID"]) && isset($_POST["REC_FLG"]) && REMISE_CONVENIENCE_RECIVE == 1){
+
+		$errFlg = FALSE;
+
+		// ¼ýÇ¼ºÑ¤ß¤Î¾ì¹ç
+		if ($_POST["REC_FLG"] == REMISE_CONVENIENCE_CHARGE) {
+			// POST¤ÎÆâÍÆ¤òÁ´¤Æ¥í¥°ÊÝÂ¸
+			gfPrintLog("remise conveni charge start----------", $log_path);
+			foreach($_POST as $key => $val){
+				gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+			}
+			gfPrintLog("remise conveni charge end  ----------", $log_path);
+
+			// IP¥¢¥É¥ì¥¹À©¸æ¤¹¤ë¾ì¹ç
+			if (REMISE_IP_ADDRESS_DENY == 1) {
+				gfPrintLog("remise remoto ip address : ".$_SERVER["REMOTE_HOST"]."-".$_SERVER["REMOTE_ADDR"], $log_path);
+				if (!isset($_SERVER["REMOTE_ADDR"]) || !lfIpAddressDenyCheck($_SERVER["REMOTE_ADDR"])) {
+					print("NOT REMISE SERVER");
+					exit;
+				}
+			}
+
+			// ÀÁµáÈÖ¹æ¤È¶â³Û¤Î¼èÆÀ
+			$order_id = 0;
+			$payment_total = 0;
+
+			if (isset($_POST["S_TORIHIKI_NO"])) {
+				$order_id = $_POST["S_TORIHIKI_NO"];
+			}
+
+			if (isset($_POST["TOTAL"])) {
+				$payment_total = $_POST["TOTAL"];
+			}
+
+			gfPrintLog("order_id : ".$order_id, $log_path);
+			gfPrintLog("payment_total : ".$payment_total, $log_path);
+
+			// ÃíÊ¸¥Ç¡¼¥¿¼èÆÀ
+			$arrTempOrder = $objQuery->getall("SELECT payment_total FROM dtb_order_temp WHERE order_id = ? ", array($order_id));
+
+			// ¶â³Û¤ÎÁê°ã
+			if (count($arrTempOrder) > 0) {
+				gfPrintLog("ORDER payment_total : ".$arrTempOrder[0]['payment_total'], $log_path);
+				if ($arrTempOrder[0]['payment_total'] == $payment_total) {
+					$errFlg = TRUE;
+				}
+			}
+
+			// JOB_ID¤ÈÀÁµáÈÖ¹æ¡£Æþ¶â¶â³Û¤¬°ìÃ×¤¹¤ë¾ì¹ç¤Î¤ß¡¢¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âºÑ¤ß¤ËÊÑ¹¹¤¹¤ë
+			if ($errFlg) {
+				$sql = "UPDATE dtb_order SET status = 6, update_date = now() ".
+					"WHERE order_id = ? AND memo04 = ? ";
+				$objQuery->query($sql, array($order_id, $_POST["JOB_ID"]));
+
+				//±þÅú·ë²Ì¤òÉ½¼¨
+				print(REMISE_CONVENIENCE_CHARGE_OK);
+				exit;
+			}
+		}
+		print("ERROR");
+		exit;
+	}
+}
+
+/**
+ * IP¥¢¥É¥ì¥¹ÂÓ°è¥Á¥§¥Ã¥¯
+ * @param $ip IP¥¢¥É¥ì¥¹
+ * @return boolean
+ */
+function lfIpAddressDenyCheck($ip) {
+
+	// IP¥¢¥É¥ì¥¹ÈÏ°Ï¤ËÆþ¤Ã¤Æ¤Ê¤¤¾ì¹ç
+	if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($ip) ||
+		ip2long(REMISE_IP_ADDRESS_E) < ip2long($ip)) {
+		return FALSE;
+	}
+	return TRUE;
+}
+
+?>
Index: /tags/modules/remise-1.2/card.tpl
===================================================================
--- /tags/modules/remise-1.2/card.tpl	(revision 16721)
+++ /tags/modules/remise-1.2/card.tpl	(revision 16721)
@@ -0,0 +1,205 @@
+<!--{*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *}-->
+<!--¢§CONTENTS-->
+<script type="text/javascript">
+<!--
+function preLoadImg(URL){
+	arrImgList = new Array (
+		URL+"img/header/basis_on.jpg",URL+"img/header/product_on.jpg",URL+"img/header/customer_on.jpg",URL+"img/header/order_on.jpg",
+		URL+"img/header/sales_on.jpg",URL+"img/header/mail_on.jpg",URL+"img/header/contents_on.jpg",
+		URL+"img/header/mainpage_on.gif",URL+"img/header/sitecheck_on.gif",URL+"img/header/logout.gif",
+		URL+"img/contents/btn_search_on.jpg",URL+"img/contents/btn_regist_on.jpg",
+		URL+"img/contents/btn_csv_on.jpg",URL+"img/contents/arrow_left.jpg",URL+"img/contents/arrow_right.jpg"
+	);
+	arrPreLoad = new Array();
+	for (i in arrImgList) {
+		arrPreLoad[i] = new Image();
+		arrPreLoad[i].src = arrImgList[i];
+	}
+	preLoadFlag = "true";
+}
+
+function chgImg(fileName,imgName){
+	if (preLoadFlag == "true") {
+		document.images[imgName].src = fileName;
+	}
+}
+
+function chgImgImageSubmit(fileName,imgObj){
+	imgObj.src = fileName;
+}
+function fnFormModeSubmit(form, mode, keyname, keyid) {
+	document.forms[form]['mode'].value = mode;
+	if(keyname != "" && keyid != "") {
+		document.forms[form][keyname].value = keyid;
+	}
+	document.forms[form].submit();
+}
+// »ÙÊ§¤¤ÊýË¡¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ë¤«¤òÈ½Äê¤¹¤ë
+function lfMethodChecked() {
+	var methods = document.form1.METHOD;
+	var checked = false;
+
+	var max = methods.length;
+	for (var i = 0; i < max; i++) {
+		if (methods[i].checked) {
+			checked = true;
+		}
+	}
+	if (checked) {
+		document.form1.submit();
+	} else {
+		alert('»ÙÊ§¤¤ÊýË¡¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£');
+	}
+}
+//-->
+</script>
+<table width="760" border="0" cellspacing="0" cellpadding="0" summary=" ">
+	<tr>
+		<td align="center" bgcolor="#ffffff">
+		<!--¢§MAIN ONTENTS-->
+		<!--{*¹ØÆþ¼êÂ³¤­¤ÎÎ®¤ì-->
+		<table width="700" border="0" cellspacing="0" cellpadding="0" summary=" ">
+			<tr>
+				<td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/flow03.gif" width="700" height="36" alt="¹ØÆþ¼êÂ³¤­¤ÎÎ®¤ì"></td>
+			</tr>
+			<tr><td height="15"></td></tr>
+		</table>
+		<!--¹ØÆþ¼êÂ³¤­¤ÎÎ®¤ì*}-->
+
+		<table width="700" border="0" cellspacing="0" cellpadding="0" summary=" ">
+			<tr>
+				<td><img src="<!--{$smarty.const.URL_DIR}-->img/shopping/credit_title.jpg" width="700" height="40" alt="¥¯¥ì¥¸¥Ã¥È·èºÑ"></td>
+			</tr>
+			<tr><td height="15"></td></tr>
+			<tr>
+				<td class="fs12">²¼µ­¤«¤é¡¢»ÙÊ§¤¤ÊýË¡¤ò¤´ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£<br />
+				°ì³çÊ§¤¤¡¢¥ê¥Ü¥ë¥Ó¥ó¥°Ê§¤¤¤òÁªÂò¤·¤¿¾ì¹ç¤Ï¡¢Ê¬³ä²ó¿ô¤òÁªÂò¤¹¤ëÉ¬Í×¤Ï¤¢¤ê¤Þ¤»¤ó¡£<br />
+				Ê¬³äÊ§¤¤¤òÁªÂò¤·¤¿¾ì¹ç¤Ï¡¢Ê¬³ä²ó¿ô¤òÁªÂò¤·¡¢°ìÈÖ²¼¤Î¡Ö¤´ÃíÊ¸´°Î»¥Ú¡¼¥¸¤Ø¡×¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£</td>
+			</tr>
+			<tr><td height="20"></td></tr>
+			<form name="form2" id="form2" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
+			<input type="hidden" name="mode" value="">
+			</form>
+			<form name="form1" id="form1" method="post" action="<!--{$arrSendData.SEND_URL|escape}-->">
+			<input type="hidden" name="SHOPCO" value="<!--{$arrSendData.SHOPCO|escape}-->">
+			<input type="hidden" name="HOSTID" value="<!--{$arrSendData.HOSTID|escape}-->">
+			<input type="hidden" name="S_TORIHIKI_NO" value="<!--{$arrSendData.S_TORIHIKI_NO|escape}-->">
+			<input type="hidden" name="MAIL" value="<!--{$arrSendData.MAIL|escape}-->">
+			<input type="hidden" name="AMOUNT" value="<!--{$arrSendData.AMOUNT|escape}-->">
+			<input type="hidden" name="TAX" value="<!--{$arrSendData.TAX|escape}-->">
+			<input type="hidden" name="TOTAL" value="<!--{$arrSendData.TOTAL|escape}-->">
+			<input type="hidden" name="JOB" value="<!--{$arrSendData.JOB|escape}-->">
+			<input type="hidden" name="ITEM" value="<!--{$arrSendData.ITEM|escape}-->">
+			<input type="hidden" name="RETURL" value="<!--{$arrSendData.RETURL|escape}-->">
+			<input type="hidden" name="NG_RETURL" value="<!--{$arrSendData.NG_RETURL|escape}-->">
+			<input type="hidden" name="EXITURL" value="<!--{$arrSendData.EXITURL|escape}-->">
+			<input type="hidden" name="REMARKS3" value="<!--{$arrSendData.REMARKS3|escape}-->">
+
+			<tr>
+				<td bgcolor="#cccccc">
+				<!--¤ª»ÙÊ§ÊýË¡¡¦¤ªÆÏ¤±»þ´Ö¤Î»ØÄê¡¦¤½¤ÎÂ¾¤ªÌä¤¤¹ç¤ï¤»¤³¤³¤«¤é-->
+				<table width="700" border="0" cellspacing="1" cellpadding="10" summary=" ">
+					<tr>
+						<td width="10%" align="center" bgcolor="#f0f0f0" class="fs12">ÁªÂò</td>
+						<td width="90%" bgcolor="#f0f0f0" class="fs12">»ÙÊ§¤¤ÊýË¡</td>
+					</tr>
+					<!--{foreach key=key item=item from=$arrCreMet name=method_loop}-->
+					<tr>
+						<td align="center" bgcolor="#ffffff" class="fs12">
+							<input type="radio"
+								   name="METHOD"
+								   id="<!--{$key}-->"
+								   value="<!--{$key}-->"
+								   style="<!--{$arrErr.arrCreMet|sfGetErrorColor}-->" <!--{if $smarty.foreach.method_loop.first}-->checked<!--{/if}--> />
+						</td>
+						<td bgcolor="#ffffff" class="fs12"><label for="<!--{$key}-->"><!--{$item|escape}--></label></td>
+					</tr>
+					<!--{/foreach}-->
+				</table>
+				<!--¤ª»ÙÊ§ÊýË¡¡¦¤ªÆÏ¤±»þ´Ö¤Î»ØÄê¡¦¤½¤ÎÂ¾¤ªÌä¤¤¹ç¤ï¤»¤³¤³¤Þ¤Ç-->
+				</td>
+			</tr>
+
+			<tr><td height="20"></td></tr>
+
+			<tr>
+				<td bgcolor="#cccccc">
+				<!--Ê¬³ä²ó¿ô¤³¤³¤«¤é-->
+				<table width="700" border="0" cellspacing="1" cellpadding="10" summary=" ">
+					<tr>
+						<td width="20%" bgcolor="#f0f0f0" class="fs12n">Ê¬³ä²ó¿ô</td>
+						<td width="80%" bgcolor="#ffffff" class="fs12n">
+						<!--{assign var=key value="PTIMES"}-->
+						<span class="red"><!--{$arrErr[$key]}--></span>
+						<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+						<option value="1" selected="">»ØÄê¤Ê¤·</option>
+						<!--{html_options options=$arrCreDiv selected=$arrForm[$key].value}-->
+						</select></td>
+					</tr>
+				</table>
+				<!--Ê¬³ä²ó¿ô¤³¤³¤Þ¤Ç-->
+				</td>
+			</tr>
+			<tr><td height="20"></td></tr>
+
+			<!--{if $smarty.const.REMISE_ELIO_USE}-->
+			<tr>
+				<td bgcolor="#cccccc">
+				<!--eLIO·èºÑ¤³¤³¤«¤é-->
+				<table width="700" border="0" cellspacing="1" cellpadding="10" summary=" ">
+					<tr>
+						<td width="20%" bgcolor="#f0f0f0" class="fs12n">eLIO·èºÑ¤ò»ÈÍÑ¤¹¤ë</td>
+						<td width="80%" bgcolor="#ffffff" class="fs12n">
+							<!--{assign var=key value="ELIO"}-->
+							<span class="red"><!--{$arrErr[$key]}--></span>
+							<input type="checkbox"
+								   name="<!--{$key}-->"
+								   value="<!--{$arrSendData.ELIO|escape}-->">¡¡ËÜ²èÌÌ¸å¤ËÉ½¼¨¤µ¤ì¤ë¡ÖeLIO·èºÑ¡×²èÌÌ¤«¤é¡¢eLIO¥«¡¼¥É¤ò¤«¤¶¤·¤Æ¤¯¤À¤µ¤¤¡£
+						</td>
+					</tr>
+				</table>
+				<!--eLIO·èºÑ¤³¤³¤Þ¤Ç-->
+				</td>
+			</tr>
+			<tr><td height="20"></td></tr>
+			<!--{/if}-->
+
+			<tr>
+				<td align="center">
+					<a href=""
+					   onclick="fnFormModeSubmit('form2', 'return', '', '');return false;"
+					   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)">
+					   <img src="<!--{$smarty.const.URL_DIR}-->img/common/b_back.gif"
+							width="150"
+							height="30"
+							alt="Ìá¤ë"
+							border="0"
+							name="back03"
+							id="back03" />
+					</a>
+					<img src="<!--{$smarty.const.URL_DIR}-->img/_.gif" width="20" height="" alt="" />
+					<input type="image"
+						   onClick="lfMethodChecked();return false;"
+						   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" />
+				</td>
+			</tr>
+			</form>
+		</table>
+		<!--¢¥MAIN ONTENTS-->
+		</td>
+	</tr>
+</table>
+<!--¢¥CONTENTS-->
