Index: /branches/comu/html/.htaccess
===================================================================
--- /branches/comu/html/.htaccess	(revision 5)
+++ /branches/comu/html/.htaccess	(revision 11982)
@@ -4,2 +4,4 @@
 php_flag mbstring.encoding_translation 1
 php_flag magic_quotes_gpc 0
+#php_flag session.use_cookies 0
+#php_flag session.use_trans_sid 1
Index: /branches/comu/html/mypage/delivery_addr.php
===================================================================
--- /branches/comu/html/mypage/delivery_addr.php	(revision 11730)
+++ /branches/comu/html/mypage/delivery_addr.php	(revision 11982)
@@ -75,5 +75,5 @@
 			//ÊÌ¤Î¤ªÆÏ¤±ÀèÅÐÏ¿¿ô¤Î¼èÆÀ
 			$deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id')));
-			if ($deliv_count < DELIV_ADDR_MAX){
+			if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){
 				lfRegistData($_POST,$arrRegistColumn);
 			}
Index: /branches/comu/html/mypage/refusal.php
===================================================================
--- /branches/comu/html/mypage/refusal.php	(revision 11730)
+++ /branches/comu/html/mypage/refusal.php	(revision 11982)
@@ -48,8 +48,4 @@
 	$objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id')));
 
-	$where = "email ILIKE ?";
-	if (DB_TYPE == "mysql")	$where = sfChangeILIKE($where);
-	
-	$objQuery->delete("dtb_customer_mail", $where, array($objCustomer->getValue('email')));
 	$objCustomer->EndSession();
 	//´°Î»¥Ú¡¼¥¸¤Ø
Index: /branches/comu/html/mypage/change.php
===================================================================
--- /branches/comu/html/mypage/change.php	(revision 11730)
+++ /branches/comu/html/mypage/change.php	(revision 11982)
@@ -78,4 +78,5 @@
 							 array(  "column" => "reminder",	"convert" => "n" ),
 							 array(  "column" => "reminder_answer", "convert" => "aKV" ),
+							 array(  "column" => "mailmaga_flg", "convert" => "n" )							 
 						);
 
@@ -233,5 +234,5 @@
 	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤Î¼ÁÌä", "reminder") ,array("SELECT_CHECK", "NUM_CHECK")); 
 	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤ÎÅú¤¨", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mail_flag") ,array("SELECT_CHECK", "NUM_CHECK"));
+	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mailmaga_flg") ,array("SELECT_CHECK", "NUM_CHECK"));
 	return $objErr->arrErr;
 	
@@ -271,7 +272,4 @@
 	$arrForm = $ret[0];
 
-	//¥á¥ë¥Þ¥¬¥Õ¥é¥°¼èÆÀ
-	$arrForm['mail_flag'] = $objQuery->get("dtb_customer_mail","mail_flag","email=?", array($objCustomer->getValue('email')));
-	
 	//ÃÂÀ¸Æü¤ÎÇ¯·îÆü¼èÆÀ
 	if (isset($arrForm['birth'])){
Index: /branches/comu/html/admin/basis/delivery_input.php
===================================================================
--- /branches/comu/html/admin/basis/delivery_input.php	(revision 11730)
+++ /branches/comu/html/admin/basis/delivery_input.php	(revision 11982)
@@ -65,4 +65,5 @@
 	global $objFormParam;
 	$objFormParam->addParam("ÇÛÁ÷¶È¼ÔÌ¾", "name", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("Ì¾¾Î", "service_name", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
 	$objFormParam->addParam("ÅÁÉ¼No.³ÎÇ§URL", "confirm_url", STEXT_LEN, "n", array("URL_CHECK", "MAX_LENGTH_CHECK"), "http://");
 	
@@ -87,5 +88,5 @@
 	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
 	$sqlval['name'] = $arrRet['name'];
-	$sqlval['service_name'] = $arrRet['name'];
+	$sqlval['service_name'] = $arrRet['service_name'];
 	$sqlval['confirm_url'] = $arrRet['confirm_url'];
 	$sqlval['creator_id'] = $_SESSION['member_id'];
Index: /branches/comu/html/admin/basis/kiyaku.php
===================================================================
--- /branches/comu/html/admin/basis/kiyaku.php	(revision 11730)
+++ /branches/comu/html/admin/basis/kiyaku.php	(revision 11982)
@@ -139,5 +139,5 @@
 	$objErr = new SC_CheckError();
 	$objErr->doFunc(array("µ¬Ìó¥¿¥¤¥È¥ë", "kiyaku_title", SMTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
-	$objErr->doFunc(array("µ¬ÌóÆâÍÆ", "kiyaku_text", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("µ¬ÌóÆâÍÆ", "kiyaku_text", MLTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
 	if(!isset($objErr->arrErr['name'])) {
 		$objQuery = new SC_Query();
Index: /branches/comu/html/admin/basis/control.php
===================================================================
--- /branches/comu/html/admin/basis/control.php	(revision 11982)
+++ /branches/comu/html/admin/basis/control.php	(revision 11982)
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	var $tpl_mode;
+	function LC_Page() {
+		$this->tpl_mainpage = 'basis/control.tpl';
+		$this->tpl_subnavi = 'basis/subnavi.tpl';
+		$this->tpl_mainno = 'basis';
+		$this->tpl_subno = 'control';
+		$this->tpl_subtitle = '¥µ¥¤¥È´ÉÍýÀßÄê';
+	}
+}
+$conn = new SC_DBConn();
+$objPage = new LC_Page();
+$objView = new SC_AdminView();
+$objSess = new SC_Session();
+
+// Ç§¾Ú²ÄÈÝ¤ÎÈ½Äê
+sfIsSuccess($objSess);
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+switch($_POST['mode']) {
+	case 'edit':
+		// ÆþÎÏÃÍ¤ÎÊÑ´¹
+		$objFormParam->convParam();
+	
+		// ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+		$objPage->arrErr = lfCheckError();
+		if(count($objPage->arrErr) == 0) {
+			lfSiteControlData($_POST['control_id']);
+			// javascript¼Â¹Ô
+			$objPage->tpl_onload = "alert('¹¹¿·¤¬´°Î»¤·¤Þ¤·¤¿¡£'); window.close();";
+		}
+		
+		break;
+	default:
+		break;
+}
+
+// ¥µ¥¤¥È´ÉÍý¾ðÊó¤Î¼èÆÀ
+$arrSiteControlList = lfGetControlList();
+
+// ¥×¥ë¥À¥¦¥ó¤ÎºîÀ®
+for ($i = 0; $i < count($arrSiteControlList); $i++) {	
+	switch ($arrSiteControlList[$i]["control_id"]) {
+		// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯
+		case SITE_CONTROL_TRACKBACK:
+			$arrSiteControlList[$i]["control_area"] = $arrSiteControlTrackBack;
+			break;
+		// ¥¢¥Õ¥£¥ê¥¨¥¤¥È
+		case SITE_CONTROL_AFFILIATE:
+			$arrSiteControlList[$i]["control_area"] = $arrSiteControlAffiliate;
+			break;
+		default:
+			break;
+	}
+}
+
+$objPage->arrControlList = $arrSiteControlList;
+$objView->assignobj($objPage);
+$objView->display(MAIN_FRAME);
+//-----------------------------------------------------------------------------------------------------------------------------------
+// ¥µ¥¤¥È´ÉÍý¾ðÊó¤Î¼èÆÀ
+function lfGetControlList() {
+	$objQuery = new SC_Query();
+	// ¥µ¥¤¥È´ÉÍý¾ðÊó¤Î¼èÆÀ
+	$sql = "SELECT * FROM dtb_site_control ";
+	$sql .= "WHERE del_flg = 0";
+	$arrRet = $objQuery->getall($sql);
+	return $arrRet;
+}
+
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam() {
+	global $objFormParam;
+	$objFormParam->addParam("ÀßÄê¾õ¶·", "control_flg", INT_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+}
+
+/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
+function lfCheckError() {
+	global $objFormParam;
+	
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$arrRet =  $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+	
+	return $objErr->arrErr;
+}
+
+/* DB¤Ø¥Ç¡¼¥¿¤òÅÐÏ¿¤¹¤ë */
+function lfSiteControlData($control_id = "") {
+	global $objFormParam;
+	
+	$objQuery = new SC_Query();
+	$sqlval = $objFormParam->getHashArray();	
+	$sqlval['update_date'] = 'Now()';
+	
+	// ¿·µ¬ÅÐÏ¿
+	if($control_id == "") {
+		// INSERT¤Î¼Â¹Ô
+		//$sqlval['creator_id'] = $_SESSION['member_id'];
+		$sqlval['create_date'] = 'Now()';
+		$objQuery->insert("dtb_site_control", $sqlval);
+	// ´ûÂ¸ÊÔ½¸
+	} else {
+		$where = "control_id = ?";
+		$objQuery->update("dtb_site_control", $sqlval, $where, array($control_id));
+	}
+}
+
+?>
Index: /branches/comu/html/admin/customer/edit.php
===================================================================
--- /branches/comu/html/admin/customer/edit.php	(revision 11730)
+++ /branches/comu/html/admin/customer/edit.php	(revision 11982)
@@ -36,5 +36,5 @@
 		$this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';
 		$this->tpl_subtitle = '¸ÜµÒ¥Þ¥¹¥¿';
-		
+
 		global $arrPref;
 		$this->arrPref = $arrPref;
@@ -68,4 +68,5 @@
 							 array(  "column" => "addr02",		"convert" => "aKV" ),
 							 array(  "column" => "email",		"convert" => "a" ),
+							 array(  "column" => "email_mobile",	"convert" => "a" ),
 							 array(  "column" => "tel01",		"convert" => "n" ),
 							 array(  "column" => "tel02",		"convert" => "n" ),
@@ -80,4 +81,5 @@
 							 array(  "column" => "reminder",	"convert" => "n" ),
 							 array(  "column" => "reminder_answer", "convert" => "aKV" ),
+							 array(  "column" => "mailmaga_flg", "convert" => "n" ),						 
 							 array(  "column" => "note",		"convert" => "aKV" ),
 							 array(  "column" => "point",		"convert" => "n" ),
@@ -106,6 +108,5 @@
 
 	//--¡¡¸ÜµÒ¥Ç¡¼¥¿¼èÆÀ
-	$sql = "SELECT A.*, B.mail_flag FROM dtb_customer AS A LEFT OUTER JOIN dtb_customer_mail AS B USING(email)
-			 WHERE A.del_flg = 0 AND A.customer_id = ?";
+	$sql = "SELECT * FROM dtb_customer WHERE del_flg = 0 AND customer_id = ?";
 	$result = $objConn->getAll($sql, array($_POST["edit_customer_id"]));
 	$objPage->list_data = $result[0];
@@ -128,5 +129,5 @@
 
 //----¡¡¸ÜµÒ¾ðÊóÊÔ½¸
-if ( $_POST["mode"] != "edit" && is_numeric($_POST["customer_id"])) {
+if ( $_POST["mode"] != "edit" && $_POST["mode"] != "edit_search" && is_numeric($_POST["customer_id"])) {
 
 	//-- POST¥Ç¡¼¥¿¤Î°ú¤­·Ñ¤®
@@ -207,21 +208,9 @@
 
 	$arrRegist["update_date"] = "Now()";
-	$arrRegistMail["update_date"] = "Now()";
-	$arrRegistMail["mail_flag"] = $array["mail_flag"];
-	$arrRegistMail['email'] = $array['email'];
+
 	//-- ÊÔ½¸ÅÐÏ¿¼Â¹Ô
 	$objConn->query("BEGIN");
 	$objQuery->Insert("dtb_customer", $arrRegist, "customer_id = '" .addslashes($array["customer_id"]). "'");
-	
-	//-- ¥á¥ë¥Þ¥¬ÅÐÏ¿
-	$mailmaga = $objQuery->getAll("SELECT * FROM dtb_customer_mail WHERE email = ?", $array["edit_email"]);
-	
-	if(count($mailmaga) > 0 ){
-		$objQuery->Update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($array["edit_email"]). "'");
-	}else{
-		$arrRegistMail["create_date"] = "Now()";
-		//$arrRegist["create_date"] = date( "Y/m/d H:i:s", time());
-		$objQuery->Insert("dtb_customer_mail", $arrRegistMail);
-	}
+
 	$objConn->query("COMMIT");
 }
@@ -282,4 +271,15 @@
 	
 	$objErr->doFunc(array('¥á¡¼¥ë¥¢¥É¥ì¥¹(¥â¥Ð¥¤¥ë)', "email_mobile", MTEXT_LEN) ,array("EMAIL_CHECK", "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
+	//¸½²ñ°÷¤ÎÈ½Äê ¢ª¡¡¸½²ñ°÷¤â¤·¤¯¤Ï²¾ÅÐÏ¿Ãæ¤Ï¡¢¥á¥¢¥É°ì°Õ¤¬Á°Äó¤Ë¤Ê¤Ã¤Æ¤ë¤Î¤ÇÆ±¤¸¥á¥¢¥É¤ÇÅÐÏ¿ÉÔ²Ä
+	if (strlen($array["email_mobile"]) > 0) {
+		$sql = "SELECT customer_id FROM dtb_customer WHERE email_mobile ILIKE ? escape '#' AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?";
+		$checkMail = ereg_replace( "_", "#_", $array["email_mobile"]);
+		$result = $objConn->getAll($sql, array($checkMail, $array["customer_id"]));
+		if (count($result) > 0) {
+			$objErr->arrErr["email_mobile"] .= "¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹(¥â¥Ð¥¤¥ë)¤Ç¤¹¡£";
+		} 
+	}
+	
+	
 	$objErr->doFunc(array("¤ªÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK"));
 	$objErr->doFunc(array("¤ªÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK"));
@@ -294,7 +294,6 @@
 	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤Î¥Ò¥ó¥È ¼ÁÌä", "reminder") ,array("SELECT_CHECK", "NUM_CHECK")); 
 	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤Î¥Ò¥ó¥È Åú¤¨", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
-	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mail_flag") ,array("SELECT_CHECK", "NUM_CHECK"));
+	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mailmaga_flg") ,array("SELECT_CHECK", "NUM_CHECK"));
 	$objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
-	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", 'mail_flag'), array("SELECT_CHECK"));
 	$objErr->doFunc(array("SHOPÍÑ¥á¥â", 'note', LTEXT_LEN), array("MAX_LENGTH_CHECK"));
 	$objErr->doFunc(array("½ê»ý¥Ý¥¤¥ó¥È", "point", TEL_LEN) ,array("MAX_LENGTH_CHECK", "NUM_CHECK"));
@@ -314,5 +313,5 @@
 		$page_max = SEARCH_PMAX;
 		//¹ØÆþÍúÎò¤Î·ï¿ô¼èÆÀ
-		$objPage->tpl_linemax = $objQuery->count("dtb_order","customer_id=?", array($customer_id));
+		$objPage->tpl_linemax = $objQuery->count("dtb_order","customer_id=? AND del_flg = 0 ", array($customer_id));
 		$linemax = $objPage->tpl_linemax;
 		
@@ -329,5 +328,5 @@
 		$objQuery->setorder($order);
 		//¹ØÆþÍúÎò¾ðÊó¤Î¼èÆÀ
-		$arrPurchaseHistory = $objQuery->select("*", "dtb_order", "customer_id=?", array($customer_id));
+		$arrPurchaseHistory = $objQuery->select("*", "dtb_order", "customer_id=? AND del_flg = 0 ", array($customer_id));
 		
 		return $arrPurchaseHistory;
Index: /branches/comu/html/admin/customer/index.php
===================================================================
--- /branches/comu/html/admin/customer/index.php	(revision 11730)
+++ /branches/comu/html/admin/customer/index.php	(revision 11982)
@@ -86,5 +86,5 @@
 
 //---- ¥Ú¡¼¥¸½é´üÀßÄê
-$objConn = new SC_DBConn();
+$objQuery = new SC_Query();
 $objPage = new LC_Page();
 $objView = new SC_AdminView();
@@ -123,15 +123,13 @@
 if ($_POST['mode'] == "delete") {
 	$sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0";
-	$result_customer = $objConn->getAll($sql, array($_POST["edit_customer_id"]));
+	$result_customer = $objQuery->conn->getAll($sql, array($_POST["edit_customer_id"]));
 
 	if ($result_customer[0]["status"] == 2) {			//ËÜ²ñ°÷ºï½ü
 		$arrDel = array("del_flg" => 1, "update_date" => "NOW()"); 
-		$objConn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["edit_customer_id"]) );
+		$objQuery->conn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["edit_customer_id"]) );
 	} elseif ($result_customer[0]["status"] == 1) {		//²¾²ñ°÷ºï½ü
 		$sql = "DELETE FROM dtb_customer WHERE customer_id = ?";
-		$objConn->query($sql, array($_POST["edit_customer_id"]));
-	}
-	$sql = "DELETE FROM dtb_customer_mail WHERE email = ?";
-	$objConn->query($sql, array($result_customer[0]["email"]));
+		$objQuery->conn->query($sql, array($_POST["edit_customer_id"]));
+	}
 }
 if ($_POST['mode'] == "search" || $_POST['mode'] == "csv"  || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all") {
@@ -170,5 +168,5 @@
 		}
 		
-		$objPage->search_data = $objConn->getAll($searchSql, $objSelect->arrVal);
+		$objPage->search_data = $objQuery->conn->getAll($searchSql, $objSelect->arrVal);
 		
 		switch($_POST['mode']) {
@@ -209,15 +207,13 @@
 
 			$sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0";
-			$result_customer = $objConn->getAll($sql, array($_POST["del_customer_id"]));
+			$result_customer = $objQuery->conn->getAll($sql, array($_POST["del_customer_id"]));
 
 			if ($result_customer[0]["status"] == 2) {			//ËÜ²ñ°÷ºï½ü
 				$arrDel = array("del_flg" => 1, "update_date" => "NOW()");
-				$objConn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["del_customer_id"]) );
+				$objQuery->conn->autoExecute("dtb_customer", $arrDel, "customer_id = " .addslashes($_POST["del_customer_id"]) );
 			} elseif ($result_customer[0]["status"] == 1) {		//²¾²ñ°÷ºï½ü
 				$sql = "DELETE FROM dtb_customer WHERE customer_id = ?";
-				$objConn->query($sql, array($_POST["del_customer_id"]));
+				$objQuery->conn->query($sql, array($_POST["del_customer_id"]));
 			}
-			$sql = "DELETE FROM dtb_customer_mail WHERE email = ?";
-			$objConn->query($sql, array($result_customer[0]["email"]));	
 			
 			break;
@@ -225,5 +221,5 @@
 
 			// ¹Ô¿ô¤Î¼èÆÀ
-			$linemax = $objConn->getOne( $objSelect->getListCount(), $objSelect->arrVal);
+			$linemax = $objQuery->conn->getOne( $objSelect->getListCount(), $objSelect->arrVal);
 			$objPage->tpl_linemax = $linemax;				// ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ
 
@@ -316,4 +312,5 @@
 	$objErr->doFunc(array("ÃÂÀ¸·î", "birth_month", 2), array("NUM_CHECK","MAX_LENGTH_CHECK"));
 	$objErr->doFunc(array('¥á¡¼¥ë¥¢¥É¥ì¥¹', "email", STEXT_LEN) ,array("EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array('·ÈÂÓ¥á¡¼¥ë¥¢¥É¥ì¥¹', "email_mobile", STEXT_LEN) ,array("EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));	
 	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel", TEL_LEN), array("NUM_CHECK","MAX_LENGTH_CHECK"));
 	$objErr->doFunc(array("¹ØÆþ¶â³Û(³«»Ï)", "buy_total_from", INT_LEN), array("NUM_CHECK","MAX_LENGTH_CHECK"));
Index: /branches/comu/html/admin/products/review.php
===================================================================
--- /branches/comu/html/admin/products/review.php	(revision 11730)
+++ /branches/comu/html/admin/products/review.php	(revision 11982)
Index: /branches/comu/html/admin/products/product_class.php
===================================================================
--- /branches/comu/html/admin/products/product_class.php	(revision 11730)
+++ /branches/comu/html/admin/products/product_class.php	(revision 11982)
@@ -366,6 +366,6 @@
 		if($array["check:".$no] == 1) {
 			$objErr->doFunc(array("¾¦ÉÊ¥³¡¼¥É", "product_code:".$no, STEXT_LEN), array("MAX_LENGTH_CHECK"));
-			$objErr->doFunc(array("»²¹Í»Ô¾ì²Á³Ê", "price01:".$no, PRICE_LEN), array("ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
-			$objErr->doFunc(array("²Á³Ê", "price02:".$no, PRICE_LEN), array("EXIST_CHECK", "ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+			$objErr->doFunc(array(NORMAL_PRICE_TITLE, "price01:".$no, PRICE_LEN), array("ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+			$objErr->doFunc(array(SALE_PRICE_TITLE, "price02:".$no, PRICE_LEN), array("EXIST_CHECK", "ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
 
 			if($array["stock_unlimited:".$no] != '1') {
Index: /branches/comu/html/admin/products/review_edit.php
===================================================================
--- /branches/comu/html/admin/products/review_edit.php	(revision 11730)
+++ /branches/comu/html/admin/products/review_edit.php	(revision 11982)
@@ -17,4 +17,6 @@
 		$this->arrRECOMMEND = $arrRECOMMEND;
 		$this->tpl_subtitle = '¥ì¥Ó¥å¡¼´ÉÍý';
+		global $arrSex;
+		$this->arrSex = $arrSex;
 	}
 }
@@ -39,6 +41,10 @@
 								array( "column" => "status"),
 								array( "column" => "recommend_level"),		
-								array(	"column" => "title",		"convert" => "KVa"),
-								array(	"column" => "comment",		"convert" => "KVa")	
+								array(	"column" => "title","convert" => "KVa"),
+								array(	"column" => "comment","convert" => "KVa"),
+								array(	"column" => "reviewer_name","convert" => "KVa"),
+								array(	"column" => "reviewer_url","convert" => "KVa"),
+								array(	"column" => "sex","convert" => "n")
+								
 							);
 
@@ -51,13 +57,7 @@
 //¾¦ÉÊ¤´¤È¤Î¥ì¥Ó¥å¡¼É½¼¨¿ô¼èÆÀ
 $count = $objQuery->count("dtb_review", "del_flg=0 AND status=1 AND product_id=?", array($objPage->arrReview['product_id']));
-//¥ì¥Ó¥å¡¼É½¼¨¿ô¤¬ÀßÄêÃÍ°Ê¾å¤Î¾ì¹ç
-if ($count >= REVIEW_REGIST_MAX){
-	//É½¼¨¤ÏÁªÂò¤Ç¤­¤Ê¤¤
-	$objPage->tpl_status_change = false;
-}else{
-	//Î¾ÊýÁªÂò²ÄÇ½
-	$objPage->tpl_status_change = true;
-}
-					
+//Î¾ÊýÁªÂò²ÄÇ½
+$objPage->tpl_status_change = true;
+
 switch($_POST['mode']) {
 //ÅÐÏ¿
@@ -66,16 +66,10 @@
 	$arrReview = lfConvertParam($_POST, $arrRegistColumn);
 	$objPage->arrErr = lfCheckError($arrReview);
-	//ÈóÉ½¼¨¤«¤éÉ½¼¨¤Ë¥¹¥Æ¡¼¥¿¥¹¤òÀÚ¤êÂØ¤¨¤Æ¡¢¾¦ÉÊ¤´¤È¤ÎÉ½¼¨¥ì¥Ó¥å¡¼¿ô¤¬ÀßÄêÃÍ¤òÄ¶¤¨¤Æ¤¤¤ë¤È¤­
-	if ($arrReview['pre_status'] == '2' && $arrReview['status'] == '1' && $count >= REVIEW_REGIST_MAX){
-		$objPage->arrErr['status'] = '¢¨ ¥ì¥Ó¥å¡¼É½¼¨¿ô¤Ï5·ï¤Þ¤Ç¤Ç¤¹¡£';
+	//¥¨¥é¡¼Ìµ¤·
+	if (!$objPage->arrErr){
+		//¥ì¥Ó¥å¡¼¾ðÊó¤ÎÊÔ½¸ÅÐÏ¿
+		lfRegistReviewData($arrReview, $arrRegistColumn);
 		$objPage->arrReview = $arrReview;
-	} else {
-		//¥¨¥é¡¼Ìµ¤·
-		if (!$objPage->arrErr){
-			//¥ì¥Ó¥å¡¼¾ðÊó¤ÎÊÔ½¸ÅÐÏ¿
-			lfRegistReviewData($arrReview, $arrRegistColumn);
-			$objPage->arrReview = $arrReview;
-			$objPage->tpl_onload = "confirm('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');";
-		}
+		$objPage->tpl_onload = "confirm('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');";
 	}
 	break;
@@ -92,7 +86,11 @@
 function lfCheckError($array) {
 	$objErr = new SC_CheckError($array);
-		$objErr->doFunc(array("¤ª¤¹¤¹¤á¥ì¥Ù¥ë", "recommend_level"), array("SELECT_CHECK"));
-		$objErr->doFunc(array("¥¿¥¤¥È¥ë", "title", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
-		$objErr->doFunc(array("¥³¥á¥ó¥È", "comment", LTEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ª¤¹¤¹¤á¥ì¥Ù¥ë", "recommend_level"), array("SELECT_CHECK"));
+	$objErr->doFunc(array("¥¿¥¤¥È¥ë", "title", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¥³¥á¥ó¥È", "comment", LTEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("Åê¹Æ¼ÔÌ¾", "reviewer_name", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¥Û¡¼¥à¥Ú¡¼¥¸¥¢¥É¥ì¥¹", "reviewer_url", URL_LEN), array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¥¿¥¤¥È¥ë", "title", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("À­ÊÌ", "sex", STEXT_LEN), array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
 	return $objErr->arrErr;
 }
Index: /branches/comu/html/admin/products/index.php
===================================================================
--- /branches/comu/html/admin/products/index.php	(revision 11730)
+++ /branches/comu/html/admin/products/index.php	(revision 11982)
@@ -323,4 +323,5 @@
 function lfCheckError() {
 	$objErr = new SC_CheckError();
+	$objErr->doFunc(array("¾¦ÉÊID", "search_product_id"), array("NUM_CHECK"));
 	$objErr->doFunc(array("³«»ÏÆü", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE"));
 	$objErr->doFunc(array("½ªÎ»Æü", "search_endyear", "search_endmonth", "search_endday"), array("CHECK_DATE"));
Index: /branches/comu/html/admin/products/index_csv.php
===================================================================
--- /branches/comu/html/admin/products/index_csv.php	(revision 11730)
+++ /branches/comu/html/admin/products/index_csv.php	(revision 11982)
@@ -29,4 +29,22 @@
 						);
 
+$arrTRACKBACK_CVSTITLE = array(
+						'¾¦ÉÊÌ¾',
+						'¥Ö¥í¥°Ì¾',
+						'¥Ö¥í¥°µ­»ö¥¿¥¤¥È¥ë',
+						'¥Ö¥í¥°µ­»öÆâÍÆ',
+						'¾õÂÖ',
+						'Åê¹ÆÆü'
+						);
+
+$arrTRACKBACK_CVSCOL = array( 
+						'B.name',
+						'A.blog_name',
+						'A.title',
+						'A.excerpt',
+						'A.status',
+						'A.create_date'
+						);
+
 // CSV½ÐÎÏ¥Ç¡¼¥¿¤òºîÀ®¤¹¤ë¡£(¾¦ÉÊ)
 function lfGetProductsCSV($where, $option, $arrval, $arrOutputCols) {
@@ -72,4 +90,24 @@
 		// ³Æ¹àÌÜ¤òCSV½ÐÎÏÍÑ¤ËÊÑ´¹¤¹¤ë¡£
 		$data .= lfMakeReviewCSV($list_data[$i]);
+	}
+	return $data;
+}
+
+// CSV½ÐÎÏ¥Ç¡¼¥¿¤òºîÀ®¤¹¤ë¡£(¥È¥é¥Ã¥¯¥Ð¥Ã¥¯)
+function lfGetTrackbackCSV($where, $option, $arrval) {
+	global $arrTRACKBACK_CVSCOL;
+
+	$from = "dtb_trackback AS A INNER JOIN dtb_products AS B on A.product_id = B.product_id ";
+	$cols = sfGetCommaList($arrTRACKBACK_CVSCOL);
+	
+	$objQuery = new SC_Query();
+	$objQuery->setoption($option);
+	
+	$list_data = $objQuery->select($cols, $from, $where, $arrval);	
+
+	$max = count($list_data);
+	for($i = 0; $i < $max; $i++) {
+		// ³Æ¹àÌÜ¤òCSV½ÐÎÏÍÑ¤ËÊÑ´¹¤¹¤ë¡£
+		$data .= lfMakeTrackbackCSV($list_data[$i]);
 	}
 	return $data;
@@ -139,3 +177,29 @@
 }
 
+// ³Æ¹àÌÜ¤òCSV½ÐÎÏÍÑ¤ËÊÑ´¹¤¹¤ë¡£(¥È¥é¥Ã¥¯¥Ð¥Ã¥¯)
+function lfMakeTrackbackCSV($list) {
+	global $arrTrackBackStatus;
+	global $arrDISP;
+	
+	$line = "";
+	
+	foreach($list as $key => $val) {
+		$tmp = "";
+		switch($key) {
+			case 'status':
+				$tmp = $arrTrackBackStatus[$val];
+				break;
+			default:
+				$tmp = $val;
+				break;
+		}
+
+		$tmp = ereg_replace("[\",]", " ", $tmp);
+		$line .= "\"".$tmp."\",";
+	}
+	// Ê¸Ëö¤Î","¤òÊÑ´¹
+	$line = ereg_replace(",$", "\n", $line);
+	return $line;
+}
+
 ?>
Index: /branches/comu/html/admin/products/trackback.php
===================================================================
--- /branches/comu/html/admin/products/trackback.php	(revision 11982)
+++ /branches/comu/html/admin/products/trackback.php	(revision 11982)
@@ -0,0 +1,219 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+require_once("../require.php");
+require_once("./index_csv.php");
+
+session_start();
+
+class LC_Page {
+	var $arrSession;
+	function LC_Page() {
+		global $arrPageMax;
+		$this->arrPageMax = $arrPageMax;
+		$this->tpl_mainpage = 'products/trackback.tpl';
+		$this->tpl_subnavi = 'products/subnavi.tpl';
+		$this->tpl_mainno = 'products';
+		$this->tpl_subno = 'trackback';
+		$this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';
+		$this->tpl_subtitle = '¥È¥é¥Ã¥¯¥Ð¥Ã¥¯´ÉÍý';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_AdminView();
+$objSess = new SC_Session();
+$objDate = new SC_Date();
+$objQuery = new SC_Query();
+
+// ¾õÂÖ¤ÎÀßÄê
+$objPage->arrTrackBackStatus = $arrTrackBackStatus;
+
+// ÅÐÏ¿¡¦¹¹¿·¸¡º÷³«»ÏÇ¯
+$objDate->setStartYear(RELEASE_YEAR);
+$objDate->setEndYear(DATE("Y"));
+$objPage->arrStartYear = $objDate->getYear();
+$objPage->arrStartMonth = $objDate->getMonth();
+$objPage->arrStartDay = $objDate->getDay();
+// ÅÐÏ¿¡¦¹¹¿·¸¡º÷½ªÎ»Ç¯
+$objDate->setStartYear(RELEASE_YEAR);
+$objDate->setEndYear(DATE("Y"));
+$objPage->arrEndYear = $objDate->getYear();
+$objPage->arrEndMonth = $objDate->getMonth();
+$objPage->arrEndDay = $objDate->getDay();
+
+// Ç§¾Ú²ÄÈÝ¤ÎÈ½Äê
+sfIsSuccess($objSess);
+
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¾ðÊó¤Î¥«¥é¥à¤Î¼èÆÀ(view¤È¤Î·ë¹ç¤Î¤¿¤á¡¢¥Æ¡¼¥Ö¥ë¤òA¤ÈÄêµÁ¤·¤Æ¤ª¤¯)
+$select = "A.trackback_id, A.product_id, A.blog_name, A.title, A.url, ";
+$select .= "A.excerpt, A.status, A.create_date, A.update_date, B.name";
+$from = "dtb_trackback AS A LEFT JOIN dtb_products AS B ON A.product_id = B.product_id ";
+
+// ¸¡º÷¥ï¡¼¥É¤Î°ú¤­·Ñ¤®
+foreach ($_POST as $key => $val) {
+	if (ereg("^search_", $key)) {
+		$objPage->arrHidden[$key] = $val;
+	}
+}
+
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¤Îºï½ü
+if ($_POST['mode'] == "delete") {
+	$objQuery->exec("UPDATE dtb_trackback SET del_flg = 1, update_date = now() WHERE trackback_id = ?", array($_POST['trackback_id']));
+}
+	
+if ($_POST['mode'] == 'search' || $_POST['mode'] == 'csv' || $_POST['mode'] == 'delete'){
+	
+	//ºï½ü¤µ¤ì¤Æ¤¤¤Ê¤¤¾¦ÉÊ¤ò¸¡º÷
+	$where="A.del_flg = 0 AND B.del_flg = 0";
+	$objPage->arrForm = $_POST;
+
+	//¥¨¥é¡¼¥Á¥§¥Ã¥¯
+	$objPage->arrErr = lfCheckError();
+
+	if (!$objPage->arrErr) {
+		foreach ($_POST as $key => $val) {
+
+			$val = sfManualEscape($val);
+			
+			if ($val == "") {
+				continue;
+			}
+			
+			switch ($key) {
+
+				case 'search_blog_name':
+					$val = ereg_replace(" ", "%", $val);
+					$val = ereg_replace("¡¡", "%", $val);
+					$where.= " AND A.blog_name ILIKE ? ";
+					$arrval[] = "%$val%";
+					break;
+			
+				case 'search_blog_title':
+					$val = ereg_replace(" ", "%", $val);
+					$val = ereg_replace("¡¡", "%", $val);
+					$where.= " AND A.title ILIKE ? ";
+					$arrval[] = "%$val%";
+					break;
+			
+				case 'search_blog_url':
+					$val = ereg_replace(" ", "%", $val);
+					$val = ereg_replace("¡¡", "%", $val);
+					$where.= " AND A.url ILIKE ? ";
+					$arrval[] = "%$val%";
+					break;
+					
+				case 'search_status':
+					if (isset($_POST['search_status'])) {
+						$where.= " AND A.status = ? ";
+						$arrval[] = $val;
+					}
+					break;
+							
+				case 'search_name':
+					$val = ereg_replace(" ", "%", $val);
+					$val = ereg_replace("¡¡", "%", $val);
+					$where.= " AND B.name ILIKE ? ";
+					$arrval[] = "%$val%";
+					break;
+					
+				case 'search_product_code':
+					$val = ereg_replace(" ", "%", $val);
+					$val = ereg_replace("¡¡", "%", $val);
+					$where.= " AND B.product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? )";
+					$arrval[] = "%$val%";
+					break;
+					
+				case 'search_startyear':
+					if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) {
+						$date = sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']);
+						$where.= " AND A.create_date >= ? ";
+						$arrval[] = $date;
+					}
+					break;
+	
+				case 'search_endyear':
+					if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) {
+						$date = sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']);
+						
+						$end_date = date("Y/m/d",strtotime("1 day" ,strtotime($date)));
+						
+						$where.= " AND A.create_date <= cast('$end_date' as date) ";
+					}
+					break;
+			}
+		
+		}
+			
+	}
+	
+	$order = "A.create_date DESC";
+	
+	// ¥Ú¡¼¥¸Á÷¤ê¤Î½èÍý
+	if(is_numeric($_POST['search_page_max'])) {	
+		$page_max = $_POST['search_page_max'];
+	} else {
+		$page_max = SEARCH_PMAX;
+	}
+	
+	$linemax = $objQuery->count($from, $where, $arrval);
+	$objPage->tpl_linemax = $linemax;
+	
+	// ¥Ú¡¼¥¸Á÷¤ê¤Î¼èÆÀ
+	$objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnNaviSearchPage", NAVI_PMAX);
+	$objPage->arrPagenavi = $objNavi->arrPagenavi;
+	$startno = $objNavi->start_row;
+
+	$objPage->tpl_pageno = $_POST['search_pageno'];
+	
+	// ¼èÆÀÈÏ°Ï¤Î»ØÄê(³«»Ï¹ÔÈÖ¹æ¡¢¹Ô¿ô¤Î¥»¥Ã¥È)
+	$objQuery->setlimitoffset($page_max, $startno);
+
+	// É½¼¨½ç½ø
+	$objQuery->setorder($order);
+	
+	//¸¡º÷·ë²Ì¤Î¼èÆÀ
+	$objPage->arrTrackback = $objQuery->select($select, $from, $where, $arrval);
+	
+	//CSV¥À¥¦¥ó¥í¡¼¥É
+	if ($_POST['mode'] == 'csv'){
+		// ¥ª¥×¥·¥ç¥ó¤Î»ØÄê
+		$option = "ORDER BY A.trackback_id";
+		// CSV½ÐÎÏ¥¿¥¤¥È¥ë¹Ô¤ÎºîÀ®
+		$head = sfGetCSVList($arrTRACKBACK_CVSTITLE);
+		$data = lfGetTrackbackCSV($where, '', $arrval);
+		// CSV¤òÁ÷¿®¤¹¤ë¡£
+		sfCSVDownload($head.$data);
+		exit;
+	}	
+}
+
+$objView->assignobj($objPage);
+$objView->display(MAIN_FRAME);
+
+//-------------------------------------------------------------------------------------
+
+// ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfCheckError() {
+	$objErr = new SC_CheckError();
+	switch ($_POST['mode']){
+		case 'search':
+		$objErr->doFunc(array("Åê¹Æ¼Ô", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE"));
+		$objErr->doFunc(array("³«»ÏÆü", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE"));
+		$objErr->doFunc(array("½ªÎ»Æü", "search_endyear", "search_endmonth", "search_endday"), array("CHECK_DATE"));
+		$objErr->doFunc(array("³«»ÏÆü", "½ªÎ»Æü", "search_startyear", "search_startmonth", "search_startday", "search_endyear", "search_endmonth", "search_endday"), array("CHECK_SET_TERM"));
+		break;
+		
+		case 'complete':
+		$objErr->doFunc(array("¤ª¤¹¤¹¤á¥ì¥Ù¥ë", "recommend_level"), array("SELECT_CHECK"));
+		$objErr->doFunc(array("¥¿¥¤¥È¥ë", "title", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+		$objErr->doFunc(array("¥³¥á¥ó¥È", "comment", LTEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+		break;
+	}
+	return $objErr->arrErr;
+}
+
+?>
Index: /branches/comu/html/admin/products/trackback_edit.php
===================================================================
--- /branches/comu/html/admin/products/trackback_edit.php	(revision 11982)
+++ /branches/comu/html/admin/products/trackback_edit.php	(revision 11982)
@@ -0,0 +1,154 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	function LC_Page() {
+		$this->tpl_mainpage = 'products/trackback_edit.tpl';
+		$this->tpl_subnavi = 'products/subnavi.tpl';
+		$this->tpl_mainno = 'products';		
+		$this->tpl_subno = 'trackback';
+		$this->tpl_subtitle = '¥È¥é¥Ã¥¯¥Ð¥Ã¥¯´ÉÍý';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_AdminView();
+$objSess = new SC_Session();
+$objQuery = new SC_Query();
+
+// Ç§¾Ú²ÄÈÝ¤ÎÈ½Äê
+sfIsSuccess($objSess);
+
+//¸¡º÷¥ï¡¼¥É¤Î°ú·Ñ¤®
+foreach ($_POST as $key => $val){
+	if (ereg("^search_", $key)){
+		$objPage->arrSearchHidden[$key] = $val;
+	}
+}
+
+// ¾õÂÖ¤ÎÀßÄê
+$objPage->arrTrackBackStatus = $arrTrackBackStatus;
+
+//¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹ÍÑ¥«¥é¥à
+$arrRegistColumn = array (		
+						array( "column" => "update_date"),
+						array( "column" => "status"),
+						array(	"column" => "title","convert" => "KVa"),
+						array(	"column" => "excerpt","convert" => "KVa"),
+						array(	"column" => "blog_name","convert" => "KVa"),
+						array(	"column" => "url","convert" => "KVa"),
+						array(	"column" => "del_flg","convert" => "n")
+					);
+
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯ID¤òÅÏ¤¹
+$objPage->tpl_trackback_id = $_POST['trackback_id'];
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¾ðÊó¤Î¥«¥é¥à¤Î¼èÆÀ
+$objPage->arrTrackback = lfGetTrackbackData($_POST['trackback_id']);
+
+// ¾¦ÉÊ¤´¤È¤Î¥È¥é¥Ã¥¯¥Ð¥Ã¥¯É½¼¨¿ô¼èÆÀ
+$count = $objQuery->count("dtb_trackback", "del_flg = 0 AND product_id = ?", array($objPage->arrTrackback['product_id']));
+// Î¾ÊýÁªÂò²ÄÇ½
+$objPage->tpl_status_change = true;
+
+switch($_POST['mode']) {
+	// ÅÐÏ¿
+	case 'complete':
+		//¥Õ¥©¡¼¥àÃÍ¤ÎÊÑ´¹
+		$arrTrackback = lfConvertParam($_POST, $arrRegistColumn);
+		$objPage->arrErr = lfCheckError($arrTrackback);
+		//¥¨¥é¡¼Ìµ¤·
+
+		if (!$objPage->arrErr) {
+			//¥ì¥Ó¥å¡¼¾ðÊó¤ÎÊÔ½¸ÅÐÏ¿
+			lfRegistTrackbackData($arrTrackback, $arrRegistColumn);
+			$objPage->arrTrackback = $arrTrackback;
+			$objPage->tpl_onload = "confirm('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');";
+		}
+		break;
+
+	default:
+		break;
+}
+
+$objView->assignobj($objPage);
+$objView->display(MAIN_FRAME);
+
+//------------------------------------------------------------------------------------------------------------------------------------
+
+// ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfCheckError($array) {
+	$objErr = new SC_CheckError($array);
+	$objErr->doFunc(array("¥Ö¥í¥°Ì¾", "blog_name", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¥Ö¥í¥°µ­»ö¥¿¥¤¥È¥ë", "title", STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¥Ö¥í¥°µ­»öÆâÍÆ", "excerpt", LTEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¥Ö¥í¥°URL", "url", URL_LEN), array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¾õÂÖ", "status"), array("SELECT_CHECK"));
+	return $objErr->arrErr;
+}
+
+//----¡¡¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹
+function lfConvertParam($array, $arrRegistColumn) {
+	/*
+	 *	Ê¸»úÎó¤ÎÊÑ´¹
+	 *	K :  ¡ÖÈ¾³Ñ(ÊÝ¶¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹
+	 *	C :  ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹
+	 *	V :  ÂùÅÀÉÕ¤­¤ÎÊ¸»ú¤ò°ìÊ¸»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍÑ¤·¤Þ¤¹	
+	 *	n :  ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖÈ¾³Ñ(ÊÝ¶¸)¡×¤ËÊÑ´¹
+	 *  a :  Á´³Ñ±Ñ¿ô»ú¤òÈ¾³Ñ±Ñ¿ô»ú¤ËÊÑ´¹¤¹¤ë
+	 */
+	// ¥«¥é¥àÌ¾¤È¥³¥ó¥Ð¡¼¥È¾ðÊó
+	foreach ($arrRegistColumn as $data) {
+		$arrConvList[ $data["column"] ] = $data["convert"];
+	}
+	
+	// Ê¸»úÊÑ´¹
+	foreach ($arrConvList as $key => $val) {
+		// POST¤µ¤ì¤Æ¤­¤¿ÃÍ¤Î¤ßÊÑ´¹¤¹¤ë¡£
+		if(strlen(($array[$key])) > 0) {
+			$array[$key] = mb_convert_kana($array[$key] ,$val);
+		}
+	}
+	return $array;
+}
+
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¾ðÊó¤Î¼èÆÀ
+function lfGetTrackbackData($trackback_id) {
+	global $objPage;
+	global $objQuery;
+	$select = "tra.trackback_id, tra.product_id, tra.blog_name, tra.title, tra.excerpt, ";
+	$select .= "tra.url, tra.status, tra.create_date, tra.update_date, pro.name ";
+	$from = "dtb_trackback AS tra LEFT JOIN dtb_products AS pro ON tra.product_id = pro.product_id ";
+	$where = "tra.del_flg = 0 AND pro.del_flg = 0 AND tra.trackback_id = ? ";
+	$arrTrackback = $objQuery->select($select, $from, $where, array($trackback_id));
+	if(!empty($arrTrackback)) {
+		$objPage->arrTrackback = $arrTrackback[0];
+	} else {
+		sfDispError("");
+	}
+	return $objPage->arrTrackback;
+}
+
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¾ðÊó¤ÎÊÔ½¸ÅÐÏ¿
+function lfRegistTrackbackData($array, $arrRegistColumn) {
+	global $objQuery;
+
+	foreach ($arrRegistColumn as $data) {
+		if (strlen($array[ $data["column"] ]) > 0 ) {
+			$arrRegist[ $data["column"] ] = $array[ $data["column"] ];
+		}
+		if ($data['column'] == 'update_date'){
+			$arrRegist['update_date'] = 'now()';
+		}
+	}
+	//ÅÐÏ¿¼Â¹Ô
+	$objQuery->begin();
+	$objQuery->update("dtb_trackback", $arrRegist, "trackback_id = '".$_POST['trackback_id']."'");
+	$objQuery->commit();
+}
+?>
Index: /branches/comu/html/admin/products/upload_csv.php
===================================================================
--- /branches/comu/html/admin/products/upload_csv.php	(revision 11730)
+++ /branches/comu/html/admin/products/upload_csv.php	(revision 11982)
@@ -120,5 +120,5 @@
 			
 			if(!$err) {
-				lfRegistProduct($objQuery);
+				lfRegistProduct($objQuery, $line);
 				$regist++;
 			}
@@ -172,5 +172,5 @@
 		
 	$objFormParam->addParam("¾¦ÉÊID", "product_id", INT_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
-	$objFormParam->addParam("µ¬³ÊID", "product_class_id", INT_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
+	$objFormParam->addParam("¾¦ÉÊµ¬³ÊID", "product_class_id", INT_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
 	
 	$objFormParam->addParam("µ¬³ÊÌ¾1", "dummy1");
@@ -181,6 +181,6 @@
 	$objFormParam->addParam("¾¦ÉÊ¥¹¥Æ¡¼¥¿¥¹", "product_flag", INT_LEN, "n", array("EXIST_CHECK","MAX_LENGTH_CHECK","NUM_CHECK"));
 	$objFormParam->addParam("¾¦ÉÊ¥³¡¼¥É", "product_code", STEXT_LEN, "KVa", array("SPTAB_CHECK","MAX_LENGTH_CHECK"));
-	$objFormParam->addParam("»²¹Í»Ô¾ì²Á³Ê", "price01", PRICE_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
-	$objFormParam->addParam("²Á³Ê", "price02", PRICE_LEN, "n", array("EXIST_CHECK","MAX_LENGTH_CHECK","NUM_CHECK"));
+	$objFormParam->addParam(NORMAL_PRICE_TITLE, "price01", PRICE_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
+	$objFormParam->addParam(SALE_PRICE_TITLE, "price02", PRICE_LEN, "n", array("EXIST_CHECK","MAX_LENGTH_CHECK","NUM_CHECK"));
 	$objFormParam->addParam("ºß¸Ë¿ô", "stock", INT_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
 	$objFormParam->addParam("Á÷ÎÁ", "deliv_fee", PRICE_LEN, "n", array("MAX_LENGTH_CHECK","NUM_CHECK"));
@@ -240,5 +240,5 @@
  * ÀâÌÀ¡¡¡§¾¦ÉÊÅÐÏ¿
  */
-function lfRegistProduct($objQuery) {
+function lfRegistProduct($objQuery, $line = "") {
 	global $objFormParam;
 	$arrRet = $objFormParam->getHashArray();
@@ -270,7 +270,9 @@
 	// ÅÐÏ¿»þ´Ö¤òÀ¸À®(DB¤Înow()¤À¤Ècommit¤·¤¿ºÝ¡¢¤¹¤Ù¤ÆÆ±°ì¤Î»þ´Ö¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦)
 	$time = date("Y-m-d H:i:s");
-	$m = (float)microtime();
-	list($dummy, $m_time) = split("\.", $m);
-	$time .= ".$m_time";
+	// ÉÃ°Ê²¼¤òÀ¸À®
+	if($line != "") {
+		$microtime = sprintf("%06d", $line);
+		$time .= ".$microtime";
+	}	
 	$sqlval['update_date'] = $time;
 	$sqlval['creator_id'] = $_SESSION['member_id'];
Index: /branches/comu/html/admin/order/mail.php
===================================================================
--- /branches/comu/html/admin/order/mail.php	(revision 11730)
+++ /branches/comu/html/admin/order/mail.php	(revision 11982)
@@ -73,5 +73,5 @@
 		// ³ÎÇ§¥Ú¡¼¥¸¤ÎÉ½¼¨
 		$objPage->tpl_subject = $objSendMail->subject;
-		$objPage->tpl_body = $objSendMail->body;
+		$objPage->tpl_body = mb_convert_encoding( $objSendMail->body, "EUC-JP", "auto" );		
 		$objPage->tpl_to = $objSendMail->tpl_to;
 		$objPage->tpl_mainpage = 'order/mail_confirm.tpl';
Index: /branches/comu/html/admin/order/status.php
===================================================================
--- /branches/comu/html/admin/order/status.php	(revision 11730)
+++ /branches/comu/html/admin/order/status.php	(revision 11982)
@@ -135,5 +135,5 @@
 }
 
-//¥¹¥Æ¡¼¥¿¥¹¾ðÊó¤Î¹¹¿·¡Ê°ÜÆ°¡Ë
+//¥¹¥Æ¡¼¥¿¥¹¾ðÊó¤Î¹¹¿·¡Êºï½ü¡Ë
 function lfStatusMove($status_id,$move){
 	global $objQuery;
@@ -141,11 +141,11 @@
 	
 	if ($status_id == 'delete'){
-		$sql="UPDATE dtb_order SET del_flg=1";
+		$sql = "UPDATE dtb_order SET del_flg = 1 ";
 	}elseif ($status_id == 5){
-		$sql="UPDATE dtb_order SET status=".$status_id.",commit_date=now() ";
+		$sql = "UPDATE dtb_order SET status = ".$status_id.",commit_date = now() ";
 	}else{
-		$sql="UPDATE dtb_order SET status=".$status_id." ";
+		$sql = "UPDATE dtb_order SET status = ".$status_id." ";
 	}
-		$sql.="WHERE order_id=?";
+		$sql .= "WHERE order_id = ? ";
 		if (isset($move)){
 			foreach ($move as $val){
@@ -153,5 +153,5 @@
 				$objQuery->exec($sql, array($val));
 			}
-			$objPage->tpl_onload = "window.alert('ÁªÂò¹àÌÜ¤ò°ÜÆ°¤·¤Þ¤·¤¿¡£');";
+			$objPage->tpl_onload = "window.alert('ÁªÂò¹àÌÜ¤òºï½ü¤·¤Þ¤·¤¿¡£');";
 			}
 		}
Index: /branches/comu/html/admin/home.php
===================================================================
--- /branches/comu/html/admin/home.php	(revision 11730)
+++ /branches/comu/html/admin/home.php	(revision 11982)
@@ -85,8 +85,8 @@
 		if (DB_TYPE == "pgsql") {
 			$sql = "SELECT ".$method."(total) FROM dtb_order
-					 WHERE del_flg = 0 AND to_char(create_date,'YYYY/MM/DD') = to_char(now() - interval '1 days','YYYY/MM/DD')";
+					 WHERE del_flg = 0 AND to_char(create_date,'YYYY/MM/DD') = to_char(now() - interval '1 days','YYYY/MM/DD') AND status <> " . ORDER_CANCEL;
 		}else if (DB_TYPE == "mysql") {
 			$sql = "SELECT ".$method."(total) FROM dtb_order
-					 WHERE del_flg = 0 AND cast(substring(create_date,1, 10) as date) = DATE_ADD(current_date, interval -1 day)";
+					 WHERE del_flg = 0 AND cast(substring(create_date,1, 10) as date) = DATE_ADD(current_date, interval -1 day) AND status <> " . ORDER_CANCEL;
 		}
 		$return = $conn->getOne($sql);
@@ -104,9 +104,9 @@
 		$sql = "SELECT ".$method."(total) FROM dtb_order
 				 WHERE del_flg = 0 AND to_char(create_date,'YYYY/MM') = ? 
-				 AND to_char(create_date,'YYYY/MM/DD') <> to_char(now(),'YYYY/MM/DD')";
+				 AND to_char(create_date,'YYYY/MM/DD') <> to_char(now(),'YYYY/MM/DD') AND status <> " . ORDER_CANCEL;
 	}else if (DB_TYPE == "mysql") {
 		$sql = "SELECT ".$method."(total) FROM dtb_order
-				 WHERE del_flg = 0 AND cast(substring(create_date,1,7) as date) = ? 
-				 AND cast(substring(create_date,1, 10) as date) <> cast(substring(now(),1, 10) as date)";
+				 WHERE del_flg = 0 AND date_format(create_date, '%Y/%m') = ? 
+				 AND date_format(create_date, '%Y/%m/%d') <> date_format(now(), '%Y/%m/%d') AND status <> " . ORDER_CANCEL;
 	}
 		$return = $conn->getOne($sql, array($month));
@@ -127,11 +127,11 @@
 	// postgresql ¤È mysql ¤È¤ÇSQL¤ò¤ï¤±¤ë
 	if (DB_TYPE == "pgsql") {
-		$sql = "SELECT COUNT(*) FROM dtb_review 
-				 WHERE del_flg=0 AND to_char(create_date, 'YYYY/MM/DD') = to_char(now() - interval '1 days','YYYY/MM/DD')
-				 AND to_char(create_date,'YYYY/MM/DD') != to_char(now(),'YYYY/MM/DD')";
+		$sql = "SELECT COUNT(*) FROM dtb_review AS A LEFT JOIN dtb_products AS B ON A.product_id = B.product_id  
+				 WHERE A.del_flg=0 AND B.del_flg = 0 AND to_char(A.create_date, 'YYYY/MM/DD') = to_char(now() - interval '1 days','YYYY/MM/DD')
+				 AND to_char(A.create_date,'YYYY/MM/DD') != to_char(now(),'YYYY/MM/DD')";
 	}else if (DB_TYPE == "mysql") {
-		$sql = "SELECT COUNT(*) FROM dtb_review 
-				 WHERE del_flg = 0 AND cast(substring(create_date,1, 10) as date) = DATE_ADD(current_date, interval -1 day)
-				 AND cast(substring(create_date,1, 10) as date) != cast(substring(now(),1, 10) as date)";
+		$sql = "SELECT COUNT(*) FROM dtb_review AS A LEFT JOIN dtb_products AS B ON A.product_id = B.product_id 
+				 WHERE A.del_flg = 0 AND B.del_flg = 0 AND cast(substring(A.create_date,1, 10) as date) = DATE_ADD(current_date, interval -1 day)
+				 AND cast(substring(A.create_date,1, 10) as date) != cast(substring(now(),1, 10) as date)";
 	}
 	$return = $conn->getOne($sql);
@@ -140,5 +140,5 @@
 
 function lfGetReviewNonDisp($conn){
-	$sql = "SELECT COUNT(*) FROM dtb_review WHERE del_flg=0 AND status=2";
+	$sql = "SELECT COUNT(*) FROM dtb_review AS A LEFT JOIN dtb_products AS B ON A.product_id = B.product_id WHERE A.del_flg=0 AND A.status=2 AND B.del_flg=0";
 	$return = $conn->getOne($sql);
 	return $return;
@@ -156,12 +156,42 @@
 function lfGetNewOrder() {
 	$objQuery = new SC_Query();
-	$col = "ord.order_id, customer_id, ord.order_name01 AS name01, ord.order_name02 AS name02, ord.total, ";
-	$col.= "(SELECT det.product_name FROM dtb_order_detail AS det WHERE ord.order_id = det.order_id LIMIT 1) AS product_name, ";
-	$col.= "(SELECT pay.payment_method FROM dtb_payment AS pay WHERE ord.payment_id = pay.payment_id) AS payment_method, ";	
-	$col.= "create_date AS create_date";
-	$from = "dtb_order AS ord";
-	$where = "del_flg = 0";
-	$objQuery->setoption("ORDER BY create_date DESC LIMIT 10 OFFSET 0");
-	$arrRet = $objQuery->select($col, $from, $where);
+	$sql = "SELECT 
+			    ord.order_id,
+			    ord.customer_id,
+			    ord.order_name01 AS name01,
+			    ord.order_name02 AS name02,
+			    ord.total,
+			    ord.create_date,
+			    (SELECT
+			        det.product_name
+			    FROM
+			        dtb_order_detail AS det
+			    WHERE
+			        ord.order_id = det.order_id LIMIT 1
+			    ) AS product_name,
+			    (SELECT
+			        pay.payment_method
+			    FROM
+			        dtb_payment AS pay
+			    WHERE
+			        ord.payment_id = pay.payment_id
+			    ) AS payment_method 
+			FROM (
+			    SELECT
+			        order_id,
+			        customer_id,
+			        order_name01,
+			        order_name02,
+			        total,
+			        create_date,
+			        payment_id
+			    FROM
+			        dtb_order AS ord
+			    WHERE
+			        del_flg = 0 AND status <> " . ORDER_CANCEL . " 
+			    ORDER BY
+			        create_date DESC LIMIT 10 OFFSET 0
+			) AS ord";
+	$arrRet = $objQuery->getAll($sql);
 	return $arrRet;
 }
Index: /branches/comu/html/admin/batch/daily.php
===================================================================
--- /branches/comu/html/admin/batch/daily.php	(revision 11730)
+++ /branches/comu/html/admin/batch/daily.php	(revision 11982)
@@ -107,5 +107,5 @@
 function lfGetOrderDailySQL($start, $end) {
 	$from = " FROM dtb_order AS T1 LEFT JOIN dtb_customer AS T2 USING ( customer_id ) ";
-	$where = " WHERE T1.del_flg = 0 AND T1.create_date BETWEEN '$start' AND '$end' ";
+	$where = " WHERE T1.del_flg = 0 AND T1.status <> " . ORDER_CANCEL . " AND T1.create_date BETWEEN '$start' AND '$end' ";
 
 /*	mysql¤Ç¤âÌäÂê¤Ê¤¤¤è¤¦¤Ë½¤Àµ
@@ -232,5 +232,5 @@
 	/* ²ñ°÷½¸·× */
 
-	$base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id <> 0 AND del_flg = 0 ";
+	$base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id <> 0 AND del_flg = 0 AND status <> " . ORDER_CANCEL;
 
 	$end_date = date("Y/m/d", time()); 
@@ -259,5 +259,5 @@
 	/* Èó²ñ°÷½¸·× */
 	
-	$base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id = 0 AND del_flg = 0";
+	$base_where = "WHERE (create_date BETWEEN ? AND ?) AND customer_id = 0 AND del_flg = 0 AND status <> " . ORDER_CANCEL;
 	$where = $base_where . " AND (to_number(to_char(age(current_timestamp, order_birth), 'YYY'), 999) BETWEEN ? AND ?) ";
 
Index: /branches/comu/html/admin/mail/inc_mailmagazine.php
===================================================================
--- /branches/comu/html/admin/mail/inc_mailmagazine.php	(revision 11730)
+++ /branches/comu/html/admin/mail/inc_mailmagazine.php	(revision 11982)
@@ -44,4 +44,5 @@
 							array(  "column" => "job",				"convert" => "" ),
 							array(  "column" => "email",			"convert" => "a" ),
+							array(  "column" => "email_mobile",		"convert" => "a" ),							
 							array(  "column" => "htmlmail",			"convert" => "n" ),
 							array(  "column" => "customer",			"convert" => "" ),
@@ -74,6 +75,8 @@
 							,array(  "column" => "buy_total_from",	"convert" => "n" )		
 							,array(  "column" => "buy_total_to",	"convert" => "n" )
-							,array(  "column" => "campaign_id",	"convert" => "" )											
-						 );
+							,array(  "column" => "campaign_id",	"convert" => "" )
+							,array(  "column" => "mail_type",			"convert" => "" )
+
+					);
 
 //--------------------------------------------------------------------------------------------------------------------------------------
@@ -236,5 +239,5 @@
 	
 	$sql = "SELECT template_id, subject, mail_method FROM dtb_mailmaga_template WHERE del_flg = 0 ";
-	if ($_POST["htmlmail"] == 2) {
+	if ($_POST["htmlmail"] == 2 || $_POST['mail_type'] == 2) {
 		$sql .= " AND mail_method = 2 ";	//TEXT´õË¾¼Ô¤Ø¤ÎTEST¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¥ê¥¹¥È
 	}
Index: /branches/comu/html/admin/mail/index.php
===================================================================
--- /branches/comu/html/admin/mail/index.php	(revision 11730)
+++ /branches/comu/html/admin/mail/index.php	(revision 11982)
@@ -27,4 +27,6 @@
 		global $arrSex;		
 		$this->arrSex = $arrSex;
+		global $arrMailType;
+		$this->arrMailType = $arrMailType;
 		global $arrPageRows;
 		$this->arrPageRows = $arrPageRows;
@@ -93,5 +95,5 @@
 		$list_data['job_disp'] = $job_disp;
 	}
-	
+		
 	// ¥«¥Æ¥´¥êÊÑ´¹
 	$arrCatList = sfGetCategoryList();
@@ -106,6 +108,4 @@
 
 if($_POST['mode'] == 'delete') {
-	$objQuery = new SC_Query();
-	$objQuery->delete("dtb_customer_mail", "email = ?", array($_POST['result_email']));
 }
 
@@ -120,5 +120,5 @@
 	//-- ÆþÎÏÃÍ¥³¥ó¥Ð¡¼¥È
 	$objPage->list_data = lfConvertParam($_POST, $arrSearchColumn);
-	
+		
 	//-- ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯
 	$objPage->arrErr = lfErrorCheck($objPage->list_data);
@@ -132,7 +132,7 @@
 		//-- ¸¡º÷¥Ç¡¼¥¿¼èÆÀ	
 		$objSelect = new SC_CustomerList($objPage->list_data, "magazine");
-
 		// À¸À®¤µ¤ì¤¿WHEREÊ¸¤ò¼èÆÀ¤¹¤ë		
 		list($where, $arrval) = $objSelect->getWhere();
+	
 		// ¡ÖWHERE¡×ÉôÊ¬¤òºï½ü¤¹¤ë¡£
 		$where = ereg_replace("^WHERE", "", $where);
@@ -140,5 +140,5 @@
 		// ¸¡º÷·ë²Ì¤Î¼èÆÀ
 		$objQuery = new SC_Query();
-		$from = "dtb_customer_mail LEFT OUTER JOIN dtb_customer USING(email)";
+		$from = "dtb_customer";
 
 		// ¹Ô¿ô¤Î¼èÆÀ
@@ -155,19 +155,8 @@
 		// É½¼¨½ç½ø
 		$objQuery->setorder("customer_id DESC");
-		// ¸¡º÷·ë²Ì¤Î¼èÆÀ
-		$col = "dtb_customer.customer_id,
-			dtb_customer.name01,
-			dtb_customer.name02,
-			dtb_customer.kana01,
-			dtb_customer.kana02,
-			dtb_customer.sex,
-			dtb_customer.email,
-			dtb_customer.tel01,
-			dtb_customer.tel02,
-			dtb_customer.tel03,
-			dtb_customer.pref,
-			dtb_customer_mail.mail_flag";
+		
+		// ¸¡º÷·ë²Ì¤Î¼èÆÀ	
+		$col = $objSelect->getMailMagazineColumn(lfGetIsMobile($_POST['mail_type']));
 		$objPage->arrResults = $objQuery->select($col, $from, $where, $arrval);
-
 		//¸½ºß»þ¹ï¤Î¼èÆÀ
 		$objPage->arrNowDate = lfGetNowDate();
@@ -175,5 +164,5 @@
 	break;
 /*
-	input:¸¡º÷·ë²Ì²èÌÌ¡ÖÇÛ¿®ÆâÍÆÀßÄê¡×¥Ü¥¿¥ó
+	input:¸¡º÷·ë²Ì²èÌÌ¡ÖhtmlmailÆâÍÆÀßÄê¡×¥Ü¥¿¥ó
 */
 case 'input':
@@ -278,4 +267,5 @@
 	break;
 default:
+	$objPage->list_data['mail_type'] = 1;
 	break;
 }
@@ -386,7 +376,7 @@
 	
 	$objQuery = new SC_Query();
-		
 	$objSelect = new SC_CustomerList( lfConvertParam($arrData, $arrSearchColumn), "magazine" );
-	$search_data = $conn->getAll($objSelect->getListMailMagazine(), $objSelect->arrVal);
+	
+	$search_data = $conn->getAll($objSelect->getListMailMagazine(lfGetIsMobile($_POST['mail_type'])), $objSelect->arrVal);
 	$dataCnt = count($search_data);
 	
@@ -439,3 +429,21 @@
 	return $arrCampaign;
 }
+
+function lfGetIsMobile($mail_type) {
+	// ¸¡º÷·ë²Ì¤Î¼èÆÀ			
+	$is_mobile = false;
+	switch($mail_type) {
+		case 1:
+			$is_mobile = false;
+			break;
+		case 2:
+			$is_mobile = true;		
+			break;
+		default:
+			$is_mobile = false;
+			break;
+	}
+	
+	return $is_mobile;
+}
 ?>
Index: /branches/comu/html/admin/mail/sendmail.php
===================================================================
--- /branches/comu/html/admin/mail/sendmail.php	(revision 11730)
+++ /branches/comu/html/admin/mail/sendmail.php	(revision 11982)
@@ -127,5 +127,6 @@
 	//---¡¡Á÷¿®´°Î»¡¡Êó¹ð¥á¡¼¥ë
 	$compData =  date("YÇ¯m·îdÆüH»þiÊ¬" . "  ²¼µ­¥á¡¼¥ë¤ÎÇÛ¿®¤¬´°Î»¤·¤Þ¤·¤¿¡£" );
-	MAIL_SENDING(
+
+	HTML_MAIL_SENDING(
 					 $objSite->data["email03"]	
 					,$compData
@@ -137,5 +138,5 @@
 					,$objSite->data["email04"]					//¡¡errors_to
 				 );
-	
+				 
 	if ($_GET['mode'] = "now") {
 		header("Location: " . URL_DIR . "admin/mail/history.php");
Index: /branches/comu/html/admin/total/index.php
===================================================================
--- /branches/comu/html/admin/total/index.php	(revision 11730)
+++ /branches/comu/html/admin/total/index.php	(revision 11982)
@@ -99,6 +99,6 @@
 		}
 
-		if($_POST['type'] != "") {
-			$type = $_POST['type'];
+		if($objFormParam->getValue('type') != "") {
+			$type = $objFormParam->getValue('type');
 		}
 				
@@ -200,6 +200,6 @@
 		// ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë
 		if(DAILY_BATCH_MODE) {
-			// 1¥ö·îÊ¬¤Î½¸·×
-			lfStartDailyTotal(31,0);
+			// 3ÆüÁ°¤Þ¤Ç¤Î½¸·×
+			lfStartDailyTotal(3,0);
 		}
 	}
Index: /branches/comu/html/admin/system/module.php
===================================================================
--- /branches/comu/html/admin/system/module.php	(revision 11730)
+++ /branches/comu/html/admin/system/module.php	(revision 11982)
@@ -268,12 +268,6 @@
 	if(count($arrRet) > 0) {
 		
-		// ¥â¥¸¥å¡¼¥ëÂ¦¤Ëºï½ü¾ðÊó¤òÁ÷¿®¤¹¤ë
-		$req = new HTTP_Request(SITE_URL . "load_module.php");
-		$req->addCookie("PHPSESSID", $_COOKIE["PHPSESSID"]);
-		$req->setMethod(HTTP_REQUEST_METHOD_POST);
-		$req->addPostData("module_id", $arrRet[0]['module_id']);
-		$req->addPostData("mode", "module_del");
-		$req->sendRequest();
-		$req->clearPostData();
+		// ¥â¥¸¥å¡¼¥ë¤òºï½ü¤¹¤ë
+		$objQuery->query("UPDATE dtb_payment SET del_flg = 1 WHERE module_id = ?", array($arrRet[0]['module_id']));
 
 		$arrFiles = array();
Index: /branches/comu/html/admin/css/install.css
===================================================================
--- /branches/comu/html/admin/css/install.css	(revision 11982)
+++ /branches/comu/html/admin/css/install.css	(revision 11982)
@@ -0,0 +1,15 @@
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+#agreement{
+	height: 120px;
+	width: 480px;
+	overflow: auto;
+	margin: 0px;
+	background-color : #FFFFFF;
+	border-style: solid;
+	border-color: #C0C0C0;
+	border-width: 1px
+}
Index: /branches/comu/html/admin/contents/campaign.php
===================================================================
--- /branches/comu/html/admin/contents/campaign.php	(revision 11730)
+++ /branches/comu/html/admin/contents/campaign.php	(revision 11982)
@@ -337,9 +337,9 @@
 	// ¥­¥ã¥ó¥Ú¡¼¥ó¼Â¹ÔPHP¤ò¥³¥Ô¡¼
 	$ret = sfCreateFile(CAMPAIGN_PATH . $file);
-	copy(CAMPAIGN_PATH . "default/index.php", CAMPAIGN_PATH . $file . "/index.php");
-	copy(CAMPAIGN_PATH . "default/application.php", CAMPAIGN_PATH . $file . "/application.php");
-	copy(CAMPAIGN_PATH . "default/complete.php", CAMPAIGN_PATH . $file . "/complete.php");
-	copy(CAMPAIGN_PATH . "default/entry.php", CAMPAIGN_PATH . $file . "/entry.php");
-	
+	copy($default_dir . "/src/index.php", CAMPAIGN_PATH . $file . "/index.php");
+	copy($default_dir . "/src/application.php", CAMPAIGN_PATH . $file . "/application.php");
+	copy($default_dir . "/src/complete.php", CAMPAIGN_PATH . $file . "/complete.php");
+	copy($default_dir . "/src/entry.php", CAMPAIGN_PATH . $file . "/entry.php");
+
 	// ¥Ç¥Õ¥©¥ë¥È¥Æ¥ó¥×¥ì¡¼¥ÈºîÀ®(¥­¥ã¥ó¥Ú¡¼¥óÃæ)
 	$header = lfGetFileContents($default_active_dir."header.tpl");
Index: /branches/comu/html/abouts/index.php
===================================================================
--- /branches/comu/html/abouts/index.php	(revision 11730)
+++ /branches/comu/html/abouts/index.php	(revision 11982)
@@ -9,6 +9,4 @@
 class LC_Page {
 	function LC_Page() {
-		/** É¬¤º»ØÄê¤¹¤ë **/
-		$this->tpl_css = URL_DIR.'css/layout/abouts/index.css';		// ¥á¥¤¥óCSS¥Ñ¥¹
 		/** É¬¤º»ØÄê¤¹¤ë **/
 		$this->tpl_mainpage = 'abouts/index.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
Index: /branches/comu/html/regist/index.php
===================================================================
--- /branches/comu/html/regist/index.php	(revision 11730)
+++ /branches/comu/html/regist/index.php	(revision 11982)
@@ -72,4 +72,5 @@
 //---- ÅÐÏ¿
 function lfRegistData($array) {
+	global $objQuery;
 	global $objConn;
 	global $arrInfo;
@@ -112,5 +113,5 @@
 	*/
 
-	$sql = "SELECT mail_flag FROM dtb_customer_mail WHERE email = ?";
+	$sql = "SELECT mailmaga_flg FROM dtb_customer WHERE email = ?";
 	$result = $objConn->getOne($sql, array($email));
 	
@@ -118,20 +119,20 @@
 	// ²¾HTML
 	case '4':
-		$arrRegistMail["mail_flag"] = 1;
+		$arrRegistMail["mailmaga_flg"] = 1;
 		break;
 	// ²¾TEXT
 	case '5':
-		$arrRegistMail["mail_flag"] = 2;
+		$arrRegistMail["mailmaga_flg"] = 2;
 		break;
 	// ²¾¤Ê¤·
 	case '6':
-		$arrRegistMail["mail_flag"] = 3;
+		$arrRegistMail["mailmaga_flg"] = 3;
 		break;
 	default:
-		$arrRegistMail["mail_flag"] = $result;
-		break;
-	}
-
-	$objConn->autoExecute("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($email). "'");
+		$arrRegistMail["mailmaga_flg"] = $result;
+		break;
+	}
+
+	$objQuery->update("dtb_customer", $arrRegistMail, "email = '" .addslashes($email). "' AND del_flg = 0");
 	$objConn->query("COMMIT");
 		
@@ -180,5 +181,5 @@
 	$objMailText->assign("name02", $data["name02"]);
 	$toCustomerMail = $objMailText->fetch("mail_templates/customer_regist_mail.tpl");
-	$subject = sfMakeSubject('ËÜ²ñ°÷ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');
+	$subject = sfMakeSubject('²ñ°÷ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');
 	$objMail = new GC_SendMail();
 
Index: /branches/comu/html/regist/complete.php
===================================================================
--- /branches/comu/html/regist/complete.php	(revision 11730)
+++ /branches/comu/html/regist/complete.php	(revision 11982)
@@ -19,4 +19,5 @@
 $objView = new SC_SiteView();
 $objQuery = new SC_Query();
+$objCampaignSess = new SC_CampaignSession();
 
 // ¥­¥ã¥ó¥Ú¡¼¥ó¤«¤é¤ÎÅÐÏ¿¤Î¾ì¹ç¤Î½èÍý
@@ -24,7 +25,7 @@
 	$arrCampaign= $objQuery->select("directory_name", "dtb_campaign", "campaign_id = ?", array($_GET["cp"]));
 	// ¥­¥ã¥ó¥Ú¡¼¥ó¥Ç¥£¥ì¥¯¥È¥êÌ¾¤òÊÝ»ý
-	$objPage->dir_name = $arrCampaign[0]['directory_name'];
+	$dir_name = $arrCampaign[0]['directory_name'];
 } else {
-	$objPage->dir_name = "";
+	$dir_name = "";
 }
 
@@ -35,5 +36,6 @@
 // ¥Õ¥ì¡¼¥à¤òÁªÂò(¥­¥ã¥ó¥Ú¡¼¥ó¥Ú¡¼¥¸¤«¤éÁ«°Ü¤Ê¤éÊÑ¹¹)
 if($objPage->dir_name != "") {
-	$objView->display(CAMPAIGN_TEMPLATE_PATH . $objPage->dir_name  . "/active/site_frame.tpl");
+	$objView->display(CAMPAIGN_TEMPLATE_PATH . $dir_name  . "/active/site_frame.tpl");
+	$objCampaignSess->delCampaign();
 } else {
 	$objView->display(SITE_FRAME);	
Index: /branches/comu/html/entry/index.php
===================================================================
--- /branches/comu/html/entry/index.php	(revision 11730)
+++ /branches/comu/html/entry/index.php	(revision 11982)
@@ -20,4 +20,5 @@
 $objPage = new LC_Page();
 $objView = new SC_SiteView();
+$objCustomer = new SC_Customer();
 $objCampaignSess = new SC_CampaignSession();
 $objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
@@ -67,5 +68,6 @@
 							 array(  "column" => "reminder_answer", "convert" => "aKV"),
 							 array(  "column" => "password", "convert" => "a" ),
-							 array(  "column" => "password02", "convert" => "a" )
+							 array(  "column" => "password02", "convert" => "a" ),
+							 array(  "column" => "mailmaga_flg", "convert" => "n" ),
 						 );
 
@@ -113,5 +115,5 @@
 		}
 
-		//--¡¡²¾ÅÐÏ¿¤È´°Î»²èÌÌ
+		//--¡¡²ñ°÷ÅÐÏ¿¤È´°Î»²èÌÌ
 		if ($_POST["mode"] == "complete") {
 			// ¥­¥ã¥ó¥Ú¡¼¥ó¤«¤é¤ÎÁ«°Ü¤Î»þÍÑ¤ÎÃÍ
@@ -120,5 +122,6 @@
 			}
 			
-			$objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn);
+			// ²ñ°÷¾ðÊó¤ÎÅÐÏ¿
+			$objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn, CUSTOMER_CONFIRM_MAIL);
 			
 			$objPage->tpl_css = '/css/layout/entry/complete.css';
@@ -126,12 +129,22 @@
 			$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';
 
-			//¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
+			//¡¡´°Î»¥á¡¼¥ëÁ÷¿®
 			$objPage->CONF = $CONF;
-			$objPage->to_name01 = $_POST['name01'];
-			$objPage->to_name02 = $_POST['name02'];
+			$objPage->name01 = $_POST['name01'];
+			$objPage->name02 = $_POST['name02'];
 			$objMailText = new SC_SiteView();
 			$objMailText->assignobj($objPage);
-			$subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´³ÎÇ§');
-			$toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl");
+			
+			// ²¾²ñ°÷¤¬Í­¸ú¤Î¾ì¹ç
+			if(CUSTOMER_CONFIRM_MAIL == true) {
+				$subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´³ÎÇ§');
+				$toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl");
+			} else {
+				$subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´´°Î»');
+				$toCustomerMail = $objMailText->fetch("mail_templates/customer_regist_mail.tpl");
+				// ¥í¥°¥¤¥ó¾õÂÖ¤Ë¤¹¤ë
+				$objCustomer->setLogin($_POST["email"]);
+			}
+			
 			$objMail = new GC_SendMail();
 			$objMail->setItem(
@@ -144,6 +157,5 @@
 								, $CONF["email04"]					//¡¡return_path
 								, $CONF["email04"]					//  Errors_to
-								, $CONF["email01"]					//  Bcc
-																);
+							);
 			// °¸Àè¤ÎÀßÄê
 			$name = $_POST["name01"] . $_POST["name02"] ." ÍÍ";
@@ -168,10 +180,9 @@
 
 //----------------------------------------------------------------------------------------------------------------------
-
-//---- function·²
-function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn) {
+// ²ñ°÷¾ðÊó¤ÎÅÐÏ¿
+function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn, $confirm_flg) {
 	global $objConn;
-
-	// ²¾ÅÐÏ¿
+	
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎÀ¸À®
 	foreach ($arrRegistColumn as $data) {
 		if (strlen($array[ $data["column"] ]) > 0 && ! in_array($data["column"], $arrRejectRegistColumn)) {
@@ -188,11 +199,40 @@
 	$arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC);
 	
-	$count = 1;
-	while ($count != 0) {
-		$uniqid = sfGetUniqRandomId("t");
-		$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
-	}
-	
-	$arrRegist["secret_key"] = $uniqid;		// ²¾ÅÐÏ¿IDÈ¯¹Ô
+	// ²¾²ñ°÷ÅÐÏ¿¤Î¾ì¹ç
+	if($confirm_flg == true) {
+		// ½ÅÊ£¤·¤Ê¤¤²ñ°÷ÅÐÏ¿¥­¡¼¤òÈ¯¹Ô¤¹¤ë¡£
+		$count = 1;
+		while ($count != 0) {
+			$uniqid = sfGetUniqRandomId("t");
+			$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
+		}
+		switch($array["mailmaga_flg"]) {
+			case 1:
+				$arrRegist["mailmaga_flg"] = 4; 
+				break;
+			case 2:
+				$arrRegist["mailmaga_flg"] = 5; 
+				break;
+			default:
+				$arrRegist["mailmaga_flg"] = 6;
+				break;
+		}
+		
+		$arrRegist["status"] = "1";				// ²¾²ñ°÷
+	} else {
+		// ½ÅÊ£¤·¤Ê¤¤²ñ°÷ÅÐÏ¿¥­¡¼¤òÈ¯¹Ô¤¹¤ë¡£
+		$count = 1;
+		while ($count != 0) {
+			$uniqid = sfGetUniqRandomId("r");
+			$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
+		}
+		$arrRegist["status"] = "2";				// ËÜ²ñ°÷
+	}
+	
+	/*
+	  secret_key¤Ï¡¢¥Æ¡¼¥Ö¥ë¤Ç½ÅÊ£µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¤Î¤Ç¡¢
+      ËÜ²ñ°÷ÅÐÏ¿¤Ç¤ÏÍøÍÑ¤µ¤ì¤Ê¤¤¤¬¥»¥Ã¥È¤·¤Æ¤ª¤¯¡£
+    */
+	$arrRegist["secret_key"] = $uniqid;		// ²ñ°÷ÅÐÏ¿¥­¡¼
 	$arrRegist["create_date"] = "now()"; 	// ºîÀ®Æü
 	$arrRegist["update_date"] = "now()"; 	// ¹¹¿·Æü
@@ -205,4 +245,8 @@
 	$objQuery->insert("dtb_customer", $arrRegist);
 
+
+/* ¥á¥ë¥Þ¥¬²ñ°÷µ¡Ç½¤Ï¸½ºßÄä»ßÃæ¡¡2007/03/07
+
+
 	//--¡¡Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎÈ½Äê
 	$sql = "SELECT count(*) FROM dtb_customer_mail WHERE email = ?";
@@ -211,10 +255,10 @@
 	//--¡¡¥á¥ë¥Þ¥¬²¾ÅÐÏ¿¼Â¹Ô
 	$arrRegistMail["email"] = $arrRegist["email"];	
-	if ($array["mail_flag"] == 1) {
-		$arrRegistMail["mail_flag"] = 4; 
-	} elseif ($array["mail_flag"] == 2) {
-		$arrRegistMail["mail_flag"] = 5; 
+	if ($array["mailmaga_flg"] == 1) {
+		$arrRegistMail["mailmaga_flg"] = 4; 
+	} elseif ($array["mailmaga_flg"] == 2) {
+		$arrRegistMail["mailmaga_flg"] = 5; 
 	} else {
-		$arrRegistMail["mail_flag"] = 6; 
+		$arrRegistMail["mailmaga_flg"] = 6; 
 	}
 	$arrRegistMail["update_date"] = "now()";
@@ -227,4 +271,5 @@
 		$objQuery->insert("dtb_customer_mail", $arrRegistMail);		
 	}
+*/
 	$objConn->query("COMMIT");
 
@@ -313,8 +358,8 @@
 	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤Î¥Ò¥ó¥È ¼ÁÌä", "reminder") ,array("SELECT_CHECK", "NUM_CHECK")); 
 	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤Î¥Ò¥ó¥È Åú¤¨", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK","SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
-	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mail_flag") ,array("SELECT_CHECK", "NUM_CHECK"));
+	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mailmaga_flg") ,array("SELECT_CHECK", "NUM_CHECK"));
 	
 	$objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
-	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", 'mail_flag'), array("SELECT_CHECK"));
+	$objErr->doFunc(array("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", 'mailmaga_flg'), array("SELECT_CHECK"));
 	
 	return $objErr->arrErr;
Index: /branches/comu/html/entry/complete.php
===================================================================
--- /branches/comu/html/entry/complete.php	(revision 11730)
+++ /branches/comu/html/entry/complete.php	(revision 11982)
@@ -10,5 +10,13 @@
 	function LC_Page() {
 		$this->tpl_css = URL_DIR.'css/layout/entry/complete.css';	// ¥á¥¤¥óCSS¥Ñ¥¹
-		$this->tpl_mainpage = 'entry/complete.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		
+		if(CUSTOMER_CONFIRM_MAIL == true) {
+			// ²¾²ñ°÷ÅÐÏ¿´°Î»
+			$this->tpl_mainpage = 'entry/complete.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		} else {
+			// ËÜ²ñ°÷ÅÐÏ¿´°Î»
+			$this->tpl_mainpage = 'regist/complete.tpl';		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È			
+		}
+		
 		$this->tpl_title .= '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';			//¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
 	}
Index: /branches/comu/html/frontparts/bloc/cart.php
===================================================================
--- /branches/comu/html/frontparts/bloc/cart.php	(revision 11730)
+++ /branches/comu/html/frontparts/bloc/cart.php	(revision 11982)
@@ -51,11 +51,9 @@
 	
 	// Á÷ÎÁÌµÎÁ¤Þ¤Ç¤Î¶â³Û
-	if($arrInfo['free_rule'] > 0){
-		$deliv_free = $arrInfo['free_rule'] - $ProductsTotal;
-		$arrCartList[0]['free_rule'] = $arrInfo['free_rule'];
-		$arrCartList[0]['ProductsTotal'] = $ProductsTotal;
-		$arrCartList[0]['TotalQuantity'] = $TotalQuantity;
-		$arrCartList[0]['deliv_free'] = $deliv_free;
-	}
+	$arrCartList[0]['ProductsTotal'] = $ProductsTotal;
+	$arrCartList[0]['TotalQuantity'] = $TotalQuantity;
+	$deliv_free = $arrInfo['free_rule'] - $ProductsTotal;
+	$arrCartList[0]['free_rule'] = $arrInfo['free_rule'];
+	$arrCartList[0]['deliv_free'] = $deliv_free;
 	
 	$objSubPage->arrCartList = $arrCartList;
Index: /branches/comu/html/require.php
===================================================================
--- /branches/comu/html/require.php	(revision 11730)
+++ /branches/comu/html/require.php	(revision 11982)
@@ -31,4 +31,6 @@
 require_once($include_dir . "/../data/class/SC_Page.php");
 require_once($include_dir . "/../data/class/SC_Pdf.php");
+require_once($include_dir . "/../data/class/GC_MobileUserAgent.php");
+require_once($include_dir . "/../data/class/GC_MobileEmoji.php");
 require_once($include_dir . "/../data/include/page_layout.inc");
 
@@ -36,3 +38,16 @@
 sfLoadUpdateModule();
 
+// ·ÈÂÓÃ¼Ëö¤Î¾ì¹ç¤Ï mobile °Ê²¼¤Ø¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£
+if (GC_MobileUserAgent::isMobile()) {
+	if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) {
+		$path = $matches[1];
+	} else {
+		$path = '';
+	}
+	header("Location: " . URL_DIR . "mobile/$path");
+	exit;
+}
+
+// ³¨Ê¸»úÊÑ´¹ (½üµî) ¥Õ¥£¥ë¥¿¡¼¤òÁÈ¤ß¹þ¤à¡£
+ob_start(array('GC_MobileEmoji', 'handler'));
 ?>
Index: /branches/comu/html/tb/index.php
===================================================================
--- /branches/comu/html/tb/index.php	(revision 11982)
+++ /branches/comu/html/tb/index.php	(revision 11982)
@@ -0,0 +1,274 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+
+require_once("../require.php");
+
+$objQuery = new SC_Query();
+$objFormParam = new SC_FormParam();
+
+// ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯µ¡Ç½¤Î²ÔÆ¯¾õ¶·¥Á¥§¥Ã¥¯
+if (sfGetSiteControlFlg(SITE_CONTROL_TRACKBACK) != 1) {
+	// NG
+	IfResponseNg();
+}
+
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+
+// ¥¨¥ó¥³¡¼¥ÉÀßÄê(¥µ¡¼¥Ð´Ä¶­¤Ë¤è¤Ã¤ÆÊÑ¹¹)
+$beforeEncode = "auto";
+$afterEncode = mb_internal_encoding();
+
+if (isset($_POST["charset"])) {
+	$beforeEncode = $_POST["charset"];
+} else if (isset($_GET["charset"])) {
+	$beforeEncode = $_GET["charset"];
+}
+
+// POST¥Ç¡¼¥¿¤Î¼èÆÀ¤È¥¨¥ó¥³¡¼¥ÉÊÑ´¹
+
+// ¥Ö¥í¥°Ì¾
+if (isset($_POST["blog_name"])) {
+	$arrData["blog_name"] = trim(mb_convert_encoding($_POST["blog_name"], $afterEncode, $beforeEncode));
+} else if (isset($_GET["blog_name"])) {
+	$arrData["blog_name"] = trim(mb_convert_encoding($_GET["blog_name"], $afterEncode, $beforeEncode));
+}
+
+// ¥Ö¥í¥°µ­»öURL
+if (isset($_POST["url"])) {
+	$arrData["url"] = trim(mb_convert_encoding($_POST["url"], $afterEncode, $beforeEncode));
+} else if (isset($_GET["url"])) {
+	$arrData["url"] = trim(mb_convert_encoding($_GET["url"], $afterEncode, $beforeEncode));
+} else {
+	/*
+	 * TODO:¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¼õ¿®¤ÎÉ¸½à²½¤ò·è¤á¤ë
+	 * RSSÌÜÅª¤Ç¤Ï¤Ê¤¤GET¥ê¥¯¥¨¥¹¥È¤òÀ©¸æ(livedoor blog)
+	 * _rss¥Ñ¥é¥á¡¼¥¿¤Ç¤ÎGET¥ê¥¯¥¨¥¹¥È¤òÀ©¸æ(Yahoo blog)
+	 */
+	if (isset($_GET["__mode"]) && isset($_GET["pid"])) {
+		if ($_GET["__mode"] == "rss") {
+			IfResponseRss($_GET["pid"]);
+		}
+	}
+	exit();
+}
+
+// ¥Ö¥í¥°µ­»ö¥¿¥¤¥È¥ë
+if (isset($_POST["title"])) {
+	$arrData["title"] = trim(mb_convert_encoding($_POST["title"], $afterEncode, $beforeEncode));
+} else if (isset($_GET["title"])) {
+	$arrData["title"] = trim(mb_convert_encoding($_GET["title"], $afterEncode, $beforeEncode));
+}
+
+// ¥Ö¥í¥°µ­»öÆâÍÆ
+if (isset($_POST["excerpt"])) {
+	$arrData["excerpt"] = trim(mb_convert_encoding($_POST["excerpt"], $afterEncode, $beforeEncode));
+} else if (isset($_GET["excerpt"])) {
+	$arrData["excerpt"] = trim(mb_convert_encoding($_GET["excerpt"], $afterEncode, $beforeEncode));
+}
+
+$log_path = DATA_PATH . "logs/tb_result.log";
+gfPrintLog("s1--------------------", $log_path);
+foreach($arrData as $key => $val) {
+	gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+}
+gfPrintLog("s1--------------------", $log_path);
+
+$objFormParam->setParam($arrData);
+
+// ÆþÎÏÊ¸»ú¤ÎÊÑ´¹
+$objFormParam->convParam();
+$arrData = $objFormParam->getHashArray();
+
+// ¥¨¥é¡¼¥Á¥§¥Ã¥¯(¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¤¬À®¤êÎ©¤¿¤Ê¤¤¤Î¤Ç¡¢URL°Ê³°¤âÉ¬¿Ü¤È¤¹¤ë)
+gfPrintLog("--- ERROR CHECK START ---", $log_path);
+$objPage->arrErr = lfCheckError();
+gfPrintLog("--- ERROR CHECK FINISH ---", $log_path);
+gfPrintLog("--- ERROR COUNT : " . count($objPage->arrErr), $log_path);
+
+// ¥¨¥é¡¼¤¬¤Ê¤¤¾ì¹ç¤Ï¥Ç¡¼¥¿¤ò¹¹¿·
+if(count($objPage->arrErr) == 0) {
+	
+	// ¾¦ÉÊ¥³¡¼¥É¤Î¼èÆÀ(GET)
+	if (isset($_GET["pid"])) {
+		$product_id = $_GET["pid"];
+
+		gfPrintLog("--- PRODUCT ID : " . $product_id, $log_path);
+
+		// ¾¦ÉÊ¥Ç¡¼¥¿¤ÎÂ¸ºß³ÎÇ§
+		$table = "dtb_products";
+		$where = "product_id = ?";
+
+		// ¾¦ÉÊ¥Ç¡¼¥¿¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¥Ç¡¼¥¿¤Î¹¹¿·
+		if (sfDataExists($table, $where, array($product_id))) {
+			$arrData["product_id"] = $product_id;
+			
+			// ¥Ç¡¼¥¿¤Î¹¹¿·
+			if (lfEntryTrackBack($arrData) == 1) {
+				IfResponseOk();
+			}
+		} else {
+			gfPrintLog("--- PRODUCT NOT EXISTS : " . $product_id, $log_path);
+		}
+	}
+}
+
+// NG
+IfResponseNg();
+exit();
+
+//----------------------------------------------------------------------------------------------------
+
+/*
+ * ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+ * 
+ * @param void ¤Ê¤·
+ * @return void ¤Ê¤·
+ */
+function lfInitParam() {
+	global $objFormParam;
+	$objFormParam->addParam("URL", "url", URL_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Ö¥í¥°¥¿¥¤¥È¥ë", "blog_name", MTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("µ­»ö¥¿¥¤¥È¥ë", "title", MTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("µ­»öÆâÍÆ", "excerpt", MLTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+}
+
+/*
+ * ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯
+ * 
+ * @param void ¤Ê¤·
+ * @return $objErr->arrErr ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ */
+function lfCheckError() {
+	global $objFormParam;
+	
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$arrRet =  $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+	
+	return $objErr->arrErr;
+}
+
+/*
+ * ¹¹¿·½èÍý
+ * 
+ * @param $arrData ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¥Ç¡¼¥¿
+ * @return $ret ·ë²Ì
+ */
+function lfEntryTrackBack($arrData) {
+	global $objQuery;
+
+	// ¥í¥°
+	$log_path = DATA_PATH . "logs/tb_result.log";
+
+	// ¥¹¥Ñ¥à¥Õ¥£¥ë¥¿¡¼
+	if (lfSpamFilter($arrData)) {
+		$arrData["status"] = TRACKBACK_STATUS_NOT_VIEW;
+	} else {
+		$arrData["status"] = TRACKBACK_STATUS_SPAM;
+	}
+
+	$arrData["create_date"] = "now()";
+	$arrData["update_date"] = "now()";
+
+	gfPrintLog("e--------------------", $log_path);
+	foreach($arrData as $key => $val) {
+		gfPrintLog( "\t" . $key . " => " . $val, $log_path);
+	}
+	gfPrintLog("e--------------------", $log_path);
+
+	// ¥Ç¡¼¥¿¤ÎÅÐÏ¿
+	$table = "dtb_trackback";
+	$ret = $objQuery->insert($table, $arrData);
+
+	gfPrintLog("INSERT RESULT : " . $ret, $log_path);
+	return $ret;
+}
+
+/*
+ * ¥¹¥Ñ¥à¥Õ¥£¥ë¥¿¡¼
+ * 
+ * @param $arrData ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¥Ç¡¼¥¿
+ * @param $run ¥Õ¥£¥ë¥¿¡¼¥Õ¥é¥°(true:»ÈÍÑ¤¹¤ë false:»ÈÍÑ¤·¤Ê¤¤)
+ * @return $ret ·ë²Ì
+ */
+function lfSpamFilter($arrData, $run = false) {
+	$ret = true;
+	
+	// ¥Õ¥£¥ë¥¿¡¼½èÍý
+	if ($run) {
+	}
+	return $ret;
+}
+
+/*
+ * OK¥ì¥¹¥Ý¥ó¥¹¤òÊÖ¤¹
+ * 
+ * @param void ¤Ê¤·
+ * @return void ¤Ê¤·
+ */
+function IfResponseOk() {
+	header("Content-type: text/xml");
+	print("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>");
+	print("<response>");
+	print("<error>0</error>");
+	print("</response>");
+	exit();
+}
+
+/*
+ * NG¥ì¥¹¥Ý¥ó¥¹¤òÊÖ¤¹
+ * 
+ * @param void ¤Ê¤·
+ * @return void ¤Ê¤·
+ */
+function IfResponseNg() {
+	header("Content-type: text/xml");
+	print("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>");
+	print("<response>");
+	print("<error>1</error>");
+	print("<message>The error message</message>");
+	print("</response>");
+	exit();
+}
+
+/*
+ * ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯RSS¤òÊÖ¤¹
+ * 
+ * @param $product_id ¾¦ÉÊ¥³¡¼¥É
+ * @return void ¤Ê¤·
+ */
+function IfResponseRss($product_id) {
+	global $objQuery;
+	
+	$retProduct = $objQuery->select("*", "dtb_products", "product_id = ?", array($product_id));
+	
+	if (count($retProduct) > 0) {
+		header("Content-type: text/xml");
+		print("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>");
+		print("<response>");
+		print("<error>0</error>");
+		print("<rss version=\"0.91\">");
+		print("<channel>");
+		print("<title>" . $retProduct[0]["name"] . "</title>");
+		print("<link>");
+		print(SITE_URL . "products/detail.php?product_id=" . $product_id);
+		print("</link>");
+		print("<description>");
+		print($retProduct[0]["main_comment"]);
+		print("</description>");
+		print("<language>ja-jp</language>");
+		print("</channel>");
+		print("</rss>");
+		print("</response>");
+		exit();
+	}
+}
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/redirect.php
===================================================================
--- /branches/comu/html/mobile/redirect.php	(revision 11982)
+++ /branches/comu/html/mobile/redirect.php	(revision 11982)
@@ -0,0 +1,24 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¶õ¥á¡¼¥ë¤ÎÊÖ¿®¤«¤é¤ÎÁ«°Ü
+ */
+
+define('SKIP_MOBILE_INIT', true);
+require_once 'require.php';
+
+if (isset($_GET['token'])) {
+	$next_url = gfFinishKaraMail($_GET['token']);
+}
+
+if (isset($next_url) && $next_url !== false) {
+	header("Location: $next_url");
+} else {
+	header('Location: ' . MOBILE_SITE_URL);
+}
+?>
Index: /branches/comu/html/mobile/shopping/index.php
===================================================================
--- /branches/comu/html/mobile/shopping/index.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/index.php	(revision 11982)
@@ -0,0 +1,250 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	var $tpl_mode;
+	var $tpl_login_email;
+	function LC_Page() {
+		$this->tpl_mainpage = 'shopping/index.tpl';
+		global $arrPref;
+		$this->arrPref = $arrPref;
+		global $arrSex;
+		$this->arrSex = $arrSex;
+		global $arrJob;
+		$this->arrJob = $arrJob;
+		$this->tpl_onload = 'fnCheckInputDeliv();';
+		
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');				
+	}
+}
+
+$conn = new SC_DBConn();
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objCustomer = new SC_Customer();
+$objCookie = new SC_Cookie();
+$objFormParam = new SC_FormParam();			// ¥Õ¥©¡¼¥àÍÑ
+lfInitParam();								// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+$objFormParam->setParam($_POST);			// POSTÃÍ¤Î¼èÆÀ
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+
+$objPage->tpl_uniqid = $uniqid;
+
+// ¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
+if($objCustomer->isLoginSuccess()) {
+	// ¤¹¤Ç¤Ë¥í¥°¥¤¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤ªÆÏ¤±ÀèÀßÄê²èÌÌ¤ËÅ¾Á÷
+	header("Location: " . gfAddSessionId('deliv.php'));
+	exit;
+}
+
+// ·ÈÂÓÃ¼ËöID¤¬°ìÃ×¤¹¤ë²ñ°÷¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£
+$objPage->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId();
+
+switch($_POST['mode']) {
+case 'nonmember_confirm':
+	$objPage = lfSetNonMember($objPage);
+	// ¢¨break¤Ê¤·
+case 'confirm':
+	// ÆþÎÏÃÍ¤ÎÊÑ´¹
+	$objFormParam->convParam();
+	$objFormParam->toLower('order_mail');
+	$objFormParam->toLower('order_mail_check');
+	
+	$objPage->arrErr = lfCheckError();
+
+	// ÆþÎÏ¥¨¥é¡¼¤Ê¤·
+	if(count($objPage->arrErr) == 0) {
+		// DB¤Ø¤Î¥Ç¡¼¥¿ÅÐÏ¿
+		lfRegistData($uniqid);
+		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		// ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));
+		exit;		
+	}
+	
+	break;
+// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
+case 'return':
+	// ³ÎÇ§¥Ú¡¼¥¸¤Ø°ÜÆ°
+	header("Location: " . gfAddSessionId(MOBILE_URL_CART_TOP));
+	exit;
+	break;
+case 'nonmember':
+	$objPage = lfSetNonMember($objPage);
+	// ¢¨break¤Ê¤·
+default:
+	if($_GET['from'] == 'nonmember') {
+		$objPage = lfSetNonMember($objPage);
+	}
+	// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ
+	$uniqid = $objSiteSess->getUniqId();
+	$objQuery = new SC_Query();
+	$where = "order_temp_id = ?";
+	$arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid));
+	// DBÃÍ¤Î¼èÆÀ
+	$objFormParam->setParam($arrRet[0]);
+	$objFormParam->setValue('order_email_check', $arrRet[0]['order_email']);
+	$objFormParam->setDBDate($arrRet[0]['order_birth']);
+	break;
+}
+
+// ¥¯¥Ã¥­¡¼È½Äê
+$objPage->tpl_login_email = $objCookie->getCookie('login_email');
+if($objPage->tpl_login_email != "") {
+	$objPage->tpl_login_memory = "1";
+}
+
+// ÁªÂòÍÑÆüÉÕ¤Î¼èÆÀ
+$objDate = new SC_Date(START_BIRTH_YEAR);
+$objPage->arrYear = $objDate->getYear('', 1950);	//¡¡ÆüÉÕ¥×¥ë¥À¥¦¥óÀßÄê
+$objPage->arrMonth = $objDate->getMonth();
+$objPage->arrDay = $objDate->getDay();
+
+if($objPage->year == '') {
+	$objPage->year = '----';
+}
+
+// ÆþÎÏÃÍ¤Î¼èÆÀ
+$objPage->arrForm = $objFormParam->getFormParamList();
+
+if($objPage->arrForm['year']['value'] == ""){
+	$objPage->arrForm['year']['value'] = '----';	
+}
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+/* Èó²ñ°÷ÆþÎÏ¥Ú¡¼¥¸¤Î¥»¥Ã¥È */
+function lfSetNonMember($objPage) {
+	$objPage->tpl_mainpage = 'shopping/nonmember_input.tpl';
+	$objPage->tpl_css = array();
+	$objPage->tpl_css[] = '/css/layout/login/nonmember.css';
+	return $objPage;
+}
+
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam() {
+	global $objFormParam;
+	$objFormParam->addParam("¤ªÌ¾Á°¡ÊÀ«¡Ë", "order_name01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¤ªÌ¾Á°¡ÊÌ¾¡Ë", "order_name02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Õ¥ê¥¬¥Ê¡Ê¥»¥¤¡Ë", "order_kana01", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Õ¥ê¥¬¥Ê¡Ê¥á¥¤¡Ë", "order_kana02", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("Í¹ÊØÈÖ¹æ1", "order_zip01", ZIP01_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objFormParam->addParam("Í¹ÊØÈÖ¹æ2", "order_zip02", ZIP02_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objFormParam->addParam("ÅÔÆ»ÉÜ¸©", "order_pref", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("½»½ê1", "order_addr01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("½»½ê2", "order_addr02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ1", "order_tel01", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ2", "order_tel02", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ3", "order_tel03", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("FAXÈÖ¹æ1", "order_fax01", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("FAXÈÖ¹æ2", "order_fax02", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("FAXÈÖ¹æ3", "order_fax03", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("¥á¡¼¥ë¥¢¥É¥ì¥¹", "order_email", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "NO_SPTAB", "MAX_LENGTH_CHECK", "EMAIL_CHECK", "EMAIL_CHAR_CHECK"));
+	$objFormParam->addParam("¥á¡¼¥ë¥¢¥É¥ì¥¹¡Ê³ÎÇ§¡Ë", "order_email_check", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "NO_SPTAB", "MAX_LENGTH_CHECK", "EMAIL_CHECK", "EMAIL_CHAR_CHECK"), "", false);
+	$objFormParam->addParam("Ç¯", "year", INT_LEN, "n", array("MAX_LENGTH_CHECK"), "", false);
+	$objFormParam->addParam("·î", "month", INT_LEN, "n", array("MAX_LENGTH_CHECK"), "", false);
+	$objFormParam->addParam("Æü", "day", INT_LEN, "n", array("MAX_LENGTH_CHECK"), "", false);
+	$objFormParam->addParam("À­ÊÌ", "order_sex", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("¿¦¶È", "order_job", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("ÊÌ¤Î¤ªÆÏ¤±Àè", "deliv_check", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("¤ªÌ¾Á°¡ÊÀ«¡Ë", "deliv_name01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¤ªÌ¾Á°¡ÊÌ¾¡Ë", "deliv_name02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Õ¥ê¥¬¥Ê¡Ê¥»¥¤¡Ë", "deliv_kana01", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Õ¥ê¥¬¥Ê¡Ê¥á¥¤¡Ë", "deliv_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("Í¹ÊØÈÖ¹æ1", "deliv_zip01", ZIP01_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objFormParam->addParam("Í¹ÊØÈÖ¹æ2", "deliv_zip02", ZIP02_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objFormParam->addParam("ÅÔÆ»ÉÜ¸©", "deliv_pref", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("½»½ê1", "deliv_addr01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("½»½ê2", "deliv_addr02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ1", "deliv_tel01", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ2", "deliv_tel02", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ3", "deliv_tel03", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("¥á¡¼¥ë¥Þ¥¬¥¸¥ó", "mail_flag", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), 1);
+}
+
+/* DB¤Ø¥Ç¡¼¥¿¤ÎÅÐÏ¿ */
+function lfRegistData($uniqid) {
+	global $objFormParam;
+	$arrRet = $objFormParam->getHashArray();
+	$sqlval = $objFormParam->getDbArray();
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
+	$sqlval['order_temp_id'] = $uniqid;
+	$sqlval['order_birth'] = sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']);
+	$sqlval['update_date'] = 'Now()';
+	$sqlval['customer_id'] = '0';
+	
+	// ´ûÂ¸¥Ç¡¼¥¿¤Î¥Á¥§¥Ã¥¯
+	$objQuery = new SC_Query();
+	$where = "order_temp_id = ?";
+	$cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid));
+	// ´ûÂ¸¥Ç¡¼¥¿¤¬¤Ê¤¤¾ì¹ç
+	if ($cnt == 0) {
+		$sqlval['create_date'] = 'Now()';
+		$objQuery->insert("dtb_order_temp", $sqlval);
+	} else {
+		$objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));
+	}
+}
+
+/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
+function lfCheckError() {
+	global $objFormParam;
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$arrRet =  $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+		
+	// ÊÌ¤Î¤ªÆÏ¤±Àè¥Á¥§¥Ã¥¯
+	if($_POST['deliv_check'] == "1") { 
+		$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", "deliv_name01"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", "deliv_name02"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("¥Õ¥ê¥¬¥Ê¡Ê¥»¥¤¡Ë", "deliv_kana01"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("¥Õ¥ê¥¬¥Ê¡Ê¥á¥¤¡Ë", "deliv_kana02"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "deliv_zip01"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "deliv_zip02"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", "deliv_pref"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("½»½ê1", "deliv_addr01"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("½»½ê2", "deliv_addr02"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", "deliv_tel01"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", "deliv_tel02"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", "deliv_tel03"), array("EXIST_CHECK"));
+	}
+	
+	// Ê£¿ô¹àÌÜ¥Á¥§¥Ã¥¯
+	$objErr->doFunc(array("TEL", "order_tel01", "order_tel02", "order_tel03", TEL_ITEM_LEN), array("TEL_CHECK"));
+	$objErr->doFunc(array("FAX", "order_fax01", "order_fax02", "order_fax03", TEL_ITEM_LEN), array("TEL_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "order_zip01", "order_zip02"), array("ALL_EXIST_CHECK"));
+	$objErr->doFunc(array("TEL", "deliv_tel01", "deliv_tel02", "deliv_tel03", TEL_ITEM_LEN), array("TEL_CHECK"));
+	$objErr->doFunc(array("FAX", "deliv_fax01", "deliv_fax02", "deliv_fax03", TEL_ITEM_LEN), array("TEL_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "deliv_zip01", "deliv_zip02"), array("ALL_EXIST_CHECK"));
+	$objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
+	$objErr->doFunc(array("¥á¡¼¥ë¥¢¥É¥ì¥¹", "¥á¡¼¥ë¥¢¥É¥ì¥¹¡Ê³ÎÇ§¡Ë", "order_email", "order_email_check"), array("EQUAL_CHECK"));
+	
+	// ¤¹¤Ç¤Ë¥á¥ë¥Þ¥¬¥Æ¡¼¥Ö¥ë¤Ë²ñ°÷¤È¤·¤Æ¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if(sfCheckCustomerMailMaga($arrRet['order_email'])) {
+		$objErr->arrErr['order_email'] = "¤³¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ï¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¡£<br>";
+	}
+		
+	return $objErr->arrErr;
+}
+?>
Index: /branches/comu/html/mobile/shopping/complete.php
===================================================================
--- /branches/comu/html/mobile/shopping/complete.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/complete.php	(revision 11982)
@@ -0,0 +1,504 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'shopping/complete.tpl';
+		$this->tpl_css = '/css/layout/shopping/complete.css';
+		$this->tpl_title = "¤´ÃíÊ¸´°Î»";
+		global $arrCONVENIENCE;
+		$this->arrCONVENIENCE = $arrCONVENIENCE;
+		global $arrCONVENIMESSAGE;
+		$this->arrCONVENIMESSAGE = $arrCONVENIMESSAGE;
+		global $arrCONVENIENCE;
+		global $arrCONVENIMESSAGE;
+		$objPage->arrCONVENIENCE = $arrCONVENIENCE;
+		$objPage->arrCONVENIMESSAGE = $arrCONVENIMESSAGE;
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+
+	}
+}
+
+$conn = new SC_DBConn();
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objSiteInfo = $objView->objSiteInfo;
+$arrInfo = $objSiteInfo->data;
+$objCustomer = new SC_Customer();
+
+// Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼êÂ³¤­¤¬¹Ô¤ï¤ì¤¿¤«È½Äê
+sfIsPrePage($objSiteSess, true);
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+if ($uniqid != "") {
+	
+	// ´°Î»½èÍý
+	$objQuery = new SC_Query();
+	$objQuery->begin();
+	$order_id = lfDoComplete($objQuery, $uniqid);
+	$objQuery->commit();
+	
+	// ¥»¥Ã¥·¥ç¥ó¤ËÊÝ´É¤µ¤ì¤Æ¤¤¤ë¾ðÊó¤ò¹¹¿·¤¹¤ë
+	$objCustomer->updateSession();
+
+	// ´°Î»¥á¡¼¥ëÁ÷¿®
+	if($order_id != "") {
+		sfSendOrderMail($order_id, '1');
+	}
+
+	//¤½¤ÎÂ¾¾ðÊó¤Î¼èÆÀ
+	$other_data = $objQuery->get("dtb_order", "memo02", "order_id = ? ", array($order_id));
+	if($other_data != "") {
+		$arrOther = unserialize($other_data);
+		
+		// ¥Ç¡¼¥¿¤òÊÔ½¸
+		foreach($arrOther as $key => $val){
+			// URL¤Î¾ì¹ç¤Ë¤Ï¥ê¥ó¥¯¤Ä¤­¤ÇÉ½¼¨¤µ¤»¤ë
+			if (preg_match('/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $val["value"])) {
+				$arrOther[$key]["value"] = "<a href='#' onClick=\"window.open('". $val["value"] . "'); \" >" . $val["value"] ."</a>";
+			}
+		}
+				
+		$objPage->arrOther = $arrOther;
+		
+	}
+	
+	// ¥¢¥Õ¥£¥ê¥¨¥¤¥ÈÍÑ¥³¥ó¥Ð¡¼¥¸¥ç¥ó¥¿¥°¤ÎÀßÄê
+	$objPage->tpl_conv_page = AFF_SHOPPING_COMPLETE;
+	$objPage->tpl_aff_option = "order_id=$order_id";
+	//¹ç·×²Á³Ê¤Î¼èÆÀ
+	$total = $objQuery->get("dtb_order", "total", "order_id = ? ", array($order_id));
+	if($total != "") {
+		$objPage->tpl_aff_option.= "|total=$total";
+	}
+}
+
+$objPage->arrInfo = $arrInfo;
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+// ¥¨¥Ó¥¹¥¿¥°°úÅÏ¤·ÍÑ¥Ç¡¼¥¿¤òÀ¸À®¤¹¤ë
+function lfGetEbisData($order_id) {
+	$objQuery = new SC_Query();
+	$col = "customer_id, total, order_sex, order_job, to_number(to_char(age(current_timestamp, order_birth), 'YYY'), 999) AS order_age";
+	$arrRet = $objQuery->select($col, "dtb_order", "order_id = ?", array($order_id));
+	
+	if($arrRet[0]['customer_id'] > 0) {
+		// ²ñ°÷ÈÖ¹æ
+		$arrEbis['m1id'] = $arrRet[0]['customer_id'];
+		// Èó²ñ°÷or²ñ°÷
+		$arrEbis['o5id'] = '1';
+	} else {
+		// ²ñ°÷ÈÖ¹æ
+		$arrEbis['m1id'] = '';
+		// Èó²ñ°÷or²ñ°÷
+		$arrEbis['o5id'] = '2';	
+	}
+	
+	// ¹ØÆþ¶â³Û
+	$arrEbis['a1id'] = $arrRet[0]['total'];
+	// À­ÊÌ
+	$arrEbis['o2id'] = $arrRet[0]['order_sex'];
+	// Ç¯Îð
+	$arrEbis['o3id'] = $arrRet[0]['order_age'];
+	// ¿¦¶È
+	$arrEbis['o4id'] = $arrRet[0]['order_job'];
+		
+	$objQuery->setgroupby("product_id");
+	$arrRet = $objQuery->select("product_id", "dtb_order_detail", "order_id = ?", array($order_id));
+	$arrProducts = sfSwapArray($arrRet);
+	
+	$line = "";
+	// ¾¦ÉÊID¤ò¥¢¥ó¥À¡¼¥Ð¡¼¤ÇÀÜÂ³¤¹¤ë¡£
+	foreach($arrProducts['product_id'] as $val) {
+		if($line != "") {
+			$line .= "_$val";		
+		} else {
+			$line .= "$val";
+		}
+	}
+	
+	// ¾¦ÉÊID	
+	$arrEbis['o1id'] = $line;
+	
+	return $arrEbis;
+}
+
+// ´°Î»½èÍý
+function lfDoComplete($objQuery, $uniqid) {
+	global $objCartSess;
+	global $objSiteSess;
+	global $objCustomer;
+	global $arrInfo;
+	
+	// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
+	$arrData = sfGetOrderTemp($uniqid);
+	
+	// ²ñ°÷¾ðÊóÅÐÏ¿½èÍý
+	if ($objCustomer->isLoginSuccess()) {
+		// ¿·¤ªÆÏ¤±Àè¤ÎÅÐÏ¿
+		lfSetNewAddr($uniqid, $objCustomer->getValue('customer_id'));
+		// ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+		lfSetCustomerPurchase($objCustomer->getValue('customer_id'), $arrData, $objQuery);
+	} else {
+		//¹ØÆþ»þ¶¯À©²ñ°÷ÅÐÏ¿
+		switch(PURCHASE_CUSTOMER_REGIST) {
+		//Ìµ¸ú
+		case '0':
+			// ¹ØÆþ»þ²ñ°÷ÅÐÏ¿
+			if($arrData['member_check'] == '1') {
+				// ²¾²ñ°÷ÅÐÏ¿
+				$customer_id = lfRegistPreCustomer($arrData, $arrInfo);
+				// ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+				lfSetCustomerPurchase($customer_id, $arrData, $objQuery);
+			}
+			break;
+		//Í­¸ú
+		case '1':
+			// ²¾²ñ°÷ÅÐÏ¿
+			$customer_id = lfRegistPreCustomer($arrData, $arrInfo);
+			// ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+			lfSetCustomerPurchase($customer_id, $arrData, $objQuery);
+			break;
+		}
+		
+	}
+	// °ì»þ¥Æ¡¼¥Ö¥ë¤ò¼õÃí¥Æ¡¼¥Ö¥ë¤Ë³ÊÇ¼¤¹¤ë
+	$order_id = lfRegistOrder($objQuery, $arrData);
+	// ¥«¡¼¥È¾¦ÉÊ¤ò¼õÃí¾ÜºÙ¥Æ¡¼¥Ö¥ë¤Ë³ÊÇ¼¤¹¤ë
+	lfRegistOrderDetail($objQuery, $order_id, $objCartSess);
+	// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Î¾ðÊó¤òºï½ü¤¹¤ë¡£
+	lfDeleteTempOrder($objQuery, $uniqid);
+	
+	// ¥»¥Ã¥·¥ç¥ó¥«¡¼¥ÈÆâ¤Î¾¦ÉÊ¤òºï½ü¤¹¤ë¡£
+	$objCartSess->delAllProducts();
+	// ÃíÊ¸°ì»þID¤ò²ò½ü¤¹¤ë¡£
+	$objSiteSess->unsetUniqId();
+	
+	return $order_id;
+}
+
+// ²ñ°÷ÅÐÏ¿¡Ê²¾ÅÐÏ¿¡Ë
+function lfRegistPreCustomer($arrData, $arrInfo) {
+	// ¹ØÆþ»þ¤Î²ñ°÷ÅÐÏ¿
+	$sqlval['name01'] = $arrData['order_name01'];
+	$sqlval['name02'] = $arrData['order_name02'];
+	$sqlval['kana01'] = $arrData['order_kana01'];
+	$sqlval['kana02'] = $arrData['order_kana02'];
+	$sqlval['zip01'] = $arrData['order_zip01'];
+	$sqlval['zip02'] = $arrData['order_zip02'];
+	$sqlval['pref'] = $arrData['order_pref'];
+	$sqlval['addr01'] = $arrData['order_addr01'];
+	$sqlval['addr02'] = $arrData['order_addr02'];
+	$sqlval['email'] = $arrData['order_email'];
+	$sqlval['tel01'] = $arrData['order_tel01'];
+	$sqlval['tel02'] = $arrData['order_tel02'];
+	$sqlval['tel03'] = $arrData['order_tel03'];
+	$sqlval['fax01'] = $arrData['order_fax01'];
+	$sqlval['fax02'] = $arrData['order_fax02'];
+	$sqlval['fax03'] = $arrData['order_fax03'];
+	$sqlval['sex'] = $arrData['order_sex'];
+	$sqlval['password'] = $arrData['password'];
+	$sqlval['reminder'] = $arrData['reminder'];
+	$sqlval['reminder_answer'] = $arrData['reminder_answer'];
+
+	// ¥á¥ë¥Þ¥¬ÇÛ¿®ÍÑ¥Õ¥é¥°¤ÎÈ½Äê
+	switch($arrData['mail_flag']) {
+	case '1':	// HTML¥á¡¼¥ë
+		$mail_flag = 4;
+		break;
+	case '2':	// TEXT¥á¡¼¥ë
+		$mail_flag = 5;
+		break;
+	case '3':	// ´õË¾¤Ê¤·
+		$mail_flag = 6;
+		break;
+	default:
+		$mail_flag = 6;
+		break;
+	}
+	$sqlval['mailmaga_flg'] = $mail_flag;
+		
+	// ²ñ°÷²¾ÅÐÏ¿
+	$sqlval['status'] = 1;
+	// URLÈ½ÄêÍÑ¥­¡¼
+	$sqlval['secret_key'] = sfGetUniqRandomId("t"); 
+	
+	$objQuery = new SC_Query();
+	$sqlval['create_date'] = "now()";
+	$sqlval['update_date'] = "now()";
+	$objQuery->insert("dtb_customer", $sqlval);
+	
+	// ¸ÜµÒID¤Î¼èÆÀ
+	$arrRet = $objQuery->select("customer_id", "dtb_customer", "secret_key = ?", array($sqlval['secret_key']));
+	$customer_id = $arrRet[0]['customer_id'];
+
+	//¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
+	$objMailPage = new LC_Page();
+	$objMailPage->to_name01 = $arrData['order_name01'];
+	$objMailPage->to_name02 = $arrData['order_name02'];
+	$objMailPage->CONF = $arrInfo;
+	$objMailPage->uniqid = $sqlval['secret_key'];
+	$objMailView = new SC_SiteView();
+	$objMailView->assignobj($objMailPage);
+	$body = $objMailView->fetch("mail_templates/customer_mail.tpl");
+	
+	$objMail = new GC_SendMail();
+	$objMail->setItem(
+						''										//¡¡°¸Àè
+						, sfMakeSubject("²ñ°÷ÅÐÏ¿¤Î¤´³ÎÇ§")		//¡¡¥µ¥Ö¥¸¥§¥¯¥È
+						, $body									//¡¡ËÜÊ¸
+						, $arrInfo['email03']					//¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
+						, $arrInfo['shop_name']					//¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
+						, $arrInfo["email03"]					//¡¡reply_to
+						, $arrInfo["email04"]					//¡¡return_path
+						, $arrInfo["email04"]					//  Errors_to
+						, $arrInfo["email01"]					//  Bcc
+														);
+	// °¸Àè¤ÎÀßÄê
+	$name = $arrData['order_name01'] . $arrData['order_name02'] ." ÍÍ";
+	$objMail->setTo($arrData['order_email'], $name);			
+	$objMail->sendMail();
+	
+	return $customer_id;
+}
+
+// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Î¤ªÆÏ¤±Àè¤ò¥³¥Ô¡¼¤¹¤ë
+function lfCopyDeliv($uniqid, $arrData) {
+	$objQuery = new SC_Query();
+	
+	// ÊÌ¤Î¤ªÆÏ¤±Àè¤ò»ØÄê¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ÇÛÁ÷Àè¤ËÅÐÏ¿½»½ê¤ò¥³¥Ô¡¼¤¹¤ë¡£
+	if($arrData["deliv_check"] != "1") {
+		$sqlval['deliv_name01'] = $arrData['order_name01'];
+		$sqlval['deliv_name02'] = $arrData['order_name02'];
+		$sqlval['deliv_kana01'] = $arrData['order_kana01'];
+		$sqlval['deliv_kana02'] = $arrData['order_kana02'];
+		$sqlval['deliv_pref'] = $arrData['order_pref'];
+		$sqlval['deliv_zip01'] = $arrData['order_zip01'];
+		$sqlval['deliv_zip02'] = $arrData['order_zip02'];
+		$sqlval['deliv_addr01'] = $arrData['order_addr01'];
+		$sqlval['deliv_addr02'] = $arrData['order_addr02'];
+		$sqlval['deliv_tel01'] = $arrData['order_tel01'];
+		$sqlval['deliv_tel02'] = $arrData['order_tel02'];
+		$sqlval['deliv_tel03'] = $arrData['order_tel03'];
+		$where = "order_temp_id = ?";
+		$objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));
+	}
+}
+
+// ¼õÃí¥Æ¡¼¥Ö¥ë¤ØÅÐÏ¿
+function lfRegistOrder($objQuery, $arrData) {
+	$sqlval = $arrData;
+
+	// ¼õÃí¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤Þ¤Ê¤¤Îó¤ò½üµî
+	unset($sqlval['mail_flag']);		// ¥á¥ë¥Þ¥¬¥Á¥§¥Ã¥¯
+	unset($sqlval['deliv_check']);		// ÊÌ¤Î¤ªÆÏ¤±Àè¥Á¥§¥Ã¥¯
+	unset($sqlval['point_check']);		// ¥Ý¥¤¥ó¥ÈÍøÍÑ¥Á¥§¥Ã¥¯
+	unset($sqlval['member_check']);		// ¹ØÆþ»þ²ñ°÷¥Á¥§¥Ã¥¯
+	unset($sqlval['password']);			// ¥í¥°¥¤¥ó¥Ñ¥¹¥ï¡¼¥É
+	unset($sqlval['reminder']);			// ¥ê¥Þ¥¤¥ó¥À¡¼¼ÁÌä
+	unset($sqlval['reminder_answer']);	// ¥ê¥Þ¥¤¥ó¥À¡¼Åú¤¨
+
+	// ÃíÊ¸¥¹¥Æ¡¼¥¿¥¹:»ØÄê¤¬Ìµ¤±¤ì¤Ð¿·µ¬¼õÉÕ¤ËÀßÄê
+	if($sqlval["status"] == ""){
+		$sqlval['status'] = '1';			
+	}
+	
+	// ÊÌ¤Î¤ªÆÏ¤±Àè¤ò»ØÄê¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ÇÛÁ÷Àè¤ËÅÐÏ¿½»½ê¤ò¥³¥Ô¡¼¤¹¤ë¡£
+	if($arrData["deliv_check"] != "1") {
+		$sqlval['deliv_name01'] = $arrData['order_name01'];
+		$sqlval['deliv_name02'] = $arrData['order_name02'];
+		$sqlval['deliv_kana01'] = $arrData['order_kana01'];
+		$sqlval['deliv_kana02'] = $arrData['order_kana02'];
+		$sqlval['deliv_pref'] = $arrData['order_pref'];
+		$sqlval['deliv_zip01'] = $arrData['order_zip01'];
+		$sqlval['deliv_zip02'] = $arrData['order_zip02'];
+		$sqlval['deliv_addr01'] = $arrData['order_addr01'];
+		$sqlval['deliv_addr02'] = $arrData['order_addr02'];
+		$sqlval['deliv_tel01'] = $arrData['order_tel01'];
+		$sqlval['deliv_tel02'] = $arrData['order_tel02'];
+		$sqlval['deliv_tel03'] = $arrData['order_tel03'];
+	}
+	
+	$order_id = $arrData['order_id'];		// ¥ª¡¼¥À¡¼ID
+	$sqlval['create_date'] = 'now()';		// ¼õÃíÆü
+	
+	// ¥²¥Ã¥È¤ÎÃÍ¤ò¥¤¥ó¥µ¡¼¥È
+	//$sqlval = lfGetInsParam($sqlval);
+	
+	// INSERT¤Î¼Â¹Ô
+	$objQuery->insert("dtb_order", $sqlval);
+
+	return $order_id;
+}
+
+// ¼õÃí¾ÜºÙ¥Æ¡¼¥Ö¥ë¤ØÅÐÏ¿
+function lfRegistOrderDetail($objQuery, $order_id, $objCartSess) {
+	// ¥«¡¼¥ÈÆâ¾ðÊó¤Î¼èÆÀ
+	$arrCart = $objCartSess->getCartList();
+	$max = count($arrCart);
+	
+	// ´û¤ËÂ¸ºß¤¹¤ë¾ÜºÙ¥ì¥³¡¼¥É¤ò¾Ã¤·¤Æ¤ª¤¯¡£
+	$objQuery->delete("dtb_order_detail", "order_id = $order_id");
+
+	// µ¬³ÊÌ¾°ìÍ÷
+	$arrClassName = sfGetIDValueList("dtb_class", "class_id", "name");
+	// µ¬³ÊÊ¬ÎàÌ¾°ìÍ÷
+	$arrClassCatName = sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
+			
+	for ($i = 0; $i < $max; $i++) {
+		// ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ	
+		$arrData = sfGetProductsClass($arrCart[$i]['id']);
+		
+		// Â¸ºß¤¹¤ë¾¦ÉÊ¤Î¤ßÉ½¼¨¤¹¤ë¡£
+		if($arrData != "") {
+			$sqlval['order_id'] = $order_id;
+			$sqlval['product_id'] = $arrCart[$i]['id'][0];
+			$sqlval['classcategory_id1'] = $arrCart[$i]['id'][1];
+			$sqlval['classcategory_id2'] = $arrCart[$i]['id'][2];
+			$sqlval['product_name'] = $arrData['name'];
+			$sqlval['product_code'] = $arrData['product_code'];
+			$sqlval['classcategory_name1'] = $arrClassCatName[$arrData['classcategory_id1']];
+			$sqlval['classcategory_name2'] = $arrClassCatName[$arrData['classcategory_id2']];
+			$sqlval['point_rate'] = $arrCart[$i]['point_rate'];			
+			$sqlval['price'] = $arrCart[$i]['price'];
+			$sqlval['quantity'] = $arrCart[$i]['quantity'];
+			lfReduceStock($objQuery, $arrCart[$i]['id'], $arrCart[$i]['quantity']);
+			// INSERT¤Î¼Â¹Ô
+			$objQuery->insert("dtb_order_detail", $sqlval);
+		} else {
+			sfDispSiteError(CART_NOT_FOUND, "", false, "", true);
+		}
+	}
+}
+
+/* ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Îºï½ü */
+function lfDeleteTempOrder($objQuery, $uniqid) {
+	$where = "order_temp_id = ?";
+	$sqlval['del_flg'] = 1;
+	$objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));
+	// $objQuery->delete("dtb_order_temp", $where, array($uniqid));
+}
+
+// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Î½»½ê¤¬ÅÐÏ¿ºÑ¤ß¥Æ¡¼¥Ö¥ë¤È°Û¤Ê¤ë¾ì¹ç¤Ï¡¢ÊÌ¤Î¤ªÆÏ¤±Àè¤ËÄÉ²Ã¤¹¤ë
+function lfSetNewAddr($uniqid, $customer_id) {
+	$objQuery = new SC_Query();
+	$diff = false;
+	$find_same = false;
+	
+	$col = "deliv_name01,deliv_name02,deliv_kana01,deliv_kana02,deliv_tel01,deliv_tel02,deliv_tel03,deliv_zip01,deliv_zip02,deliv_pref,deliv_addr01,deliv_addr02";
+	$where = "order_temp_id = ?";
+	$arrRet = $objQuery->select($col, "dtb_order_temp", $where, array($uniqid));
+	
+	// Í×ÁÇÌ¾¤Îdeliv_¤òºï½ü¤¹¤ë¡£
+	foreach($arrRet[0] as $key => $val) {
+		$keyname = ereg_replace("^deliv_", "", $key);
+		$arrNew[$keyname] = $val;
+	}
+	
+	// ²ñ°÷¾ðÊó¥Æ¡¼¥Ö¥ë¤È¤ÎÈæ³Ó
+	$col = "name01,name02,kana01,kana02,tel01,tel02,tel03,zip01,zip02,pref,addr01,addr02";
+	$where = "customer_id = ?";
+	$arrCustomerAddr = $objQuery->select($col, "dtb_customer", $where, array($customer_id));
+	
+	// ²ñ°÷¾ðÊó¤Î½»½ê¤È°Û¤Ê¤ë¾ì¹ç
+	if($arrNew != $arrCustomerAddr[0]) {
+		// ÊÌ¤Î¤ªÆÏ¤±Àè¥Æ¡¼¥Ö¥ë¤Î½»½ê¤ÈÈæ³Ó¤¹¤ë
+		$col = "name01,name02,kana01,kana02,tel01,tel02,tel03,zip01,zip02,pref,addr01,addr02";
+		$where = "customer_id = ?";
+		$arrOtherAddr = $objQuery->select($col, "dtb_other_deliv", $where, array($customer_id));
+
+		foreach($arrOtherAddr as $arrval) {
+			if($arrNew == $arrval) {
+				// ¤¹¤Ç¤ËÆ±¤¸½»½ê¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë
+				$find_same = true;
+			}
+		}
+		
+		if(!$find_same) {
+			$diff = true;
+		}
+	}
+	
+	// ¿·¤·¤¤¤ªÆÏ¤±Àè¤¬ÅÐÏ¿ºÑ¤ß¤Î¤â¤Î¤È°Û¤Ê¤ë¾ì¹ç¤ÏÊÌ¤Î¤ªÆÏ¤±Àè¥Æ¡¼¥Ö¥ë¤ËÅÐÏ¿¤¹¤ë
+	if($diff) {
+		$sqlval = $arrNew;
+		$sqlval['customer_id'] = $customer_id;
+		$objQuery->insert("dtb_other_deliv", $sqlval);
+	}
+}
+
+/* ¹ØÆþ¾ðÊó¤ò²ñ°÷¥Æ¡¼¥Ö¥ë¤ËÅÐÏ¿¤¹¤ë */
+function lfSetCustomerPurchase($customer_id, $arrData, $objQuery) {
+	$col = "first_buy_date, last_buy_date, buy_times, buy_total, point";
+	$where = "customer_id = ?";
+	$arrRet = $objQuery->select($col, "dtb_customer", $where, array($customer_id));
+	$sqlval = $arrRet[0];
+	
+	if($sqlval['first_buy_date'] == "") {
+		$sqlval['first_buy_date'] = "Now()";
+	}
+	$sqlval['last_buy_date'] = "Now()";
+	$sqlval['buy_times']++;
+	$sqlval['buy_total']+= $arrData['total'];
+	$sqlval['point'] = ($sqlval['point'] + $arrData['add_point'] - $arrData['use_point']);
+	
+	// ¥Ý¥¤¥ó¥È¤¬ÉÔÂ­¤·¤Æ¤¤¤ë¾ì¹ç
+	if($sqlval['point'] < 0) {
+		$objQuery->rollback();
+		sfDispSiteError(LACK_POINT);
+	}
+	
+	$objQuery->update("dtb_customer", $sqlval, $where, array($customer_id));
+}
+
+// ºß¸Ë¤ò¸º¤é¤¹½èÍý
+function lfReduceStock($objQuery, $arrID, $quantity) {
+	$where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?";
+	$arrRet = $objQuery->select("stock, stock_unlimited", "dtb_products_class", $where, $arrID);
+	
+	// Çä¤êÀÚ¤ì¥¨¥é¡¼
+	if(($arrRet[0]['stock_unlimited'] != '1' && $arrRet[0]['stock'] < $quantity) || $quantity == 0) {
+		$objQuery->rollback();
+		sfDispSiteError(SOLD_OUT, "", true);
+	// ÌµÀ©¸Â¤Î¾ì¹ç¡¢ºß¸Ë¤ÏNULL
+	} elseif($arrRet[0]['stock_unlimited'] == '1') {
+		$sqlval['stock'] = null;
+		$objQuery->update("dtb_products_class", $sqlval, $where, $arrID);
+	// ºß¸Ë¤ò¸º¤é¤¹
+	} else {
+		$sqlval['stock'] = ($arrRet[0]['stock'] - $quantity);
+		if($sqlval['stock'] == "") {
+			$sqlval['stock'] = '0';
+		}		
+		$objQuery->update("dtb_products_class", $sqlval, $where, $arrID);
+	}
+}
+
+// GET¤ÎÃÍ¤ò¥¤¥ó¥µ¡¼¥ÈÍÑ¤ËÀ°¤¨¤ë
+function lfGetInsParam($sqlVal){
+	
+	foreach($_GET as $key => $val){
+		// ¥«¥é¥à¤ÎÂ¸ºß¥Á¥§¥Ã¥¯
+		if(sfColumnExists("dtb_order", $key)) $sqlVal[$key] = $val;
+	}
+	
+	return $sqlVal;
+}
+
+?>
Index: /branches/comu/html/mobile/shopping/confirm.php
===================================================================
--- /branches/comu/html/mobile/shopping/confirm.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/confirm.php	(revision 11982)
@@ -0,0 +1,122 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	var $tpl_mode;
+	var $tpl_total_deliv_fee;
+	function LC_Page() {
+		$this->tpl_mainpage = 'shopping/confirm.tpl';
+		$this->tpl_css = '/css/layout/shopping/confirm.css';
+		$this->tpl_title = "¤´ÆþÎÏÆâÍÆ¤Î¤´³ÎÇ§";
+		global $arrPref;
+		$this->arrPref = $arrPref;
+		global $arrSex;
+		$this->arrSex = $arrSex;
+		global $arrMAILMAGATYPE;
+		$this->arrMAILMAGATYPE = $arrMAILMAGATYPE;
+		global $arrReminder;
+		$this->arrReminder = $arrReminder;
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objCartSess = new SC_CartSession();
+$objSiteInfo = $objView->objSiteInfo;
+$objSiteSess = new SC_SiteSession();
+$objCustomer = new SC_Customer();
+$arrInfo = $objSiteInfo->data;
+$objQuery = new SC_Query();
+
+// Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼êÂ³¤­¤¬¹Ô¤ï¤ì¤¿µ­Ï¿¤¬¤¢¤ë¤«È½Äê
+sfIsPrePage($objSiteSess, true);
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+$objPage->tpl_uniqid = $uniqid;
+
+// ¥«¡¼¥È½¸·×½èÍý
+$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
+// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
+$arrData = sfGetOrderTemp($uniqid);
+// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
+$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer);
+
+// ¥«¡¼ÅÔÆâ¤Î¾¦ÉÊ¤ÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯
+$objCartSess->chkSoldOut($objCartSess->getCartList());
+
+// ²ñ°÷¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
+if($objCustomer->isLoginSuccess()) {
+	$objPage->tpl_login = '1';
+	$objPage->tpl_user_point = $objCustomer->getValue('point');
+}
+
+// ·èºÑ¶èÊ¬¤ò¼èÆÀ¤¹¤ë
+$payment_type = "";
+if(sfColumnExists("dtb_payment", "memo01")){
+	// MEMO03¤ËÃÍ¤¬Æþ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥â¥¸¥å¡¼¥ëÄÉ²Ã¤µ¤ì¤¿¤â¤Î¤È¤ß¤Ê¤¹
+	$sql = "SELECT memo03 FROM dtb_payment WHERE payment_id = ?";
+	$arrPayment = $objQuery->getall($sql, array($arrData['payment_id']));
+	$payment_type = $arrPayment[0]["memo03"];
+}
+$objPage->payment_type = $payment_type;
+
+
+switch($_POST['mode']) {
+// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
+case 'return':
+	// Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+	$objSiteSess->setRegistFlag();
+	header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));
+	exit;
+	break;
+case 'confirm':
+	// ¤³¤Î»þÅÀ¤Ç¥ª¡¼¥À¡¼ID¤ò³ÎÊÝ¤·¤Æ¤ª¤¯¡Ê¥¯¥ì¥¸¥Ã¥È¡¢¥³¥ó¥Ó¥Ë·èºÑ¤ÇÉ¬Í×¤Ê¤¿¤á¡Ë
+	// postgresql¤Èmysql¤È¤Ç½èÍý¤òÊ¬¤±¤ë
+	if (DB_TYPE == "pgsql") {
+		$order_id = $objQuery->nextval("dtb_order","order_id");
+	}elseif (DB_TYPE == "mysql") {
+		$order_id = $objQuery->get_auto_increment("dtb_order");
+	}
+	$arrData["order_id"] = $order_id;
+	
+	// ½¸·×·ë²Ì¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
+	sfRegistTempOrder($uniqid, $arrData);
+	// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+	$objSiteSess->setRegistFlag();
+	
+	// ·èºÑÊýË¡¤Ë¤è¤ê²èÌÌÀÚÂØ
+	if($payment_type != "") {
+		$_SESSION["payment_id"] = $arrData['payment_id'];
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_MODULE));
+	}else{
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_COMPLETE));
+	}
+	break;
+default:
+	break;
+}
+
+
+$objPage->arrData = $arrData;
+$objPage->arrInfo = $arrInfo;
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/shopping/deliv_addr.php
===================================================================
--- /branches/comu/html/mobile/shopping/deliv_addr.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/deliv_addr.php	(revision 11982)
@@ -0,0 +1,308 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * ÇÛÁ÷Àè¤ÎÄÉ²Ã
+ */
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page(){
+		$this->tpl_mainpage = 'shopping/deliv_addr.tpl';
+		$this->tpl_title = "¿·¤·¤¤¤ªÆÏ¤±Àè¤ÎÄÉ²Ã";
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView(false);
+$objQuery = new SC_Query();
+$objCustomer = new SC_Customer();
+$objConn = new SC_DBConn();
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+
+//¥í¥°¥¤¥óÈ½Äê
+if (!$objCustomer->isLoginSuccess()){
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}
+
+$objPage->arrForm = $_POST;
+$objPage->arrPref = $arrPref;
+//-- ¥Ç¡¼¥¿ÀßÄê
+foreach($_POST as $key => $val) {
+	if ($key != "mode" && $key != "return" && $key != "submit" && $key != session_name()) {
+		$objPage->list_data[ $key ] = $val;
+	}
+}
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+
+//ÊÌ¤Î¤ªÆÏ¤±Àè£Ä£ÂÅÐÏ¿ÍÑ¥«¥é¥àÇÛÎó
+$arrRegistColumn = array(
+							 array(  "column" => "name01",		"convert" => "aKV" ),
+							 array(  "column" => "name02",		"convert" => "aKV" ),
+							 array(  "column" => "kana01",		"convert" => "CKV" ),
+							 array(  "column" => "kana02",		"convert" => "CKV" ),
+							 array(  "column" => "zip01",		"convert" => "n" ),
+							 array(  "column" => "zip02",		"convert" => "n" ),
+							 array(  "column" => "pref",		"convert" => "n" ),
+							 array(  "column" => "addr01",		"convert" => "aKV" ),
+							 array(  "column" => "addr02",		"convert" => "aKV" ),
+							 array(  "column" => "tel01",		"convert" => "n" ),
+							 array(  "column" => "tel02",		"convert" => "n" ),
+							 array(  "column" => "tel03",		"convert" => "n" ),
+						);
+
+// Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý
+if (!empty($_POST["return"])) {
+	switch ($_POST["mode"]) {
+	case 'complete':
+		$_POST["mode"] = "set2";
+		break;
+	case 'set2':
+		$_POST["mode"] = "set1";
+		break;
+	default:
+		header("Location: " . gfAddSessionId('deliv.php'));
+		exit;
+	}
+}
+
+switch ($_POST['mode']){
+	case 'set1':
+		$objPage->arrErr = lfErrorCheck1($objPage->arrForm);
+		if (count($objPage->arrErr) == 0 && empty($_POST["return"])) {
+			$objPage->tpl_mainpage = 'shopping/set1.tpl';
+
+			$checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03");
+			foreach($checkVal as $key) {
+				unset($objPage->list_data[$key]);
+			}
+
+			// Í¹ÊØÈÖ¹æ¤«¤é½»½ê¤Î¼èÆÀ
+			if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") {
+				$address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']);
+
+				$objPage->arrForm['pref'] = @$address[0]['state'];
+				$objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town'];
+			}
+		} else {
+			$checkVal = array("name01", "name02", "kana01", "kana02", "zip01", "zip02");
+			foreach($checkVal as $key) {
+				unset($objPage->list_data[$key]);
+			}
+		}
+		break;
+	case 'set2':
+		$objPage->arrErr = lfErrorCheck2($objPage->arrForm);
+		if (count($objPage->arrErr) == 0 && empty($_POST["return"])) {
+			$objPage->tpl_mainpage = 'shopping/set2.tpl';
+		} else {
+			$objPage->tpl_mainpage = 'shopping/set1.tpl';
+
+			$checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03");
+			foreach($checkVal as $key) {
+				unset($objPage->list_data[$key]);
+			}
+		}
+		break;
+	case 'complete':
+		$objPage->arrErr = lfErrorCheck($objPage->arrForm);
+		if (count($objPage->arrErr) == 0) {
+			// ÅÐÏ¿
+			$other_deliv_id = lfRegistData($_POST,$arrRegistColumn);
+
+			// ÅÐÏ¿ºÑ¤ß¤ÎÊÌ¤Î¤ªÆÏ¤±Àè¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à
+			lfRegistOtherDelivData($uniqid, $objCustomer, $other_deliv_id);
+
+			// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+			$objSiteSess->setRegistFlag();
+			// ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
+			header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));
+			exit;
+		} else {
+			sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+		}
+		break;
+	default:
+		$deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id')));
+		if ($deliv_count >= DELIV_ADDR_MAX){
+			sfDispSiteError(FREE_ERROR_MSG, "", false, "ºÇÂçÅÐÏ¿·ï¿ô¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£");
+		}
+}
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-------------------------------------------------------------------------------------------------------------
+
+/* ¥¨¥é¡¼¥Á¥§¥Ã¥¯ */
+function lfErrorCheck() {
+	$objErr = new SC_CheckError();
+	
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", 'name01', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", 'name02', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/À«¡Ë", 'kana01', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK", "MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/Ì¾¡Ë", 'kana02', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK", "MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK")); 
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
+	$objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03", TEL_LEN) ,array("TEL_CHECK"));
+	return $objErr->arrErr;
+	
+}
+
+/* ¥¨¥é¡¼¥Á¥§¥Ã¥¯ */
+function lfErrorCheck1() {
+	$objErr = new SC_CheckError();
+	
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", 'name01', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", 'name02', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/À«¡Ë", 'kana01', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK", "MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/Ì¾¡Ë", 'kana02', STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK", "MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK")); 
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
+	return $objErr->arrErr;
+	
+}
+
+/* ¥¨¥é¡¼¥Á¥§¥Ã¥¯ */
+function lfErrorCheck2() {
+	$objErr = new SC_CheckError();
+	
+	$objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03", TEL_LEN) ,array("TEL_CHECK"));
+	return $objErr->arrErr;
+	
+}
+
+
+
+/* ÅÐÏ¿¼Â¹Ô */
+function lfRegistData($array, $arrRegistColumn) {
+	global $objConn;
+	global $objCustomer;
+	
+	foreach ($arrRegistColumn as $data) {
+		if (strlen($array[ $data["column"] ]) > 0) {
+			$arrRegist[ $data["column"] ] = $array[ $data["column"] ];
+		}
+	}
+	
+	$arrRegist['customer_id'] = $objCustomer->getvalue('customer_id');
+	
+	//-- ÊÔ½¸ÅÐÏ¿¼Â¹Ô
+	$objConn->query("BEGIN");
+	if ($array['other_deliv_id'] != ""){
+		$objConn->autoExecute("dtb_other_deliv", $arrRegist, "other_deliv_id='" .addslashes($array["other_deliv_id"]). "'");
+	}else{
+		$objConn->autoExecute("dtb_other_deliv", $arrRegist);
+
+		$sqlse = "SELECT max(other_deliv_id) FROM dtb_other_deliv WHERE customer_id = ?";
+		$array['other_deliv_id'] = $objConn->getOne($sqlse, array($arrRegist['customer_id']));
+	}
+
+	$objConn->query("COMMIT");
+
+	return $array['other_deliv_id'];
+}
+
+//----¡¡¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹
+function lfConvertParam($array, $arrRegistColumn) {
+	/*
+	 *	Ê¸»úÎó¤ÎÊÑ´¹
+	 *	K :  ¡ÖÈ¾³Ñ(ÊÝ¶¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹
+	 *	C :  ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹
+	 *	V :  ÂùÅÀÉÕ¤­¤ÎÊ¸»ú¤ò°ìÊ¸»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍÑ¤·¤Þ¤¹	
+	 *	n :  ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖÈ¾³Ñ(ÊÝ¶¸)¡×¤ËÊÑ´¹
+	 *  a :  Á´³Ñ±Ñ¿ô»ú¤òÈ¾³Ñ±Ñ¿ô»ú¤ËÊÑ´¹¤¹¤ë
+	 */
+	// ¥«¥é¥àÌ¾¤È¥³¥ó¥Ð¡¼¥È¾ðÊó
+	foreach ($arrRegistColumn as $data) {
+		$arrConvList[ $data["column"] ] = $data["convert"];
+	}
+	
+	// Ê¸»úÊÑ´¹
+	foreach ($arrConvList as $key => $val) {
+		// POST¤µ¤ì¤Æ¤­¤¿ÃÍ¤Î¤ßÊÑ´¹¤¹¤ë¡£
+		if(strlen(($array[$key])) > 0) {
+			$array[$key] = mb_convert_kana($array[$key] ,$val);
+		}
+	}
+	return $array;
+}
+
+// Í¹ÊØÈÖ¹æ¤«¤é½»½ê¤Î¼èÆÀ
+function lfGetAddress($zipcode) {
+	global $arrPref;
+
+	$conn = new SC_DBconn(ZIP_DSN);
+
+	// Í¹ÊØÈÖ¹æ¸¡º÷Ê¸ºîÀ®
+	$zipcode = mb_convert_kana($zipcode ,"n");
+	$sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?";
+
+	$data_list = $conn->getAll($sqlse, array($zipcode));
+
+	// ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈÃÍ¤òÈ¿Å¾¤µ¤»¤ë¡£
+	$arrREV_PREF = array_flip($arrPref);
+
+	/*
+		ÁíÌ³¾Ê¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤Þ¥¤¥ó¥Ý¡¼¥È¤¹¤ë¤È
+		°Ê²¼¤Î¤è¤¦¤ÊÊ¸»úÎó¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç	ÂÐºö¤¹¤ë¡£
+		¡¦¡Ê£±¡¦£±£¹ÃúÌÜ¡Ë
+		¡¦°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç
+	*/
+	$town =  $data_list[0]['town'];
+	$town = ereg_replace("¡Ê.*¡Ë$","",$town);
+	$town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town);
+	$data_list[0]['town'] = $town;
+	$data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']];
+
+	return $data_list;
+}
+
+/* ÊÌ¤Î¤ªÆÏ¤±Àè½»½ê¤ò°ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤Ø */
+function lfRegistOtherDelivData($uniqid, $objCustomer, $other_deliv_id) {
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
+	$sqlval['order_temp_id'] = $uniqid;
+	$sqlval['update_date'] = 'Now()';
+	$sqlval['customer_id'] = $objCustomer->getValue('customer_id');
+	$sqlval['order_birth'] = $objCustomer->getValue('birth');
+
+	$objQuery = new SC_Query();
+	$where = "other_deliv_id = ?";
+	$arrRet = $objQuery->select("*", "dtb_other_deliv", $where, array($other_deliv_id));
+	
+	$sqlval['deliv_check'] = '1';
+    $sqlval['deliv_name01'] = $arrRet[0]['name01'];
+    $sqlval['deliv_name02'] = $arrRet[0]['name02'];
+    $sqlval['deliv_kana01'] = $arrRet[0]['kana01'];
+    $sqlval['deliv_kana02'] = $arrRet[0]['kana02'];
+    $sqlval['deliv_zip01'] = $arrRet[0]['zip01'];
+    $sqlval['deliv_zip02'] = $arrRet[0]['zip02'];
+    $sqlval['deliv_pref'] = $arrRet[0]['pref'];
+    $sqlval['deliv_addr01'] = $arrRet[0]['addr01'];
+    $sqlval['deliv_addr02'] = $arrRet[0]['addr02'];
+    $sqlval['deliv_tel01'] = $arrRet[0]['tel01'];
+    $sqlval['deliv_tel02'] = $arrRet[0]['tel02'];
+	$sqlval['deliv_tel03'] = $arrRet[0]['tel03'];
+	sfRegistTempOrder($uniqid, $sqlval);
+}
+
+?>
Index: /branches/comu/html/mobile/shopping/payment.php
===================================================================
--- /branches/comu/html/mobile/shopping/payment.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/payment.php	(revision 11982)
@@ -0,0 +1,371 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	var $tpl_mode;
+	function LC_Page() {
+		$this->tpl_css = '/css/layout/shopping/pay.css';
+		$this->tpl_mainpage = 'shopping/payment.tpl';
+		$this->tpl_onload = 'fnCheckInputPoint();';
+		$this->tpl_title = "¤ª»ÙÊ§ÊýË¡¤Î»ØÄê";
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objCustomer = new SC_Customer();
+$objSiteInfo = $objView->objSiteInfo;
+$arrInfo = $objSiteInfo->data;
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+// ¥æ¥Ë¡¼¥¯ID¤ò°ú¤­·Ñ¤°
+$objPage->tpl_uniqid = $uniqid;
+
+// ²ñ°÷¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
+if($objCustomer->isLoginSuccess()) {
+	$objPage->tpl_login = '1';
+	$objPage->tpl_user_point = $objCustomer->getValue('point');
+}
+
+// ¶â³Û¤Î¼èÆÀ (¹ØÆþÅÓÃæ¤ÇÇä¤êÀÚ¤ì¤¿¾ì¹ç¤Ë¤Ï¤³¤Î´Ø¿ôÆâ¤Ë¤Æ¤½¤Î¾¦ÉÊ¤Î¸Ä¿ô¤¬£°¤Ë¤Ê¤ë)
+$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
+$objPage->arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
+
+// ¥«¡¼ÅÔÆâ¤Î¾¦ÉÊ¤ÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯
+$objCartSess->chkSoldOut($objCartSess->getCartList(), true);
+
+// Ìá¤ë¥Ü¥¿¥ó¤Î½èÍý
+if (!empty($_POST['return'])) {
+	switch ($_POST['mode']) {
+	case 'confirm':
+		$_POST['mode'] = 'payment';
+		break;
+	default:
+		// Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
+		exit;
+	}
+}
+
+switch($_POST['mode']) {
+// »ÙÊ§¤¤ÊýË¡»ØÄê ¢ª ÇÛÃ£Æü»þ»ØÄê
+case 'deliv_date':
+	// ÆþÎÏÃÍ¤ÎÊÑ´¹
+	$objFormParam->convParam();
+	$objPage->arrErr = lfCheckError($objPage->arrData);
+	if (!isset($objPage->arrErr['payment_id'])) {
+		// »ÙÊ§¤¤ÊýË¡¤ÎÆþÎÏ¥¨¥é¡¼¤Ê¤·
+		$objPage->tpl_mainpage = 'shopping/deliv_date.tpl';
+		$objPage->tpl_title = "ÇÛÃ£Æü»þ»ØÄê";
+		break;
+	} else {
+		// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ
+		$uniqid = $objSiteSess->getUniqId();
+		// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼
+		lfSetOrderTempData($uniqid);
+	}
+	break;
+case 'confirm':
+	// ÆþÎÏÃÍ¤ÎÊÑ´¹
+	$objFormParam->convParam();
+	$objPage->arrErr = lfCheckError($objPage->arrData );
+	// ÆþÎÏ¥¨¥é¡¼¤Ê¤·
+	if(count($objPage->arrErr) == 0) {
+		// DB¤Ø¤Î¥Ç¡¼¥¿ÅÐÏ¿
+		lfRegistData($uniqid);
+		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		// ³ÎÇ§¥Ú¡¼¥¸¤Ø°ÜÆ°
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_CONFIRM));
+		exit;
+	}else{
+		// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ
+		$uniqid = $objSiteSess->getUniqId();
+		// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼
+		lfSetOrderTempData($uniqid);
+		if (!isset($objPage->arrErr['payment_id'])) {
+			// »ÙÊ§¤¤ÊýË¡¤ÎÆþÎÏ¥¨¥é¡¼¤Ê¤·
+			$objPage->tpl_mainpage = 'shopping/deliv_date.tpl';
+			$objPage->tpl_title = "ÇÛÃ£Æü»þ»ØÄê";
+		}
+	}
+	break;
+// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
+case 'return':
+	// Èó²ñ°÷¤Î¾ì¹ç
+	// Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+	$objSiteSess->setRegistFlag();
+	header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
+	exit;
+	break;
+// »ÙÊ§¤¤ÊýË¡¤¬ÊÑ¹¹¤µ¤ì¤¿¾ì¹ç
+case 'payment':
+	// ¤³¤³¤Îbreak¤Ï¡¢°ÕÌ£¤¬¤¢¤ë¤Î¤Ç³°¤µ¤Ê¤¤¤Ç²¼¤µ¤¤¡£
+	break;
+default:
+	// ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼
+	lfSetOrderTempData($uniqid);
+	break;
+}
+
+// Å¹ÊÞ¾ðÊó¤Î¼èÆÀ
+$arrInfo = $objSiteInfo->data;
+// ¹ØÆþ¶â³Û¤Î¼èÆÀÆÀ
+$total_pretax = $objCartSess->getAllProductsTotal($arrInfo);
+// »ÙÊ§¤¤ÊýË¡¤Î¼èÆÀ
+$objPage->arrPayment = lfGetPayment($total_pretax);
+// ÇÛÁ÷»þ´Ö¤Î¼èÆÀ
+$arrRet = sfGetDelivTime($objFormParam->getValue('payment_id'));
+$objPage->arrDelivTime = sfArrKeyValue($arrRet, 'time_id', 'deliv_time');
+$objPage->objCustomer = $objCustomer;
+//¡¡ÇÛÁ÷Æü°ìÍ÷¤Î¼èÆÀ
+$objPage->arrDelivDate = lfGetDelivDate();
+
+$objPage->arrForm = $objFormParam->getFormParamList();
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam() {
+	global $objFormParam;
+	$objFormParam->addParam("¤ª»ÙÊ§¤¤ÊýË¡", "payment_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("¥Ý¥¤¥ó¥È", "use_point", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK", "ZERO_START"));
+	$objFormParam->addParam("ÇÛÃ£»þ´Ö", "deliv_time_id", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("¤´¼ÁÌä", "message", LTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Ý¥¤¥ó¥È¤ò»ÈÍÑ¤¹¤ë", "point_check", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), '2');
+	$objFormParam->addParam("ÇÛÃ£Æü", "deliv_date", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));
+}
+
+function lfGetPayment($total_pretax) {
+	$objQuery = new SC_Query();
+	$objQuery->setorder("rank DESC");
+	//ºï½ü¤µ¤ì¤Æ¤¤¤Ê¤¤»ÙÊ§ÊýË¡¤ò¼èÆÀ
+	$arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) ");
+	//ÍøÍÑ¾ò·ï¤«¤é»ÙÊ§²ÄÇ½ÊýË¡¤òÈ½Äê
+	foreach($arrRet as $data) {
+		//²¼¸Â¤È¾å¸Â¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë
+		if($data['rule'] > 0 && $data['upper_rule'] > 0) {
+			if($data['rule'] <= $total_pretax && $data['upper_rule'] >= $total_pretax) {
+				$arrPayment[] = $data;
+			}
+		//²¼¸Â¤Î¤ßÀßÄê¤µ¤ì¤Æ¤¤¤ë
+		} elseif($data['rule'] > 0) {	
+			if($data['rule'] <= $total_pretax) {
+				$arrPayment[] = $data;
+			}
+		//¾å¸Â¤Î¤ßÀßÄê¤µ¤ì¤Æ¤¤¤ë
+		} elseif($data['upper_rule'] > 0) {
+			if($data['upper_rule'] >= $total_pretax) {
+				$arrPayment[] = $data;
+			}
+		//ÀßÄê¤Ê¤·
+		} else {
+			$arrPayment[] = $data;
+		}	
+	}
+	return $arrPayment;	
+}
+
+/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
+function lfCheckError($arrData) {
+	global $objFormParam;
+	global $objCustomer;
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$arrRet =  $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+	
+	if($_POST['point_check'] == '1') {
+		$objErr->doFunc(array("¥Ý¥¤¥ó¥È¤ò»ÈÍÑ¤¹¤ë", "point_check"), array("EXIST_CHECK"));
+		$objErr->doFunc(array("¥Ý¥¤¥ó¥È", "use_point"), array("EXIST_CHECK"));
+		$max_point = $objCustomer->getValue('point');
+		if($max_point == "") {
+			$max_point = 0;
+		}
+		if($arrRet['use_point'] > $max_point) {
+			$objErr->arrErr['use_point'] = "¢¨ ¤´ÍøÍÑ¥Ý¥¤¥ó¥È¤¬½ê»ý¥Ý¥¤¥ó¥È¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£<br>";
+		}
+		if(($arrRet['use_point'] * POINT_VALUE) > $arrData['subtotal']) {
+			$objErr->arrErr['use_point'] = "¢¨ ¤´ÍøÍÑ¥Ý¥¤¥ó¥È¤¬¤´¹ØÆþ¶â³Û¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£<br>";
+		}
+	}
+	return $objErr->arrErr;
+}
+
+/* »ÙÊ§¤¤ÊýË¡Ê¸»úÎó¤Î¼èÆÀ */
+function lfGetPaymentInfo($payment_id) {
+	$objQuery = new SC_Query();
+	$where = "payment_id = ?";
+	$arrRet = $objQuery->select("payment_method, charge", "dtb_payment", $where, array($payment_id));
+	return (array($arrRet[0]['payment_method'], $arrRet[0]['charge']));
+}
+
+/* ÇÛÁ÷»þ´ÖÊ¸»úÎó¤Î¼èÆÀ */
+function lfGetDelivTimeInfo($time_id) {
+	$objQuery = new SC_Query();
+	$where = "time_id = ?";
+	$arrRet = $objQuery->select("deliv_id, deliv_time", "dtb_delivtime", $where, array($time_id));
+	return (array($arrRet[0]['deliv_id'], $arrRet[0]['deliv_time']));
+}
+
+/* DB¤Ø¥Ç¡¼¥¿¤ÎÅÐÏ¿ */
+function lfRegistData($uniqid) {
+	global $objFormParam;
+	$arrRet = $objFormParam->getHashArray();
+	$sqlval = $objFormParam->getDbArray();
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
+	$sqlval['order_temp_id'] = $uniqid;
+	$sqlval['update_date'] = 'Now()';
+	
+	if($sqlval['payment_id'] != "") {
+		list($sqlval['payment_method'], $sqlval['charge']) = lfGetPaymentInfo($sqlval['payment_id']);
+	} else {
+		$sqlval['payment_id'] = '0';
+		$sqlval['payment_method'] = "";
+	}
+	
+	if($sqlval['deliv_time_id'] != "") {
+		list($sqlval['deliv_id'], $sqlval['deliv_time']) = lfGetDelivTimeInfo($sqlval['deliv_time_id']);
+	} else {
+		$sqlval['deliv_time_id'] = '0';
+		$sqlval['deliv_id'] = '0';
+		$sqlval['deliv_time'] = "";
+	}
+	
+	// »ÈÍÑ¥Ý¥¤¥ó¥È¤ÎÀßÄê
+	if($sqlval['point_check'] != '1') {
+		$sqlval['use_point'] = 0;
+	}
+	
+	sfRegistTempOrder($uniqid, $sqlval);
+}
+
+/* ÇÛÃ£Æü°ìÍ÷¤ò¼èÆÀ¤¹¤ë */
+function lfGetDelivDate() {
+	$objCartSess = new SC_CartSession();
+	$objQuery = new SC_Query();
+	// ¾¦ÉÊID¤Î¼èÆÀ
+	$max = $objCartSess->getMax();
+	for($i = 1; $i <= $max; $i++) {
+		if($_SESSION[$objCartSess->key][$i]['id'][0] != "") {
+			$arrID['product_id'][$i] = $_SESSION[$objCartSess->key][$i]['id'][0];
+		}
+	}
+	if(count($arrID['product_id']) > 0) {
+		$id = implode(",", $arrID['product_id']);
+		//¾¦ÉÊ¤«¤éÈ¯Á÷ÌÜ°Â¤Î¼èÆÀ
+		$deliv_date = $objQuery->get("dtb_products", "MAX(deliv_date_id)", "product_id IN (".$id.")");
+		//È¯Á÷ÌÜ°Â
+		switch($deliv_date) {
+		//Â¨ÆüÈ¯Á÷
+		case '1':
+			$start_day = 1;
+			break;
+		//1-2Æü¸å
+		case '2':
+			$start_day = 3;
+			break;
+		//3-4Æü¸å
+		case '3':
+			$start_day = 5;
+			break;
+		//1½µ´Ö°ÊÆâ
+		case '4':
+			$start_day = 8;
+			break;
+		//2½µ´Ö°ÊÆâ
+		case '5':
+			$start_day = 15;
+			break;
+		//3½µ´Ö°ÊÆâ
+		case '6':
+			$start_day = 22;
+			break;
+		//1¥ö·î°ÊÆâ
+		case '7':
+			$start_day = 32;
+			break;
+		//2¥ö·î°Ê¹ß
+		case '8':
+			$start_day = 62;			
+			break;
+		//¤ª¼è¤ê´ó¤»(¾¦ÉÊÆþ²Ù¸å)
+		case '9':
+			$start_day = "";
+			break;
+		default:
+			//¤ªÆÏ¤±Æü¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+			$start_day = "";
+			break;
+		}
+		//ÇÛÃ£²ÄÇ½Æü¤Î¥¹¥¿¡¼¥ÈÃÍ¤«¤é¡¢ÇÛÃ£Æü¤ÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
+		$arrDelivDate = lfGetDateArray($start_day, DELIV_DATE_END_MAX);
+	}
+	return $arrDelivDate;
+}
+
+//ÇÛÃ£²ÄÇ½Æü¤Î¥¹¥¿¡¼¥ÈÃÍ¤«¤é¡¢ÇÛÃ£Æü¤ÎÇÛÎó¤ò¼èÆÀ¤¹¤ë
+function lfGetDateArray($start_day, $end_day) {
+	global $arrWDAY;
+	//ÇÛÃ£²ÄÇ½Æü¤Î¥¹¥¿¡¼¥ÈÃÍ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ð
+	if($start_day >= 1) {
+		$now_time = time();
+		$max_day = $start_day + $end_day;
+		// ½¸·×
+		for ($i = $start_day; $i < $max_day; $i++) {
+			// ´ðËÜ»þ´Ö¤«¤éÆü¿ô¤òÄÉ²Ã¤·¤Æ¤¤¤¯
+			$tmp_time = $now_time + ($i * 24 * 3600);
+			list($y, $m, $d, $w) = split(" ", date("y m d w", $tmp_time));	
+			$val = sprintf("%02d/%02d/%02d(%s)", $y, $m, $d, $arrWDAY[$w]);
+			$arrDate[$val] = $val;
+		}
+	} else {
+		$arrDate = false;
+	}
+	return $arrDate;
+}
+
+//°ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤«¤é¤Î¾ðÊó¤ò³ÊÇ¼¤¹¤ë
+function lfSetOrderTempData($uniqid) {
+	global $objQuery;
+	global $objFormParam;
+	
+	$objQuery = new SC_Query();
+	$col = "payment_id, use_point, deliv_time_id, message, point_check, deliv_date";
+	$from = "dtb_order_temp";
+	$where = "order_temp_id = ?";
+	$arrRet = $objQuery->select($col, $from, $where, array($uniqid));
+	// DBÃÍ¤Î¼èÆÀ
+	$objFormParam->setParam($arrRet[0]);
+	return $objFormParam;
+}
+
+
+?>
Index: /branches/comu/html/mobile/shopping/load_payment_module.php
===================================================================
--- /branches/comu/html/mobile/shopping/load_payment_module.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/load_payment_module.php	(revision 11982)
@@ -0,0 +1,44 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objQuery = new SC_Query();
+
+// Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼êÂ³¤­¤¬¹Ô¤ï¤ì¤¿µ­Ï¿¤¬¤¢¤ë¤«È½Äê
+sfIsPrePage($objSiteSess, true);
+
+// ¥¢¥¯¥»¥¹¤ÎÀµÅöÀ­¤ÎÈ½Äê
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+
+$payment_id = $_SESSION["payment_id"];
+
+// »ÙÊ§¤¤ID¤¬Ìµ¤¤¾ì¹ç¤Ë¤Ï¥¨¥é¡¼
+if($payment_id == ""){
+	sfDispSiteError(PAGE_ERROR, "", true, "", true);
+}
+
+// ·èºÑ¾ðÊó¤ò¼èÆÀ¤¹¤ë
+if(sfColumnExists("dtb_payment", "memo01")){
+	$sql = "SELECT module_path, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ?";
+	$arrPayment = $objQuery->getall($sql, array($payment_id));
+}
+
+if(count($arrPayment) > 0) {
+	$path = $arrPayment[0]['module_path'];
+	if(file_exists($path)) {
+		require_once($path);
+		exit;
+	} else {
+		sfDispSiteError(FREE_ERROR_MSG, "", true, "¥â¥¸¥å¡¼¥ë¥Õ¥¡¥¤¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br />¤³¤Î¼êÂ³¤­¤ÏÌµ¸ú¤È¤Ê¤ê¤Þ¤·¤¿¡£", true);
+	}
+}
+
+?>
Index: /branches/comu/html/mobile/shopping/deliv.php
===================================================================
--- /branches/comu/html/mobile/shopping/deliv.php	(revision 11982)
+++ /branches/comu/html/mobile/shopping/deliv.php	(revision 11982)
@@ -0,0 +1,317 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	var $tpl_mode;
+	var $arrAddr;
+	function LC_Page() {
+		$this->tpl_mainpage = 'shopping/deliv.tpl';
+		$this->tpl_css = '/css/layout/shopping/index.css';
+		global $arrPref;
+		$this->arrPref = $arrPref;
+		$this->tpl_title = "¤ªÆÏ¤±Àè»ØÄê";		// ¥¿¥¤¥È¥ë
+
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objSiteSess = new SC_SiteSession();
+$objCartSess = new SC_CartSession();
+$objCustomer = new SC_Customer();
+// ¥¯¥Ã¥­¡¼´ÉÍý¥¯¥é¥¹
+$objCookie = new SC_Cookie(COOKIE_EXPIRE);
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+$objLoginFormParam = new SC_FormParam();	// ¥í¥°¥¤¥ó¥Õ¥©¡¼¥àÍÑ
+lfInitLoginFormParam();						// ½é´üÀßÄê
+$objLoginFormParam->setParam($_POST);		// POSTÃÍ¤Î¼èÆÀ
+
+// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
+$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
+$objPage->tpl_uniqid = $uniqid;
+
+// ¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
+if($_POST['mode'] != 'login' && !$objCustomer->isLoginSuccess()) {
+	// ÉÔÀµ¥¢¥¯¥»¥¹¤È¤ß¤Ê¤¹
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}
+
+switch($_POST['mode']) {
+case 'login':
+	$objLoginFormParam->toLower('login_email');
+	$objPage->arrErr = $objLoginFormParam->checkError();
+	$arrForm =  $objLoginFormParam->getHashArray();
+	// ¥¯¥Ã¥­¡¼ÊÝÂ¸È½Äê
+	if($arrForm['login_memory'] == "1" && $arrForm['login_email'] != "") {
+		$objCookie->setCookie('login_email', $_POST['login_email']);
+	} else {
+		$objCookie->setCookie('login_email', '');
+	}
+
+	if(count($objPage->arrErr) == 0) {
+		// ¥í¥°¥¤¥óÈ½Äê
+		if(!$objCustomer->getCustomerDataFromMobilePhoneIdPass($arrForm['login_pass']) &&
+		   !$objCustomer->getCustomerDataFromEmailPass($arrForm['login_pass'], $arrForm['login_email'], true)) {
+			// ²¾ÅÐÏ¿¤ÎÈ½Äê
+			$objQuery = new SC_Query;
+			$where = "email = ? AND status = 1 AND del_flg = 0";
+			$ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email']));
+			
+			if($ret > 0) {
+				sfDispSiteError(TEMP_LOGIN_ERROR, "", false, "", true);
+			} else {
+				sfDispSiteError(SITE_LOGIN_ERROR, "", false, "", true);
+			}
+		} 
+	} else {
+		// ¥í¥°¥¤¥ó¥Ú¡¼¥¸¤ËÌá¤ë
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
+		exit;
+	}
+
+	// ¥í¥°¥¤¥ó¤¬À®¸ù¤·¤¿¾ì¹ç¤Ï·ÈÂÓÃ¼ËöID¤òÊÝÂ¸¤¹¤ë¡£
+	$objCustomer->updateMobilePhoneId();
+
+	// ·ÈÂÓ¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¥³¥Ô¡¼¤¹¤ë¡£
+	$objCustomer->updateEmailMobile();
+
+	// ·ÈÂÓ¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+	if (!$objCustomer->hasValue('email_mobile')) {
+		header('Location: ' . gfAddSessionId('../entry/email_mobile.php'));
+		exit;
+	}
+	break;
+// ºï½ü
+case 'delete':
+	if (sfIsInt($_POST['other_deliv_id'])) {
+		$objQuery = new SC_Query();
+		$where = "other_deliv_id = ?";
+		$arrRet = $objQuery->delete("dtb_other_deliv", $where, array($_POST['other_deliv_id']));
+		$objFormParam->setValue('select_addr_id', '');
+	}
+	break;
+// ²ñ°÷ÅÐÏ¿½»½ê¤ËÁ÷¤ë
+case 'customer_addr':
+	// ¤ªÆÏ¤±Àè¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¹¹¿·½èÍý¤ò¹Ô¤¦
+	if ($_POST['deli'] != "") {
+		// ²ñ°÷¾ðÊó¤Î½»½ê¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à
+		lfRegistDelivData($uniqid, $objCustomer);
+		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		// ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));
+		exit;
+	}else{
+		// ¥¨¥é¡¼¤òÊÖ¤¹
+		$arrErr['deli'] = '¢¨ ¤ªÆÏ¤±Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£';
+	}
+	break;
+	
+// ÅÐÏ¿ºÑ¤ß¤ÎÊÌ¤Î¤ªÆÏ¤±Àè¤ËÁ÷¤ë
+case 'other_addr':
+	// ¤ªÆÏ¤±Àè¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¹¹¿·½èÍý¤ò¹Ô¤¦
+	if ($_POST['deli'] != "") {
+		if (sfIsInt($_POST['other_deliv_id'])) {
+			// ÅÐÏ¿ºÑ¤ß¤ÎÊÌ¤Î¤ªÆÏ¤±Àè¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à
+			lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['other_deliv_id']);
+			// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+			$objSiteSess->setRegistFlag();
+			// ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
+			header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));
+			exit;
+		}
+	}else{
+		// ¥¨¥é¡¼¤òÊÖ¤¹
+		$arrErr['deli'] = '¢¨ ¤ªÆÏ¤±Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£';
+	}
+	break;
+
+/*
+// ÊÌ¤Î¤ªÆÏ¤±Àè¤ò»ØÄê
+case 'new_addr':
+	// ÆþÎÏÃÍ¤ÎÊÑ´¹
+	$objFormParam->convParam();
+	$objPage->arrErr = lfCheckError($arrRet);
+	// ÆþÎÏ¥¨¥é¡¼¤Ê¤·
+	if(count($objPage->arrErr) == 0) {
+		// DB¤Ø¤ªÆÏ¤±Àè¤òÅÐÏ¿
+		lfRegistNewAddrData($uniqid, $objCustomer);
+		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		// ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
+		header("Location: " . URL_SHOP_PAYMENT);
+		exit;
+	}
+	break;
+*/
+
+// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
+case 'return':
+	// ³ÎÇ§¥Ú¡¼¥¸¤Ø°ÜÆ°
+	header("Location: " . MOBILE_URL_CART_TOP);
+	exit;
+	break;
+default:
+	$objQuery = new SC_Query();
+	$where = "order_temp_id = ?";
+	$arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid));
+	$objFormParam->setParam($arrRet[0]);
+	break;
+}
+
+/** É½¼¨½èÍý **/
+
+// ²ñ°÷ÅÐÏ¿½»½ê¤Î¼èÆÀ
+$col = "name01, name02, pref, addr01, addr02, zip01, zip02";
+$where = "customer_id = ?";
+$objQuery = new SC_Query();
+$arrCustomerAddr = $objQuery->select($col, "dtb_customer", $where, array($_SESSION['customer']['customer_id']));
+// ÊÌ¤Î¤ªÆÏ¤±Àè½»½ê¤Î¼èÆÀ
+$col = "other_deliv_id, name01, name02, pref, addr01, addr02, zip01, zip02";
+$objQuery->setorder("other_deliv_id DESC");
+$objOtherAddr = $objQuery->select($col, "dtb_other_deliv", $where, array($_SESSION['customer']['customer_id']));
+$objPage->arrAddr = $arrCustomerAddr;
+$cnt = 1;
+foreach($objOtherAddr as $val) {
+	$objPage->arrAddr[$cnt] = $val;
+	$cnt++;
+}
+
+// ÆþÎÏÃÍ¤Î¼èÆÀ
+$objPage->arrForm = $objFormParam->getFormParamList();
+$objPage->arrErr = $arrErr;
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam() {
+	global $objFormParam;
+	$objFormParam->addParam("¤ªÌ¾Á°1", "deliv_name01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¤ªÌ¾Á°2", "deliv_name02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Õ¥ê¥¬¥Ê1", "deliv_kana01", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Õ¥ê¥¬¥Ê2", "deliv_kana02", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("Í¹ÊØÈÖ¹æ1", "deliv_zip01", ZIP01_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objFormParam->addParam("Í¹ÊØÈÖ¹æ2", "deliv_zip02", ZIP02_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objFormParam->addParam("ÅÔÆ»ÉÜ¸©", "deliv_pref", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("½»½ê1", "deliv_addr01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("½»½ê2", "deliv_addr02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ1", "deliv_tel01", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ2", "deliv_tel02", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ3", "deliv_tel03", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+}
+
+function lfInitLoginFormParam() {
+	global $objLoginFormParam;
+	$objLoginFormParam->addParam("µ­²±¤¹¤ë", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objLoginFormParam->addParam("¥á¡¼¥ë¥¢¥É¥ì¥¹", "login_email", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objLoginFormParam->addParam("¥Ñ¥¹¥ï¡¼¥É", "login_pass", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+}
+
+/* DB¤Ø¥Ç¡¼¥¿¤ÎÅÐÏ¿ */
+function lfRegistNewAddrData($uniqid, $objCustomer) {
+	global $objFormParam;
+	$arrRet = $objFormParam->getHashArray();
+	$sqlval = $objFormParam->getDbArray();
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
+	$sqlval['deliv_check'] = '1';
+	$sqlval['order_temp_id'] = $uniqid;
+	$sqlval['update_date'] = 'Now()';
+	$sqlval['customer_id'] = $objCustomer->getValue('customer_id');
+	$sqlval['order_birth'] = $objCustomer->getValue('birth');
+	
+	sfRegistTempOrder($uniqid, $sqlval);
+}
+
+/* ²ñ°÷¾ðÊó¤Î½»½ê¤ò°ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤Ø */
+function lfRegistDelivData($uniqid, $objCustomer) {
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
+	$sqlval['order_temp_id'] = $uniqid;
+	$sqlval['update_date'] = 'Now()';
+	$sqlval['customer_id'] = $objCustomer->getValue('customer_id');
+    $sqlval['deliv_check'] = '1';
+	$sqlval['deliv_name01'] = $objCustomer->getValue('name01');
+    $sqlval['deliv_name02'] = $objCustomer->getValue('name02');
+    $sqlval['deliv_kana01'] = $objCustomer->getValue('kana01');
+    $sqlval['deliv_kana02'] = $objCustomer->getValue('kana02');
+    $sqlval['deliv_zip01'] = $objCustomer->getValue('zip01');
+    $sqlval['deliv_zip02'] = $objCustomer->getValue('zip02');
+    $sqlval['deliv_pref'] = $objCustomer->getValue('pref');
+    $sqlval['deliv_addr01'] = $objCustomer->getValue('addr01');
+    $sqlval['deliv_addr02'] = $objCustomer->getValue('addr02');
+    $sqlval['deliv_tel01'] = $objCustomer->getValue('tel01');
+    $sqlval['deliv_tel02'] = $objCustomer->getValue('tel02');
+	$sqlval['deliv_tel03'] = $objCustomer->getValue('tel03');
+
+    $sqlval['deliv_fax01'] = $objCustomer->getValue('fax01');
+    $sqlval['deliv_fax02'] = $objCustomer->getValue('fax02');
+	$sqlval['deliv_fax03'] = $objCustomer->getValue('fax03');
+
+	sfRegistTempOrder($uniqid, $sqlval);
+}
+
+/* ÊÌ¤Î¤ªÆÏ¤±Àè½»½ê¤ò°ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤Ø */
+function lfRegistOtherDelivData($uniqid, $objCustomer, $other_deliv_id) {
+	// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®
+	$sqlval['order_temp_id'] = $uniqid;
+	$sqlval['update_date'] = 'Now()';
+	$sqlval['customer_id'] = $objCustomer->getValue('customer_id');
+	$sqlval['order_birth'] = $objCustomer->getValue('birth');
+		
+	$objQuery = new SC_Query();
+	$where = "other_deliv_id = ?";
+	$arrRet = $objQuery->select("*", "dtb_other_deliv", $where, array($other_deliv_id));
+	
+	$sqlval['deliv_check'] = '1';
+    $sqlval['deliv_name01'] = $arrRet[0]['name01'];
+    $sqlval['deliv_name02'] = $arrRet[0]['name02'];
+    $sqlval['deliv_kana01'] = $arrRet[0]['kana01'];
+    $sqlval['deliv_kana02'] = $arrRet[0]['kana02'];
+    $sqlval['deliv_zip01'] = $arrRet[0]['zip01'];
+    $sqlval['deliv_zip02'] = $arrRet[0]['zip02'];
+    $sqlval['deliv_pref'] = $arrRet[0]['pref'];
+    $sqlval['deliv_addr01'] = $arrRet[0]['addr01'];
+    $sqlval['deliv_addr02'] = $arrRet[0]['addr02'];
+    $sqlval['deliv_tel01'] = $arrRet[0]['tel01'];
+    $sqlval['deliv_tel02'] = $arrRet[0]['tel02'];
+	$sqlval['deliv_tel03'] = $arrRet[0]['tel03'];
+	sfRegistTempOrder($uniqid, $sqlval);
+}
+
+/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
+function lfCheckError() {
+	global $objFormParam;
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$arrRet =  $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+	// Ê£¿ô¹àÌÜ¥Á¥§¥Ã¥¯
+	if ($_POST['mode'] == 'login'){
+	$objErr->doFunc(array("¥á¡¼¥ë¥¢¥É¥ì¥¹", "login_email", STEXT_LEN), array("EXIST_CHECK"));
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É", "login_pass", STEXT_LEN), array("EXIST_CHECK"));
+	}
+	$objErr->doFunc(array("TEL", "deliv_tel01", "deliv_tel02", "deliv_tel03", TEL_ITEM_LEN), array("TEL_CHECK"));
+	return $objErr->arrErr;
+}
+?>
Index: /branches/comu/html/mobile/unsupported/index.php
===================================================================
--- /branches/comu/html/mobile/unsupported/index.php	(revision 11982)
+++ /branches/comu/html/mobile/unsupported/index.php	(revision 11982)
@@ -0,0 +1,31 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		$this->tpl_css = '';			// ¥á¥¤¥óCSS¥Ñ¥¹
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_mainpage = 'unsupported/index.tpl';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/cart/index.php
===================================================================
--- /branches/comu/html/mobile/cart/index.php	(revision 11982)
+++ /branches/comu/html/mobile/cart/index.php	(revision 11982)
@@ -0,0 +1,125 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+
+class LC_Page {
+	var $arrSession;
+	var $arrProductsClass;
+	var $tpl_total_pretax;
+	var $tpl_total_tax;
+	var $tpl_total_point;
+	var $tpl_message;
+	function LC_Page() {
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		$this->tpl_css = '/css/layout/cartin/index.css';	// ¥á¥¤¥óCSS¥Ñ¥¹
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		$this->tpl_mainpage = 'cart/index.tpl';		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = "¶ºÞ¤ÎÃæ¤ò¸«¤ë";
+	}
+}
+
+// Çã¤¤Êª¤òÂ³¤±¤ë¾ì¹ç
+if($_REQUEST['continue']) {
+	header("Location: " . gfAddSessionId(MOBILE_URL_SITE_TOP) );
+	exit;
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView(false);
+$objCartSess = new SC_CartSession("", false);
+$objSiteSess = new SC_SiteSession();
+$objSiteInfo = $objView->objSiteInfo;
+$objCustomer = new SC_Customer();
+// ´ðËÜ¾ðÊó¤Î¼èÆÀ
+$arrInfo = $objSiteInfo->data;
+
+// ¾¦ÉÊ¹ØÆþÃæ¤Ë¥«¡¼¥ÈÆâÍÆ¤¬ÊÑ¹¹¤µ¤ì¤¿¡£
+if($objCartSess->getCancelPurchase()) {
+	$objPage->tpl_message = "¾¦ÉÊ¹ØÆþÃæ¤Ë¶°ÄÆâÍÆ¤¬ÊÑ¹¹¤µ¤ì¤Þ¤·¤¿¤Î¤Ç¤¤ª¼ê¿ô¤Ç¤¹¤¬¹ØÆþ¼êÂ³¤­¤ò¤ä¤êÄ¾¤·¤Æ²¼¤µ¤¤¡";
+}
+
+switch($_POST['mode']) {
+case 'confirm':
+	// ¥«¡¼¥ÈÆâ¾ðÊó¤Î¼èÆÀ
+	$arrRet = $objCartSess->getCartList();
+	$max = count($arrRet);
+	$cnt = 0;
+	for ($i = 0; $i < $max; $i++) {
+		// ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ
+		$arrData = sfGetProductsClass($arrRet[$i]['id']);
+		// DB¤ËÂ¸ºß¤¹¤ë¾¦ÉÊ
+		if($arrData != "") {
+			$cnt++;
+		}
+	}
+	// ¥«¡¼¥È¾¦ÉÊ¤¬1·ï°Ê¾åÂ¸ºß¤¹¤ë¾ì¹ç
+	if($cnt > 0) {
+		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
+		$objSiteSess->setRegistFlag();
+		$pre_uniqid = $objSiteSess->getUniqId();
+		// ÃíÊ¸°ì»þID¤ÎÈ¯¹Ô
+		$objSiteSess->setUniqId();
+		$uniqid = $objSiteSess->getUniqId();
+		// ¥¨¥é¡¼¥ê¥È¥é¥¤¤Ê¤É¤Ç´û¤Ëuniqid¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï¡¢ÀßÄê¤ò°ú¤­·Ñ¤°
+		if($pre_uniqid != "") {
+			$sqlval['order_temp_id'] = $uniqid;
+			$where = "order_temp_id = ?";
+			$objQuery = new SC_Query();
+			$objQuery->update("dtb_order_temp", $sqlval, $where, array($pre_uniqid));
+		}
+		// ¥«¡¼¥È¤ò¹ØÆþ¥â¡¼¥É¤ËÀßÄê
+		$objCartSess->saveCurrentCart($uniqid);
+		// ¹ØÆþ¥Ú¡¼¥¸¤Ø
+		header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP));
+		exit;
+	}
+	break;
+default:
+	break;
+}
+
+switch($_GET['mode']) {
+case 'up':
+	$objCartSess->upQuantity($_GET['cart_no']);
+	sfReload(session_name() . '=' . session_id());
+	break;
+case 'down':
+	$objCartSess->downQuantity($_GET['cart_no']);
+	sfReload(session_name() . '=' . session_id());
+	break;
+case 'delete':
+	$objCartSess->delProduct($_GET['cart_no']);
+	sfReload(session_name() . '=' . session_id());
+	break;
+}
+
+// ¥«¡¼¥È½¸·×½èÍý
+$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
+$objPage->arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer);
+
+$objPage->arrInfo = $arrInfo;
+
+// ¥í¥°¥¤¥óÈ½Äê
+if($objCustomer->isLoginSuccess()) {
+	$objPage->tpl_login = true;
+	$objPage->tpl_user_point = $objCustomer->getValue('point');
+	$objPage->tpl_name = $objCustomer->getValue('name01');
+}
+
+// Á÷ÎÁÌµÎÁ¤Þ¤Ç¤Î¶â³Û¤ò·×»»
+$tpl_deliv_free = $objPage->arrInfo['free_rule'] - $objPage->tpl_total_pretax;
+$objPage->tpl_deliv_free = $tpl_deliv_free;
+
+// Á°ÊÇ¤ÎURL¤ò¼èÆÀ
+$objPage->tpl_prev_url = $objCartSess->getPrevURL();
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/contact/index.php
===================================================================
--- /branches/comu/html/mobile/contact/index.php	(revision 11982)
+++ /branches/comu/html/mobile/contact/index.php	(revision 11982)
@@ -0,0 +1,33 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_css = '/css/layout/contact/index.css';	// ¥á¥¤¥óCSS¥Ñ¥¹
+		$this->tpl_mainpage = 'contact/index.tpl';
+		$this->tpl_title = '¤ªÌä¤¤¹ç¤ï¤»(ÆþÎÏ¥Ú¡¼¥¸)';
+		$this->tpl_page_category = 'contact';
+		global $arrPref;
+		$this->arrPref = $arrPref;
+	}
+}
+
+$conn = new SC_DBConn();
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$CONF = sf_getBasisData();			// Å¹ÊÞ´ðËÜ¾ðÊó
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->assignarray($CONF);
+$objView->display(SITE_FRAME);
+
+//------------------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/magazine/confirm.php
===================================================================
--- /branches/comu/html/mobile/magazine/confirm.php	(revision 11982)
+++ /branches/comu/html/mobile/magazine/confirm.php	(revision 11982)
@@ -0,0 +1,204 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥á¥ë¥Þ¥¬³ÎÇ§
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'magazine/confirm.tpl';
+		$this->tpl_title .= '¥á¥ë¥Þ¥¬³ÎÇ§';
+	}
+}
+
+$objPage = new LC_Page();
+$objConn = new SC_DbConn();
+$objPage->arrForm = $_POST;
+
+// ÅÐÏ¿
+if (isset($_REQUEST['btnRegist'])) {
+	$objPage->arrErr = lfMailErrorCheck($objPage->arrForm, "regist");
+
+	// ¥¨¥é¡¼¤¬¤Ê¤±¤ì¤Ð
+	if (count($objPage->arrErr) == 0) {
+		// ³ÎÇ§
+		$objPage->arrForm['kind'] = '¥á¥ë¥Þ¥¬ÅÐÏ¿';
+		$objPage->arrForm['type'] = 'regist';
+		$objPage->arrForm['mail'] = $objPage->arrForm['regist'];
+	} else {
+		$objPage->tpl_mainpage = 'magazine/index.tpl';
+		$objPage->tpl_title = '¥á¥ë¥Þ¥¬ÅÐÏ¿¡¦²ò½ü';
+	}
+// ²ò½ü
+} elseif (isset($_REQUEST['btnCancel'])) {
+	$objPage->arrErr = lfMailErrorCheck($objPage->arrForm, "cancel");
+
+	// ¥¨¥é¡¼¤¬¤Ê¤±¤ì¤Ð
+	if (count($objPage->arrErr) == 0) {
+		// ³ÎÇ§
+		$objPage->arrForm['kind'] = '¥á¥ë¥Þ¥¬²ò½ü';
+		$objPage->arrForm['type'] = 'cancel';
+		$objPage->arrForm['mail'] = $objPage->arrForm['cancel'];
+	} else {
+		$objPage->tpl_mainpage = 'magazine/index.tpl';
+		$objPage->tpl_title = '¥á¥ë¥Þ¥¬ÅÐÏ¿¡¦²ò½ü';
+	}
+// ´°Î»
+} elseif ($_REQUEST['mode'] == 'regist' or $_REQUEST['mode'] == 'cancel') {
+
+	//¡¡ÅÐÏ¿
+	if ($_REQUEST['mode'] == 'regist') {
+		$uniqId = lfRegistData($_POST["email"]);
+		$subject = sfMakesubject('¥á¥ë¥Þ¥¬ÅÐÏ¿¤Î¤´³ÎÇ§');
+	//¡¡²ò½ü
+	} elseif ($_REQUEST['mode'] == 'cancel') {
+		$uniqId = lfGetSecretKey($_POST["email"]);
+		$subject = sfMakesubject('¥á¥ë¥Þ¥¬²ò½ü¤Î¤´³ÎÇ§');
+	}
+	$CONF = sf_getBasisData();
+	$objPage->CONF = $CONF;
+	$objPage->tpl_url = gfAddSessionId(MOBILE_SSL_URL . "magazine/" . $_REQUEST['mode'] . ".php?id=" . $uniqId);
+	
+	$objMailText = new SC_MobileView();
+	$objMailText->assignobj($objPage);
+	$toCustomerMail = $objMailText->fetch("mail_templates/mailmagazine_" . $_REQUEST['mode'] . ".tpl");
+	$objMail = new GC_SendMail();
+	$objMail->setItem(
+						''									//¡¡°¸Àè
+						, $subject							//¡¡¥µ¥Ö¥¸¥§¥¯¥È
+						, $toCustomerMail					//¡¡ËÜÊ¸
+						, $CONF["email03"]					//¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
+						, $CONF["shop_name"]				//¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
+						, $CONF["email03"]					//¡¡reply_to
+						, $CONF["email04"]					//¡¡return_path
+						, $CONF["email04"]					//  Errors_to
+						, $CONF["email01"]					//  Bcc
+														);
+	// °¸Àè¤ÎÀßÄê
+	$objMail->setTo($_POST["email"], $_POST["email"]);
+	$objMail->sendMail();
+
+	// ´°Î»¥Ú¡¼¥¸¤Ë°ÜÆ°¤µ¤»¤ë¡£
+	header("Location:" . gfAddSessionId("./complete.php"));
+	exit;
+} else {
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfMailErrorCheck($array, $dataName) {
+	$objErr = new SC_CheckError($array);
+	$objErr->doFunc(
+				array('¥á¡¼¥ë¥¢¥É¥ì¥¹', $dataName, MTEXT_LEN) ,
+				array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK", 
+					"SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK", "MOBILE_EMAIL_CHECK"));
+
+	// ÆþÎÏ¥¨¥é¡¼¤¬¤Ê¤±¤ì¤Ð
+	if (count($objErr->arrErr) == 0) {
+		// ¥á¥ë¥Þ¥¬¤ÎÅÐÏ¿Í­Ìµ
+		$flg = lfIsRegistData($array[$dataName]);
+
+		// ÅÐÏ¿¤Î»þ
+		if ($dataName == 'regist' and $flg == true) {
+			$objErr->arrErr[$dataName] = "´û¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¡£<br>";
+		// ²ò½ü¤Î»þ
+		} elseif ($dataName == 'cancel' and $flg == false) {
+			$objErr->arrErr[$dataName] = "¥á¥ë¥Þ¥¬ÅÐÏ¿¤¬¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>";
+		}
+	}
+
+	return $objErr->arrErr;
+}
+
+
+//---- ¥á¥ë¥Þ¥¬ÅÐÏ¿
+function lfRegistData ($email) {
+	global $objConn;
+
+	$count = 1;
+	while ($count != 0) {
+		$uniqid = sfGetUniqRandomId("t");
+		$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer_mail WHERE secret_key = ?", array($uniqid));
+	}
+	
+	$arrRegist["email"] = $email;			// ¥á¡¼¥ë¥¢¥É¥ì¥¹
+	$arrRegist["mail_flag"] = 5;			// ÅÐÏ¿¾õÂÖ
+	$arrRegist["secret_key"] = $uniqid;		// IDÈ¯¹Ô
+	$arrRegist["create_date"] = "now()"; 	// ºîÀ®Æü
+	$arrRegist["update_date"] = "now()"; 	// ¹¹¿·Æü
+
+	//-- ²¾ÅÐÏ¿¼Â¹Ô
+	$objConn->query("BEGIN");
+
+	$objQuery = new SC_Query();
+
+	//--¡¡´û¤Ë¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎÈ½Äê
+	$sql = "SELECT count(*) FROM dtb_customer_mail WHERE email = ?";
+	$mailResult = $objConn->getOne($sql, array($arrRegist["email"]));
+
+	if ($mailResult == 1) {		
+		$objQuery->update("dtb_customer_mail", $arrRegist, "email = '" .addslashes($arrRegist["email"]). "'");			
+	} else {
+		$objQuery->insert("dtb_customer_mail", $arrRegist);		
+	}
+	$objConn->query("COMMIT");
+
+	return $uniqid;
+}
+
+// ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥­¡¼¤Î¼èÆÀ
+function lfGetSecretKey ($email) {
+	global $objConn;
+
+	$sql = "SELECT secret_key FROM dtb_customer_mail WHERE email = ?";
+	$uniqid = $objConn->getOne($sql, array($email));
+
+	if ($uniqid == '') {
+		$count = 1;
+		while ($count != 0) {
+			$uniqid = sfGetUniqRandomId("t");
+			$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer_mail WHERE secret_key = ?", array($uniqid));
+		}
+
+		$objQuery = new SC_Query();
+		$objQuery->update("dtb_customer_mail", array('secret_key' => $uniqid), "email = '" .addslashes($email). "'");
+	}
+
+	return $uniqid;
+}
+
+// ´û¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«
+function lfIsRegistData ($email) {
+	global $objConn;
+
+	$sql = "SELECT email, mail_flag FROM dtb_customer_mail WHERE email = ?";
+	$mailResult = $objConn->getRow($sql, array($email));
+
+	// NULL¤â¹ØÆÉ¤È¤ß¤Ê¤¹
+	if (count($mailResult) == 0 or ($mailResult[1] != null and $mailResult[1] != 2 )) {
+		return false;
+	} else {
+		return true;
+	}
+}
+
+
+?>
Index: /branches/comu/html/mobile/magazine/regist.php
===================================================================
--- /branches/comu/html/mobile/magazine/regist.php	(revision 11982)
+++ /branches/comu/html/mobile/magazine/regist.php	(revision 11982)
@@ -0,0 +1,64 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥á¥ë¥Þ¥¬ÅÐÏ¿
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'magazine/regist.tpl';
+		$this->tpl_title .= '¥á¥ë¥Þ¥¬ÅÐÏ¿´°Î»';
+	}
+}
+
+$objPage = new LC_Page();
+$objQuery = new SC_Query();
+
+// secret_key¤Î¼èÆÀ
+$key = $_GET['id'];
+
+if (empty($key) or !lfExistKey($key))  {
+	sfDispSiteError(PAGE_ERROR, "", false, "", true);
+} else {
+	lfChangeData($key);
+}
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+// ¥á¥ë¥Þ¥¬¤ÎÅÐÏ¿¤ò´°Î»¤µ¤»¤ë
+function lfChangeData($key) {
+	global $objQuery;
+
+	$arrUpdate['mail_flag'] = 2;
+	$arrUpdate['secret_key'] = NULL;
+	$result = $objQuery->update("dtb_customer_mail", $arrUpdate, "secret_key = '" .addslashes($key). "'");
+}
+
+// ¥­¡¼¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«
+function lfExistKey($key) {
+	global $objQuery;
+
+	$sql = "SELECT count(*) FROM dtb_customer_mail WHERE secret_key = ?";
+	$result = $objQuery->getOne($sql, array($key));
+
+	if ($result == 1) {
+		return true;
+	} else {
+		return false;
+	}
+}
+
+
+?>
Index: /branches/comu/html/mobile/magazine/cancel.php
===================================================================
--- /branches/comu/html/mobile/magazine/cancel.php	(revision 11982)
+++ /branches/comu/html/mobile/magazine/cancel.php	(revision 11982)
@@ -0,0 +1,64 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥á¥ë¥Þ¥¬²ò½ü
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'magazine/cancel.tpl';
+		$this->tpl_title .= '¥á¥ë¥Þ¥¬²ò½ü´°Î»';
+	}
+}
+
+$objPage = new LC_Page();
+$objQuery = new SC_Query();
+
+// secret_key¤Î¼èÆÀ
+$key = $_GET['id'];
+
+if (empty($key) or !lfExistKey($key))  {
+	sfDispSiteError(PAGE_ERROR, "", false, "", true);
+} else {
+	lfChangeData($key);
+}
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+// ¥á¥ë¥Þ¥¬¤Î²ò½ü¤ò´°Î»¤µ¤»¤ë
+function lfChangeData($key) {
+	global $objQuery;
+
+	$arrUpdate['mail_flag'] = 3;
+	$arrUpdate['secret_key'] = NULL;
+	$result = $objQuery->update("dtb_customer_mail", $arrUpdate, "secret_key = '" .addslashes($key). "'");
+}
+
+// ¥­¡¼¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«
+function lfExistKey($key) {
+	global $objQuery;
+
+	$sql = "SELECT count(*) FROM dtb_customer_mail WHERE secret_key = ?";
+	$result = $objQuery->getOne($sql, array($key));
+
+	if ($result == 1) {
+		return true;
+	} else {
+		return false;
+	}
+}
+
+
+?>
Index: /branches/comu/html/mobile/magazine/index.php
===================================================================
--- /branches/comu/html/mobile/magazine/index.php	(revision 11982)
+++ /branches/comu/html/mobile/magazine/index.php	(revision 11982)
@@ -0,0 +1,33 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥á¥ë¥Þ¥¬ÅÐÏ¿¡¦²ò½ü¡¡¥È¥Ã¥×¥Ú¡¼¥¸
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'magazine/index.tpl';
+		$this->tpl_title .= '¥á¥ë¥Þ¥¬ÅÐÏ¿¡¦²ò½ü';
+	}
+}
+
+$objPage = new LC_Page();
+$objPage->arrForm = $_POST;
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/magazine/complete.php
===================================================================
--- /branches/comu/html/mobile/magazine/complete.php	(revision 11982)
+++ /branches/comu/html/mobile/magazine/complete.php	(revision 11982)
@@ -0,0 +1,26 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'magazine/complete.tpl';		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title .= '¥á¥ë¥Þ¥¬ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';			//¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//----------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/guide/kiyaku.php
===================================================================
--- /branches/comu/html/mobile/guide/kiyaku.php	(revision 11982)
+++ /branches/comu/html/mobile/guide/kiyaku.php	(revision 11982)
@@ -0,0 +1,69 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¤´ÍøÍÑµ¬Ìó
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'guide/kiyaku.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¤´ÍøÍÑµ¬Ìó';
+	}
+}
+
+$objPage = new LC_Page();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+// ÍøÍÑµ¬Ìó¤ò¼èÆÀ¤¹¤ë¡£
+lfGetKiyaku(intval(@$_GET['page']), $objPage);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+/**
+ * ÍøÍÑµ¬Ìó¤ò¼èÆÀ¤·¡¢¥Ú¡¼¥¸¥ª¥Ö¥¸¥§¥¯¥È¤Ë³ÊÇ¼¤¹¤ë¡£
+ *
+ * @param integer $index µ¬Ìó¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹
+ * @param object &$objPage ¥Ú¡¼¥¸¥ª¥Ö¥¸¥§¥¯¥È
+ * @return void
+ */
+function lfGetKiyaku($index, &$objPage)
+{
+	$objQuery = new SC_Query();
+	$objQuery->setorder('rank DESC');
+	$arrRet = $objQuery->select('kiyaku_title, kiyaku_text', 'dtb_kiyaku', 'del_flg <> 1');
+
+	$number = count($arrRet);
+	if ($number > 0) {
+		$last = $number - 1;
+	} else {
+		$last = 0;
+	}
+
+	if ($index < 0) {
+		$index = 0;
+	} elseif ($index > $last) {
+		$index = $last;
+	}
+
+	$objPage->tpl_kiyaku_title = @$arrRet[$index]['kiyaku_title'];
+	$objPage->tpl_kiyaku_text = @$arrRet[$index]['kiyaku_text'];
+	$objPage->tpl_kiyaku_index = $index;
+	$objPage->tpl_kiyaku_last_index = $last;
+	$objPage->tpl_kiyaku_is_first = $index <= 0;
+	$objPage->tpl_kiyaku_is_last = $index >= $last;
+}
+?>
Index: /branches/comu/html/mobile/guide/privacy.php
===================================================================
--- /branches/comu/html/mobile/guide/privacy.php	(revision 11982)
+++ /branches/comu/html/mobile/guide/privacy.php	(revision 11982)
@@ -0,0 +1,32 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥×¥é¥¤¥Ð¥·¡¼¥Ý¥ê¥·¡¼
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'guide/privacy.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¥×¥é¥¤¥Ð¥·¡¼¥Ý¥ê¥·¡¼';
+	}
+}
+
+$objPage = new LC_Page();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/guide/usage.php
===================================================================
--- /branches/comu/html/mobile/guide/usage.php	(revision 11982)
+++ /branches/comu/html/mobile/guide/usage.php	(revision 11982)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¤´ÍøÍÑÊýË¡
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'guide/usage.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¤´ÍøÍÑÊýË¡';
+	}
+}
+
+$objPage = new LC_Page();
+
+switch (@$_GET['page']) {
+case '1':
+case '2':
+case '3':
+case '4':
+	$objPage->tpl_mainpage = 'guide/usage' . $_GET['page'] . '.tpl';
+	break;
+}
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/guide/index.php
===================================================================
--- /branches/comu/html/mobile/guide/index.php	(revision 11982)
+++ /branches/comu/html/mobile/guide/index.php	(revision 11982)
@@ -0,0 +1,32 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¤´ÍøÍÑ¥¬¥¤¥É
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'guide/index.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¤´ÍøÍÑ¥¬¥¤¥É';
+	}
+}
+
+$objPage = new LC_Page();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/guide/charge.php
===================================================================
--- /branches/comu/html/mobile/guide/charge.php	(revision 11982)
+++ /branches/comu/html/mobile/guide/charge.php	(revision 11982)
@@ -0,0 +1,32 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * 
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/ÄÌ¿®ÎÁ¤Ë¤Ä¤¤¤Æ
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'guide/charge.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = 'ÄÌ¿®ÎÁ¤Ë¤Ä¤¤¤Æ';
+	}
+}
+
+$objPage = new LC_Page();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/guide/about.php
===================================================================
--- /branches/comu/html/mobile/guide/about.php	(revision 11982)
+++ /branches/comu/html/mobile/guide/about.php	(revision 11982)
@@ -0,0 +1,31 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/±¿±Ä²ñ¼Ò¾Ò²ð
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'guide/about.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¥×¥é¥¤¥Ð¥·¡¼¥Ý¥ê¥·¡¼';
+	}
+}
+
+$objPage = new LC_Page();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/index.php
===================================================================
--- /branches/comu/html/mobile/index.php	(revision 11982)
+++ /branches/comu/html/mobile/index.php	(revision 11982)
@@ -0,0 +1,34 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥È¥Ã¥×¥Ú¡¼¥¸
+ */
+
+require_once('./require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'top.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+	}
+}
+
+$objPage = new LC_Page();
+$conn = new SC_DBConn();
+$objCustomer = new SC_Customer();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+//$objPage = sfGetPageLayout($objPage, false, 'index.php');
+
+$objView = new SC_MobileView();
+$objView->assign("isLogin", $objCustomer->isLoginSuccess());
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/regist/index.php
===================================================================
--- /branches/comu/html/mobile/regist/index.php	(revision 11982)
+++ /branches/comu/html/mobile/regist/index.php	(revision 11982)
@@ -0,0 +1,196 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+
+require_once("../require.php");
+
+//---- ¥Ú¡¼¥¸É½¼¨¥¯¥é¥¹
+class LC_Page {
+	
+	var $arrSession;
+	var $tpl_mainpage;
+	var $arrPref;
+
+	function LC_Page() {
+		$this->tpl_css = '/css/layout/regist/index.css';	// ¥á¥¤¥óCSS¥Ñ¥¹
+	}
+}
+
+$objConn = new SC_DBConn();
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objSiteInfo = $objView->objSiteInfo;
+$objCustomer = new SC_Customer();
+$CONF = sf_getBasisData();
+$arrInfo = $objSiteInfo->data;
+
+//--¡¡ËÜÅÐÏ¿´°Î»¤Î¤¿¤á¤Ë¥á¡¼¥ë¤«¤éÀÜÂ³¤·¤¿¾ì¹ç
+if ($_GET["mode"] == "regist") {
+	
+	//-- ÆþÎÏ¥Á¥§¥Ã¥¯
+	$objPage->arrErr = lfErrorCheck($_GET);
+	if ($objPage->arrErr) {
+		$objPage->tpl_mainpage = 'regist/error.tpl';
+		$objPage->tpl_css = "/css/layout/regist/error.css";
+		$objPage->tpl_title = '¥¨¥é¡¼';
+
+	} else {
+		//$objPage->tpl_mainpage = 'regist/complete.tpl';
+		//$objPage->tpl_title = ' ²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';
+		$registSecretKey = lfRegistData($_GET);			//ËÜ²ñ°÷ÅÐÏ¿¡Ê¥Õ¥é¥°ÊÑ¹¹¡Ë
+		lfSendRegistMail($registSecretKey);				//ËÜ²ñ°÷ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
+
+		// ¥í¥°¥¤¥óºÑ¤ß¤Î¾õÂÖ¤Ë¤¹¤ë¡£
+		$objQuery = new SC_Query();
+		$email = $objQuery->get("dtb_customer", "email", "secret_key = ?", array($registSecretKey));
+		$objCustomer->setLogin($email);
+		header("Location: " . gfAddSessionId("./complete.php"));
+		exit;
+	}
+
+//--¡¡¤½¤ì°Ê³°¤Î¥¢¥¯¥»¥¹¤ÏÌµ¸ú¤È¤¹¤ë
+} else {
+	$objPage->arrErr["id"] = "Ìµ¸ú¤Ê¥¢¥¯¥»¥¹¤Ç¤¹¡£";
+	$objPage->tpl_mainpage = 'regist/error.tpl';
+	$objPage->tpl_css = "/css/layout/regist/error.css";
+	$objPage->tpl_title = '¥¨¥é¡¼';
+
+}
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//---- ÅÐÏ¿
+function lfRegistData($array) {
+	global $objConn;
+	global $arrInfo;
+	
+	do {
+		$secret = sfGetUniqRandomId("r");
+	} while( ($result = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($secret)) ) != 0);
+
+	$sql = "SELECT email FROM dtb_customer WHERE secret_key = ? AND status = 1";
+	$email = $objConn->getOne($sql, array($array["id"]));
+
+	$objConn->query("BEGIN");
+	$arrRegist["secret_key"] = $secret;	//¡¡ËÜÅÐÏ¿IDÈ¯¹Ô
+	$arrRegist["status"] = 2;
+	$arrRegist["update_date"] = "NOW()";
+	
+	$objQuery = new SC_Query();
+	$where = "secret_key = ? AND status = 1";
+	
+	$arrRet = $objQuery->select("point", "dtb_customer", $where, array($array["id"]));
+	// ²ñ°÷ÅÐÏ¿»þ¤Î²Ã»»¥Ý¥¤¥ó¥È(¹ØÆþ»þ²ñ°÷ÅÐÏ¿¤Î¾ì¹ç¤Ï¡¢¥Ý¥¤¥ó¥È²Ã»»¡Ë
+	$arrRegist['point'] = $arrRet[0]['point'] + addslashes($arrInfo['welcome_point']);
+	
+	$objQuery->update("dtb_customer", $arrRegist, $where, array($array["id"]));
+
+	/* ¹ØÆþ»þ¤Î¼«Æ°²ñ°÷ÅÐÏ¿¤Ï¹Ô¤ï¤Ê¤¤¤¿¤áDEL
+	// ¹ØÆþ»þÅÐÏ¿¤Î¾ì¹ç¡¢¤½¤Î²ó¤Î¹ØÆþ¤ò²ñ°÷¹ØÆþ¤È¤ß¤Ê¤¹¡£
+	// ²ñ°÷¾ðÊó¤ÎÆÉ¤ß¹þ¤ß
+	$where1 = "secret_key = ? AND status = 2";
+	$customer = $objQuery->select("*", "dtb_customer", $where1, array($secret));
+	// ½é²ó¹ØÆþ¾ðÊó¤ÎÆÉ¤ß¹þ¤ß
+	$order_temp_id = $objQuery->get("dtb_order_temp", "order_temp_id");
+	// ¹ØÆþ¾ðÊó¤Î¹¹¿·
+	if ($order_temp_id != null) {
+		$arrCustomer['customer_id'] = $customer[0]['customer_id'];
+		$where3 = "order_temp_id = ?";
+		$objQuery->update("dtb_order_temp", $arrCustomer, $where3, array($order_temp_id));
+		$objQuery->update("dtb_order", $arrCustomer, $where3, array($order_temp_id));
+	}
+	*/
+
+	$sql = "SELECT mailmaga_flg FROM dtb_customer WHERE email = ?";
+	$result = $objConn->getOne($sql, array($email));
+	
+	switch($result) {
+	// ²¾HTML
+	case '4':
+		$arrRegistMail["mailmaga_flg"] = 1;
+		break;
+	// ²¾TEXT
+	case '5':
+		$arrRegistMail["mailmaga_flg"] = 2;
+		break;
+	// ²¾¤Ê¤·
+	case '6':
+		$arrRegistMail["mailmaga_flg"] = 3;
+		break;
+	default:
+		$arrRegistMail["mailmaga_flg"] = $result;
+		break;
+	}
+
+	$objQuery->update("dtb_customer", $arrRegistMail, "email = '" .addslashes($email). "' AND del_flg = 0");
+	$objConn->query("COMMIT");
+		
+	return $secret;		// ËÜÅÐÏ¿ID¤òÊÖ¤¹
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck($array) {
+
+	global $objConn;
+	$objErr = new SC_CheckError($array);
+
+	$objErr->doFunc(array("²¾ÅÐÏ¿ID", 'id'), array("EXIST_CHECK"));
+	if (! EregI("^[[:alnum:]]+$",$array["id"] )) {
+		$objErr->arrErr["id"] = "Ìµ¸ú¤ÊURL¤Ç¤¹¡£¥á¡¼¥ë¤Ëµ­ºÜ¤µ¤ì¤Æ¤¤¤ëËÜ²ñ°÷ÅÐÏ¿ÍÑURL¤òºÆÅÙ¤´³ÎÇ§¤¯¤À¤µ¤¤¡£";
+	}
+	if (! $objErr->arrErr["id"]) {
+
+		$sql = "SELECT customer_id FROM dtb_customer WHERE secret_key = ? AND status = 1 AND del_flg = 0";
+		$result = $objConn->getOne($sql, array($array["id"]));
+
+		if (! is_numeric($result)) {
+			$objErr->arrErr["id"] .= "¢¨ ´û¤Ë²ñ°÷ÅÐÏ¿¤¬´°Î»¤·¤Æ¤¤¤ë¤«¡¢Ìµ¸ú¤ÊURL¤Ç¤¹¡£<br>";
+			return $objErr->arrErr;
+
+		}
+	}
+
+	return $objErr->arrErr;
+}
+
+//---- Àµ²ñ°÷ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
+function lfSendRegistMail($registSecretKey) {
+	global $objConn;
+	global $CONF;
+
+	//-- À«Ì¾¤ò¼èÆÀ
+	$sql = "SELECT email, name01, name02 FROM dtb_customer WHERE secret_key = ?";
+	$result = $objConn->getAll($sql, array($registSecretKey));
+	$data = $result[0];
+	
+	//--¡¡¥á¡¼¥ëÁ÷¿®
+	$objMailText = new SC_MobileView();
+	$objMailText->assign("CONF", $CONF);
+	$objMailText->assign("name01", $data["name01"]);
+	$objMailText->assign("name02", $data["name02"]);
+	$toCustomerMail = $objMailText->fetch("mail_templates/customer_regist_mail.tpl");
+	$subject = sfMakeSubject('ËÜ²ñ°÷ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');
+	$objMail = new GC_SendMail();
+
+	$objMail->setItem(
+						  ''								//¡¡°¸Àè
+						, $subject//"¡Ú" .$CONF["shop_name"]. "¡Û".ENTRY_CUSTOMER_REGIST_SUBJECT 		//¡¡¥µ¥Ö¥¸¥§¥¯¥È
+						, $toCustomerMail					//¡¡ËÜÊ¸
+						, $CONF["email03"]					//¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
+						, $CONF["shop_name"]				//¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
+						, $CONF["email03"]					//¡¡reply_to
+						, $CONF["email04"]					//¡¡return_path
+						, $CONF["email04"]					//  Errors_to
+					);
+	// °¸Àè¤ÎÀßÄê
+	$name = $data["name01"] . $data["name02"] ." ÍÍ";
+	$objMail->setTo($data["email"], $name);
+	$objMail->sendMail();
+}
+
+?>
Index: /branches/comu/html/mobile/regist/complete.php
===================================================================
--- /branches/comu/html/mobile/regist/complete.php	(revision 11982)
+++ /branches/comu/html/mobile/regist/complete.php	(revision 11982)
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page(){
+		$this->tpl_mainpage = 'regist/complete.tpl';
+		$this->tpl_css = '/css/layout/regist/complete.css';
+		$this->tpl_title = '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+// ¥«¡¼¥È¤¬¶õ¤«¤É¤¦¤«¤ò³ÎÇ§¤¹¤ë¡£
+$objCartSess = new SC_CartSession("", false);
+$objPage->tpl_cart_empty = count($objCartSess->getCartList()) < 1;
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+?>
Index: /branches/comu/html/mobile/forgot/index.php
===================================================================
--- /branches/comu/html/mobile/forgot/index.php	(revision 11982)
+++ /branches/comu/html/mobile/forgot/index.php	(revision 11982)
@@ -0,0 +1,166 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * 
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	var $errmsg;
+	var $arrReminder;
+	var $temp_password;
+
+	function LC_Page() {
+		$this->tpl_mainpage = 'forgot/index.tpl';
+		$this->tpl_title = '¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿Êý';
+		$this->tpl_mainno = '';
+	}
+}
+
+$conn = new SC_DBConn();
+$objPage = new LC_Page();
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+$objView = new SC_MobileView();
+$objSess = new SC_Session();
+$CONF = sf_getBasisData();					// Å¹ÊÞ´ðËÜ¾ðÊó
+// ¥¯¥Ã¥­¡¼´ÉÍý¥¯¥é¥¹
+$objCookie = new SC_Cookie(COOKIE_EXPIRE);
+
+if (isset($_SESSION['mobile']['kara_mail_from'])) {
+	if (!isset($_POST['mode'])) {
+		$_POST['mode'] = 'mail_check';
+	}
+	$_POST['email'] = $_SESSION['mobile']['kara_mail_from'];
+}
+
+if ( $_POST['mode'] == 'mail_check' ){
+	//¥á¥¢¥ÉÆþÎÏ»þ
+	$_POST['email'] = strtolower($_POST['email']);
+	$sql = "SELECT * FROM dtb_customer WHERE (email ILIKE ? OR email_mobile ILIKE ?) AND status = 2 AND del_flg = 0";
+	$result = $conn->getAll($sql, array($_POST['email'], $_POST['email']) );
+	
+	if ( $result[0]['reminder'] ){		// ËÜ²ñ°÷ÅÐÏ¿ºÑ¤ß¤Î¾ì¹ç
+		// ÆþÎÏemail¤¬Â¸ºß¤¹¤ë		
+		$_SESSION['forgot']['email'] = $_POST['email'];
+		$_SESSION['forgot']['reminder'] = $result[0]['reminder'];
+		// ¥Ò¥ß¥Ä¤ÎÅú¤¨ÆþÎÏ²èÌÌ
+		$objPage->Reminder = $arrReminder[$_SESSION['forgot']['reminder']];
+		$objPage->tpl_mainpage = 'forgot/secret.tpl';
+	} else {
+		$sql = "SELECT customer_id FROM dtb_customer WHERE email ILIKE ? AND status = 1 AND del_flg = 0";	//²¾ÅÐÏ¿Ãæ¤Î³ÎÇ§
+		$result = $conn->getAll($sql, array($_POST['email']) );
+		if ($result) {
+			$objPage->errmsg = "¤´ÆþÎÏ¤Îemail¥¢¥É¥ì¥¹¤Ï¸½ºß²¾ÅÐÏ¿Ãæ¤Ç¤¹¡£<br>ÅÐÏ¿¤ÎºÝ¤Ë¤ªÁ÷¤ê¤·¤¿¥á¡¼¥ë¤ÎURL¤Ë¥¢¥¯¥»¥¹¤·¡¢<br>ËÜ²ñ°÷ÅÐÏ¿¤ò¤ª´ê¤¤¤·¤Þ¤¹¡£";
+		} else {		//¡¡ÅÐÏ¿¤·¤Æ¤¤¤Ê¤¤¾ì¹ç
+			$objPage->errmsg = "¤´ÆþÎÏ¤Îemail¥¢¥É¥ì¥¹¤ÏÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤»¤ó";
+		}
+	}
+	
+} elseif( $_POST['mode'] == 'secret_check' ){
+	//¥Ò¥ß¥Ä¤ÎÅú¤¨ÆþÎÏ»þ
+	
+	if ( $_SESSION['forgot']['email'] ) {
+		// ¥Ò¥ß¥Ä¤ÎÅú¤¨¤Î²óÅú¤¬Àµ¤·¤¤¤«¥Á¥§¥Ã¥¯
+		
+		$sql = "SELECT * FROM dtb_customer WHERE (email ILIKE ? OR email_mobile ILIKE ?) AND del_flg = 0";
+		$result = $conn->getAll($sql, array($_SESSION['forgot']['email'], $_SESSION['forgot']['email']) );
+		$data = $result[0];
+		
+		if ( $data['reminder_answer'] === $_POST['input_reminder'] ){
+			// ¥Ò¥ß¥Ä¤ÎÅú¤¨¤¬Àµ¤·¤¤
+						
+			// ¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤òÀßÄê¤¹¤ë
+			$objPage->temp_password = gfMakePassword(8);
+						
+			if(FORGOT_MAIL == 1) {
+				// ¥á¡¼¥ë¤ÇÊÑ¹¹ÄÌÃÎ¤ò¤¹¤ë
+				lfSendMail($CONF, $_SESSION['forgot']['email'], $data['name01'], $objPage->temp_password);
+			}
+			
+			// DB¤ò½ñ¤­´¹¤¨¤ë
+			$sql = "UPDATE dtb_customer SET password = ?, update_date = now() WHERE customer_id = ?";
+			$conn->query( $sql, array( sha1($objPage->temp_password . ":" . AUTH_MAGIC) ,$data['customer_id']) );
+			
+			// ´°Î»²èÌÌ¤ÎÉ½¼¨
+			$objPage->tpl_mainpage = 'forgot/complete.tpl';
+			
+			// ¥»¥Ã¥·¥ç¥óÊÑ¿ô¤Î²òÊü
+			$_SESSION['forgot'] = array();
+			unset($_SESSION['forgot']);
+			
+		} else {
+			// ¥Ò¥ß¥Ä¤ÎÅú¤¨¤¬Àµ¤·¤¯¤Ê¤¤
+			
+			$objPage->Reminder = $arrReminder[$_SESSION['forgot']['reminder']];
+			$objPage->errmsg = "¥Ñ¥¹¥ï¡¼¥É¤òËº¤ì¤¿¤È¤­¤Î¼ÁÌä¤ËÂÐ¤¹¤ë²óÅú¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó";
+			$objPage->tpl_mainpage = 'forgot/secret.tpl';
+
+		}
+	
+		
+	} else {
+		// ¥¢¥¯¥»¥¹¸µ¤¬ÉÔÀµ¤Þ¤¿¤Ï¡¢¥»¥Ã¥·¥ç¥óÊÝ»ý´ü´Ö¤¬ÀÚ¤ì¤Æ¤¤¤ë
+		$objPage->errmsg = "email¥¢¥É¥ì¥¹¤òºÆÅÙÅÐÏ¿¤·¤Æ¤¯¤À¤µ¤¤¡£<br />Á°²ó¤ÎÆþÎÏ¤«¤é»þ´Ö¤¬·Ð¤Ã¤Æ¤¤¤Þ¤¹¤È¡¢ËÜ¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë²ÄÇ½À­¤¬¤¢¤ê¤Þ¤¹¡£";
+	}
+}
+
+// ¥Ç¥Õ¥©¥ë¥ÈÆþÎÏ
+if($_POST['email'] != "") {
+	// POSTÃÍ¤òÆþÎÏ
+	$objPage->tpl_login_email = $_POST['email'];
+} else {
+	// ¥¯¥Ã¥­¡¼ÃÍ¤òÆþÎÏ
+	$objPage->tpl_login_email = $objCookie->getCookie('login_email');
+}
+
+// ¶õ¥á¡¼¥ëÍÑ¤Î¥È¡¼¥¯¥ó¤òºîÀ®¡£
+if (MOBILE_USE_KARA_MAIL) {
+	$token = gfPrepareKaraMail('forgot/index.php');
+	if ($token !== false) {
+		$objPage->tpl_kara_mail_to = MOBILE_KARA_MAIL_ADDRESS_USER . MOBILE_KARA_MAIL_ADDRESS_DELIMITER . 'forgot_' . $token . '@' . MOBILE_KARA_MAIL_ADDRESS_DOMAIN;
+	}
+}
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+function lfSendMail($CONF, $email, $customer_name, $temp_password){
+	//¡¡¥Ñ¥¹¥ï¡¼¥ÉÊÑ¹¹¤ªÃÎ¤é¤»¥á¡¼¥ëÁ÷¿®
+	
+	$objPage = new LC_Page();
+	$objPage->customer_name = $customer_name;
+	$objPage->temp_password = $temp_password;
+	$objMailText = new SC_MobileView();
+	$objMailText->assignobj($objPage);
+	
+	$toCustomerMail = $objMailText->fetch("mail_templates/forgot_mail.tpl");
+	$objMail = new GC_SendMail();
+	
+	$objMail->setItem(
+						  ''								//¡¡°¸Àè
+						, "¥Ñ¥¹¥ï¡¼¥É¤¬ÊÑ¹¹¤µ¤ì¤Þ¤·¤¿" ."¡Ú" .$CONF["shop_name"]. "¡Û"		//¡¡¥µ¥Ö¥¸¥§¥¯¥È
+						, $toCustomerMail					//¡¡ËÜÊ¸
+						, $CONF["email03"]					//¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
+						, $CONF["shop_name"]				//¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
+						, $CONF["email03"]					//¡¡reply_to
+						, $CONF["email04"]					//¡¡return_path
+						, $CONF["email04"]					//  Errors_to
+
+														);
+	$objMail->setTo($email, $customer_name ." ÍÍ");
+	$objMail->sendMail();	
+	
+}
+
+
+?>
+
Index: /branches/comu/html/mobile/entry/index.php
===================================================================
--- /branches/comu/html/mobile/entry/index.php	(revision 11982)
+++ /branches/comu/html/mobile/entry/index.php	(revision 11982)
@@ -0,0 +1,486 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'entry/index.tpl';		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title .= '²ñ°÷ÅÐÏ¿(1/3)';			//¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
+	}
+}
+
+//---- ¥Ú¡¼¥¸½é´üÀßÄê
+$CONF = sf_getBasisData();					// Å¹ÊÞ´ðËÜ¾ðÊó
+$objConn = new SC_DbConn();
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
+$objPage->arrPref = $arrPref;
+$objPage->arrJob = $arrJob;
+$objPage->arrReminder = $arrReminder;
+$objPage->arrYear = $objDate->getYear('', 1950);	//¡¡ÆüÉÕ¥×¥ë¥À¥¦¥óÀßÄê
+$objPage->arrMonth = $objDate->getMonth();
+$objPage->arrDay = $objDate->getDay();
+
+// ¶õ¥á¡¼¥ë
+if (isset($_SESSION['mobile']['kara_mail_from'])) {
+	$objPage->tpl_kara_mail_from = $_POST['email'] = $_SESSION['mobile']['kara_mail_from'];
+} elseif (MOBILE_USE_KARA_MAIL) {
+	$token = gfPrepareKaraMail('entry/index.php');
+	if ($token !== false) {
+		$objPage->tpl_mainpage = 'entry/mail.tpl';
+		$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(¶õ¥á¡¼¥ë)';
+		$objPage->tpl_kara_mail_to = MOBILE_KARA_MAIL_ADDRESS_USER . MOBILE_KARA_MAIL_ADDRESS_DELIMITER . 'entry_' . $token . '@' . MOBILE_KARA_MAIL_ADDRESS_DOMAIN;
+		$objPage->tpl_from_address = $CONF['email03'];
+	}
+}
+
+//SSLURLÈ½Äê
+if (SSLURL_CHECK == 1){
+	$ssl_url= sfRmDupSlash(MOBILE_SSL_URL.$_SERVER['REQUEST_URI']);
+	if (!ereg("^https://", $non_ssl_url)){
+		sfDispSiteError(URL_ERROR, "", false, "", true);
+	}
+}
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+//---- ÅÐÏ¿ÍÑ¥«¥é¥àÇÛÎó
+$arrRegistColumn = array(
+							 array(  "column" => "name01", "convert" => "aKV" ),
+							 array(  "column" => "name02", "convert" => "aKV" ),
+							 array(  "column" => "kana01", "convert" => "CKV" ),
+							 array(  "column" => "kana02", "convert" => "CKV" ),
+							 array(  "column" => "zip01", "convert" => "n" ),
+							 array(  "column" => "zip02", "convert" => "n" ),
+							 array(  "column" => "pref", "convert" => "n" ),
+							 array(  "column" => "addr01", "convert" => "aKV" ),
+							 array(  "column" => "addr02", "convert" => "aKV" ),
+							 array(  "column" => "email", "convert" => "a" ),
+							 array(  "column" => "email2", "convert" => "a" ),
+							 array(  "column" => "email_mobile", "convert" => "a" ),
+							 array(  "column" => "email_mobile2", "convert" => "a" ),
+							 array(  "column" => "tel01", "convert" => "n" ),
+							 array(  "column" => "tel02", "convert" => "n" ),
+							 array(  "column" => "tel03", "convert" => "n" ),
+							 array(  "column" => "fax01", "convert" => "n" ),
+							 array(  "column" => "fax02", "convert" => "n" ),
+							 array(  "column" => "fax03", "convert" => "n" ),
+							 array(  "column" => "sex", "convert" => "n" ),
+							 array(  "column" => "job", "convert" => "n" ),
+							 array(  "column" => "birth", "convert" => "n" ),
+							 array(  "column" => "reminder", "convert" => "n" ),
+							 array(  "column" => "reminder_answer", "convert" => "aKV"),
+							 array(  "column" => "password", "convert" => "a" ),
+							 array(  "column" => "password02", "convert" => "a" ),
+							 array(  "column" => "mailmaga_flg", "convert" => "n" ),
+						 );
+
+//---- ÅÐÏ¿½ü³°ÍÑ¥«¥é¥àÇÛÎó
+$arrRejectRegistColumn = array("year", "month", "day", "email02", "email_mobile02", "password02");
+
+if ($_SERVER["REQUEST_METHOD"] == "POST") {
+
+	//-- POST¥Ç¡¼¥¿¤Î°ú¤­·Ñ¤®
+	$objPage->arrForm = $_POST;
+	
+	if($objPage->arrForm['year'] == '----') {
+		$objPage->arrForm['year'] = '';
+	}
+	
+	$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);		// email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
+	
+	//-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
+	$objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn);
+
+	// Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý
+	if (!empty($_POST["return"])) {
+		switch ($_POST["mode"]) {
+		case "complete":
+			$_POST["mode"] = "set3";
+			break;
+		case "confirm":
+			$_POST["mode"] = "set2";
+			break;
+		default:
+			$_POST["mode"] = "set1";
+			break;
+		}
+	}
+
+	//--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+	if ($_POST["mode"] == "set1") {
+		$objPage->arrErr = lfErrorCheck1($objPage->arrForm);
+		$objPage->tpl_mainpage = 'entry/index.tpl';
+		$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(1/3)';
+	} elseif ($_POST["mode"] == "set2") {
+		$objPage->arrErr = lfErrorCheck2($objPage->arrForm);
+		$objPage->tpl_mainpage = 'entry/set1.tpl';
+		$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(2/3)';
+	} else {
+		$objPage->arrErr = lfErrorCheck3($objPage->arrForm);
+		$objPage->tpl_mainpage = 'entry/set2.tpl';
+		$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(3/3)';
+	}
+
+	foreach($objPage->arrForm as $key => $val) {
+		$objPage->$key = $val;
+	}
+
+	if ($objPage->arrErr || !empty($_POST["return"])) {		// ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯
+
+		//-- ¥Ç¡¼¥¿¤ÎÀßÄê
+		if ($_POST["mode"] == "set1") {
+			$checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02");
+		} elseif ($_POST["mode"] == "set2") {
+			$checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
+		} else {
+			$checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
+		}
+
+		foreach($objPage->arrForm as $key => $val) {
+			if ($key != "mode" && $key != "submit" && $key != "return" && $key != session_name() && !in_array($key, $checkVal))
+				$objPage->list_data[ $key ] = $val;
+		}
+
+
+
+	} else {
+
+		//--¡¡¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê
+		if ($_POST["mode"] == "set1") {
+			$objPage->tpl_mainpage = 'entry/set1.tpl';
+			$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(2/3)';
+		} elseif ($_POST["mode"] == "set2") {
+			$objPage->tpl_mainpage = 'entry/set2.tpl';
+			$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(3/3)';
+
+			if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") {
+				$address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']);
+				$objPage->pref = @$address[0]['state'];
+				$objPage->addr01 = @$address[0]['city'] . @$address[0]['town'];
+			}
+		} elseif ($_POST["mode"] == "confirm") {
+			//¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨
+			$passlen = strlen($objPage->arrForm['password']);
+			$objPage->passlen = lfPassLen($passlen);
+			
+			//¥á¡¼¥ë¼õ¤±¼è¤ê
+			if (strtolower($objPage->arrForm['mail_flag']) == "on") {
+				$objPage->arrForm['mail_flag']  = "2";
+			} else {
+				$objPage->arrForm['mail_flag']  = "3";
+			}
+
+			$objPage->tpl_mainpage = 'entry/confirm.tpl';
+			$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(³ÎÇ§¥Ú¡¼¥¸)';
+
+		}
+
+		//-- ¥Ç¡¼¥¿ÀßÄê
+		unset($objPage->list_data);
+		if ($_POST["mode"] == "set1") {
+			$checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
+		} elseif ($_POST["mode"] == "set2") {
+			$checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
+		} else {
+			$checkVal = array();
+		}
+
+		foreach($objPage->arrForm as $key => $val) {
+			if ($key != "mode" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) {
+				$objPage->list_data[ $key ] = $val;
+			}
+		}
+
+
+		//--¡¡²¾ÅÐÏ¿¤È´°Î»²èÌÌ
+		if ($_POST["mode"] == "complete") {
+			$objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn);
+
+			// ¶õ¥á¡¼¥ë¤ò¼õ¿®ºÑ¤ß¤Î¾ì¹ç¤Ï¤¹¤°¤ËËÜÅÐÏ¿´°Î»¤Ë¤¹¤ë¡£
+			if (isset($_SESSION['mobile']['kara_mail_from'])) {
+				header("Location:" . gfAddSessionId(MOBILE_URL_DIR . "regist/index.php?mode=regist&id=" . $objPage->uniqid));
+				exit;
+			}
+
+			$objPage->tpl_mainpage = 'entry/complete.tpl';
+			$objPage->tpl_title = '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';
+
+			sfMobileSetExtSessionId('id', $objPage->uniqid, 'regist/index.php');
+
+			//¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
+			$objPage->CONF = $CONF;
+			$objPage->to_name01 = $_POST['name01'];
+			$objPage->to_name02 = $_POST['name02'];
+			$objMailText = new SC_MobileView();
+			$objMailText->assignobj($objPage);
+			$subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´³ÎÇ§');
+			$toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl");
+			$objMail = new GC_SendMail();
+			$objMail->setItem(
+								''									//¡¡°¸Àè
+								, $subject							//¡¡¥µ¥Ö¥¸¥§¥¯¥È
+								, $toCustomerMail					//¡¡ËÜÊ¸
+								, $CONF["email03"]					//¡¡ÇÛÁ÷¸µ¥¢¥É¥ì¥¹
+								, $CONF["shop_name"]				//¡¡ÇÛÁ÷¸µ¡¡Ì¾Á°
+								, $CONF["email03"]					//¡¡reply_to
+								, $CONF["email04"]					//¡¡return_path
+								, $CONF["email04"]					//  Errors_to
+								, $CONF["email01"]					//  Bcc
+																);
+			// °¸Àè¤ÎÀßÄê
+			$name = $_POST["name01"] . $_POST["name02"] ." ÍÍ";
+			$objMail->setTo($_POST["email"], $name);
+			$objMail->sendMail();
+
+			// ´°Î»¥Ú¡¼¥¸¤Ë°ÜÆ°¤µ¤»¤ë¡£
+			header("Location:" . gfAddSessionId("./complete.php"));
+			exit;
+		}
+	}
+}
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//----------------------------------------------------------------------------------------------------------------------
+
+//---- function·²
+function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn) {
+	global $objConn;
+
+	// ²¾ÅÐÏ¿
+	foreach ($arrRegistColumn as $data) {
+		if (strlen($array[ $data["column"] ]) > 0 && ! in_array($data["column"], $arrRejectRegistColumn)) {
+			$arrRegist[ $data["column"] ] = $array[ $data["column"] ];
+		}
+	}
+		
+	// ÃÂÀ¸Æü¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if (strlen($array["year"]) > 0 ) {
+		$arrRegist["birth"] = $array["year"] ."/". $array["month"] ."/". $array["day"] ." 00:00:00";
+	}
+	
+	// ¥Ñ¥¹¥ï¡¼¥É¤Î°Å¹æ²½
+	$arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC);
+	
+	$count = 1;
+	while ($count != 0) {
+		$uniqid = sfGetUniqRandomId("t");
+		$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
+	}
+
+	switch($array["mailmaga_flg"]) {
+		case 1:
+			$arrRegist["mailmaga_flg"] = 4; 
+			break;
+		case 2:
+			$arrRegist["mailmaga_flg"] = 5; 
+			break;
+		default:
+			$arrRegist["mailmaga_flg"] = 6;
+			break;
+	}
+		
+	$arrRegist["secret_key"] = $uniqid;		// ²¾ÅÐÏ¿IDÈ¯¹Ô
+	$arrRegist["create_date"] = "now()"; 	// ºîÀ®Æü
+	$arrRegist["update_date"] = "now()"; 	// ¹¹¿·Æü
+	$arrRegist["first_buy_date"] = "";	 	// ºÇ½é¤Î¹ØÆþÆü
+	
+	// ·ÈÂÓ¥á¡¼¥ë¥¢¥É¥ì¥¹
+	$arrRegist['email_mobile'] = $arrRegist['email'];
+
+	//-- ²¾ÅÐÏ¿¼Â¹Ô
+	$objConn->query("BEGIN");
+
+	$objQuery = new SC_Query();
+	$objQuery->insert("dtb_customer", $arrRegist);
+
+/* ¥á¥ë¥Þ¥¬²ñ°÷µ¡Ç½¤Ï¸½ºßÄä»ßÃæ¡¡2007/03/07
+	//--¡¡Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎÈ½Äê
+	$sql = "SELECT count(*) FROM dtb_customer_mail WHERE email = ?";
+	$mailResult = $objConn->getOne($sql, array($arrRegist["email"]));
+
+	//--¡¡¥á¥ë¥Þ¥¬²¾ÅÐÏ¿¼Â¹Ô
+	$arrRegistMail["email"] = $arrRegist["email"];	
+	if ($array["mailmaga_flg"] == 1) {
+		$arrRegistMail["mailmaga_flg"] = 4; 
+	} elseif ($array["mailmaga_flg"] == 2) {
+		$arrRegistMail["mailmaga_flg"] = 5; 
+	} else {
+		$arrRegistMail["mailmaga_flg"] = 6; 
+	}
+	$arrRegistMail["update_date"] = "now()";
+	
+	// Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¾ì¹ç
+	if ($mailResult == 1) {		
+		$objQuery->update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($arrRegistMail["email"]). "'");			
+	} else {				//¡¡¿·µ¬ÅÐÏ¿¤Î¾ì¹ç
+		$arrRegistMail["create_date"] = "now()";
+		$objQuery->insert("dtb_customer_mail", $arrRegistMail);		
+	}
+*/
+	$objConn->query("COMMIT");
+
+	return $uniqid;
+}
+
+//----¡¡¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹
+function lfConvertParam($array, $arrRegistColumn) {
+	/*
+	 *	Ê¸»úÎó¤ÎÊÑ´¹
+	 *	K :  ¡ÖÈ¾³Ñ(ÊÝ¶¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹
+	 *	C :  ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹
+	 *	V :  ÂùÅÀÉÕ¤­¤ÎÊ¸»ú¤ò°ìÊ¸»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍÑ¤·¤Þ¤¹	
+	 *	n :  ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖÈ¾³Ñ(ÊÝ¶¸)¡×¤ËÊÑ´¹
+	 *  a :  Á´³Ñ±Ñ¿ô»ú¤òÈ¾³Ñ±Ñ¿ô»ú¤ËÊÑ´¹¤¹¤ë
+	 */
+	// ¥«¥é¥àÌ¾¤È¥³¥ó¥Ð¡¼¥È¾ðÊó
+	foreach ($arrRegistColumn as $data) {
+		$arrConvList[ $data["column"] ] = $data["convert"];
+	}
+	// Ê¸»úÊÑ´¹
+	foreach ($arrConvList as $key => $val) {
+		// POST¤µ¤ì¤Æ¤­¤¿ÃÍ¤Î¤ßÊÑ´¹¤¹¤ë¡£
+		if(strlen(($array[$key])) > 0) {
+			$array[$key] = mb_convert_kana($array[$key] ,$val);
+		}
+	}
+	return $array;
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck1($array) {
+
+	global $objConn;
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", 'name01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", 'name02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/À«¡Ë", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/Ì¾¡Ë", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array('¥á¡¼¥ë¥¢¥É¥ì¥¹', "email", MTEXT_LEN) ,array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK", "SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK", "MOBILE_EMAIL_CHECK"));
+
+	//¸½²ñ°÷¤ÎÈ½Äê ¢ª¡¡¸½²ñ°÷¤â¤·¤¯¤Ï²¾ÅÐÏ¿Ãæ¤Ï¡¢¥á¥¢¥É°ì°Õ¤¬Á°Äó¤Ë¤Ê¤Ã¤Æ¤ë¤Î¤ÇÆ±¤¸¥á¥¢¥É¤ÇÅÐÏ¿ÉÔ²Ä
+	if (strlen($array["email"]) > 0) {
+		$objQuery = new SC_Query();
+		$arrRet = $objQuery->select("email, update_date, del_flg", "dtb_customer","email ILIKE ? OR email_mobile ILIKE ? ORDER BY del_flg", array($array["email"], $array["email"]));
+				
+		if(count($arrRet) > 0) {
+			if($arrRet[0]['del_flg'] != '1') {
+				// ²ñ°÷¤Ç¤¢¤ë¾ì¹ç
+				$objErr->arrErr["email"] .= "¢¨ ¤¹¤Ç¤Ë²ñ°÷ÅÐÏ¿¤Ç»ÈÍÑ¤µ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ç¤¹¡£<br />";
+			} else {
+				// Âà²ñ¤·¤¿²ñ°÷¤Ç¤¢¤ë¾ì¹ç
+				$leave_time = sfDBDatetoTime($arrRet[0]['update_date']);
+				$now_time = time();
+				$pass_time = $now_time - $leave_time;
+				// Âà²ñ¤«¤é²¿»þ´Ö-·Ð²á¤·¤Æ¤¤¤ë¤«È½Äê¤¹¤ë¡£
+				$limit_time = ENTRY_LIMIT_HOUR * 3600;						
+				if($pass_time < $limit_time) {
+					$objErr->arrErr["email"] .= "¢¨ Âà²ñ¤«¤é°ìÄê´ü´Ö¤Î´Ö¤Ï¡¢Æ±¤¸¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò»ÈÍÑ¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£<br />";
+				}
+			}
+		}
+	}
+
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É", 'password', PASSWORD_LEN1, PASSWORD_LEN2), array("EXIST_CHECK", "SPTAB_CHECK" ,"ALNUM_CHECK", "NUM_RANGE_CHECK"));
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É³ÎÇ§ÍÑ¤Î¼ÁÌä", "reminder") ,array("SELECT_CHECK", "NUM_CHECK")); 
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É³ÎÇ§ÍÑ¤Î¼ÁÌä¤ÎÅú¤¨", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK","SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
+	
+	return $objErr->arrErr;
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck2($array) {
+
+	global $objConn, $objDate;
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
+
+	$objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK")); 
+	$objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	if (!isset($objErr->arrErr['year'])) {
+		$objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getStartYear()), array("MIN_CHECK"));
+		$objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getEndYear()), array("MAX_CHECK"));
+	}
+	$objErr->doFunc(array("À¸Ç¯·îÆü (·îÆü)", "month", "day"), array("SELECT_CHECK"));
+	if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) {
+		$objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
+	}
+	
+	return $objErr->arrErr;
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck3($array) {
+
+	global $objConn;
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK" ));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK" ));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK" ));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03",TEL_ITEM_LEN) ,array("TEL_CHECK"));
+	
+	return $objErr->arrErr;
+}
+
+//³ÎÇ§¥Ú¡¼¥¸ÍÑ¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨ÍÑ
+
+function lfPassLen($passlen){
+	$ret = "";
+	for ($i=0;$i<$passlen;true){
+	$ret.="*";
+	$i++;
+	}
+	return $ret;
+}
+
+
+// Í¹ÊØÈÖ¹æ¤«¤é½»½ê¤Î¼èÆÀ
+function lfGetAddress($zipcode) {
+	global $arrPref;
+
+	$conn = new SC_DBconn(ZIP_DSN);
+
+	// Í¹ÊØÈÖ¹æ¸¡º÷Ê¸ºîÀ®
+	$zipcode = mb_convert_kana($zipcode ,"n");
+	$sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?";
+
+	$data_list = $conn->getAll($sqlse, array($zipcode));
+
+	// ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈÃÍ¤òÈ¿Å¾¤µ¤»¤ë¡£
+	$arrREV_PREF = array_flip($arrPref);
+
+	/*
+		ÁíÌ³¾Ê¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤Þ¥¤¥ó¥Ý¡¼¥È¤¹¤ë¤È
+		°Ê²¼¤Î¤è¤¦¤ÊÊ¸»úÎó¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç	ÂÐºö¤¹¤ë¡£
+		¡¦¡Ê£±¡¦£±£¹ÃúÌÜ¡Ë
+		¡¦°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç
+	*/
+	$town =  $data_list[0]['town'];
+	$town = ereg_replace("¡Ê.*¡Ë$","",$town);
+	$town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town);
+	$data_list[0]['town'] = $town;
+	$data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']];
+
+	return $data_list;
+}
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/entry/complete.php
===================================================================
--- /branches/comu/html/mobile/entry/complete.php	(revision 11982)
+++ /branches/comu/html/mobile/entry/complete.php	(revision 11982)
@@ -0,0 +1,29 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_css = '/css/layout/entry/complete.css';	// ¥á¥¤¥óCSS¥Ñ¥¹
+		$this->tpl_mainpage = 'entry/complete.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title .= '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)';			//¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//----------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/entry/new.php
===================================================================
--- /branches/comu/html/mobile/entry/new.php	(revision 11982)
+++ /branches/comu/html/mobile/entry/new.php	(revision 11982)
@@ -0,0 +1,28 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * ¿·µ¬ÅÐÏ¿
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'entry/new.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+	}
+}
+
+$objPage = new LC_Page();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objView = new SC_MobileView();
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/entry/kiyaku.php
===================================================================
--- /branches/comu/html/mobile/entry/kiyaku.php	(revision 11982)
+++ /branches/comu/html/mobile/entry/kiyaku.php	(revision 11982)
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'entry/kiyaku.tpl';
+		$this->tpl_title="¤´ÍøÍÑµ¬Ìó";
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objCustomer = new SC_Customer();
+
+$offset = isset($_REQUEST['offset']) ? $_REQUEST['offset'] : 0;
+$next = $offset;
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+// µ¬ÌóÆâÍÆ¤Î¼èÆÀ
+$objQuery = new SC_Query();
+$count = $objQuery->count("dtb_kiyaku", "del_flg <> 1");
+$objQuery->setorder("rank DESC");
+$objQuery->setlimitoffset(1, $offset);
+$arrRet = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1");
+
+if($count > $offset + 1){
+	$next++;
+} else {
+	$next = -1;
+}
+
+$max = count($arrRet);
+$objPage->tpl_kiyaku_text = "";
+for ($i = 0; $i < $max; $i++) {
+	$objPage->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_title'] . "\n\n"; 
+	$objPage->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_text'] . "\n\n"; 
+}
+
+$objView->assign("offset", $next);
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//--------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/entry/email_mobile.php
===================================================================
--- /branches/comu/html/mobile/entry/email_mobile.php	(revision 11982)
+++ /branches/comu/html/mobile/entry/email_mobile.php	(revision 11982)
@@ -0,0 +1,115 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/·ÈÂÓ¥á¡¼¥ëÅÐÏ¿
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'entry/email_mobile.tpl';
+		$this->tpl_title = '·ÈÂÓ¥á¡¼¥ëÅÐÏ¿';
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');		
+	}
+}
+
+$objPage = new LC_Page;
+$objView = new SC_MobileView;
+$objCustomer = new SC_Customer;
+$objFormParam = new SC_FormParam;
+
+if (isset($_SESSION['mobile']['kara_mail_from'])) {
+	$_SERVER['REQUEST_METHOD'] = 'POST';
+	$_POST['email_mobile'] = $_SESSION['mobile']['kara_mail_from'];
+}
+
+lfInitParam($objFormParam);
+
+if ($_SERVER['REQUEST_METHOD'] == 'POST') {
+	$objFormParam->setParam($_POST);
+	$objFormParam->convParam();
+	$objPage->arrErr = lfCheckError($objFormParam, $objCustomer);
+
+	if (empty($objPage->arrErr)) {
+		lfRegister($objFormParam, $objCustomer);
+		$objPage->tpl_mainpage = 'entry/email_mobile_complete.tpl';
+		$objPage->tpl_title = '·ÈÂÓ¥á¡¼¥ëÅÐÏ¿´°Î»';
+	}
+}
+
+// ¶õ¥á¡¼¥ëÍÑ¤Î¥È¡¼¥¯¥ó¤òºîÀ®¤¹¤ë¡£
+if (MOBILE_USE_KARA_MAIL) {
+	$token = gfPrepareKaraMail('entry/email_mobile.php');
+	if ($token !== false) {
+		$objPage->tpl_kara_mail_to = MOBILE_KARA_MAIL_ADDRESS_USER . MOBILE_KARA_MAIL_ADDRESS_DELIMITER . 'entry_' . $token . '@' . MOBILE_KARA_MAIL_ADDRESS_DOMAIN;
+	}
+}
+
+$objPage->tpl_name = $objCustomer->getValue('name01');
+$objPage->arrForm = $objFormParam->getFormParamList();
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+function lfInitParam(&$objFormParam) {
+	$objFormParam->addParam('¥á¡¼¥ë¥¢¥É¥ì¥¹', 'email_mobile', MTEXT_LEN, 'a',
+		array('NO_SPTAB', 'EXIST_CHECK', 'MAX_LENGTH_CHECK', 'CHANGE_LOWER', 'EMAIL_CHAR_CHECK', 'MOBILE_EMAIL_CHECK'));
+}
+
+function lfCheckError(&$objFormParam, &$objCustomer) {
+	$arrRet = $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+
+	if (count($objErr->arrErr) > 0) {
+		return $objErr->arrErr;
+	}
+
+	$email_mobile = $objFormParam->getValue('email_mobile');
+	$customer_id = $objCustomer->getValue('customer_id');
+	$objQuery = new SC_Query();
+	$arrRet = $objQuery->select('email, email_mobile, update_date, del_flg', 'dtb_customer', '(email ILIKE ? OR email_mobile ILIKE ?) AND customer_id <> ? ORDER BY del_flg', array($email_mobile, $email_mobile, $customer_id));
+
+	if (count($arrRet) > 0) {
+		if ($arrRet[0]['del_flg'] != '1') {
+			// ²ñ°÷¤Ç¤¢¤ë¾ì¹ç
+			$objErr->arrErr['email_mobile'] .= '¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ç¤¹¡£<br>';
+		} else {
+			// Âà²ñ¤·¤¿²ñ°÷¤Ç¤¢¤ë¾ì¹ç
+			$leave_time = sfDBDatetoTime($arrRet[0]['update_date']);
+			$now_time = time();
+			$pass_time = $now_time - $leave_time;
+			// Âà²ñ¤«¤é²¿»þ´Ö-·Ð²á¤·¤Æ¤¤¤ë¤«È½Äê¤¹¤ë¡£
+			$limit_time = ENTRY_LIMIT_HOUR * 3600;
+			if ($pass_time < $limit_time) {
+				$objErr->arrErr['email_mobile'] .= '¢¨ Âà²ñ¤«¤é°ìÄê´ü´Ö¤Î´Ö¤Ï¡¢Æ±¤¸¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò»ÈÍÑ¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£<br>';
+			}
+		}
+	}
+
+	return $objErr->arrErr;
+}
+
+function lfRegister(&$objFormParam, &$objCustomer)
+{
+	$customer_id = $objCustomer->getValue('customer_id');
+	$email_mobile = $objFormParam->getValue('email_mobile');
+
+	$objQuery = new SC_Query();
+	$objQuery->update('dtb_customer', array('email_mobile' => $email_mobile), 'customer_id = ?', array($customer_id));
+
+	$objCustomer->setValue('email_mobile', $email_mobile);
+}
+?>
Index: /branches/comu/html/mobile/frontparts/bloc/news.php
===================================================================
--- /branches/comu/html/mobile/frontparts/bloc/news.php	(revision 11982)
+++ /branches/comu/html/mobile/frontparts/bloc/news.php	(revision 11982)
@@ -0,0 +1,29 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+class LC_NewsPage {
+	function LC_NewsPage() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'frontparts/bloc/news.tpl';	// ¥á¥¤¥ó
+	}
+}
+
+$objSubPage = new LC_NewsPage();
+$objSubView = new SC_MobileView();
+
+//¿·Ãå¾ðÊó¼èÆÀ
+$objSubPage->arrNews = lfGetNews();
+
+$objSubView->assignobj($objSubPage);
+$objSubView->display($objSubPage->tpl_mainpage);
+//-----------------------------------------------------------------------------------------------------------------------------------
+function lfGetNews(){
+	$conn = new SC_DBConn();
+	$sql = "SELECT *, cast(substring(news_date,1,10) as date) as news_date_disp FROM dtb_news WHERE del_flg = '0' ORDER BY rank DESC";
+	$list_data = $conn->getAll($sql);
+	return $list_data;	
+}
+?>
Index: /branches/comu/html/mobile/frontparts/bloc/category.php
===================================================================
--- /branches/comu/html/mobile/frontparts/bloc/category.php	(revision 11982)
+++ /branches/comu/html/mobile/frontparts/bloc/category.php	(revision 11982)
@@ -0,0 +1,58 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼
+ */
+
+class LC_CatPage {
+	function LC_CatPage() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'frontparts/bloc/category.tpl';	// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+	}
+}
+
+$objSubPage = new LC_CatPage();
+$objSubView = new SC_MobileView();
+
+$objSubPage = lfGetMainCat(true, $objSubPage);
+
+$objSubView->assignobj($objSubPage);
+$objSubView->display($objSubPage->tpl_mainpage);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+// ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤Î¼èÆÀ
+function lfGetMainCat($count_check = false, $objSubPage) {
+	$objQuery = new SC_Query();
+	$col = "*";
+	$from = "dtb_category left join dtb_category_total_count using (category_id)";
+	// ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤È¤½¤ÎÄ¾²¼¤Î¥«¥Æ¥´¥ê¡¼¤ò¼èÆÀ¤¹¤ë¡£
+	$where = 'level <= 2 AND del_flg = 0';
+	// ÅÐÏ¿¾¦ÉÊ¿ô¤Î¥Á¥§¥Ã¥¯
+	if($count_check) {
+		$where .= " AND product_count > 0";
+	}
+	$objQuery->setoption("ORDER BY rank DESC");
+	$arrRet = $objQuery->select($col, $from, $where);
+
+	// ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤òÃê½Ð¤¹¤ë¡£
+	$arrMainCat = array();
+	foreach ($arrRet as $cat) {
+		if ($cat['level'] != 1) {
+			continue;
+		}
+
+		// »Ò¥«¥Æ¥´¥ê¡¼¤ò»ý¤Ä¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
+		$arrChildrenID = sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $cat['category_id']);
+		$cat['has_children'] = count($arrChildrenID) > 0;
+		$arrMainCat[] = $cat;
+	}
+
+	$objSubPage->arrCat = $arrMainCat;
+	return $objSubPage;
+}
+?>
Index: /branches/comu/html/mobile/frontparts/bloc/best5.php
===================================================================
--- /branches/comu/html/mobile/frontparts/bloc/best5.php	(revision 11982)
+++ /branches/comu/html/mobile/frontparts/bloc/best5.php	(revision 11982)
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+class LC_Best5Page {
+	function LC_Best5Page() {
+		/** É¬¤ºÊÑ¹¹¤¹¤ë **/
+		$this->tpl_mainpage = 'frontparts/bloc/best5.tpl';	// ¥á¥¤¥ó
+	}
+}
+
+$objSubPage = new LC_Best5Page();
+$objSubView = new SC_MobileView();
+$objSiteInfo = $objView->objSiteInfo;
+
+// ´ðËÜ¾ðÊó¤òÅÏ¤¹
+$objSiteInfo = new SC_SiteInfo();
+$objSubPage->arrInfo = $objSiteInfo->data;
+
+//¤ª¤¹¤¹¤á¾¦ÉÊÉ½¼¨
+$objSubPage->arrBestProducts = lfGetRanking();
+
+$objSubView->assignobj($objSubPage);
+$objSubView->display($objSubPage->tpl_mainpage);
+//-----------------------------------------------------------------------------------------------------------------------------------
+//¤ª¤¹¤¹¤á¾¦ÉÊ¸¡º÷
+function lfGetRanking(){
+	$objQuery = new SC_Query();
+	
+	$col = "A.*, name, price02_min, price01_min, main_list_image ";
+	$from = "dtb_best_products AS A INNER JOIN vw_products_allclass AS allcls using(product_id)";
+	$where = "status = 1";
+	$order = "rank";
+	$objQuery->setorder($order);
+	
+	$arrBestProducts = $objQuery->select($col, $from, $where);
+		
+	return $arrBestProducts;
+}
+
+?>
Index: /branches/comu/html/mobile/require.php
===================================================================
--- /branches/comu/html/mobile/require.php	(revision 11982)
+++ /branches/comu/html/mobile/require.php	(revision 11982)
@@ -0,0 +1,47 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+$include_dir = realpath(dirname( __FILE__));
+require_once($include_dir . "/../../data/conf/conf.php");
+require_once($include_dir . "/../../data/conf/mobile_conf.php");
+require_once($include_dir . "/../../data/include/module.inc");
+require_once($include_dir . "/../../data/include/mobile.inc");
+require_once($include_dir . "/../../data/lib/glib.php");
+require_once($include_dir . "/../../data/lib/slib.php");
+require_once($include_dir . "/../../data/class/SC_View.php");
+require_once($include_dir . "/../../data/class/SC_DbConn.php");
+require_once($include_dir . "/../../data/class/SC_Session.php");
+require_once($include_dir . "/../../data/class/SC_Query.php");
+require_once($include_dir . "/../../data/class/SC_SelectSql.php");
+require_once($include_dir . "/../../data/class/SC_CheckError.php");
+require_once($include_dir . "/../../data/class/SC_PageNavi.php");
+require_once($include_dir . "/../../data/class/SC_Date.php");
+require_once($include_dir . "/../../data/class/SC_Image.php");
+require_once($include_dir . "/../../data/class/SC_UploadFile.php");
+require_once($include_dir . "/../../data/class/SC_SiteInfo.php");
+require_once($include_dir . "/../../data/class/GC_SendMail.php");
+require_once($include_dir . "/../../data/class/SC_FormParam.php");
+require_once($include_dir . "/../../data/class/SC_CartSession.php");
+require_once($include_dir . "/../../data/class/SC_SiteSession.php");
+require_once($include_dir . "/../../data/class/SC_Customer.php");
+require_once($include_dir . "/../../data/class/SC_Cookie.php");
+require_once($include_dir . "/../../data/class/SC_Page.php");
+require_once($include_dir . "/../../data/class/SC_Pdf.php");
+require_once($include_dir . "/../../data/class/GC_MobileUserAgent.php");
+require_once($include_dir . "/../../data/class/GC_MobileEmoji.php");
+require_once($include_dir . "/../../data/class/GC_MobileImage.php");
+require_once($include_dir . "/../../data/include/page_layout.inc");
+
+// ¥¢¥Ã¥×¥Ç¡¼¥È¤Ç¼èÆÀ¤·¤¿PHP¤òÆÉ¤ß½Ð¤¹
+sfLoadUpdateModule();
+
+// ¥â¥Ð¥¤¥ë¥µ¥¤¥ÈÍÑ¤Î½é´ü½èÍý¤ò¼Â¹Ô¤¹¤ë¡£
+if (!defined('SKIP_MOBILE_INIT')) {
+	sfMobileInit();
+}
+?>
Index: /branches/comu/html/mobile/products/search.php
===================================================================
--- /branches/comu/html/mobile/products/search.php	(revision 11982)
+++ /branches/comu/html/mobile/products/search.php	(revision 11982)
@@ -0,0 +1,32 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¾¦ÉÊ¸¡º÷¥Õ¥©¡¼¥à
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		$this->tpl_mainpage = 'products/search.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¾¦ÉÊ¸¡º÷';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/mobile/products/category_list.php
===================================================================
--- /branches/comu/html/mobile/products/category_list.php	(revision 11982)
+++ /branches/comu/html/mobile/products/category_list.php	(revision 11982)
@@ -0,0 +1,95 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥«¥Æ¥´¥ê¡¼°ìÍ÷
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		$this->tpl_mainpage = 'products/category_list.tpl';			// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title = '¥«¥Æ¥´¥ê°ìÍ÷¥Ú¡¼¥¸';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+// ¥«¥Æ¥´¥ê¡¼¾ðÊó¤ò¼èÆÀ¤¹¤ë¡£
+lfGetCategories(@$_GET['category_id'], true, $objPage);
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+/**
+ * ÁªÂò¤µ¤ì¤¿¥«¥Æ¥´¥ê¡¼¤È¤½¤Î»Ò¥«¥Æ¥´¥ê¡¼¤Î¾ðÊó¤ò¼èÆÀ¤·¡¢
+ * ¥Ú¡¼¥¸¥ª¥Ö¥¸¥§¥¯¥È¤Ë³ÊÇ¼¤¹¤ë¡£
+ *
+ * @param string $category_id ¥«¥Æ¥´¥ê¡¼ID
+ * @param boolean $count_check Í­¸ú¤Ê¾¦ÉÊ¤¬¤Ê¤¤¥«¥Æ¥´¥ê¡¼¤ò½ü¤¯¤«¤É¤¦¤«
+ * @param object &$objPage ¥Ú¡¼¥¸¥ª¥Ö¥¸¥§¥¯¥È
+ * @return void
+ */
+function lfGetCategories($category_id, $count_check = false, &$objPage) {
+	// ¥«¥Æ¥´¥ê¡¼¤ÎÀµ¤·¤¤ID¤ò¼èÆÀ¤¹¤ë¡£
+	$category_id = sfGetCategoryId('', $category_id);
+	if ($category_id == 0) {
+		sfDispSiteError(CATEGORY_NOT_FOUND, "", false, "", true);
+	}
+
+	$arrCategory = null;	// ÁªÂò¤µ¤ì¤¿¥«¥Æ¥´¥ê¡¼
+	$arrChildren = array();	// »Ò¥«¥Æ¥´¥ê¡¼
+
+	$arrAll = sfGetCatTree($category_id, $count_check);
+	foreach ($arrAll as $category) {
+		// ÁªÂò¤µ¤ì¤¿¥«¥Æ¥´¥ê¡¼¤Î¾ì¹ç
+		if ($category['category_id'] == $category_id) {
+			$arrCategory = $category;
+			continue;
+		}
+
+		// ´Ø·¸¤Î¤Ê¤¤¥«¥Æ¥´¥ê¡¼¤Ï¥¹¥­¥Ã¥×¤¹¤ë¡£
+		if ($category['parent_category_id'] != $category_id) {
+			continue;
+		}
+
+		// »Ò¥«¥Æ¥´¥ê¡¼¤Î¾ì¹ç¤Ï¡¢Â¹¥«¥Æ¥´¥ê¡¼¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
+		$arrGrandchildrenID = sfGetUnderChildrenArray($arrAll, 'parent_category_id', 'category_id', $category['category_id']);
+		$category['has_children'] = count($arrGrandchildrenID) > 0;
+		$arrChildren[] = $category;
+	}
+
+	if (!isset($arrCategory)) {
+		sfDispSiteError(CATEGORY_NOT_FOUND, "", false, "", true);
+	}
+
+	// »Ò¥«¥Æ¥´¥ê¡¼¤Î¾¦ÉÊ¿ô¤ò¹ç·×¤¹¤ë¡£
+	$children_product_count = 0;
+	foreach ($arrChildren as $category) {
+		$children_product_count += $category['product_count'];
+	}
+
+	// ÁªÂò¤µ¤ì¤¿¥«¥Æ¥´¥ê¡¼¤ËÄ¾Â°¤Î¾¦ÉÊ¤¬¤¢¤ë¾ì¹ç¤Ï¡¢»Ò¥«¥Æ¥´¥ê¡¼¤ÎÀèÆ¬¤ËÄÉ²Ã¤¹¤ë¡£
+	if ($arrCategory['product_count'] > $children_product_count) {
+		$arrCategory['product_count'] -= $children_product_count;	// »Ò¥«¥Æ¥´¥ê¡¼¤Î¾¦ÉÊ¿ô¤ò½ü¤¯¡£
+		$arrCategory['has_children'] = false;	// ¾¦ÉÊ°ìÍ÷¥Ú¡¼¥¸¤ËÁ«°Ü¤µ¤»¤ë¤¿¤á¡£
+		array_unshift($arrChildren, $arrCategory);
+	}
+
+	// ·ë²Ì¤ò³ÊÇ¼¤¹¤ë¡£
+	$objPage->arrCategory = $arrCategory;
+	$objPage->arrChildren = $arrChildren;
+}
+?>
Index: /branches/comu/html/mobile/products/list.php
===================================================================
--- /branches/comu/html/mobile/products/list.php	(revision 11982)
+++ /branches/comu/html/mobile/products/list.php	(revision 11982)
@@ -0,0 +1,435 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¾¦ÉÊ°ìÍ÷
+ */
+
+require_once('../require.php');
+
+class LC_Page {
+	function LC_Page() {
+		global $arrSTATUS;
+		$this->arrSTATUS = $arrSTATUS;
+		global $arrSTATUS_IMAGE;
+		$this->arrSTATUS_IMAGE = $arrSTATUS_IMAGE;
+		global $arrDELIVERYDATE;
+		$this->arrDELIVERYDATE = $arrDELIVERYDATE;
+		global $arrPRODUCTLISTMAX;
+		$this->arrPRODUCTLISTMAX = $arrPRODUCTLISTMAX;		
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');
+	}
+}
+
+$objPage = new LC_Page();
+$conn = new SC_DBConn();
+
+//É½¼¨·ï¿ô¤ÎÁªÂò
+if(sfIsInt($_REQUEST['disp_number'])) {
+	$objPage->disp_number = $_REQUEST['disp_number'];
+} else {
+	//ºÇ¾®É½¼¨·ï¿ô¤òÁªÂò
+	$objPage->disp_number = current(array_keys($arrPRODUCTLISTMAX));
+}
+
+//É½¼¨½ç½ø¤ÎÊÝÂ¸
+$objPage->orderby = $_REQUEST['orderby'];
+
+// GET¤Î¥«¥Æ¥´¥êID¤ò¸µ¤ËÀµ¤·¤¤¥«¥Æ¥´¥êID¤ò¼èÆÀ¤¹¤ë¡£
+$category_id = sfGetCategoryId("", $_GET['category_id']);
+
+// ¥¿¥¤¥È¥ëÊÔ½¸
+$tpl_subtitle = "";
+$tpl_search_mode = false;
+if($_GET['mode'] == 'search'){
+	$tpl_subtitle = "¸¡º÷·ë²Ì";
+	$tpl_search_mode = true;
+}elseif ($category_id == "" ) {
+	$tpl_subtitle = "Á´¾¦ÉÊ";
+}else{
+	$arrFirstCat = sfGetFirstCat($category_id);
+	$tpl_subtitle = $arrFirstCat['name'];
+}
+
+$objQuery = new SC_Query();
+$count = $objQuery->count("dtb_best_products", "category_id = ?", array($category_id));
+
+// °Ê²¼¤Î¾ò·ï¤ÇBEST¾¦ÉÊ¤òÉ½¼¨¤¹¤ë
+// ¡¦BESTºÇÂç¿ô¤Î¾¦ÉÊ¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¡£
+// ¡¦¥«¥Æ¥´¥êID¤¬¥ë¡¼¥ÈID¤Ç¤¢¤ë¡£
+// ¡¦¸¡º÷¥â¡¼¥É¤Ç¤Ê¤¤¡£
+if(($count >= BEST_MIN) && lfIsRootCategory($category_id) && ($_GET['mode'] != 'search') ) {
+	// ¾¦ÉÊTOP¤ÎÉ½¼¨½èÍý
+	/** É¬¤º»ØÄê¤¹¤ë **/
+	$objPage->tpl_mainpage = "products/list.tpl";		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È	
+	
+	$objPage->arrBestItems = sfGetBestProducts($conn, $category_id);
+	$objPage->BEST_ROOP_MAX = ceil((BEST_MAX-1)/2);
+} else {
+	if ($_GET['mode'] == 'search' && strlen($_GET['category_id']) == 0 ){
+		// ¸¡º÷»þ¤Ëcategory_id¤¬GET¤ËÂ¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢²¾¤ËËä¤á¤¿ID¤ò¶õÇò¤ËÌá¤¹
+		$category_id = '';	
+	}
+	
+	// ¾¦ÉÊ°ìÍ÷¤ÎÉ½¼¨½èÍý
+	$objPage = lfDispProductsList($category_id, $_GET['name'], $objPage->disp_number, $_REQUEST['orderby']);
+	
+	// ¸¡º÷¾ò·ï¤ò²èÌÌ¤ËÉ½¼¨
+	// ¥«¥Æ¥´¥ê¡¼¸¡º÷¾ò·ï
+	if (strlen($_GET['category_id']) == 0) {
+		$arrSearch['category'] = "»ØÄê¤Ê¤·";
+	}else{
+		$arrCat = $conn->getOne("SELECT category_name FROM dtb_category WHERE category_id = ?",array($category_id));
+		$arrSearch['category'] = $arrCat;
+	}
+	
+	// ¾¦ÉÊÌ¾¸¡º÷¾ò·ï
+	if ($_GET['name'] === "") {
+		$arrSearch['name'] = "»ØÄê¤Ê¤·";
+	}else{
+		$arrSearch['name'] = $_GET['name'];
+	}
+}
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "products/list.php");
+
+if($_POST['mode'] == "cart" && $_POST['product_id'] != "") {
+	// ÃÍ¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯
+	if(!sfIsInt($_POST['product_id']) || !sfIsRecord("dtb_products", "product_id", $_POST['product_id'], "del_flg = 0 AND status = 1")) {
+		sfDispSiteError(PRODUCT_NOT_FOUND, "", false, "", true);
+	} else {
+		// ÆþÎÏÃÍ¤ÎÊÑ´¹
+		$objPage->arrErr = lfCheckError($_POST['product_id']);
+		if(count($objPage->arrErr) == 0) {
+			$objCartSess = new SC_CartSession();
+			$classcategory_id = "classcategory_id". $_POST['product_id'];
+			$classcategory_id1 = $_POST[$classcategory_id. '_1'];
+			$classcategory_id2 = $_POST[$classcategory_id. '_2'];
+			$quantity = "quantity". $_POST['product_id'];
+			// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+			if(!$objPage->tpl_classcat_find1[$_POST['product_id']]) {
+				$classcategory_id1 = '0';
+			}
+			// µ¬³Ê2¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+			if(!$objPage->tpl_classcat_find2[$_POST['product_id']]) {
+				$classcategory_id2 = '0';
+			}
+			$objCartSess->setPrevURL($_SERVER['REQUEST_URI']);
+			$objCartSess->addProduct(array($_POST['product_id'], $classcategory_id1, $classcategory_id2), $_POST[$quantity]);
+			header("Location: " . MOBILE_URL_CART_TOP);
+			exit;
+		}
+	}
+}
+
+
+// ¥Ú¡¼¥¸Á÷¤êµ¡Ç½ÍÑ¤ÎURL¤òºîÀ®¤¹¤ë¡£
+$objURL = new Net_URL($_SERVER['PHP_SELF']);
+foreach ($_REQUEST as $key => $value) {
+	if ($key == session_name() || $key == 'pageno') {
+		continue;
+	}
+	$objURL->addQueryString($key, mb_convert_encoding($value, 'SJIS', 'EUC-JP'));
+}
+
+if ($objPage->objNavi->now_page > 1) {
+	$objURL->addQueryString('pageno', $objPage->objNavi->now_page - 1);
+	$objPage->tpl_previous_page = $objURL->path . '?' . $objURL->getQueryString();
+}
+if ($objPage->objNavi->now_page < $objPage->objNavi->max_page) {
+	$objURL->addQueryString('pageno', $objPage->objNavi->now_page + 1);
+	$objPage->tpl_next_page = $objURL->path . '?' . $objURL->getQueryString();
+}
+
+
+$objPage->tpl_subtitle = $tpl_subtitle;
+$objPage->tpl_search_mode = $tpl_search_mode;
+
+// »ÙÊ§ÊýË¡¤Î¼èÆÀ
+$objPage->arrPayment = lfGetPayment();
+// ÆþÎÏ¾ðÊó¤òÅÏ¤¹
+$objPage->arrForm = $_POST;
+
+$objPage->category_id = $category_id;
+$objPage->arrSearch = $arrSearch;
+
+sfCustomDisplay($objPage, true);
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+/* ¥«¥Æ¥´¥êID¤¬¥ë¡¼¥È¤«¤É¤¦¤«¤ÎÈ½Äê */
+function lfIsRootCategory($category_id) {
+	$objQuery = new SC_Query();
+	$level = $objQuery->get("dtb_category", "level", "category_id = ?", array($category_id));
+	if($level == 1) {
+		return true;
+	}
+	return false;
+}
+
+/* ¾¦ÉÊ°ìÍ÷¤ÎÉ½¼¨ */
+function lfDispProductsList($category_id, $name, $disp_num, $orderby) {
+	global $objPage;
+	$objQuery = new SC_Query();	
+	$objPage->tpl_pageno = $_REQUEST['pageno'];
+
+	//É½¼¨·ï¿ô¤Ç¥Æ¥ó¥×¥ì¡¼¥È¤òÀÚ¤êÂØ¤¨¤ë
+	$objPage->tpl_mainpage = "products/list.tpl";		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È		
+
+	//É½¼¨½ç½ø
+	switch($orderby) {
+	//²Á³Ê½ç
+	case 'price':
+		$order = "price02_min ASC";
+		break;
+	//¿·Ãå½ç
+	case 'date':
+		$order = "create_date DESC";
+		break;
+	default:
+		$order = "category_rank DESC, rank DESC";
+		break;
+	}
+	
+	// ¾¦ÉÊ¸¡º÷¾ò·ï¤ÎºîÀ®¡ÊÌ¤ºï½ü¡¢É½¼¨¡Ë
+	$where = "del_flg = 0 AND status = 1 ";
+	// ¥«¥Æ¥´¥ê¤«¤é¤ÎWHEREÊ¸»úÎó¼èÆÀ
+	if ( $category_id ) {
+		$where .= 'AND category_id = ?';
+		$arrval = array($category_id);
+	}
+		
+	// ¾¦ÉÊÌ¾¤òwhereÊ¸¤Ë
+	$name = ereg_replace(",", "", $name);
+	if ( strlen($name) > 0 ){
+		$where .= " AND ( name ILIKE ? OR comment3 ILIKE ?) ";
+		$ret = sfManualEscape($name);		
+		$arrval[] = "%$ret%";
+		$arrval[] = "%$ret%";
+	}
+			
+	// ¹Ô¿ô¤Î¼èÆÀ
+	$linemax = $objQuery->count("vw_products_allclass AS allcls", $where, $arrval);
+	$objPage->tpl_linemax = $linemax;	// ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ
+	
+	// ¥Ú¡¼¥¸Á÷¤ê¤Î¼èÆÀ
+	$objNavi = new SC_PageNavi($_REQUEST['pageno'], $linemax, $disp_num, "fnNaviPage", NAVI_PMAX);
+	
+	$strnavi = $objNavi->strnavi;
+	$strnavi = str_replace('onclick="fnNaviPage', 'onclick="form1.mode.value=\''.'\'; fnNaviPage', $strnavi);
+	$objPage->tpl_strnavi = $strnavi;		// É½¼¨Ê¸»úÎó
+	$startno = $objNavi->start_row;					// ³«»Ï¹Ô
+	
+	// ¼èÆÀÈÏ°Ï¤Î»ØÄê(³«»Ï¹ÔÈÖ¹æ¡¢¹Ô¿ô¤Î¥»¥Ã¥È)
+	$objQuery->setlimitoffset($disp_num, $startno);
+	// É½¼¨½ç½ø
+	$objQuery->setorder($order);
+	// ¸¡º÷·ë²Ì¤Î¼èÆÀ
+	$objPage->arrProducts = $objQuery->select("*", "vw_products_allclass AS allcls", $where, $arrval);
+	
+	// µ¬³ÊÌ¾°ìÍ÷
+	$arrClassName = sfGetIDValueList("dtb_class", "class_id", "name");
+	// µ¬³ÊÊ¬ÎàÌ¾°ìÍ÷
+	$arrClassCatName = sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
+	// ´ë²è¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹ÀßÄê
+	if($disp_num == 15) {
+		for($i = 0; $i < count($objPage->arrProducts); $i++) {
+			$objPage = lfMakeSelect($objPage->arrProducts[$i]['product_id'], $arrClassName, $arrClassCatName);
+			// ¹ØÆþÀ©¸Â¿ô¤ò¼èÆÀ
+			$objPage = lfGetSaleLimit($objPage->arrProducts[$i]);
+		}
+	}
+
+	$objPage->objNavi =& $objNavi;
+	return $objPage;
+}
+
+/* µ¬³Ê¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤ÎºîÀ® */
+function lfMakeSelect($product_id, $arrClassName, $arrClassCatName) {
+	global $objPage;
+	
+	$classcat_find1 = false;
+	$classcat_find2 = false;
+	// ºß¸Ë¤¢¤ê¤Î¾¦ÉÊ¤ÎÍ­Ìµ
+	$stock_find = false;
+	
+	// ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ	
+	$arrProductsClass = lfGetProductsClass($product_id);
+	
+	// µ¬³Ê1¥¯¥é¥¹Ì¾¤Î¼èÆÀ
+	$objPage->tpl_class_name1[$product_id] = $arrClassName[$arrProductsClass[0]['class_id1']];
+	// µ¬³Ê2¥¯¥é¥¹Ì¾¤Î¼èÆÀ
+	$objPage->tpl_class_name2[$product_id] = $arrClassName[$arrProductsClass[0]['class_id2']];
+	
+	// ¤¹¤Ù¤Æ¤ÎÁÈ¤ß¹ç¤ï¤»¿ô	
+	$count = count($arrProductsClass);
+	
+	$classcat_id1 = "";
+	
+	$arrSele = array();
+	$arrList = array();
+	
+	$list_id = 0;
+	$arrList[0] = "\tlist". $product_id. "_0 = new Array('ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤'";
+	$arrVal[0] = "\tval". $product_id. "_0 = new Array(''";
+	
+	for ($i = 0; $i < $count; $i++) {
+		// ºß¸Ë¤Î¥Á¥§¥Ã¥¯
+		if($arrProductsClass[$i]['stock'] <= 0 && $arrProductsClass[$i]['stock_unlimited'] != '1') {
+			continue;
+		}
+		
+		$stock_find = true;
+		
+		// µ¬³Ê1¤Î¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹ÍÑ
+		if($classcat_id1 != $arrProductsClass[$i]['classcategory_id1']){
+			$arrList[$list_id].=");\n";
+			$arrVal[$list_id].=");\n";
+			$classcat_id1 = $arrProductsClass[$i]['classcategory_id1'];
+			$arrSele[$classcat_id1] = $arrClassCatName[$classcat_id1];
+			$list_id++;
+		}
+		
+		// µ¬³Ê2¤Î¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹ÍÑ
+		$classcat_id2 = $arrProductsClass[$i]['classcategory_id2'];
+		
+		// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹É½¼¨ÃÍ
+		if($arrList[$list_id] == "") {
+			$arrList[$list_id] = "\tlist". $product_id. "_". $list_id. " = new Array('ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤', '". $arrClassCatName[$classcat_id2]. "'";
+		} else {
+			$arrList[$list_id].= ", '".$arrClassCatName[$classcat_id2]."'";
+		}
+		
+		// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹POSTÃÍ
+		if($arrVal[$list_id] == "") {
+			$arrVal[$list_id] = "\tval". $product_id. "_". $list_id. " = new Array('', '". $classcat_id2. "'";
+		} else {
+			$arrVal[$list_id].= ", '".$classcat_id2."'";
+		}
+	}	
+	
+	$arrList[$list_id].=");\n";
+	$arrVal[$list_id].=");\n";
+		
+	// µ¬³Ê1
+	$objPage->arrClassCat1[$product_id] = $arrSele;
+	
+	$lists = "\tlists".$product_id. " = new Array(";
+	$no = 0;
+	foreach($arrList as $val) {
+		$objPage->tpl_javascript.= $val;
+		if ($no != 0) {
+			$lists.= ",list". $product_id. "_". $no;
+		} else {
+			$lists.= "list". $product_id. "_". $no;
+		}
+		$no++;
+	}
+	$objPage->tpl_javascript.= $lists.");\n";
+	
+	$vals = "\tvals".$product_id. " = new Array(";
+	$no = 0;
+	foreach($arrVal as $val) {
+		$objPage->tpl_javascript.= $val;
+		if ($no != 0) {
+			$vals.= ",val". $product_id. "_". $no;
+		} else {
+			$vals.= "val". $product_id. "_". $no;
+		}
+		$no++;
+	}
+	$objPage->tpl_javascript.= $vals.");\n";
+	
+	// ÁªÂò¤µ¤ì¤Æ¤¤¤ëµ¬³Ê2ID
+	$classcategory_id = "classcategory_id". $product_id;
+	$objPage->tpl_onload .= "lnSetSelect('".$classcategory_id."_1','".$classcategory_id."_2','".$product_id."','".$_POST[$classcategory_id."_2"]."'); ";
+
+	// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë
+	if($arrProductsClass[0]['classcategory_id1'] != '0') {
+		$classcat_find1 = true;
+	}
+	
+	// µ¬³Ê2¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë
+	if($arrProductsClass[0]['classcategory_id2'] != '0') {
+		$classcat_find2 = true;
+	}
+		
+	$objPage->tpl_classcat_find1[$product_id] = $classcat_find1;
+	$objPage->tpl_classcat_find2[$product_id] = $classcat_find2;
+	$objPage->tpl_stock_find[$product_id] = $stock_find;
+		
+	return $objPage;
+}
+/* ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ */
+function lfGetProductsClass($product_id) {
+	$arrRet = array();
+	if(sfIsInt($product_id)) {
+		// ¾¦ÉÊµ¬³Ê¼èÆÀ
+		$objQuery = new SC_Query();
+		$col = "product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited";
+		$table = "vw_product_class AS prdcls";
+		$where = "product_id = ?";
+		$objQuery->setorder("rank1 DESC, rank2 DESC");
+		$arrRet = $objQuery->select($col, $table, $where, array($product_id));
+	}
+	return $arrRet;
+}
+
+/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
+function lfCheckError($id) {
+	global $objPage;
+	
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$objErr = new SC_CheckError();
+	
+	$classcategory_id1 = "classcategory_id". $id. "_1";
+	$classcategory_id2 = "classcategory_id". $id. "_2";
+	$quantity = "quantity". $id;
+	// Ê£¿ô¹àÌÜ¥Á¥§¥Ã¥¯
+	if ($objPage->tpl_classcat_find1[$id]) {
+		$objErr->doFunc(array("µ¬³Ê1", $classcategory_id1, INT_LEN), array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+	}
+	if ($objPage->tpl_classcat_find2[$id]) {
+		$objErr->doFunc(array("µ¬³Ê2", $classcategory_id2, INT_LEN), array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+	}
+	$objErr->doFunc(array("¸Ä¿ô", $quantity, INT_LEN), array("EXIST_CHECK", "ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+			
+	return $objErr->arrErr;
+}
+
+// ¹ØÆþÀ©¸Â¿ô¤ÎÀßÄê
+function lfGetSaleLimit($product) {
+	global $objPage;
+	//ºß¸Ë¤¬Ìµ¸Â¤Þ¤¿¤Ï¹ØÆþÀ©¸ÂÃÍ¤¬ÀßÄêÃÍ¤è¤êÂç¤­¤¤¾ì¹ç
+	if($product['sale_unlimited'] == 1 || $product['sale_limit'] > SALE_LIMIT_MAX) {
+		$objPage->tpl_sale_limit[$product['product_id']] = SALE_LIMIT_MAX;
+	} else {
+		$objPage->tpl_sale_limit[$product['product_id']] = $product['sale_limit'];
+	}
+	
+	return $objPage;
+}
+
+//»ÙÊ§ÊýË¡¤Î¼èÆÀ
+//payment_id	1:Âå¶â°ú´¹¡¡2:¶ä¹Ô¿¶¤ê¹þ¤ß¡¡3:¸½¶â½ñÎ±
+function lfGetPayment() {
+	$objQuery = new SC_Query;
+	$col = "payment_id, rule, payment_method";
+	$from = "dtb_payment";
+	$where = "del_flg = 0";
+	$order = "payment_id";
+	$objQuery->setorder($order);
+	$arrRet = $objQuery->select($col, $from, $where);
+	return $arrRet;
+}
+
+?>
Index: /branches/comu/html/mobile/products/detail.php
===================================================================
--- /branches/comu/html/mobile/products/detail.php	(revision 11982)
+++ /branches/comu/html/mobile/products/detail.php	(revision 11982)
@@ -0,0 +1,488 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ */
+require_once("../require.php");
+require_once(DATA_PATH . "include/page_layout.inc");
+
+class LC_Page {
+	function LC_Page() {
+		/** É¬¤º»ØÄê¤¹¤ë **/
+		global $arrSTATUS;
+		$this->arrSTATUS = $arrSTATUS;
+		global $arrSTATUS_IMAGE;
+		$this->arrSTATUS_IMAGE = $arrSTATUS_IMAGE;
+		global $arrDELIVERYDATE;
+		$this->arrDELIVERYDATE = $arrDELIVERYDATE;
+		global $arrRECOMMEND;
+		$this->arrRECOMMEND = $arrRECOMMEND;
+		
+		$this->tpl_mainpage="products/detail.tpl";
+		
+		/*
+		 session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
+		 ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìÉ½¼¨¤òÍÞÀ©¤¹¤ë¡£
+		 private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
+		*/
+		session_cache_limiter('private-no-expire');
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objCustomer = new SC_Customer();
+$objQuery = new SC_Query();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "products/detail.php");
+
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ¥Õ¥¡¥¤¥ë´ÉÍý¥¯¥é¥¹
+$objUpFile = new SC_UploadFile(IMAGE_TEMP_DIR, IMAGE_SAVE_DIR);
+// ¥Õ¥¡¥¤¥ë¾ðÊó¤Î½é´ü²½
+lfInitFile();
+
+// ´ÉÍý¥Ú¡¼¥¸¤«¤é¤Î³ÎÇ§¤Î¾ì¹ç¤Ï¡¢Èó¸ø³«¤Î¾¦ÉÊ¤âÉ½¼¨¤¹¤ë¡£
+if($_GET['admin'] == 'on') {
+	$where = "del_flg = 0";
+} else {
+	$where = "del_flg = 0 AND status = 1";
+}
+
+if($_POST['mode'] != "") {
+	$tmp_id = $_POST['product_id'];
+} else {
+	$tmp_id = $_GET['product_id'];
+}
+
+// ÃÍ¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯
+if(!sfIsInt($_GET['product_id']) || !sfIsRecord("dtb_products", "product_id", $tmp_id, $where)) {
+	sfDispSiteError(PRODUCT_NOT_FOUND, "", false, "", true);
+}
+// ¥í¥°¥¤¥óÈ½Äê
+if($objCustomer->isLoginSuccess()) {
+	//¤ªµ¤¤ËÆþ¤ê¥Ü¥¿¥óÉ½¼¨
+	$objPage->tpl_login = true;
+
+/* ±ÜÍ÷¥í¥°µ¡Ç½¤Ï¸½ºßÌ¤»ÈÍÑ
+	
+	$table = "dtb_customer_reading";
+	$where = "customer_id = ? ";
+	$arrval[] = $objCustomer->getValue('customer_id');
+	//¸ÜµÒ¤Î±ÜÍ÷¾¦ÉÊ¿ô
+	$rpcnt = $objQuery->count($table, $where, $arrval);
+
+	//±ÜÍ÷¿ô¤¬ÀßÄê¿ô°Ê²¼
+	if ($rpcnt < CUSTOMER_READING_MAX){
+		//±ÜÍ÷ÍúÎò¤Ë¿·µ¬ÄÉ²Ã
+		lfRegistReadingData($tmp_id, $objCustomer->getValue('customer_id'));
+	} else {
+		//±ÜÍ÷ÍúÎò¤ÎÃæ¤Ç°ìÈÖ¸Å¤¤¤â¤Î¤òºï½ü¤·¤Æ¿·µ¬ÄÉ²Ã
+		$oldsql = "SELECT MIN(update_date) FROM ".$table." WHERE customer_id = ?";
+		$old = $objQuery->getone($oldsql, array($objCustomer->getValue("customer_id")));
+		$where = "customer_id = ? AND update_date = ? ";
+		$arrval = array($objCustomer->getValue("customer_id"), $old);
+		//ºï½ü
+		$objQuery->delete($table, $where, $arrval);
+		//ÄÉ²Ã
+		lfRegistReadingData($tmp_id, $objCustomer->getValue('customer_id'));
+	}
+*/
+}
+
+
+// µ¬³ÊÁªÂò¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤ÎºîÀ®
+$objPage = lfMakeSelect($objPage, $tmp_id);
+
+// ¾¦ÉÊID¤òFORMÆâ¤ËÊÝ»ý¤¹¤ë¡£
+$objPage->tpl_product_id = $tmp_id;
+
+switch($_POST['mode']) {
+case 'select':
+	// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if($objPage->tpl_classcat_find1) {
+		// template¤ÎÊÑ¹¹
+		$objPage->tpl_mainpage = "products/select_find1.tpl";
+		break;
+	}
+
+case 'select2':
+	$objPage->arrErr = lfCheckError();
+
+	// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if($objPage->tpl_classcat_find1 and $objPage->arrErr['classcategory_id1']) {
+		// template¤ÎÊÑ¹¹
+		$objPage->tpl_mainpage = "products/select_find1.tpl";
+		break;
+	}
+
+	// µ¬³Ê2¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if($objPage->tpl_classcat_find2) {
+		$objPage->arrErr = array();
+
+		$objPage->tpl_mainpage = "products/select_find2.tpl";
+		break;
+	}
+
+case 'selectItem':
+	$objPage->arrErr = lfCheckError();
+
+	// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if($objPage->tpl_classcat_find2 and $objPage->arrErr['classcategory_id2']) {
+		// template¤ÎÊÑ¹¹
+		$objPage->tpl_mainpage = "products/select_find2.tpl";
+		break;
+	}
+	// ¾¦ÉÊ¿ô¤ÎÁªÂò¤ò¹Ô¤¦
+	$objPage->tpl_mainpage = "products/select_item.tpl";
+	break;
+
+case 'cart':
+	// ÆþÎÏÃÍ¤ÎÊÑ´¹
+	$objFormParam->convParam();
+	$objPage->arrErr = lfCheckError();
+	if(count($objPage->arrErr) == 0) {
+		$objCartSess = new SC_CartSession();
+		$classcategory_id1 = $_POST['classcategory_id1'];
+		$classcategory_id2 = $_POST['classcategory_id2'];
+				
+		// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+		if(!$objPage->tpl_classcat_find1) {
+			$classcategory_id1 = '0';
+		}
+		
+		// µ¬³Ê2¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+		if(!$objPage->tpl_classcat_find2) {
+			$classcategory_id2 = '0';
+		}
+		
+		$objCartSess->setPrevURL($_SERVER['REQUEST_URI']);
+		$objCartSess->addProduct(array($_POST['product_id'], $classcategory_id1, $classcategory_id2), $objFormParam->getValue('quantity'));
+
+		header("Location: " . gfAddSessionId(MOBILE_URL_CART_TOP));
+
+		exit;
+	}
+	break;
+		
+default:
+	break;
+}
+
+$objQuery = new SC_Query();
+// DB¤«¤é¾¦ÉÊ¾ðÊó¤ò¼èÆÀ¤¹¤ë¡£
+$arrRet = $objQuery->select("*", "vw_products_allclass_detail AS alldtl", "product_id = ?", array($tmp_id));
+$objPage->arrProduct = $arrRet[0];
+
+// ¾¦ÉÊ¥³¡¼¥É¤Î¼èÆÀ
+$code_sql = "SELECT product_code FROM dtb_products_class AS prdcls WHERE prdcls.product_id = ? GROUP BY product_code ORDER BY product_code";
+$arrProductCode = $objQuery->getall($code_sql, array($tmp_id));
+$arrProductCode = sfswaparray($arrProductCode);
+$objPage->arrProductCode = $arrProductCode["product_code"];
+
+// ¹ØÆþÀ©¸Â¿ô¤ò¼èÆÀ
+if($objPage->arrProduct['sale_unlimited'] == 1 || $objPage->arrProduct['sale_limit'] > SALE_LIMIT_MAX) {
+  $objPage->tpl_sale_limit = SALE_LIMIT_MAX;
+} else {
+  $objPage->tpl_sale_limit = $objPage->arrProduct['sale_limit'];
+}
+
+// ¥µ¥Ö¥¿¥¤¥È¥ë¤ò¼èÆÀ
+$arrFirstCat = sfGetFirstCat($arrRet[0]['category_id']);
+$tpl_subtitle = $arrFirstCat['name'];
+$objPage->tpl_subtitle = $tpl_subtitle;
+
+// DB¤«¤é¤Î¥Ç¡¼¥¿¤ò°ú¤­·Ñ¤°
+$objUpFile->setDBFileList($objPage->arrProduct);
+// ¥Õ¥¡¥¤¥ëÉ½¼¨ÍÑÇÛÎó¤òÅÏ¤¹
+$objPage->arrFile = $objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL, true);
+// »ÙÊ§ÊýË¡¤Î¼èÆÀ
+$objPage->arrPayment = lfGetPayment();
+// ÆþÎÏ¾ðÊó¤òÅÏ¤¹
+$objPage->arrForm = $objFormParam->getFormParamList();
+//¥ì¥Ó¥å¡¼¾ðÊó¤Î¼èÆÀ
+$objPage->arrReview = lfGetReviewData($tmp_id);
+// ¥¿¥¤¥È¥ë¤Ë¾¦ÉÊÌ¾¤òÆþ¤ì¤ë
+$objPage->tpl_title = "¾¦ÉÊ¾ÜºÙ ". $objPage->arrProduct["name"];
+//¥ª¥¹¥¹¥á¾¦ÉÊ¾ðÊóÉ½¼¨
+$objPage->arrRecommend = lfPreGetRecommendProducts($tmp_id);
+//¤³¤Î¾¦ÉÊ¤òÇã¤Ã¤¿¿Í¤Ï¤³¤ó¤Ê¾¦ÉÊ¤âÇã¤Ã¤Æ¤¤¤Þ¤¹
+$objPage->arrRelateProducts = lfGetRelateProducts($tmp_id);
+
+// ³ÈÂç²èÁü¤Î¥¦¥£¥ó¥É¥¦¥µ¥¤¥º¤ò¥»¥Ã¥È
+list($large_width, $large_height) = getimagesize(IMAGE_SAVE_DIR . basename($objPage->arrFile["main_large_image"]["filepath"]));
+$objPage->tpl_large_width = $large_width + 60;
+$objPage->tpl_large_height = $large_height + 80;
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//-----------------------------------------------------------------------------------------------------------------------------------
+/* ¥Õ¥¡¥¤¥ë¾ðÊó¤Î½é´ü²½ */
+function lfInitFile() {
+	global $objUpFile;
+	$objUpFile->addFile("°ìÍ÷-¥á¥¤¥ó²èÁü", 'main_list_image', array('jpg','gif'),IMAGE_SIZE, true, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
+	$objUpFile->addFile("¾ÜºÙ-¥á¥¤¥ó²èÁü", 'main_image', array('jpg'), IMAGE_SIZE, true, NORMAL_IMAGE_WIDTH, NORMAL_IMAGE_HEIGHT);
+	$objUpFile->addFile("¾ÜºÙ-¥á¥¤¥ó³ÈÂç²èÁü", 'main_large_image', array('jpg'), IMAGE_SIZE, false, LARGE_IMAGE_HEIGHT, LARGE_IMAGE_HEIGHT);
+	for ($cnt = 1; $cnt <= PRODUCTSUB_MAX; $cnt++) {
+		$objUpFile->addFile("¾ÜºÙ-¥µ¥Ö²èÁü$cnt", "sub_image$cnt", array('jpg'), IMAGE_SIZE, false, NORMAL_SUBIMAGE_HEIGHT, NORMAL_SUBIMAGE_HEIGHT);	
+		$objUpFile->addFile("¾ÜºÙ-¥µ¥Ö³ÈÂç²èÁü$cnt", "sub_large_image$cnt", array('jpg'), IMAGE_SIZE, false, LARGE_SUBIMAGE_HEIGHT, LARGE_SUBIMAGE_HEIGHT);
+	}
+	$objUpFile->addFile("¾¦ÉÊÈæ³Ó²èÁü", 'file1', array('jpg'), IMAGE_SIZE, false, NORMAL_IMAGE_HEIGHT, NORMAL_IMAGE_HEIGHT);
+	$objUpFile->addFile("¾¦ÉÊ¾ÜºÙ¥Õ¥¡¥¤¥ë", 'file2', array('pdf'), PDF_SIZE, false, 0, 0, false);
+}
+
+/* µ¬³ÊÁªÂò¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤ÎºîÀ® */
+function lfMakeSelect($objPage, $product_id) {
+	global $objPage;
+	$classcat_find1 = false;
+	$classcat_find2 = false;
+	// ºß¸Ë¤¢¤ê¤Î¾¦ÉÊ¤ÎÍ­Ìµ
+	$stock_find = false;
+	
+	// µ¬³ÊÌ¾°ìÍ÷
+	$arrClassName = sfGetIDValueList("dtb_class", "class_id", "name");
+	// µ¬³ÊÊ¬ÎàÌ¾°ìÍ÷
+	$arrClassCatName = sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
+	// ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ	
+	$arrProductsClass = lfGetProductsClass($product_id);
+	
+	// µ¬³Ê1¥¯¥é¥¹Ì¾¤Î¼èÆÀ
+	$objPage->tpl_class_name1 = $arrClassName[$arrProductsClass[0]['class_id1']];
+	// µ¬³Ê2¥¯¥é¥¹Ì¾¤Î¼èÆÀ
+	$objPage->tpl_class_name2 = $arrClassName[$arrProductsClass[0]['class_id2']];
+	
+	// ¤¹¤Ù¤Æ¤ÎÁÈ¤ß¹ç¤ï¤»¿ô	
+	$count = count($arrProductsClass);
+	
+	$classcat_id1 = "";
+	
+	$arrSele1 = array();
+	$arrSele2 = array();
+	$arrList = array();
+	
+	$list_id = 0;
+	$arrList[0] = "\tlist0 = new Array('ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤'";
+	$arrVal[0] = "\tval0 = new Array(''";
+	
+	for ($i = 0; $i < $count; $i++) {
+		// ºß¸Ë¤Î¥Á¥§¥Ã¥¯
+		if($arrProductsClass[$i]['stock'] <= 0 && $arrProductsClass[$i]['stock_unlimited'] != '1') {
+			continue;
+		}
+		
+		$stock_find = true;
+		
+		// µ¬³Ê1¤Î¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹ÍÑ
+		if($classcat_id1 != $arrProductsClass[$i]['classcategory_id1']){
+			$arrList[$list_id].=");\n";
+			$arrVal[$list_id].=");\n";
+			$classcat_id1 = $arrProductsClass[$i]['classcategory_id1'];
+			$arrSele1[$classcat_id1] = $arrClassCatName[$classcat_id1];
+		}
+
+		// µ¬³Ê2¤Î¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹ÍÑ
+		if($arrProductsClass[$i]['classcategory_id1'] == $_POST['classcategory_id1'] and $classcat_id2 != $arrProductsClass[$i]['classcategory_id2']) {
+			$classcat_id2 = $arrProductsClass[$i]['classcategory_id2'];
+			$arrSele2[$classcat_id2] = $arrClassCatName[$classcat_id2];
+		}
+
+		$list_id++;
+
+		// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹É½¼¨ÃÍ
+		if($arrList[$list_id] == "") {
+			$arrList[$list_id] = "\tlist".$list_id." = new Array('ÁªÂò¤·¤Æ¤¯¤À¤µ¤¤', '".$arrClassCatName[$classcat_id2]."'";
+		} else {
+			$arrList[$list_id].= ", '".$arrClassCatName[$classcat_id2]."'";
+		}
+		
+		// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹POSTÃÍ
+		if($arrVal[$list_id] == "") {
+			$arrVal[$list_id] = "\tval".$list_id." = new Array('', '".$classcat_id2."'";
+		} else {
+			$arrVal[$list_id].= ", '".$classcat_id2."'";
+		}
+	}	
+	
+	//$arrList[$list_id].=");\n";
+	$arrVal[$list_id].=");\n";
+		
+	// µ¬³Ê1
+	$objPage->arrClassCat1 = $arrSele1;
+	$objPage->arrClassCat2 = $arrSele2;
+	
+	//$lists = "\tlists = new Array(";
+	//$no = 0;
+	
+	//foreach($arrList as $val) {
+	//	$objPage->tpl_javascript.= $val;
+	//	if ($no != 0) {
+	//		$lists.= ",list".$no;
+	//	} else {
+	//		$lists.= "list".$no;
+	//	}
+	//	$no++;
+	//}
+	//$objPage->tpl_javascript.=$lists.");\n";
+	
+	$vals = "\tvals = new Array(";
+	$no = 0;
+	
+	//foreach($arrVal as $val) {
+	//	$objPage->tpl_javascript.= $val;
+	//	if ($no != 0) {
+	//		$vals.= ",val".$no;
+	//	} else {
+	//		$vals.= "val".$no;
+	//	}
+	//	$no++;
+	//}
+	//$objPage->tpl_javascript.=$vals.");\n";
+	
+	// ÁªÂò¤µ¤ì¤Æ¤¤¤ëµ¬³Ê2ID
+	$objPage->tpl_onload = "lnSetSelect('form1', 'classcategory_id1', 'classcategory_id2', '" . $_POST['classcategory_id2'] . "');";
+
+	// µ¬³Ê1¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë
+	if($arrProductsClass[0]['classcategory_id1'] != '0') {
+		$classcat_find1 = true;
+	}
+	
+	// µ¬³Ê2¤¬ÀßÄê¤µ¤ì¤Æ¤¤¤ë
+	if($arrProductsClass[0]['classcategory_id2'] != '0') {
+		$classcat_find2 = true;
+	}
+		
+	$objPage->tpl_classcat_find1 = $classcat_find1;
+	$objPage->tpl_classcat_find2 = $classcat_find2;
+	$objPage->tpl_stock_find = $stock_find;
+		
+	return $objPage;
+}
+
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam() {
+	global $objFormParam;
+
+	$objFormParam->addParam("µ¬³Ê1", "classcategory_id1", INT_LEN, "n", array("NUM_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("µ¬³Ê2", "classcategory_id2", INT_LEN, "n", array("NUM_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¸Ä¿ô", "quantity", INT_LEN, "n", array("EXIST_CHECK", "ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
+}
+
+/* ¾¦ÉÊµ¬³Ê¾ðÊó¤Î¼èÆÀ */
+function lfGetProductsClass($product_id) {
+	$arrRet = array();
+	if(sfIsInt($product_id)) {
+		// ¾¦ÉÊµ¬³Ê¼èÆÀ
+		$objQuery = new SC_Query();
+		$col = "product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited";
+		$table = "vw_product_class AS prdcls";
+		$where = "product_id = ?";
+		$objQuery->setorder("rank1 DESC, rank2 DESC");
+		$arrRet = $objQuery->select($col, $table, $where, array($product_id));
+	}
+	return $arrRet;
+}
+
+/* ÅÐÏ¿ºÑ¤ß¥ª¥¹¥¹¥á¾¦ÉÊ¤ÎÆÉ¤ß¹þ¤ß */
+function lfPreGetRecommendProducts($product_id) {
+	$objQuery = new SC_Query();
+	$objQuery->setorder("rank DESC");
+	$arrRet = $objQuery->select("recommend_product_id, comment", "dtb_recommend_products", "product_id = ?", array($product_id));
+	$max = count($arrRet);
+	$no = 0;
+	for($i = 0; $i < $max; $i++) {
+		$where = "del_flg = 0 AND product_id = ? AND status = 1";
+		$arrProductInfo = $objQuery->select("main_list_image, price02_min, price02_max, price01_min, price01_max, name, point_rate", "vw_products_allclass  AS allcls", $where, array($arrRet[$i]['recommend_product_id'])); 
+				
+		if(count($arrProductInfo) > 0) {
+			$arrRecommend[$no] = $arrProductInfo[0];
+			$arrRecommend[$no]['product_id'] = $arrRet[$i]['recommend_product_id'];
+			$arrRecommend[$no]['comment'] = $arrRet[$i]['comment'];
+			$no++;
+		}	
+	}
+	return $arrRecommend;
+}
+
+/* ÆþÎÏÆâÍÆ¤Î¥Á¥§¥Ã¥¯ */
+function lfCheckError() {
+	global $objFormParam;
+	global $objPage;
+	// ÆþÎÏ¥Ç¡¼¥¿¤òÅÏ¤¹¡£
+	$arrRet =  $objFormParam->getHashArray();
+	$objErr = new SC_CheckError($arrRet);
+	$objErr->arrErr = $objFormParam->checkError();
+		
+	// Ê£¿ô¹àÌÜ¥Á¥§¥Ã¥¯
+	if ($objPage->tpl_classcat_find1) {
+		$objErr->doFunc(array("µ¬³Ê1", "classcategory_id1"), array("EXIST_CHECK"));
+	}
+	if ($objPage->tpl_classcat_find2) {
+		$objErr->doFunc(array("µ¬³Ê2", "classcategory_id2"), array("EXIST_CHECK"));
+	}
+
+	return $objErr->arrErr;
+}
+
+//±ÜÍ÷ÍúÎò¿·µ¬ÅÐÏ¿
+function lfRegistReadingData($tmp_id, $customer_id){
+	$objQuery = new SC_Query;
+	$sqlval['customer_id'] = $customer_id;
+	$sqlval['reading_product_id'] = $tmp_id;
+	$sqlval['create_date'] = 'NOW()';
+	$sqlval['update_date'] = 'NOW()';
+	$objQuery->insert("dtb_customer_reading", $sqlval);
+}
+
+//¤³¤Î¾¦ÉÊ¤òÇã¤Ã¤¿¿Í¤Ï¤³¤ó¤Ê¾¦ÉÊ¤âÇã¤Ã¤Æ¤¤¤Þ¤¹
+function lfGetRelateProducts($tmp_id) {
+	$objQuery = new SC_Query;
+	//¼«Æ°Ãê½Ð
+	$objQuery->setorder("random()");
+	//É½¼¨·ï¿ô¤ÎÀ©¸Â
+	$objQuery->setlimit(RELATED_PRODUCTS_MAX);
+	//¸¡º÷¾ò·ï
+	$col = "name, main_list_image, price01_min, price02_min, price01_max, price02_max, point_rate";
+	$from = "vw_products_allclass AS allcls ";
+	$where = "del_flg = 0 AND status = 1 AND (stock_max <> 0 OR stock_max IS NULL) AND product_id = ? ";
+	$arrval[] = $tmp_id;
+	//·ë²Ì¤Î¼èÆÀ
+	$arrProducts = $objQuery->select($col, $from, $where, $arrval);
+	
+	return $arrProducts;
+}
+
+//¾¦ÉÊ¤´¤È¤Î¥ì¥Ó¥å¡¼¾ðÊó¤ò¼èÆÀ¤¹¤ë
+function lfGetReviewData($id) {
+	$objQuery = new SC_Query;
+	//¾¦ÉÊ¤´¤È¤Î¥ì¥Ó¥å¡¼¾ðÊó¤ò¼èÆÀ¤¹¤ë
+	$col = "create_date, reviewer_url, reviewer_name, recommend_level, title, comment";
+	$from = "dtb_review";
+	$where = "del_flg = 0 AND status = 1 AND product_id = ? ";
+	$arrval[] = $id;
+	$arrReview = $objQuery->select($col, $from, $where, $arrval);
+	return $arrReview; 
+}
+
+//»ÙÊ§ÊýË¡¤Î¼èÆÀ
+//payment_id	1:¥¯¥ì¥¸¥Ã¥È¡¡2:¥·¥ç¥Ã¥Ô¥ó¥°¥í¡¼¥ó	
+function lfGetPayment() {
+	$objQuery = new SC_Query;
+	$col = "payment_id, rule, payment_method";
+	$from = "dtb_payment";
+	$where = "del_flg = 0";
+	$order = "payment_id";
+	$objQuery->setorder($order);
+	$arrRet = $objQuery->select($col, $from, $where);
+	return $arrRet;
+}
+?>
Index: /branches/comu/html/mobile/.htaccess
===================================================================
--- /branches/comu/html/mobile/.htaccess	(revision 11982)
+++ /branches/comu/html/mobile/.htaccess	(revision 11982)
@@ -0,0 +1,5 @@
+php_flag mbstring.encoding_translation 0
+php_value output_handler null
+php_value variables_order EGPS
+php_flag session.auto_start 0
+php_flag session.use_trans_sid 1
Index: /branches/comu/html/mobile/mypage/index.php
===================================================================
--- /branches/comu/html/mobile/mypage/index.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/index.php	(revision 11982)
@@ -0,0 +1,105 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * MyPage
+ */
+
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page() {
+		$this->tpl_mainpage = 'mypage/index.tpl';
+		$this->tpl_title = 'MY¥Ú¡¼¥¸/¹ØÆþÍúÎò°ìÍ÷';
+		session_cache_limiter('private-no-expire');
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objQuery = new SC_Query();
+$objCustomer = new SC_Customer();
+// ¥¯¥Ã¥­¡¼´ÉÍý¥¯¥é¥¹
+$objCookie = new SC_Cookie(COOKIE_EXPIRE);
+// ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹
+$objFormParam = new SC_FormParam();
+// ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
+lfInitParam();
+// POSTÃÍ¤Î¼èÆÀ
+$objFormParam->setParam($_POST);
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
+
+// ·ÈÂÓÃ¼ËöID¤¬°ìÃ×¤¹¤ë²ñ°÷¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£
+$objPage->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId();
+
+// ¥í¥°¥¤¥ó½èÍý
+if($_POST['mode'] == 'login') {
+	$objFormParam->toLower('login_email');
+	$arrErr = $objFormParam->checkError();
+	$arrForm =  $objFormParam->getHashArray();
+	
+	// ¥¯¥Ã¥­¡¼ÊÝÂ¸È½Äê
+	if ($arrForm['login_memory'] == "1" && $arrForm['login_email'] != "") {
+		$objCookie->setCookie('login_email', $_POST['login_email']);
+	} else {
+		$objCookie->setCookie('login_email', '');
+	}
+
+	if (count($arrErr) == 0){
+		if($objCustomer->getCustomerDataFromMobilePhoneIdPass($arrForm['login_pass']) ||
+		   $objCustomer->getCustomerDataFromEmailPass($arrForm['login_pass'], $arrForm['login_email'], true)) {
+			// ¥í¥°¥¤¥ó¤¬À®¸ù¤·¤¿¾ì¹ç¤Ï·ÈÂÓÃ¼ËöID¤òÊÝÂ¸¤¹¤ë¡£
+			$objCustomer->updateMobilePhoneId();
+
+			// ·ÈÂÓ¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¥³¥Ô¡¼¤¹¤ë¡£
+			$objCustomer->updateEmailMobile();
+
+			// ·ÈÂÓ¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
+			if (!$objCustomer->hasValue('email_mobile')) {
+				header('Location: ' . gfAddSessionId('../entry/email_mobile.php'));
+				exit;
+			}
+		} else {
+			$objQuery = new SC_Query;
+			$where = "email = ? AND status = 1 AND del_flg = 0";
+			$ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email']));
+
+			if($ret > 0) {
+				sfDispSiteError(TEMP_LOGIN_ERROR, "", false, "", true);
+			} else {
+				sfDispSiteError(SITE_LOGIN_ERROR, "", false, "", true);
+			}
+		}
+	}
+}
+
+
+// ¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
+if(!$objCustomer->isLoginSuccess()) {
+	$objPage->tpl_mainpage = 'mypage/login.tpl';
+	$objView->assignArray($objFormParam->getHashArray());
+	$objView->assignArray(array("arrErr" => $arrErr));
+}else {
+	//¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóÉ½¼¨ÍÑ
+	$objPage->CustomerName1 = $objCustomer->getvalue('name01');
+	$objPage->CustomerName2 = $objCustomer->getvalue('name02');
+}
+
+$objView->assignobj($objPage);				//$objpageÆâ¤ÎÁ´¤Æ¤Î¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤òsmarty¤Ë³ÊÇ¼
+$objView->display(SITE_FRAME);				//¥Ñ¥¹¤È¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤Î¸Æ¤Ó½Ð¤·¡¢¼Â¹Ô
+
+//-------------------------------------------------------------------------------------------------------------------------
+/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */
+function lfInitParam() {
+	global $objFormParam;
+	$objFormParam->addParam("µ­²±¤¹¤ë", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
+	$objFormParam->addParam("¥á¡¼¥ë¥¢¥É¥ì¥¹", "login_email", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	$objFormParam->addParam("¥Ñ¥¹¥ï¡¼¥É", "login_pass", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+}
+?>
Index: /branches/comu/html/mobile/mypage/refusal_complete.php
===================================================================
--- /branches/comu/html/mobile/mypage/refusal_complete.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/refusal_complete.php	(revision 11982)
@@ -0,0 +1,37 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * Âà²ñ´°Î»
+ */
+
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page(){
+		$this->tpl_mainpage = 'mypage/refusal_complete.tpl';
+		$this->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼êÂ³¤­(´°Î»¥Ú¡¼¥¸)";
+		$this->point_disp = false;
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+
+$objCustomer = new SC_Customer();
+//¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóÉ½¼¨ÍÑ
+$objPage->CustomerName1 = $objCustomer->getvalue('name01');
+$objPage->CustomerName2 = $objCustomer->getvalue('name02');
+$objPage->CustomerPoint = $objCustomer->getvalue('point');
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+?>
Index: /branches/comu/html/mobile/mypage/order.php
===================================================================
--- /branches/comu/html/mobile/mypage/order.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/order.php	(revision 11982)
@@ -0,0 +1,47 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ÍúÎò¤«¤éÃíÊ¸¤ò¼èÆÀ¡¦ÅÐÏ¿¤·¡¢¥«¡¼¥È¤ËÁ«°Ü¤¹¤ë¡£
+ */
+require_once("../require.php");
+
+$objCustomer = new SC_Customer();
+$objCartSess = new SC_CartSession();
+
+//¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ
+$arrDisp = lfGetOrderDetail($_POST['order_id']);
+
+//¥í¥°¥¤¥ó¤·¤Æ¤¤¤Ê¤¤¡¢¤Þ¤¿¤ÏDB¤Ë¾ðÊó¤¬Ìµ¤¤¾ì¹ç
+if (!$objCustomer->isLoginSuccess() or count($arrDisp) == 0){
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}
+
+for($num = 0; $num < count($arrDisp); $num++) {
+	$product_id = $arrDisp[$num]['product_id'];
+	$cate_id1 = $arrDisp[$num]['classcategory_id1'];
+	$cate_id2 = $arrDisp[$num]['classcategory_id2'];
+	$quantity = $arrDisp[$num]['quantity'];
+
+	$objCartSess->addProduct(array($product_id, $cate_id1, $cate_id2), $quantity);
+}
+
+header("Location: " . gfAddSessionId(MOBILE_URL_CART_TOP));
+
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+// ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ
+function lfGetOrderDetail($order_id) {
+	$objQuery = new SC_Query();
+	$col = "product_id, classcategory_id1, classcategory_id2, quantity";
+	$where = "order_id = ?";
+	$objQuery->setorder("classcategory_id1, classcategory_id2");
+	$arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id));
+	return $arrRet;
+}
+
+?>
Index: /branches/comu/html/mobile/mypage/change_complete.php
===================================================================
--- /branches/comu/html/mobile/mypage/change_complete.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/change_complete.php	(revision 11982)
@@ -0,0 +1,44 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ÊÑ¹¹´°Î»
+ */
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page(){
+		$this->tpl_mainpage = 'mypage/change_complete.tpl';
+		$this->tpl_title = 'MY¥Ú¡¼¥¸/²ñ°÷ÅÐÏ¿ÆâÍÆÊÑ¹¹(´°Î»¥Ú¡¼¥¸)';
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objCustomer = new SC_Customer();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
+
+//¥»¥Ã¥·¥ç¥ó¾ðÊó¤òºÇ¿·¤Î¾õÂÖ¤Ë¹¹¿·¤¹¤ë
+$objCustomer->updateSession();
+
+//¥í¥°¥¤¥óÈ½Äê
+if (!$objCustomer->isLoginSuccess(true)){
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}else {
+	//¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóÉ½¼¨ÍÑ
+	$objPage->CustomerName1 = $objCustomer->getvalue('name01');
+	$objPage->CustomerName2 = $objCustomer->getvalue('name02');
+	$objPage->CustomerPoint = $objCustomer->getvalue('point');
+}
+
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+?>
Index: /branches/comu/html/mobile/mypage/history.php
===================================================================
--- /branches/comu/html/mobile/mypage/history.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/history.php	(revision 11982)
@@ -0,0 +1,81 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * MyPage
+ */
+
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page() {
+		$this->tpl_mainpage = 'mypage/history.tpl';
+		$this->tpl_title = 'MY¥Ú¡¼¥¸/¹ØÆþÍúÎò°ìÍ÷';
+		session_cache_limiter('private-no-expire');
+	}
+}
+
+define ("HISTORY_NUM", 5);
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objQuery = new SC_Query();
+$objCustomer = new SC_Customer();
+$pageNo = isset($_GET['pageno']) ? $_GET['pageno'] : 0;
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
+
+// ¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
+if(!isset($_SESSION['customer'])) {
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}
+
+$col = "order_id, create_date, payment_id, payment_total";
+$from = "dtb_order";
+$where = "del_flg = 0 AND customer_id=?";
+$arrval = array($objCustomer->getvalue('customer_id'));
+$order = "order_id DESC";
+
+$linemax = $objQuery->count($from, $where, $arrval);
+$objPage->tpl_linemax = $linemax;
+
+// ¼èÆÀÈÏ°Ï¤Î»ØÄê(³«»Ï¹ÔÈÖ¹æ¡¢¹Ô¿ô¤Î¥»¥Ã¥È)
+$objQuery->setlimitoffset(HISTORY_NUM, $pageNo);
+// É½¼¨½ç½ø
+$objQuery->setorder($order);
+
+//¹ØÆþÍúÎò¤Î¼èÆÀ
+$objPage->arrOrder = $objQuery->select($col, $from, $where, $arrval);
+
+// next
+if ($pageNo + HISTORY_NUM < $linemax) {
+	$next = "<a href='history.php?pageno=" . ($pageNo + HISTORY_NUM) . "'>¼¡¤Ø¢ª</a>";
+} else {
+	$next = "";
+}
+
+// previous
+if ($pageNo - HISTORY_NUM > 0) {
+	$previous = "<a href='history.php?pageno=" . ($pageNo - HISTORY_NUM) . "'>¢«Á°¤Ø</a>";
+} elseif ($pageNo == 0) {
+	$previous = "";
+} else {
+	$previous = "<a href='history.php?pageno=0'>¢«Á°¤Ø</a>";
+}
+
+// bar
+if ($next != '' && $previous != '') {
+	$bar = " | ";
+} else {
+	$bar = "";
+}
+
+$objPage->tpl_strnavi = $previous . $bar . $next;
+$objView->assignobj($objPage);				//$objpageÆâ¤ÎÁ´¤Æ¤Î¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤òsmarty¤Ë³ÊÇ¼
+$objView->display(SITE_FRAME);				//¥Ñ¥¹¤È¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤Î¸Æ¤Ó½Ð¤·¡¢¼Â¹Ô
+?>
Index: /branches/comu/html/mobile/mypage/refusal.php
===================================================================
--- /branches/comu/html/mobile/mypage/refusal.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/refusal.php	(revision 11982)
@@ -0,0 +1,58 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * Âà²ñ½èÍý
+ */
+require_once("../require.php");
+
+class LC_Page{
+	function LC_Page(){
+		$this->tpl_mainpage = 'mypage/refusal.tpl';
+		$this->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼êÂ³¤­(ÆþÎÏ¥Ú¡¼¥¸)";
+		//session_cache_limiter('private-no-expire');
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objCustomer = new SC_Customer();
+$objQuery = new SC_Query();
+
+//¥í¥°¥¤¥óÈ½Äê
+if (!$objCustomer->isLoginSuccess()){
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+}else {
+	//¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóÉ½¼¨ÍÑ
+	$objPage->CustomerName1 = $objCustomer->getvalue('name01');
+	$objPage->CustomerName2 = $objCustomer->getvalue('name02');
+	$objPage->CustomerPoint = $objCustomer->getvalue('point');
+}
+
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
+
+if (isset($_POST['no'])) {
+	header("Location: " . gfAddSessionId("index.php"));
+	exit;
+} elseif (isset($_POST['complete'])){
+	//²ñ°÷ºï½ü
+	$objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id')));
+
+	$where = "email ILIKE ?";
+	if (DB_TYPE == "mysql")	$where = sfChangeILIKE($where);
+	$objCustomer->EndSession();
+	//´°Î»¥Ú¡¼¥¸¤Ø
+	header("Location: " . gfAddSessionId("refusal_complete.php"));
+	exit;
+}
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+?>
Index: /branches/comu/html/mobile/mypage/history_detail.php
===================================================================
--- /branches/comu/html/mobile/mypage/history_detail.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/history_detail.php	(revision 11982)
@@ -0,0 +1,90 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ÍúÎò
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'mypage/history_detail.tpl';
+		$this->tpl_title = "MY¥Ú¡¼¥¸/¹ØÆþÍúÎò¾ÜºÙ";
+		session_cache_limiter('private-no-expire');
+	}
+}
+
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objQuery = new SC_Query();
+$objCustomer = new SC_Customer();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
+
+//ÉÔÀµ¥¢¥¯¥»¥¹È½Äê
+$from = "dtb_order";
+$where = "del_flg = 0 AND customer_id = ? AND order_id = ? ";
+$arrval = array($objCustomer->getValue('customer_id'), $_POST['order_id']);
+//DB¤Ë¾ðÊó¤¬¤¢¤ë¤«È½Äê
+$cnt = $objQuery->count($from, $where, $arrval);
+
+//¥í¥°¥¤¥ó¤·¤Æ¤¤¤Ê¤¤¡¢¤Þ¤¿¤ÏDB¤Ë¾ðÊó¤¬Ìµ¤¤¾ì¹ç
+if (!$objCustomer->isLoginSuccess() or $cnt == 0){
+	sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+} else {
+	//¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ
+	$objPage->arrDisp = lfGetOrderData($_POST['order_id']);
+	// »ÙÊ§¤¤ÊýË¡¤Î¼èÆÀ
+	$objPage->arrPayment = sfGetIDValueList("dtb_payment", "payment_id", "payment_method");
+	// ÇÛÁ÷»þ´Ö¤Î¼èÆÀ
+	$arrRet = sfGetDelivTime($objPage->arrDisp['payment_id']);
+	$objPage->arrDelivTime = sfArrKeyValue($arrRet, 'time_id', 'deliv_time');
+
+	//¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóÉ½¼¨ÍÑ
+	$objPage->CustomerName1 = $objCustomer->getvalue('name01');
+	$objPage->CustomerName2 = $objCustomer->getvalue('name02');
+	$objPage->CustomerPoint = $objCustomer->getvalue('point');
+}
+
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+//-----------------------------------------------------------------------------------------------------------------------------------
+
+//¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ
+function lfGetOrderData($order_id) {
+	//¼õÃíÈÖ¹æ¤¬¿ô»ú¤Ç¤¢¤ì¤Ð
+	if(sfIsInt($order_id)) {
+		// DB¤«¤é¼õÃí¾ðÊó¤òÆÉ¤ß¹þ¤à
+		$objQuery = new SC_Query();
+		$col = "order_id, create_date, payment_id, subtotal, tax, use_point, add_point, discount, ";
+		$col .= "deliv_fee, charge, payment_total, deliv_name01, deliv_name02, deliv_kana01, deliv_kana02, ";
+		$col .= "deliv_zip01, deliv_zip02, deliv_pref, deliv_addr01, deliv_addr02, deliv_tel01, deliv_tel02, deliv_tel03, deliv_time_id, deliv_date ";
+		$from = "dtb_order";
+		$where = "order_id = ?";
+		$arrRet = $objQuery->select($col, $from, $where, array($order_id));
+		$arrOrder = $arrRet[0];
+		// ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ
+		$arrRet = lfGetOrderDetail($order_id);
+		$arrOrderDetail = sfSwapArray($arrRet);
+		$arrData = array_merge($arrOrder, $arrOrderDetail);
+	}
+	return $arrData;
+}
+
+// ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ
+function lfGetOrderDetail($order_id) {
+	$objQuery = new SC_Query();
+	$col = "product_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate";
+	$where = "order_id = ?";
+	$objQuery->setorder("classcategory_id1, classcategory_id2");
+	$arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id));
+	return $arrRet;
+}
+
+?>
Index: /branches/comu/html/mobile/mypage/change.php
===================================================================
--- /branches/comu/html/mobile/mypage/change.php	(revision 11982)
+++ /branches/comu/html/mobile/mypage/change.php	(revision 11982)
@@ -0,0 +1,481 @@
+<?php
+/**
+ * 
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ * 
+ *
+ * ¾ðÊóÊÑ¹¹
+ */
+
+require_once("../require.php");
+
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'mypage/change.tpl';		// ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
+		$this->tpl_title .= 'ÅÐÏ¿ÊÑ¹¹(1/3)';			//¡¡¥Ú¡¼¥¸¥¿¥¤¥È¥ë
+	}
+}
+
+//---- ¥Ú¡¼¥¸½é´üÀßÄê
+$CONF = sf_getBasisData();					// Å¹ÊÞ´ðËÜ¾ðÊó
+$objConn = new SC_DbConn();
+$objPage = new LC_Page();
+$objView = new SC_MobileView();
+$objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
+$objQuery = new SC_Query();
+$objCustomer = new SC_Customer();
+$objPage->arrPref = $arrPref;
+$objPage->arrJob = $arrJob;
+$objPage->arrReminder = $arrReminder;
+$objPage->arrYear = $objDate->getYear('', 1950);	//¡¡ÆüÉÕ¥×¥ë¥À¥¦¥óÀßÄê
+$objPage->arrMonth = $objDate->getMonth();
+$objPage->arrDay = $objDate->getDay();
+
+// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
+$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
+
+//---- ÅÐÏ¿ÍÑ¥«¥é¥àÇÛÎó
+$arrRegistColumn = array(
+							 array(  "column" => "name01", "convert" => "aKV" ),
+							 array(  "column" => "name02", "convert" => "aKV" ),
+							 array(  "column" => "kana01", "convert" => "CKV" ),
+							 array(  "column" => "kana02", "convert" => "CKV" ),
+							 array(  "column" => "zip01", "convert" => "n" ),
+							 array(  "column" => "zip02", "convert" => "n" ),
+							 array(  "column" => "pref", "convert" => "n" ),
+							 array(  "column" => "addr01", "convert" => "aKV" ),
+							 array(  "column" => "addr02", "convert" => "aKV" ),
+							 array(  "column" => "email", "convert" => "a" ),
+							 array(  "column" => "email_mobile", "convert" => "a" ),
+							 array(  "column" => "tel01", "convert" => "n" ),
+							 array(  "column" => "tel02", "convert" => "n" ),
+							 array(  "column" => "tel03", "convert" => "n" ),
+							 array(  "column" => "fax01", "convert" => "n" ),
+							 array(  "column" => "fax02", "convert" => "n" ),
+							 array(  "column" => "fax03", "convert" => "n" ),
+							 array(  "column" => "sex", "convert" => "n" ),
+							 array(  "column" => "job", "convert" => "n" ),
+							 array(  "column" => "birth", "convert" => "n" ),
+							 array(  "column" => "reminder", "convert" => "n" ),
+							 array(  "column" => "reminder_answer", "convert" => "aKV"),
+							 array(  "column" => "password", "convert" => "a" ),
+							 array(  "column" => "mailmaga_flg", "convert" => "n" )			 
+						 );
+
+//---- ÅÐÏ¿½ü³°ÍÑ¥«¥é¥àÇÛÎó
+$arrRejectRegistColumn = array("year", "month", "day", "email02", "email_mobile02", "password02");
+
+$objPage->arrForm = lfGetCustomerData();
+$objPage->arrForm['password'] = DEFAULT_PASSWORD;
+
+if ($_SERVER["REQUEST_METHOD"] == "POST") {
+
+	//-- POST¥Ç¡¼¥¿¤Î°ú¤­·Ñ¤®
+	$objPage->arrForm = array_merge($objPage->arrForm, $_POST);
+
+	if($objPage->arrForm['year'] == '----') {
+		$objPage->arrForm['year'] = '';
+	}
+	
+	$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);		// email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
+	
+	//-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
+	$objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn);
+
+	// Ìá¤ë¥Ü¥¿¥óÍÑ½èÍý
+	if (!empty($_POST["return"])) {
+		switch ($_POST["mode"]) {
+		case "complete":
+			$_POST["mode"] = "set3";
+			break;
+		case "confirm":
+			$_POST["mode"] = "set2";
+			break;
+		default:
+			$_POST["mode"] = "set1";
+			break;
+		}
+	}
+
+	//--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+	if ($_POST["mode"] == "set1") {
+		$objPage->arrErr = lfErrorCheck1($objPage->arrForm);
+		$objPage->tpl_mainpage = 'mypage/change.tpl';
+		$objPage->tpl_title = 'ÅÐÏ¿ÊÑ¹¹(1/3)';
+	} elseif ($_POST["mode"] == "set2") {
+		$objPage->arrErr = lfErrorCheck2($objPage->arrForm);
+		$objPage->tpl_mainpage = 'mypage/set1.tpl';
+		$objPage->tpl_title = 'ÅÐÏ¿ÊÑ¹¹(2/3)';
+	} else {
+		$objPage->arrErr = lfErrorCheck3($objPage->arrForm);
+		$objPage->tpl_mainpage = 'mypage/set2.tpl';
+		$objPage->tpl_title = 'ÅÐÏ¿ÊÑ¹¹(3/3)';
+	}
+
+	if ($objPage->arrErr || !empty($_POST["return"])) {		// ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯
+		foreach($objPage->arrForm as $key => $val) {
+			$objPage->$key = $val;
+		}
+
+		//-- ¥Ç¡¼¥¿¤ÎÀßÄê
+		if ($_POST["mode"] == "set1") {
+			$checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02");
+		} elseif ($_POST["mode"] == "set2") {
+			$checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
+		} else {
+			$checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
+		}
+
+		foreach($objPage->arrForm as $key => $val) {
+			if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) {
+				$objPage->list_data[ $key ] = $val;
+			}
+		}
+
+	} else {
+
+		//--¡¡¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê
+		if ($_POST["mode"] == "set1") {
+			$objPage->tpl_mainpage = 'mypage/set1.tpl';
+			$objPage->tpl_title = 'ÅÐÏ¿ÊÑ¹¹(2/3)';
+		} elseif ($_POST["mode"] == "set2") {
+			$objPage->tpl_mainpage = 'mypage/set2.tpl';
+			$objPage->tpl_title = 'ÅÐÏ¿ÊÑ¹¹(3/3)';
+		} elseif ($_POST["mode"] == "confirm") {
+			//¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨
+			$passlen = strlen($objPage->arrForm['password']);
+			$objPage->passlen = lfPassLen($passlen);
+
+			// ¥á¡¼¥ë¼õ¤±¼è¤ê
+			if (strtolower($_POST['mailmaga_flg']) == "on") {
+				$_POST['mailmaga_flg']  = "2";
+			} else {
+				$_POST['mailmaga_flg']  = "3";
+			}
+
+			$objPage->tpl_mainpage = 'mypage/change_confirm.tpl';
+			$objPage->tpl_title = 'ÅÐÏ¿ÊÑ¹¹(³ÎÇ§¥Ú¡¼¥¸)';
+
+		}
+
+		//-- ¥Ç¡¼¥¿ÀßÄê
+		unset($objPage->list_data);
+		if ($_POST["mode"] == "set1") {
+			$checkVal = array("sex", "year", "month", "day", "zip01", "zip02");
+		} elseif ($_POST["mode"] == "set2") {
+			$checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag");
+		} else {
+			$checkVal = array();
+		}
+
+		foreach($_POST as $key => $val) {
+			if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) {
+				$objPage->list_data[ $key ] = $val;
+			}
+		}
+
+
+		//--¡¡²¾ÅÐÏ¿¤È´°Î»²èÌÌ
+		if ($_POST["mode"] == "complete") {
+
+			//-- ÆþÎÏ¥Ç¡¼¥¿¤ÎÊÑ´¹
+			$arrForm = lfConvertParam($_POST, $arrRegistColumn);
+			$arrForm['email'] = strtolower($arrForm['email']);		// email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý
+	
+			//¥¨¥é¡¼¥Á¥§¥Ã¥¯
+			$objPage->arrErr = lfErrorCheck($objPage->arrForm);
+			$email_flag = true;
+
+			if($objPage->arrForm['email'] != $objCustomer->getValue('email_mobile')) {
+				//¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î½ÅÊ£¥Á¥§¥Ã¥¯
+				$email_cnt = $objQuery->count("dtb_customer","del_flg=0 AND (email=? OR email_mobile=?)", array($objPage->arrForm['email'], $objPage->arrForm['email']));
+				if ($email_cnt > 0){
+					$email_flag = false;
+				}
+			}
+
+			//¥¨¥é¡¼¤Ê¤·¤Ç¤«¤Ä¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬½ÅÊ£¤·¤Æ¤¤¤Ê¤¤¾ì¹ç
+			if($objPage->arrErr == "" && $email_flag) {
+				$arrForm['customer_id'] = $objCustomer->getValue('customer_id');
+				//-- ÊÔ½¸ÅÐÏ¿
+				sfEditCustomerData($arrForm, $arrRegistColumn);
+				//¥»¥Ã¥·¥ç¥ó¾ðÊó¤òºÇ¿·¤Î¾õÂÖ¤Ë¹¹¿·¤¹¤ë
+				$objCustomer->updateSession();
+				//´°Î»¥Ú¡¼¥¸¤Ø
+				header("Location: " . gfAddSessionId("change_complete.php"));
+				exit;
+			} else {
+				sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
+			}
+
+		}
+	}
+}
+
+$arrPrivateVariables = array('secret_key', 'first_buy_date', 'last_buy_date', 'buy_times', 'buy_total', 'point', 'note', 'status', 'create_date', 'update_date', 'del_flg', 'cell01', 'cell02', 'cell03', 'mobile_phone_id');
+foreach ($arrPrivateVariables as $key) {
+	unset($objPage->list_data[$key]);
+}
+
+//----¡¡¥Ú¡¼¥¸É½¼¨
+$objView->assignobj($objPage);
+$objView->display(SITE_FRAME);
+
+//----------------------------------------------------------------------------------------------------------------------
+
+//---- function·²
+function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn) {
+	global $objConn;
+
+	// ²¾ÅÐÏ¿
+	foreach ($arrRegistColumn as $data) {
+		if (strlen($array[ $data["column"] ]) > 0 && ! in_array($data["column"], $arrRejectRegistColumn)) {
+			$arrRegist[ $data["column"] ] = $array[ $data["column"] ];
+		}
+	}
+		
+	// ÃÂÀ¸Æü¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if (strlen($array["year"]) > 0 ) {
+		$arrRegist["birth"] = $array["year"] ."/". $array["month"] ."/". $array["day"] ." 00:00:00";
+	}
+	
+	// ¥Ñ¥¹¥ï¡¼¥É¤Î°Å¹æ²½
+	$arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC);
+	
+	$count = 1;
+	while ($count != 0) {
+		$uniqid = sfGetUniqRandomId("t");
+		$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
+	}
+	
+	$arrRegist["secret_key"] = $uniqid;		// ²¾ÅÐÏ¿IDÈ¯¹Ô
+	$arrRegist["create_date"] = "now()"; 	// ºîÀ®Æü
+	$arrRegist["update_date"] = "now()"; 	// ¹¹¿·Æü
+	$arrRegist["first_buy_date"] = "";	 	// ºÇ½é¤Î¹ØÆþÆü
+	
+	// ·ÈÂÓ¥á¡¼¥ë¥¢¥É¥ì¥¹
+	$arrRegist['email_mobile'] = $arrRegist['email'];
+
+	//-- ²¾ÅÐÏ¿¼Â¹Ô
+	$objConn->query("BEGIN");
+
+	$objQuery = new SC_Query();
+	$objQuery->insert("dtb_customer", $arrRegist);
+	$objConn->query("COMMIT");
+
+	return $uniqid;
+}
+
+//----¡¡¼èÆÀÊ¸»úÎó¤ÎÊÑ´¹
+function lfConvertParam($array, $arrRegistColumn) {
+	/*
+	 *	Ê¸»úÎó¤ÎÊÑ´¹
+	 *	K :  ¡ÖÈ¾³Ñ(ÊÝ¶¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹
+	 *	C :  ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹
+	 *	V :  ÂùÅÀÉÕ¤­¤ÎÊ¸»ú¤ò°ìÊ¸»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍÑ¤·¤Þ¤¹	
+	 *	n :  ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖÈ¾³Ñ(ÊÝ¶¸)¡×¤ËÊÑ´¹
+	 *  a :  Á´³Ñ±Ñ¿ô»ú¤òÈ¾³Ñ±Ñ¿ô»ú¤ËÊÑ´¹¤¹¤ë
+	 */
+	// ¥«¥é¥àÌ¾¤È¥³¥ó¥Ð¡¼¥È¾ðÊó
+	foreach ($arrRegistColumn as $data) {
+		$arrConvList[ $data["column"] ] = $data["convert"];
+	}
+	// Ê¸»úÊÑ´¹
+	foreach ($arrConvList as $key => $val) {
+		// POST¤µ¤ì¤Æ¤­¤¿ÃÍ¤Î¤ßÊÑ´¹¤¹¤ë¡£
+		if(strlen(($array[$key])) > 0) {
+			$array[$key] = mb_convert_kana($array[$key] ,$val);
+		}
+	}
+	return $array;
+}
+
+
+//¥¨¥é¡¼¥Á¥§¥Ã¥¯
+
+function lfErrorCheck($array) {
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", 'name01', STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", 'name02', STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/À«¡Ë", 'kana01', STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/Ì¾¡Ë", 'kana02', STEXT_LEN), array("EXIST_CHECK", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
+	$objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array('¥á¡¼¥ë¥¢¥É¥ì¥¹', "email", MTEXT_LEN) ,array("EXIST_CHECK", "EMAIL_CHECK", "NO_SPTAB" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03", TEL_LEN) ,array("TEL_CHECK"));
+	$objErr->doFunc(array("FAXÈÖ¹æ", "fax01", "fax02", "fax03", TEL_LEN) ,array("TEL_CHECK"));
+	$objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK")); 
+	$objErr->doFunc(array("¤´¿¦¶È", "job") ,array("NUM_CHECK"));
+	$objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É", 'password', PASSWORD_LEN1, PASSWORD_LEN2), array("EXIST_CHECK", "ALNUM_CHECK", "NUM_RANGE_CHECK"));
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É³ÎÇ§ÍÑ¤Î¼ÁÌä", "reminder") ,array("SELECT_CHECK", "NUM_CHECK")); 
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É³ÎÇ§ÍÑ¤Î¼ÁÌä¤ÎÅú¤¨", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
+	return $objErr->arrErr;
+	
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck1($array) {
+
+	global $objConn;
+	global $objCustomer;
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÀ«¡Ë", 'name01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡ÊÌ¾¡Ë", 'name02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/À«¡Ë", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array("¤ªÌ¾Á°¡Ê¥«¥Ê/Ì¾¡Ë", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
+	$objErr->doFunc(array('¥á¡¼¥ë¥¢¥É¥ì¥¹', "email", MTEXT_LEN) ,array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK", "SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK", "MOBILE_EMAIL_CHECK"));
+
+	//¸½²ñ°÷¤ÎÈ½Äê ¢ª¡¡¸½²ñ°÷¤â¤·¤¯¤Ï²¾ÅÐÏ¿Ãæ¤Ï¡¢¥á¥¢¥É°ì°Õ¤¬Á°Äó¤Ë¤Ê¤Ã¤Æ¤ë¤Î¤ÇÆ±¤¸¥á¥¢¥É¤ÇÅÐÏ¿ÉÔ²Ä
+	$array["customer_id"] = $objCustomer->getValue('customer_id');
+	if (strlen($array["email"]) > 0) {
+		$objQuery = new SC_Query();
+		$arrRet = $objQuery->select("email, update_date, del_flg", "dtb_customer","customer_id <> ? and (email ILIKE ? OR email_mobile ILIKE ?) ORDER BY del_flg", array($array["customer_id"], $array["email"], $array["email"]));
+
+		if(count($arrRet) > 0) {
+			if($arrRet[0]['del_flg'] != '1') {
+				// ²ñ°÷¤Ç¤¢¤ë¾ì¹ç
+				$objErr->arrErr["email"] .= "¢¨ ¤¹¤Ç¤Ë²ñ°÷ÅÐÏ¿¤Ç»ÈÍÑ¤µ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ç¤¹¡£<br />";
+			} else {
+				// Âà²ñ¤·¤¿²ñ°÷¤Ç¤¢¤ë¾ì¹ç
+				$leave_time = sfDBDatetoTime($arrRet[0]['update_date']);
+				$now_time = time();
+				$pass_time = $now_time - $leave_time;
+				// Âà²ñ¤«¤é²¿»þ´Ö-·Ð²á¤·¤Æ¤¤¤ë¤«È½Äê¤¹¤ë¡£
+				$limit_time = ENTRY_LIMIT_HOUR * 3600;						
+				if($pass_time < $limit_time) {
+					$objErr->arrErr["email"] .= "¢¨ Âà²ñ¤«¤é°ìÄê´ü´Ö¤Î´Ö¤Ï¡¢Æ±¤¸¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò»ÈÍÑ¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£<br />";
+				}
+			}
+		}
+	}
+
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É", 'password', PASSWORD_LEN1, PASSWORD_LEN2), array("EXIST_CHECK", "SPTAB_CHECK" ,"ALNUM_CHECK", "NUM_RANGE_CHECK"));
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É³ÎÇ§ÍÑ¤Î¼ÁÌä", "reminder") ,array("SELECT_CHECK", "NUM_CHECK")); 
+	$objErr->doFunc(array("¥Ñ¥¹¥ï¡¼¥É³ÎÇ§ÍÑ¤Î¼ÁÌä¤ÎÅú¤¨", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK","SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
+	
+	return $objErr->arrErr;
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck2($array) {
+
+	global $objConn, $objDate;
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
+	$objErr->doFunc(array("Í¹ÊØÈÖ¹æ", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
+
+	$objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK")); 
+	$objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+	if (!isset($objErr->arrErr['year'])) {
+		$objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getStartYear()), array("MIN_CHECK"));
+		$objErr->doFunc(array("À¸Ç¯·îÆü (Ç¯)", "year", $objDate->getEndYear()), array("MAX_CHECK"));
+	}
+	$objErr->doFunc(array("À¸Ç¯·îÆü (·îÆü)", "month", "day"), array("SELECT_CHECK"));
+	if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) {
+		$objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE"));
+	}
+	
+	return $objErr->arrErr;
+}
+
+//---- ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯
+function lfErrorCheck3($array) {
+
+	global $objConn;
+	$objErr = new SC_CheckError($array);
+	
+	$objErr->doFunc(array("ÅÔÆ»ÉÜ¸©", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
+	$objErr->doFunc(array("»Ô¶èÄ®Â¼", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÈÖÃÏ", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK" ));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK" ));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK" ));
+	$objErr->doFunc(array("ÅÅÏÃÈÖ¹æ", "tel01", "tel02", "tel03",TEL_ITEM_LEN) ,array("TEL_CHECK"));
+	
+	return $objErr->arrErr;
+}
+
+//³ÎÇ§¥Ú¡¼¥¸ÍÑ¥Ñ¥¹¥ï¡¼¥ÉÉ½¼¨ÍÑ
+
+function lfPassLen($passlen){
+	$ret = "";
+	for ($i=0;$i<$passlen;true){
+	$ret.="*";
+	$i++;
+	}
+	return $ret;
+}
+
+
+// Í¹ÊØÈÖ¹æ¤«¤é½»½ê¤Î¼èÆÀ
+function lfGetAddress($zipcode) {
+	global $arrPref;
+
+	$conn = new SC_DBconn(ZIP_DSN);
+
+	// Í¹ÊØÈÖ¹æ¸¡º÷Ê¸ºîÀ®
+	$zipcode = mb_convert_kana($zipcode ,"n");
+	$sqlse = "SELECT state, city, town FROM mtb_zip WHERE zipcode = ?";
+
+	$data_list = $conn->getAll($sqlse, array($zipcode));
+
+	// ¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈÃÍ¤òÈ¿Å¾¤µ¤»¤ë¡£
+	$arrREV_PREF = array_flip($arrPref);
+
+	/*
+		ÁíÌ³¾Ê¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Ç¡¼¥¿¤ò¤½¤Î¤Þ¤Þ¥¤¥ó¥Ý¡¼¥È¤¹¤ë¤È
+		°Ê²¼¤Î¤è¤¦¤ÊÊ¸»úÎó¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç	ÂÐºö¤¹¤ë¡£
+		¡¦¡Ê£±¡¦£±£¹ÃúÌÜ¡Ë
+		¡¦°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç
+	*/
+	$town =  $data_list[0]['town'];
+	$town = ereg_replace("¡Ê.*¡Ë$","",$town);
+	$town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town);
+	$data_list[0]['town'] = $town;
+	$data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']];
+
+	return $data_list;
+}
+
+//¸ÜµÒ¾ðÊó¤Î¼èÆÀ
+function lfGetCustomerData(){
+	global $objQuery;
+	global $objCustomer;
+	//¸ÜµÒ¾ðÊó¼èÆÀ
+	$ret = $objQuery->select("*","dtb_customer","customer_id=?", array($objCustomer->getValue('customer_id')));
+	$arrForm = $ret[0];
+	$arrForm['email'] = $arrForm['email_mobile'];
+
+	//¥á¥ë¥Þ¥¬¥Õ¥é¥°¼èÆÀ
+	$arrForm['mailmaga_flg'] = $objQuery->get("dtb_customer","mailmaga_flg","email=?", array($objCustomer->getValue('email_mobile')));
+	
+	//ÃÂÀ¸Æü¤ÎÇ¯·îÆü¼èÆÀ
+	if (isset($arrForm['birth'])){
+		$birth = split(" ", $arrForm["birth"]);
+		list($year, $month, $day) = split("-",$birth[0]);
+		
+		$arrForm['year'] = $year;
+		$arrForm['month'] = $month;
+		$arrForm['day'] = $day;
+		
+	}
+	return $arrForm;
+}
+
+
+//-----------------------------------------------------------------------------------------------------------------------------------
+?>
Index: /branches/comu/html/js/site.js
===================================================================
--- /branches/comu/html/js/site.js	(revision 11730)
+++ /branches/comu/html/js/site.js	(revision 11982)
@@ -4,5 +4,5 @@
  * http://www.lockon.co.jp/
  */
-// ¿Æ¥¦¥£¥ó¥É¥¦¤ÎÂ¸ºß³ÎÇ§
+// ¿Æ¥¦¥£¥ó¥É¥¦¤ÎÂ¸ºß³ÎÇ§.
 function fnIsopener() {
     var ua = navigator.userAgent;
@@ -18,5 +18,5 @@
 }
 
-// Í¹ÊØÈÖ¹æÆþÎÏ¸Æ¤Ó½Ð¤·
+// Í¹ÊØÈÖ¹æÆþÎÏ¸Æ¤Ó½Ð¤·.
 function fnCallAddress(php_url, tagname1, tagname2, input1, input2) {
 	zip1 = document.form1[tagname1].value;
@@ -31,10 +31,10 @@
 }
 
-// Í¹ÊØÈÖ¹æ¤«¤é¸¡º÷¤·¤¿½»½ê¤òÅÏ¤¹¡£
+// Í¹ÊØÈÖ¹æ¤«¤é¸¡º÷¤·¤¿½»½ê¤òÅÏ¤¹.
 function fnPutAddress(input1, input2) {
-	// ¿Æ¥¦¥£¥ó¥É¥¦¤ÎÂ¸ºß³ÎÇ§
+	// ¿Æ¥¦¥£¥ó¥É¥¦¤ÎÂ¸ºß³ÎÇ§¡£.
 	if(fnIsopener()) {
 		if(document.form1['state'].value != "") {
-			// ¹àÌÜ¤ËÃÍ¤òÆþÎÏ¤¹¤ë¡£
+			// ¹àÌÜ¤ËÃÍ¤òÆþÎÏ¤¹¤ë.
 			state_id = document.form1['state'].value;
 			town = document.form1['city'].value + document.form1['town'].value;
@@ -55,5 +55,4 @@
 }
 
-// ¥Õ¥©¡¼¥«¥¹¤òÅö¤Æ¤ë
 function fnSetFocus(name) {
 	if(document.form1[name]) {
@@ -62,5 +61,5 @@
 }
 
-// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤Ë¹àÌÜ¤ò³ä¤êÅö¤Æ¤ë¡£
+// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤Ë¹àÌÜ¤ò³ä¤êÅö¤Æ¤ë.
 function fnSetSelect(name1, name2, val) {
 	sele1 = document.form1[name1]; 
@@ -76,5 +75,5 @@
 		}
 		
-		// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤ËÃÍ¤ò³ä¤êÅö¤Æ¤ë
+		// ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤ËÃÍ¤ò³ä¤êÅö¤Æ¤ë¡£
 		len = lists[index].length
 		for(i = 0; i < len; i++) {
@@ -173,5 +172,5 @@
 }
 
-// ¥Ú¡¼¥¸¥Ê¥Ó¤Ç»ÈÍÑ¤¹¤ë
+// ¥Ú¡¼¥¸¥Ê¥Ó¤Ç»ÈÍÑ¤¹¤ë¡£
 function fnNaviPage(pageno) {
 	document.form1['pageno'].value = pageno;
@@ -189,5 +188,5 @@
 }
 
-// ¥Ý¥¤¥ó¥ÈÆþÎÏÀ©¸Â
+// ¥Ý¥¤¥ó¥ÈÆþÎÏÀ©¸Â¡£
 function fnCheckInputPoint() {
 	if(document.form1['point_check']) {
@@ -214,5 +213,5 @@
 }
 
-// ÊÌ¤Î¤ªÆÏ¤±ÀèÆþÎÏÀ©¸Â
+// ÊÌ¤Î¤ªÆÏ¤±ÀèÆþÎÏÀ©¸Â¡£
 function fnCheckInputDeliv() {
 	if(!document.form1) {
@@ -244,5 +243,5 @@
 
 
-// ¹ØÆþ»þ²ñ°÷ÅÐÏ¿ÆþÎÏÀ©¸Â
+// ¹ØÆþ»þ²ñ°÷ÅÐÏ¿ÆþÎÏÀ©¸Â¡£
 function fnCheckInputMember() {
 	if(document.form1['member_check']) {
@@ -262,5 +261,5 @@
 }
 
-// ºÇ½é¤ËÀßÄê¤µ¤ì¤Æ¤¤¤¿¿§¤òÊÝÂ¸¤·¤Æ¤ª¤¯
+// ºÇ½é¤ËÀßÄê¤µ¤ì¤Æ¤¤¤¿¿§¤òÊÝÂ¸¤·¤Æ¤ª¤¯¡£
 var g_savecolor = new Array();
 
@@ -271,9 +270,9 @@
 		if(document.form1[list[i]]) {
 			if(color == "") {
-				// Í­¸ú¤Ë¤¹¤ë
+				// Í­¸ú¤Ë¤¹¤ë¡£
 				document.form1[list[i]].disabled = false;
 				document.form1[list[i]].style.backgroundColor = g_savecolor[list[i]];
 			} else {
-				// Ìµ¸ú¤Ë¤¹¤ë
+				// Ìµ¸ú¤Ë¤¹¤ë¡£
 				document.form1[list[i]].disabled = true;
 				g_savecolor[list[i]] = document.form1[list[i]].style.backgroundColor;
@@ -315,5 +314,5 @@
 }
 	
-// »þ´Ö¤Î·×Â¬
+// »þ´Ö¤Î·×Â¬.
 function fnPassTime(){
 	end_time = new Date();
@@ -323,5 +322,5 @@
 start_time = new Date();
 
-//¿Æ¥¦¥£¥ó¥É¥¦¤Î¥Ú¡¼¥¸¤òÊÑ¹¹¤¹¤ë¡£
+//¿Æ¥¦¥£¥ó¥É¥¦¤Î¥Ú¡¼¥¸¤òÊÑ¹¹¤¹¤ë.
 function fnUpdateParent(url) {
 	// ¿Æ¥¦¥£¥ó¥É¥¦¤ÎÂ¸ºß³ÎÇ§
@@ -333,5 +332,5 @@
 }
 
-//ÆÃÄê¤Î¥­¡¼¤òSUBMIT¤¹¤ë¡£
+//ÆÃÄê¤Î¥­¡¼¤òSUBMIT¤¹¤ë.
 function fnKeySubmit(keyname, keyid) {
 	if(keyname != "" && keyid != "") {
@@ -350,5 +349,5 @@
 
 
-// ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤Î¥µ¥¤¥º¤òÊÑ¹¹¤¹¤ë
+// ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤Î¥µ¥¤¥º¤òÊÑ¹¹¤¹¤ë.
 function ChangeSize(button, TextArea, Max, Min, row_tmp){
 	
Index: /branches/comu/html/test/kakinaka/utf.php
===================================================================
--- /branches/comu/html/test/kakinaka/utf.php	(revision 11982)
+++ /branches/comu/html/test/kakinaka/utf.php	(revision 11982)
@@ -0,0 +1,24 @@
+<?php
+
+require_once("../../require.php");
+
+//---- ¥Ú¡¼¥¸É½¼¨ÍÑ¥¯¥é¥¹
+class LC_Page {
+	function LC_Page() {
+		$this->tpl_mainpage = 'utf.tpl';
+	}
+}
+
+$objView = new SC_UserView("./templates/");
+$objPage = new LC_Page();
+$objQuery = new SC_Query();
+
+
+$ret = $objQuery->select("SELECT * FROM dtb_products");
+
+sfprintr($ret);
+
+$objView->assignobj($objPage);
+$objView->display($objPage->tpl_mainpage);
+
+?>
Index: /branches/comu/html/test/kakinaka/insert.php
===================================================================
--- /branches/comu/html/test/kakinaka/insert.php	(revision 11982)
+++ /branches/comu/html/test/kakinaka/insert.php	(revision 11982)
@@ -0,0 +1,487 @@
+<?php  
+require_once("./require.php");
+
+$objQuery = new SC_Query();
+
+
+$sql[0] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C01','42C01','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[1] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C03','42C03','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[2] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C12','42C12','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[3] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C13','42C13','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[4] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C14','42C14','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[5] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C15','42C15','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[6] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C50','42C50','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[7] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C51','42C51','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[8] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C53','42C53','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[9] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C54','42C54','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[10] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C55','42C55','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[11] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C56','42C56','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[12] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C57','42C57','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[13] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C58','42C58','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[14] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C60','42C60','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[15] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C70','42C70','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[16] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C71','42C71','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[17] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C72','42C72','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[18] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C73','42C73','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[19] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C74','42C74','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[20] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C75','42C75','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[21] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C76','42C76','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[22] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C77','42C77','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[23] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('C78','42C78','0000','ÄÌ¿®¥¨¥é¡¼','E','¥«¡¼¥É²ñ¼ÒorCAFIS¤Î¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£');";
+$sql[24] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E10','E1010','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[25] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E10','E1011','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[26] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E10','E1012','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[27] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E10','E1013','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[28] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E10','E1019','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[29] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2001','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ShopId¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[30] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2002','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ShopPass¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[31] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2003','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','AccessId¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[32] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2003','1000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','AccessId¤Ç»ØÄê¤µ¤ì¤¿¼è°ú¤Ï¡¢´û¤Ë·èºÑ¤¬½ªÎ»¤·¤Æ¤¤¤Þ¤¹¡£');";
+$sql[33] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2003','2000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','AccessId¤Ç»ØÄê¤µ¤ì¤¿¼è°ú¤Ï¡¢°ìÅÙ¤â·èºÑ¤¬À®¸ù¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢·èºÑÆâÍÆ¤òÊÑ¹¹¤¹¤ë»ö¤¬¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[34] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2004','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','AccessPass¤ÎÃÍ¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[35] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2011','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','OrderId¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó');";
+$sql[36] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2011','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','OrderId¤¬£²£··å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[37] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2011','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','OrderId¤ËÈ¾³Ñ±Ñ¿ô»ú¡Ê-´Þ¤à¡Ë°Ê³°¤ÎÊ¸»ú¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[38] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2011','0010','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','»ØÄê¤µ¤ì¤¿OrderId¤ÎÃÍ¤Ï¡¢´û¤Ë»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[39] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2012','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','TenantNo¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[40] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2012','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','TenantNo¤¬£±£°·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[41] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2012','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','TenantNo¤ËÈ¾³Ñ±Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[42] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','JobCd¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[43] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','JobCd¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[44] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0011','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡ÖÍ¿¿®¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[45] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0012','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡ÖÇä¾å¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[46] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0013','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡Ö²¾Çä¾å¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[47] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0014','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡Ö¼ÂÇä¾å¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[48] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0015','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡Ö´Ê°×¥ª¡¼¥½¥ê¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[49] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0016','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡Ö¼è¾Ã¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[50] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0017','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡ÖÊÖÉÊ¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[51] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2013','0018','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ºÇ¸å¤Ë·èºÑ¤¬À®¸ù¤·¤¿½èÍý¶èÊ¬¤¬¡Ö·î¸Ù¤®ÊÖÉÊ¡×¤Ê¤Î¤Ç¡¢»ØÄê¤µ¤ì¤¿½èÍý¶èÊ¬¤Ç¤Î·èºÑ¤Ï¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[52] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2014','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Amount¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[53] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2014','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Amount¤¬£¸·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[54] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2014','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Amount¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[55] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2015','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Tax¤¬£··å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[56] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2015','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Tax¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[57] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2016','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Currency¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[58] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2017','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Method¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[59] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2017','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Method¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[60] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2018','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','PayTimes¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[61] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2018','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','PayTimes¤¬£²·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[62] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2018','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','PayTimes¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[63] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2021','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardType¤ÎÀßÄê¹àÌÜ¿ô¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[64] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2021','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardType¤Î£±¹àÌÜ¤á¤ËÌ¤ÄêµÁ¤Î¥«¡¼¥ÉÎ¬¾Î¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[65] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2021','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardType¤Î£²¹àÌÜ¤á¤Î½ñ¼°¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[66] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2021','0003','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardType¤Î£³¹àÌÜ¤á¤Î½ñ¼°¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[67] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2021','0004','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardType¤Î£´¹àÌÜ¤á¤Î½ñ¼°¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[68] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2022','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','MethodTimes¤ÎÀßÄê¹àÌÜ¿ô¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[69] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2022','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','MethodTimes¤Î£±¹àÌÜ¤á¤ËÌ¤ÄêµÁ¤Î»ÙÊ§ÊýË¡¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹');";
+$sql[70] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2022','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','MethodTimes¤Î£²¹àÌÜ¤á¤Î½ñ¼°¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[71] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2023','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardMethod¤ÎÀßÄê¹àÌÜ¿ô¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[72] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2023','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardMethod¤Î£±¹àÌÜ¤á¤ËÌ¤ÄêµÁ¤Î¥«¡¼¥ÉÎ¬¾Î¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[73] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2023','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardMethod¤Î£²¹àÌÜ¤á¤ËÌ¤ÄêµÁ¤Î»ÙÊ§ÊýË¡¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[74] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2023','0003','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','CardMethod¤Î£³¹àÌÜ¤á¤Î½ñ¼°¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[75] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2024','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','TdFlag¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[76] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2005','1000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','·èºÑ¥»¥ó¥¿¡¼¤Ë¤Æ¥¢¥¯¥ï¥¤¥¢¥éBIN¤¬Ì¤ÅÐÏ¿¤Ç¤¹¡Ê¥ì¥³¡¼¥É¤Ê¤·¡Ë¡£');";
+$sql[77] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2005','2000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','·èºÑ¥»¥ó¥¿¡¼¤Ë¤Æ¥¢¥¯¥ï¥¤¥¢¥éBIN¤¬Ì¤ÅÐÏ¿¤Ç¤¹¡ÊNULLÃÍ¡Ë¡£');";
+$sql[78] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2025','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ModiFlag¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[79] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2026','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','HTTP_ACCEPT¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[80] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2026','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','HTTP_USER_AGENT¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[81] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E20','E2026','0003','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','DeviceCategory¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[82] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3010','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥É¼ïÊÌ¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[83] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3020','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÈÖ¹æ¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[84] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3021','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÈÖ¹æ£±£°·åÌ¤Ëþ¡¢¤Þ¤¿¤Ï£±£¶·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[85] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3022','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÈÖ¹æ¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[86] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3030','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[87] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3031','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤¬£´·å¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[88] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3032','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[89] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3033','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤Î·î¤¬Í­¸ú¤ÊÃÍ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[90] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3040','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ÙÊ§ÊýË¡¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[91] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3041','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','Í­¸ú¤Ê»ÙÊ§ÊýË¡¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[92] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3042','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ØÄê¤µ¤ì¤¿»ÙÊ§ÊýË¡¤Ï¤´ÍøÍÑ¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[93] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3050','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ÙÊ§²ó¿ô¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[94] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3051','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ÙÊ§²ó¿ô¤¬£²·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[95] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3052','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ÙÊ§²ó¿ô¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[96] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3053','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ØÄê¤µ¤ì¤¿Ê¬³ä²ó¿ô¤Ï¤´ÍøÍÑ¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[97] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E30','E3054','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ØÄê¤µ¤ì¤¿¥Ü¡¼¥Ê¥¹Ê¬³ä²ó¿ô¤Ï¤´ÍøÍÑ¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[98] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E40','E4010','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','3DÇ§¾Ú½èÍý¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£');";
+$sql[99] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E50','E5010','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[100] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E50','E5011','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[101] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E50','E5012','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[102] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E50','E5014','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[103] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E50','E5019','0000','·èºÑ¥»¥ó¥¿¡¼£Ä£Â¥¨¥é¡¼','F','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[104] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6001','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ShopId¤¬¸í¤Ã¤Æ¤¤¤Þ¤¹¡£');";
+$sql[105] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6002','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ShopPassString¤¬ÉÔÀµ¤Ç¤¹¡£');";
+$sql[106] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6003','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','BuyingPassString¤¬ÉÔÀµ¤Ç¤¹¡£');";
+$sql[107] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6011','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','OrderId¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[108] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6011','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','OrderId¤¬£²£··å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[109] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6011','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','OrderId¤ËÈ¾³Ñ±Ñ¿ô»ú¡Ê-´Þ¤à¡Ë°Ê³°¤ÎÊ¸»ú¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[110] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6011','0010','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','»ØÄê¤µ¤ì¤¿OrderId¤ÎÃÍ¤Ï¡¢´û¤Ë·èºÑ´°Î»¤·¤Æ¤¤¤Þ¤¹¡£');";
+$sql[111] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6012','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','JobCd¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[112] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6012','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','JobCd¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[113] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6013','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Amount¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[114] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6013','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Amount¤¬£¸·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[115] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6013','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Amount¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[116] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6013','0003','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','¡Ê½èÍý¶èÊ¬¤¬CHECK¤Î¾ì¹ç¡ËAmount¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[117] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6014','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Tax¤¬£··å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[118] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6014','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','Tax¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[119] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6014','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','¡Ê½èÍý¶èÊ¬¤¬CHECK¤Î¾ì¹ç¡ËTax¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[120] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6015','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','RetURL¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[121] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6015','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','RetURL¤¬200Byte¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[122] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6016','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','RetParamFlag¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[123] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6017','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ClientField1¤¬100Byte¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[124] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6017','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ClientField2¤¬100Byte¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[125] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6017','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','ClientField3¤¬100Byte¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[126] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6018','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','DateTime¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[127] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6018','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','DateTime¤¬£±£´·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[128] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6018','0002','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','DateTime¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[129] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6019','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','UserInfo¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[130] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6019','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','UserInfo¤ËÌ¤ÄêµÁ¤ÎÃÍ¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[131] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6020','0000','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','TenantNo¤¬£±£°·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[132] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6020','0001','CGI¥Ñ¥é¥á¡¼¥¿¥¨¥é¡¼','F','TenantNo¤ËÈ¾³Ñ±Ñ¿ô»ú°Ê³°¤ÎÊ¸»ú¤¬»ÈÍÑ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[133] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6021','0000','¥·¥ç¥Ã¥×IDÅÐÏ¿¥¨¥é¡¼','F','CCS´ÉÍý²èÌÌ¤Ë¤Æ¥·¥ç¥Ã¥×£É£Ä¤ÎÅÐÏ¿ÀßÄê¤¬´°Î»¤·¤Æ¤¤¤Þ¤»¤ó¡£
+¡Ê¥·¥ç¥Ã¥×£É£ÄÅÐÏ¿¡Ë');";
+$sql[134] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6021','0001','¥«¡¼¥É²ñ¼ÒÅÐÏ¿¥¨¥é¡¼','F','CCS´ÉÍý²èÌÌ¤Ë¤Æ¥·¥ç¥Ã¥×£É£Ä¤ÎÅÐÏ¿ÀßÄê¤¬´°Î»¤·¤Æ¤¤¤Þ¤»¤ó¡£
+¡Ê¥«¡¼¥É²ñ¼ÒÅÐÏ¿¡Ë');";
+$sql[135] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6022','0000','¥ê¥ó¥¯·èºÑ»þ¥¨¥é¡¼','F','ÅÐÏ¿¤ÎÌµ¤¤¼è°ú£É£Ä¤¬Á÷¿®¤µ¤ì¤Þ¤·¤¿¡£
+¥¿¥¤¥à¥¢¥¦¥È¤â¤·¤¯¤ÏÀµ¾ï¤Ë²èÌÌÁ«°Ü¤µ¤ì¤Ê¤«¤Ã¤¿²ÄÇ½À­¤¬¤¢¤ê¤Þ¤¹¡£');";
+$sql[136] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6022','0001','¥ê¥ó¥¯·èºÑ»þ¥¨¥é¡¼','F','ÉÔÀµ¤Ê¼è°ú¥Ñ¥¹¥ï¡¼¥É¤¬Á÷¿®¤µ¤ì¤Þ¤·¤¿¡£
+¥¿¥¤¥à¥¢¥¦¥È¤â¤·¤¯¤ÏÀµ¾ï¤Ë²èÌÌÁ«°Ü¤µ¤ì¤Ê¤«¤Ã¤¿²ÄÇ½À­¤¬¤¢¤ê¤Þ¤¹¡£');";
+$sql[136] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6031','0000','¥ê¥ó¥¯·èºÑ»þ¥¨¥é¡¼','F','´û¤Ë·èºÑ´°Î»¤·¤Æ¤¤¤Þ¤¹¡£
+¥æ¡¼¥¶ÍÍ¤Ø½ÐÎÏ¤·¤Æ¤¤¤ë¥á¥Ã¥»¡¼¥¸¤Ï²¼µ­¤Î¤È¤ª¤ê¡§
+¡Ö¤³¤Î¤ª¼è°ú¤Ç¤Î·èºÑ¤Ï´û¤Ë´°Î»¤·¤Æ¤ª¤ê¤Þ¤¹¡£¥·¥ç¥Ã¥×¤ØÌá¤ê¤´³ÎÇ§¤¯¤À¤µ¤¤¡£¡×');";
+$sql[137] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6041','0000','¥ê¥ó¥¯·èºÑ»þ¥¨¥é¡¼','F','3DÇ§¾Ú»þ¤ËÉ¬Í×¤ÊHTTP_ACCEPT¤¬¼õ¿®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
+¥æ¡¼¥¶ÍÍ¤Ø½ÐÎÏ¤·¤Æ¤¤¤ë¥á¥Ã¥»¡¼¥¸¤Ï²¼µ­¤Î¤È¤ª¤ê¡§
+¡Ö¤ªµÒÍÍ¤¬¤´»ÈÍÑ¤Î¥Ö¥é¥¦¥¶¤â¤·¤¯¤Ï¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ÎÀßÄê¤Ç¤Ï·èºÑ½èÍý¤Ç¤­¤Þ¤»¤ó¡£À¿¤Ë¿½¤·Ìõ¤´¤¶¤¤¤Þ¤»¤ó¤¬¤´»ÈÍÑ´Ä¶­¤òÊÑ¹¹Äº¤¯¤«¡¢¥·¥ç¥Ã¥×¤ØÌá¤êÂ¾·èºÑ¤Ë¤Æ¤´ÂÐ±þ¤¯¤À¤µ¤¤¡£¡×');";
+$sql[138] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E60','E6041','0001','¥ê¥ó¥¯·èºÑ»þ¥¨¥é¡¼','F','3DÇ§¾Ú»þ¤ËÉ¬Í×¤ÊHTTP_USER_AGENT¤¬¼õ¿®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
+¥æ¡¼¥¶ÍÍ¤Ø½ÐÎÏ¤·¤Æ¤¤¤ë¥á¥Ã¥»¡¼¥¸¤Ï²¼µ­¤Î¤È¤ª¤ê¡§
+¡Ö¤ªµÒÍÍ¤¬¤´»ÈÍÑ¤Î¥Ö¥é¥¦¥¶¤â¤·¤¯¤Ï¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ÎÀßÄê¤Ç¤Ï·èºÑ½èÍý¤Ç¤­¤Þ¤»¤ó¡£À¿¤Ë¿½¤·Ìõ¤´¤¶¤¤¤Þ¤»¤ó¤¬¤´»ÈÍÑ´Ä¶­¤òÊÑ¹¹Äº¤¯¤«¡¢¥·¥ç¥Ã¥×¤ØÌá¤êÂ¾·èºÑ¤Ë¤Æ¤´ÂÐ±þ¤¯¤À¤µ¤¤¡£¡×');";
+$sql[139] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7010','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥É²ñ¼Ò¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[140] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7020','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÈÖ¹æ¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[141] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7021','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÈÖ¹æ¤¬10·åÌ¤Ëþ¡¢¤Þ¤¿¤Ï16·å¤òÄ¶¤¨¤Æ¤¤¤Þ¤¹¡£');";
+$sql[142] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7022','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÈÖ¹æ¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[143] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7030','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[144] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7031','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤¬2·å¤º¤ÄÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[145] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7032','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¥«¡¼¥ÉÍ­¸ú´ü¸Â¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[146] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7040','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','»ÙÊ§ÊýË¡¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');";
+$sql[147] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7041','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','Í­¸ú¤Ê»ÙÊ§ÊýË¡¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[148] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7042','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¡Ê½èÍý¶èÊ¬¤¬CHECK¤Î¾ì¹ç¡Ë»ÙÊ§ÊýË¡¤ÎÆþÎÏ¤ÏÉ¬Í×¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[149] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7051','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','Ê¬³ä²ó¿ô¤ËÈ¾³Ñ¿ô»ú°Ê³°¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[150] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7052','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','Ê¬³ä²ó¿ô¤Ë2¢·36°Ê³°¤Î²ó¿ô¤¬ÆþÎÏ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[151] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7053','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','Ê¬³äÊ§¤¤°Ê³°¡¢Ê¬³ä²ó¿ô¤ÎÆþÎÏ¤ÏÉ¬Í×¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[152] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7054','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','¡Ê½èÍý¶èÊ¬¤¬CHECK¤Î¾ì¹ç¡ËÊ¬³ä²ó¿ô¤ÎÆþÎÏ¤ÏÉ¬Í×¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[153] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7061','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','ÁªÂò¤µ¤ì¤¿»ÙÊ§ÊýË¡¤Ï¤´ÍøÍÑ¤Ç¤­¤Þ¤»¤ó¡£
+¡ÊÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤»ÙÊ§ÊýË¡¤Ç·èºÑ¤µ¤ì¤è¤¦¤È¤·¤Þ¤·¤¿¡Ë');";
+$sql[154] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E70','E7062','0000','·èºÑ¾ðÊóÆþÎÏ¥¨¥é¡¼','F','ÆþÎÏ¤µ¤ì¤¿Ê¬³ä²ó¿ô¤Ï¤´ÍøÍÑ¤Ç¤­¤Þ¤»¤ó¡£
+¡ÊÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤Ê¬³ä²ó¿ô¤Ç·èºÑ¤µ¤ì¤è¤¦¤È¤·¤Þ¤·¤¿¡Ë');";
+$sql[155] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E80','E8001','0000','3D¥»¥­¥å¥¢Ç§¾Ú»þ¥¨¥é¡¼','F','ACS¤«¤éÀµ¾ï¤ÊÃÍ¤¬°ú¤­ÅÏ¤µ¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£
+¡Ê¥æ¡¼¥¶ÍÍÁàºî¤Þ¤¿¤Ï¥æ¡¼¥¶ÍÍ¥Ö¥é¥¦¥¶¤Þ¤¿¤ÏACS¾ã³²¤¬¸¶°ø¤Ç¤¢¤ë²ÄÇ½À­¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[156] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('E80','E8002','0000','3D¥»¥­¥å¥¢Ç§¾Ú»þ¥¨¥é¡¼','F','Ç§¾Ú¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£
+¡Ê¥æ¡¼¥¶ÍÍ¤¬ÆþÎÏ¤µ¤ì¤¿¥Ñ¥¹¥ï¡¼¥É¤Þ¤¿¤ÏACS¾ã³²¤¬¸¶°ø¤Ç¤¢¤ë²ÄÇ½À­¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[157] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G02','42G02','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','»Ä¹âÉÔÂ­¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[158] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G03','42G03','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¸ÂÅÙ³Û¥ª¡¼¥Ð¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[159] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G04','42G04','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','»Ä¹âÉÔÂ­¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[160] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G05','42G05','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¸ÂÅÙ³Û¥ª¡¼¥Ð¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[161] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G12','42G12','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[162] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G22','42G22','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[163] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G30','42G30','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','ÊÝÎ±È½Äê¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[164] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G42','42G42','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','°Å¾ÚÈÖ¹æ¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[165] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G44','42G44','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥»¥­¥å¥ê¥Æ¥£¥³¡¼¥É¸í¤ê¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[166] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G45','42G45','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥»¥­¥å¥ê¥Æ¥£¥³¡¼¥ÉÆþÎÏÌµ¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[167] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G54','42G54','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[168] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G55','42G55','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¸ÂÅÙ³Û¥ª¡¼¥Ð¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[169] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G56','42G56','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥«¡¼¥É¼è¤ê¹þ¤ß¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[170] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G60','42G60','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','»ö¸Î¥«¡¼¥É¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[171] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G61','42G61','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','Ìµ¸ú¥«¡¼¥É¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[172] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G65','42G65','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','²ñ°÷ÈÖ¹æ¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[173] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G67','42G67','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¾¦ÉÊ¥³¡¼¥É¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[174] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G68','42G68','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¶â³Û¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[175] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G69','42G69','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','ÀÇÁ÷ÎÁ¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[176] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G70','42G70','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥Ü¡¼¥Ê¥¹²ó¿ô¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[177] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G71','42G71','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥Ü¡¼¥Ê¥¹·î¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[178] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G72','42G72','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥Ü¡¼¥Ê¥¹³Û¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[179] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G73','42G73','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','»ÙÊ§³«»Ï·î¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[180] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G74','42G74','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','Ê¬³ä²ó¿ô¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[181] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G75','42G75','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','Ê¬³ä¶â³Û¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[182] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G76','42G76','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','½é²ó¶â³Û¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[183] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G77','42G77','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¶ÈÌ³¶èÊ¬¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[184] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G78','42G78','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','»ÙÊ§¶èÊ¬¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[185] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G79','42G79','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¾È²ñ¶èÊ¬¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[186] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G80','42G80','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è¾Ã¶èÊ¬¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[187] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G81','42G81','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è¾Ã¼è°·¶èÊ¬¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[188] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G83','42G83','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','Í­¸ú´ü¸Â¥¨¥é¡¼¡Ê¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¹ç¤»¤¯¤À¤µ¤¤¡Ë');";
+$sql[189] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G95','42G95','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¥ª¥ó¥é¥¤¥ó½ªÎ»');";
+$sql[190] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G96','42G96','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä');";
+$sql[191] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G97','42G97','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä');";
+$sql[192] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G98','42G98','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä');";
+$sql[193] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('G99','42G99','0000','Â¾¼Ò¥ª¡¼¥½¥ê¥¨¥é¡¼','B','¼è°·ÉÔ²Ä');";
+$sql[194] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','31001','0000','¥«¡¼¥É¥Õ¥©¡¼¥Þ¥Ã¥È¥¨¥é¡¼','A','¥«¡¼¥ÉÈÖ¹æ,Í­¸ú´ü¸Â¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');";
+$sql[195] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','31002','0000','²ñ°÷ÈÖ¹æ¥¨¥é¡¼','A','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[196] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','31003','0000','¥Á¥§¥Ã¥¯¥Ç¥¸¥Ã¥È¥¨¥é¡¼','A','¥«¡¼¥ÉÈÖ¹æ¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£');";
+$sql[197] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','31005','0000','¼è°·ÉÔ²Ä¥«¡¼¥É¡ÊÈ½ÄêÉÔÇ½¡Ë','B','¥«¡¼¥ÉÈÖ¹æ¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£');";
+$sql[198] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','31006','0000','¥Á¥§¥Ã¥¯¥Ç¥¸¥Ã¥È¥¨¥é¡¼','A','¥«¡¼¥ÉÈÖ¹æ¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£');";
+$sql[199] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','31007','0000','ÍøÍÑ¸ÂÅÙ³Û¥ª¡¼¥Ð¡¼','A','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[200] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32001','0001','¼è°·³«»ÏÆüÁ°','A','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[201] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32001','0002','¼è°·½ªÎ»Æü¸å','A','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[202] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32002','0001¢·0003','¼è°·¶ÈÌ³¥¨¥é¡¼','A','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[203] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32003','0000','»ÙÊ§¶èÊ¬¥¨¥é¡¼','D','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[204] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32004','0000','Ê¬³ä²ó¿ô¥¨¥é¡¼','D','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[205] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32005','0000','¥Ü¡¼¥Ê¥¹²ó¿ô¥¨¥é¡¼','D','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[206] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H12','32006','0000','ÆÃ¼ìÈ½ÄêÉÔÇ½','A','»Å¸þ¥«¡¼¥É²ñ¼Ò¤¬È½Äê¤Ç¤­¤Þ¤»¤ó¡£»Å¸þÀè¥«¡¼¥É²ñ¼Ò¥³¡¼¥É¤ò¥»¥Ã¥È¤·¤ÆºÆÅÙÁ÷¿®¤·¤Æ²¼¤µ¤¤¡£');";
+$sql[207] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H21','42001','0000','»Å¸þ¾õÂÖÉÔÀ°¹ç','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[208] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H21','42020¢·42025','0000','CONTEXT¥µ¡¼¥Ó¥¹·ë²Ì¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[209] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H22','42040','0000','GPCCA1¥¿¥¤¥à¥¢¥¦¥È','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[210] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H22','42099','0030
+31
+41','CONTEXT¥×¥í¥»¥¹¾ã³²Ãæ','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[211] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','12001','0000','ÍúÎò¹¹¿·ÉÔÇ½','E','¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[212] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','12002','0000','¼è°ú¾õÂÖÉÔÀ°¹ç','E','¥»¥ó¥¿¡¼¾ã³²Ãæ¤Ç¤¹¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[213] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42100','0001¢·0023','CONTEXTÍ×µá¥á¥Ã¥»¡¼¥¸¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[214] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42500','0000','CONTEXT·ë²Ì°Û¾ï','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[215] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0001','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[216] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0002','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[217] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0003','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[218] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0004','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[219] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0005','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[220] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0006','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[221] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0007','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[222] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42501','0999','CAFISÊó¹ðÅÅÊ¸Àººº¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[223] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','42900','0000','CONTEXT¥·¥¹¥Æ¥à¾ã³²','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[224] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','43001','0000','»Å¸þÉÔÀ°¹ç','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[225] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H23','43100','0001¢·0023','CONTEXTÍ×µá¥á¥Ã¥»¡¼¥¸¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[226] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H67','21003','0000','¾¦ÉÊ¥³¡¼¥ÉÉÔÀµ','E','¾¦ÉÊ¥³¡¼¥É¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[227] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H68','21004','0000','¶â³ÛÉÔÀµ','E','¶â³Û¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[228] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H69','21005','0000','ÀÇÁ÷ÎÁÉÔÀµ','E','ÀÇÁ÷ÎÁ¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[229] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H70','21012','0000','¥Ü¡¼¥Ê¥¹²ó¿ôÉÔÀµ','D','¥Ü¡¼¥Ê¥¹²ó¿ô¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[230] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H71','21016','0000','¥Ü¡¼¥Ê¥¹·îÉÔÀµ','D','¥Ü¡¼¥Ê¥¹·î¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[231] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H71','22010','0000','¥Ü¡¼¥Ê¥¹¼è°·´ü´Ö¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[232] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H72','21015','0000','¥Ü¡¼¥Ê¥¹¶â³ÛÉÔÀµ','D','¥Ü¡¼¥Ê¥¹¶â³Û¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[233] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H73','21017','0000','»ÙÊ§³«»Ï·îÉÔÀµ','D','»ÙÊ§³«»Ï·î¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[234] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H74','21013','0000','Ê¬³ä²ó¿ôÉÔÀµ','D','Ê¬³ä²ó¿ô¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[235] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H74','22007','0001¢·0003','¼è°·¶ÈÌ³¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[236] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H75','21014','0000','Ê¬³ä¶â³ÛÉÔÀµ','D','Ê¬³ä¶â³Û¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[237] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H76','21018','0000','½é²ó¶â¥¨¥é¡¼','D','½é²ó¶â¤Ë0¢·9or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[238] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H77','21006','0000','¶ÈÌ³¶èÊ¬ÉÔÀµ','E','¶ÈÌ³¶èÊ¬¤Ë1,2,4°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[239] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H78','21007','0000','»ÙÊ§¶èÊ¬ÉÔÀµ','E','»ÙÊ§¶èÊ¬¤Ë10,21,22,34,61,80°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[240] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H80','21009','0000','¼è¾Ã¶èÊ¬¥¨¥é¡¼','E','¼è¾Ã¶èÊ¬¤Ë2°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[241] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H81','21010','0000','¼è°·¶èÊ¬¥¨¥é¡¼','E','¼è°·¶èÊ¬¤Ë1°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[242] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21001','0000','ÅÁÉ¼ÈÖ¹æÉÔÀµ','E','½èÍýÄÌÈÖ¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[243] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21700','0000','SP¥Þ¥·¥ó¥«¥¦¥ó¥¿¡¼¥Õ¥¡¥¤¥ë¤Ê¤·','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[244] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21800','0000','³«ÊÄ¶É¥Á¥§¥Ã¥¯¥¨¥é¡¼','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[245] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21900','0000','¾ã³²ÅÅÊ¸Àººº¥¨¥é¡¼','E','¥¨¥é¡¼¥³¡¼¥É¤Ë0or¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[246] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1001','¥¨¥é¡¼¥³¡¼¥ÉÉÔÀµ','E','¥¹¥Ú¡¼¥¹°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[247] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1002','¥Þ¥¹¥¿¡¼ÅÅÊ¸¼ïÊÌÉÔÀµ','E','¥Þ¥¹¥¿¡¼ÅÅÊ¸¼ïÊÌ¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[248] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1003','ÅÅÊ¸Á÷¿®¶èÊ¬ÉÔÀµ','E','ÅÅÊ¸Á÷¿®¶èÊ¬¤Ë2°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[249] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1004','¾µÇ§ÈÖ¹æÉÔÀµ','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[250] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1005','Ã¼Ëö½èÍýÄÌÈÖÉÔÀµ','E','½èÍýÄÌÈÖ¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[251] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1006','½èÍýÇ¯·îÆüÉÔÀµ','E','½èÍýÇ¯·îÆü¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[252] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1007','¥»¥Ñ¥ì¡¼¥¿ÉÔÀµ','E','¥»¥Ñ¥ì¡¼¥¿¡¼¤Ë@°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ÀèÆ¬¤è¤ê98Byte¤Î¥Õ¥£¡¼¥ë¥É¤Ç¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[253] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1101','¥«¡¼¥É¶èÊ¬ÉÔÀµ','E','¥«¡¼¥É¶èÊ¬¤Ë3°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[254] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1102','°Å¾ÚÈÖ¹æÉÔÀµ','E','°Å¾ÚÈÖ¹æ¤Ë0000°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[255] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1103','¥»¥Ñ¥ì¡¼¥¿ÉÔÀµ','E','¥»¥Ñ¥ì¡¼¥¿¡¼¤Ë@°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ÀèÆ¬¤è¤ê146Byte¤Î¥Õ¥£¡¼¥ë¥É¤Ç¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[256] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','1301','¥»¥Ñ¥ì¡¼¥¿ÉÔÀµ','E','¥»¥Ñ¥ì¡¼¥¿¡¼¤Ë@°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ÅÅÊ¸¤Î°ìÈÖºÇ¸å¤Î¥»¥Ñ¥ì¡¼¥¿¡¼¤Ç¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[257] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','2X01','¥Ç¡¼¥¿¼±ÊÌÉÔÀµ','E','¥Ç¡¼¥¿¼±ÊÌ¤ËF,G,@°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[258] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS03','ÅÅÊ¸¼ïÊÌ¥¨¥é¡¼','E','ÅÅÊ¸¼ïÊÌ¤Ë3110,3210,3310,8930°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[259] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS06','SPID¥¨¥é¡¼','E','SPID¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[260] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS07','Äó¶¡¶èÊ¬¥¨¥é¡¼','E','ÅÅÊ¸Ãæ¤ÎÅÅÊ¸¼ïÊÌ¤ÈÄó¶¡¶èÊ¬¤ÎÁÈ¹ç¤ï¤»¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[261] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS08','¾ÜºÙ¶èÊ¬¥¨¥é¡¼','E','¾ÜºÙ¶èÊ¬¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[262] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS09','½èÍýÄÌÈÖ¥¨¥é¡¼','E','½èÍýÄÌÈÖ¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[263] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS10','½èÍýÇ¯·îÆü¥¨¥é¡¼','E','½èÍýÇ¯·îÆü¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[264] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','KS11','½èÍý»þ´Ö¥¨¥é¡¼','E','½èÍý»þ´Ö¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[265] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','NH01','Ã¼Ëöµ¡¼±ÊÌÈÖ¹æ¥¨¥é¡¼','E','SPID¤Ë0¢·9°Ê³°¤ÎÊ¸»ú¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[266] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','21999','NH02','ÁÈ¤ß¹ç¤ï¤»ÉÔÀµ','E','ÅÅÊ¸Ãæ¤ÎÅÅÊ¸¼ïÊÌ¤È¶ÈÌ³¶èÊ¬¤ÎÁÈ¹ç¤ï¤»¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£
+¡ÊÅÅÊ¸¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡Ë');";
+$sql[267] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','22001','0000','Ã¼ËöÌ¤ÅÐÏ¿','C','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[268] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','22003','0001','Ã¼Ëö³«»ÏÆüÁ°','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[269] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','22003','0002','Ã¼ËöËõ¾Ã¸å','E','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[270] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','33001','0000','¾ã³²¼è¾Ã¥¨¥é¡¼¡ÊÂÐ¾Ý¶ÈÌ³°Ê³°¡Ë','E','¾ã³²¼è¾Ã¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[271] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','33002','0000','¾ã³²¼è¾Ã¥¨¥é¡¼¡ÊÍúÎò¤Ê¤·¡Ë','E','¾ã³²¼è¾Ã¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[272] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','33003','0000','¾ã³²¼è¾Ã¥¨¥é¡¼¡ÊÍúÎò¤Ê¤·¡Ë','E','¾ã³²¼è¾Ã¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[273] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','33004','0000','¾ã³²¼è¾Ã¥¨¥é¡¼¡Ê·î¤Þ¤¿¤¬¤ê¡Ë','E','¾ã³²¼è¾Ã¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[274] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','33005','0000','¾ã³²¼è¾Ã¥¨¥é¡¼¡Ê²¾Çä¤Î¼è¾ÃÉÔ²Ä¡Ë','E','¾ã³²¼è¾Ã¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[275] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','42101','0000','¼ÂÇä¾å¥¨¥é¡¼¡Ê²¾Çä¾å¤Ê¤·¡Ë','A','³ºÅö¤¹¤ë²¾Çä¾å¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó¡£¼ÂÇä¾å½èÍý¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[276] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','42102','0000','¼ÂÇä¾å¥¨¥é¡¼¡ÊÆó½ÅÇä¾å¡Ë','A','¼ÂÇä¾å½èÍýºÑ¤ß¤Ç¤¹¡£');";
+$sql[277] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','42103','0000','¼ÂÇä¾å¥¨¥é¡¼¡Ê²¾Çä¾å¤¬µñÈÝ¡Ë','A','³ºÅö¤¹¤ë²¾Çä¾å¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó¡£¼ÂÇä¾å½èÍý¤Ç¤­¤Þ¤»¤ó¡£');";
+$sql[278] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','42104','0000','¼ÂÇä¾å¥¨¥é¡¼¡Ê¾µÇ§ÈÖ¹æÉÔÀµ¡Ë','A','¾µÇ§ÈÖ¹æ¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£¾µÇ§ÈÖ¹æ¤ò³ÎÇ§¤·¤Æ²¼¤µ¤¤¡£');";
+$sql[279] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','42105','0000','¼ÂÇä¾å¥¨¥é¡¼¡Ê»ÙÊ§¶èÊ¬ÉÔ°ìÃ×¡Ë','A','»ÙÊ§¶èÊ¬¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£»ÙÊ§¶èÊ¬¤ò³ÎÇ§¤·¤Æ²¼¤µ¤¤¡£');";
+$sql[280] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','42106','0000','¼ÂÇä¾å¥¨¥é¡¼¡Ê¥Ü¡¼¥Ê¥¹·îÉÔ°ìÃ×¡Ë','A','¥Ü¡¼¥Ê¥¹·î¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹¡£»ÙÊ§¶èÊ¬¤ò³ÎÇ§¤·¤Æ²¼¤µ¤¤¡£');";
+$sql[281] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45001','0000','¼è¾Ã¥¨¥é¡¼¡ÊÂÐ¾Ý¶ÈÌ³°Ê³°¡Ë','A','CCS¤Ø¤ªÌä¤¤¹ç¤ï¤»²¼¤µ¤¤¡£');";
+$sql[282] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45002','0000','¼è¾Ã¥¨¥é¡¼¡ÊÍúÎò¤Ê¤·¡Ë','A','³ºÅö¤¹¤ë¼è°ú¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó¡£¼è¾Ã¥Ç¡¼¥¿¤òºÆÅÙ¤´³ÎÇ§¤¯¤À¤µ¤¤¡£');";
+$sql[283] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45003','0000','¼è¾Ã¥¨¥é¡¼¡ÊÍúÎò¤Ê¤·¡Ë','A','³ºÅö¥Ç¡¼¥¿¤Î½ô¾ò·ï¤Ç°Û¤Ê¤ë¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤¹¡£¼è¾Ã¥Ç¡¼¥¿¤òºÆÅÙ¤´³ÎÇ§¤¯¤À¤µ¤¤¡£');";
+$sql[284] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45004','0000','¼è¾Ã¥¨¥é¡¼¡ÊÆó½Å¼è¾Ã¡Ë','A','³ºÅö¥Ç¡¼¥¿¤Ï´û¤Ë¼è¾ÃºÑ¤Ç¤¹¡£');";
+$sql[285] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45005','0000','¼è¾Ã¥¨¥é¡¼¡Ê·î¤Þ¤¿¤¬¤ê¡Ë','A','´û¤Ë£Í£Ô¤ò¥«¡¼¥É²ñ¼Ò¤ØÈ¯Á÷¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£¼è¾Ã¤ò¤¹¤ë¾ì¹ç¤ÏÄ¾ÀÜ¥«¡¼¥É²ñ¼Ò¤Ø¤ªÌä¤¤¹ç¤»¤¯¤À¤µ¤¤¡£');";
+$sql[286] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45006','0000','¼è¾Ã¥¨¥é¡¼¡Ê¼è¾ÃÉÔÍ×¡Ë','A','³ºÅö¥Ç¡¼¥¿¤Ï¼è¾Ã¤ÎÉ¬Í×¤¬¤¢¤ê¤Þ¤»¤ó¡£');";
+$sql[287] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('H97','45007','0000','¼è¾Ã¥¨¥é¡¼¡Ê²¾Çä¤Î¼è¾ÃÉÔ²Ä¡Ë','A','´û¤Ë¼ÂÇä¾åºÑ¤Ç¤¹¡£¼ÂÇä¾å¼è¾Ã¤Î¥Ç¡¼¥¿¤òÁ÷¿®¤·¤Æ²¼¤µ¤¤¡£');";
+$sql[288] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z00','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[289] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z01','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[290] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z02','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[291] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z03','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[292] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z04','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[293] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z05','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[294] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z00','10Z06','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[295] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z01','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[296] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z02','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[297] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z03','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[298] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z04','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[299] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z05','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[300] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z06','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[301] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z07','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[302] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z08','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[303] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z09','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[304] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z10','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[305] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z11','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[306] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z21','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[307] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z22','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[308] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z51','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[309] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z52','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[310] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z53','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[311] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z54','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[312] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z55','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[313] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z56','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[314] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z57','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[315] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z58','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[316] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z59','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[317] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z60','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[318] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z61','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[319] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z62','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[320] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z63','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[321] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z64','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[322] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z65','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[323] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z69','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[324] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z70','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[325] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z71','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[326] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z72','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[327] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z73','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[328] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z74','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[329] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z01','10Z75','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[330] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z01','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[331] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z02','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[332] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z03','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[333] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z04','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[334] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z05','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[335] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z06','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[336] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z07','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[337] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z08','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[338] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z09','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[339] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z22','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[340] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z23','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[341] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z24','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[342] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z25','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[343] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z26','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[344] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z27','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[345] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z51','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[346] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z52','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[347] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z53','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[348] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z54','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[349] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z55','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[350] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z56','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[351] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z57','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[352] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z58','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[353] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z59','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[354] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z60','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[355] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z61','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[356] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z62','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[357] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z63','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[358] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z64','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[359] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z65','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[360] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z69','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[361] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z70','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[362] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z71','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[363] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z72','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[364] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z73','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[365] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z74','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[366] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z02','10Z75','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[367] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z10','10Z10','0100','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[368] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z10','10Z10','0200','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[369] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z10','10Z10','0300','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[370] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0001','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[371] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0002','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[372] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0003','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[373] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0011','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[374] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0012','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[375] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0021','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[376] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0022','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[377] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0023','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[378] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0031','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[379] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0032','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[380] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0033','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[381] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0041','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[382] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0042','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[383] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0043','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[384] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0051','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[385] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0052','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[386] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0053','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[387] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0054','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[388] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0061','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[389] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0062','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[390] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0063','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[391] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0071','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[392] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0072','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[393] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0073','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[394] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0074','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[395] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0075','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[396] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0081','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[397] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0082','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[398] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0083','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[399] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0091','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[400] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0092','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[401] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0093','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[402] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0101','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[403] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0102','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[404] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0103','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[405] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0111','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[406] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0112','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[407] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0113','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[408] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0114','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[409] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0115','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[410] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0121','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[411] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0122','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[412] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0123','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[413] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0124','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[414] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0125','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[415] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0131','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[416] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0132','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[417] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0133','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[418] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0134','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[419] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0135','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[420] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0136','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[421] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0141','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[422] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z11','10Z11','0151','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[423] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','1001','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[424] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','1002','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[425] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2002','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','¡Ö¼ÂÇä¾å¡¢¼è¾Ã¡¢ÊÖÉÊ¡¢·î¸ÙÊÖÉÊ¡×¤Î¾ì¹ç¡¢SPID¤È¥ª¡¼¥À¡¼ID¤¬°ìÃ×¤¹¤ë¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Þ¤»¤ó¡£');";
+$sql[426] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2007','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[427] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2008','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[428] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2009','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[429] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2010','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','SPID¤È¥ª¡¼¥À¡¼ID¤¬°ìÃ×¤·¡¢·èºÑ¤¬½ªÎ»¤·¤Æ¤¤¤Ê¤¤¥Ð¥Ã¥Á¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Þ¤¹¡£');";
+$sql[430] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2011','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','¡ÖÍ­¸úÀ­¥Á¥§¥Ã¥¯¡¢Çä¾å¡¢²¾Çä¾å¡¢´Ê°×¥ª¡¼¥½¥ê¡×¤Î¾ì¹ç¡¢SPID¤È¥ª¡¼¥À¡¼ID¤¬°ìÃ×¤·¡¢½èÍý¶èÊ¬¤¬¡Ö¼è¾Ã¡¢ÊÖÉÊ¡¢·î¸ÙÊÖÉÊ¡×°Ê³°¤Ç·èºÑ¤¬À®¸ù¤·¤Æ¤¤¤ë¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Þ¤¹¡£');";
+$sql[431] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2012','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','¡Ö¼ÂÇä¾å¡×¤Î¾ì¹ç¡¢SPID¤È¥ª¡¼¥À¡¼ID¤¬°ìÃ×¤·¡¢½èÍý¶èÊ¬¤¬¡Ö²¾Çä¾å¡×¤Ç·èºÑ¤¬À®¸ù¤·¤Æ¤¤¤ë¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Þ¤»¤ó¡£');";
+$sql[432] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2013','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','¡Ö¼è¾Ã¡¢ÊÖÉÊ¡¢·î¸ÙÊÖÉÊ¡×¤Î¾ì¹ç¡¢SPID¤È¥ª¡¼¥À¡¼ID¤¬°ìÃ×¤·¡¢·èºÑ¤¬À®¸ù¤·¤Æ¤¤¤ë¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Þ¤»¤ó¡£');";
+$sql[433] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','2014','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','¡Ö¼è¾Ã¡¢ÊÖÉÊ¡¢·î¸ÙÊÖÉÊ¡×¤Î¾ì¹ç¡¢SPID¤È¥ª¡¼¥À¡¼ID¤¬°ìÃ×¤·¡¢½èÍý¶èÊ¬¤¬¡ÖÇä¾å¡¢²¾Çä¾å¡¢¼ÂÇä¾å¡¢´Ê°×¥ª¡¼¥½¥ê¡×¤Ç·èºÑ¤¬À®¸ù¤·¤Æ¤¤¤ë¥Ç¡¼¥¿¤¬Â¸ºß¤·¤Þ¤»¤ó¡£');";
+$sql[434] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','3000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[435] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','4000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[436] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z12','10Z12','5000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[437] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z20','20Z20','0001','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[438] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z20','20Z20','0002','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[439] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z20','20Z20','0003','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[440] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z20','20Z20','0004','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+$sql[441] = "INSERT INTO dtb_gmo_err (err_code,detail_code01,detail_code02,err_name,err_type,err_message) values ('Z99','10Z99','0000','·èºÑ¥»¥ó¥¿¡¼Â¦¸¡ÃÎ¥¨¥é¡¼','F','CCS¤Ë¤ªÌä¤¤¹ç¤»²¼¤µ¤¤');";
+
+
+
+foreach($sql as $val){
+	$objQuery->query($val);
+}
+
+?>
Index: /branches/comu/html/test/kakinaka/templates/utf.tpl
===================================================================
--- /branches/comu/html/test/kakinaka/templates/utf.tpl	(revision 11982)
+++ /branches/comu/html/test/kakinaka/templates/utf.tpl	(revision 11982)
@@ -0,0 +1,48 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja">
+<!--{*
+ * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *}-->
+<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" />
+<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>
+<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">
+<!--
+	<!--{$tpl_javascript}-->
+//-->
+</script>
+</head>
+
+<!-- ¢§ £Â£Ï£Ä£ÙÉô ¥¹¥¿¡¼¥È -->
+<body bgcolor="#ffe9e6" text="#555555" link="#3a75af" vlink="#3a75af" alink="#3a75af" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="preLoadImg('<!--{$smarty.const.URL_DIR}-->'); <!--{$tpl_onload}-->">
+<noscript>
+<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->css/common.css" type="text/css" />
+</noscript>
+<!--¢§CONTENTS-->
+<table width="" cellspacing="0" cellpadding="0" summary=" ">
+	<tr>
+		<td bgcolor="#ffffff" align="left">
+			<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$smarty.const.IMAGE_TEMP_DIR}-->kaki.jpg" alt="¥°¥é¥Õ">
+		</td>
+	</tr>
+</table>
+<!--¢¥CONTENTS-->
+</body>
+<!-- ¢¥ £Â£Ï£Ä£ÙÉô ¥¨¥ó¥É -->
+
+</html>
Index: /branches/comu/html/test/uehara/test.php
===================================================================
--- /branches/comu/html/test/uehara/test.php	(revision 5)
+++ /branches/comu/html/test/uehara/test.php	(revision 11982)
@@ -2,6 +2,15 @@
 require_once("../../require.php");
 
-$test= "eee<{assign_product_id}>aaaa";
-$test = ereg_replace("<{assign_product_id}>", "test", $test);
-echo $test;
+$objQuery = new SC_Query();
+
+$objQuery->begin();
+$arrCustomerMail = $objQuery->getAll("
+UPDATE dtb_customer
+SET mailmaga_flg = (
+SELECT mail_flag
+FROM dtb_customer_mail
+WHERE dtb_customer.email = dtb_customer_mail.email
+)");
+$objQuery->commit();
+
 ?>
Index: /branches/comu/html/shopping/complete.php
===================================================================
--- /branches/comu/html/shopping/complete.php	(revision 11730)
+++ /branches/comu/html/shopping/complete.php	(revision 11982)
@@ -61,19 +61,25 @@
 	}
 
-	//¤½¤ÎÂ¾¾ðÊó¤Î¼èÆÀ
-	$other_data = $objQuery->get("dtb_order", "memo02", "order_id = ? ", array($order_id));
-	if($other_data != "") {
-		$arrOther = unserialize($other_data);
-		
-		// ¥Ç¡¼¥¿¤òÊÔ½¸
-		foreach($arrOther as $key => $val){
-			// URL¤Î¾ì¹ç¤Ë¤Ï¥ê¥ó¥¯¤Ä¤­¤ÇÉ½¼¨¤µ¤»¤ë
-			if (preg_match('/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $val["value"])) {
-				$arrOther[$key]["value"] = "<a href='#' onClick=\"window.open('". $val["value"] . "'); \" >" . $val["value"] ."</a>";
+	// ¤½¤ÎÂ¾¾ðÊó¤Î¼èÆÀ
+	$arrResults = $objQuery->getall("SELECT memo02, memo05 FROM dtb_order WHERE order_id = ? ", array($order_id));
+
+	if (count($arrResults) > 0) {	
+		if (isset($arrResults[0]["memo02"]) || isset($arrResults[0]["memo05"])) {
+			// ´°Î»²èÌÌ¤ÇÉ½¼¨¤¹¤ë·èºÑÆâÍÆ
+			$arrOther = unserialize($arrResults[0]["memo02"]);
+			// ´°Î»²èÌÌ¤«¤éÁ÷¿®¤¹¤ë·èºÑÆâÍÆ
+			$arrModuleParam = unserialize($arrResults[0]["memo05"]);
+			
+			// ¥Ç¡¼¥¿¤òÊÔ½¸
+			foreach($arrOther as $key => $val){
+				// URL¤Î¾ì¹ç¤Ë¤Ï¥ê¥ó¥¯¤Ä¤­¤ÇÉ½¼¨¤µ¤»¤ë
+				if (preg_match('/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $val["value"])) {
+					$arrOther[$key]["value"] = "<a href='#' onClick=\"window.open('". $val["value"] . "'); \" >" . $val["value"] ."</a>";
+				}
 			}
+					
+			$objPage->arrOther = $arrOther;
+			$objPage->arrModuleParam = $arrModuleParam;
 		}
-				
-		$objPage->arrOther = $arrOther;
-		
 	}
 	
@@ -229,17 +235,4 @@
 	$sqlval['reminder'] = $arrData['reminder'];
 	$sqlval['reminder_answer'] = $arrData['reminder_answer'];
-	// ²ñ°÷²¾ÅÐÏ¿
-	$sqlval['status'] = 1;
-	// URLÈ½ÄêÍÑ¥­¡¼
-	$sqlval['secret_key'] = sfGetUniqRandomId("t"); 
-	
-	$objQuery = new SC_Query();
-	$sqlval['create_date'] = "now()";
-	$sqlval['update_date'] = "now()";
-	$objQuery->insert("dtb_customer", $sqlval);
-	
-	// ¸ÜµÒID¤Î¼èÆÀ
-	$arrRet = $objQuery->select("customer_id", "dtb_customer", "secret_key = ?", array($sqlval['secret_key']));
-	$customer_id = $arrRet[0]['customer_id'];
 	
 	// ¥á¥ë¥Þ¥¬ÇÛ¿®ÍÑ¥Õ¥é¥°¤ÎÈ½Äê
@@ -258,11 +251,21 @@
 		break;
 	}
-
+	// ¥á¥ë¥Þ¥¬¥Õ¥é¥°
+	$sqlval['mailmaga_flg'] = $mail_flag;
+		
+	// ²ñ°÷²¾ÅÐÏ¿
+	$sqlval['status'] = 1;
+	// URLÈ½ÄêÍÑ¥­¡¼
+	$sqlval['secret_key'] = sfGetUniqRandomId("t"); 
+	
 	$objQuery = new SC_Query();
-	$objQuery->begin();	
-	// ¥á¥ë¥Þ¥¬ÇÛ¿®ÍÑ¥Æ¡¼¥Ö¥ëÅÐÏ¿
-	lfRegistNonCustomer($arrData['order_email'], $mail_flag, $objQuery);
-	$objQuery->commit();
-
+	$sqlval['create_date'] = "now()";
+	$sqlval['update_date'] = "now()";
+	$objQuery->insert("dtb_customer", $sqlval);
+	
+	// ¸ÜµÒID¤Î¼èÆÀ
+	$arrRet = $objQuery->select("customer_id", "dtb_customer", "secret_key = ?", array($sqlval['secret_key']));
+	$customer_id = $arrRet[0]['customer_id'];
+	
 	//¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®
 	$objMailPage = new LC_Page();
@@ -300,5 +303,5 @@
 
 	// ¼õÃí¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤Þ¤Ê¤¤Îó¤ò½üµî
-	unset($sqlval['mail_flag']);		// ¥á¥ë¥Þ¥¬¥Á¥§¥Ã¥¯
+	unset($sqlval['mailmaga_flg']);		// ¥á¥ë¥Þ¥¬¥Á¥§¥Ã¥¯
 	unset($sqlval['deliv_check']);		// ÊÌ¤Î¤ªÆÏ¤±Àè¥Á¥§¥Ã¥¯
 	unset($sqlval['point_check']);		// ¥Ý¥¤¥ó¥ÈÍøÍÑ¥Á¥§¥Ã¥¯
@@ -307,5 +310,6 @@
 	unset($sqlval['reminder']);			// ¥ê¥Þ¥¤¥ó¥À¡¼¼ÁÌä
 	unset($sqlval['reminder_answer']);	// ¥ê¥Þ¥¤¥ó¥À¡¼Åú¤¨
-
+	unset($sqlval['mail_flag']);		// ¥á¡¼¥ë¥Õ¥é¥°
+	
 	// ÃíÊ¸¥¹¥Æ¡¼¥¿¥¹:»ØÄê¤¬Ìµ¤±¤ì¤Ð¿·µ¬¼õÉÕ¤ËÀßÄê
 	if($sqlval["status"] == ""){
@@ -314,5 +318,5 @@
 	
 	// ÊÌ¤Î¤ªÆÏ¤±Àè¤ò»ØÄê¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ÇÛÁ÷Àè¤ËÅÐÏ¿½»½ê¤ò¥³¥Ô¡¼¤¹¤ë¡£
-	if($arrData["deliv_check"] != "1") {
+	if($arrData["deliv_check"] == "-1") {
 		$sqlval['deliv_name01'] = $arrData['order_name01'];
 		$sqlval['deliv_name02'] = $arrData['order_name02'];
@@ -340,7 +344,4 @@
 	// INSERT¤Î¼Â¹Ô
 	$objQuery->insert("dtb_order", $sqlval);
-	
-	// ¥á¥ë¥Þ¥¬ÇÛ¿®´õË¾¾ðÊó¤ÎÅÐÏ¿
-	lfRegistNonCustomer($arrData['order_email'], $arrData['mail_flag'], $objQuery);
 	
 	return $order_id;
@@ -495,18 +496,4 @@
 }
 
-/* Èó²ñ°÷¤Î¥á¥ë¥Þ¥¬¥Æ¡¼¥Ö¥ë¤Ø¤ÎÅÐÏ¿ */
-function lfRegistNonCustomer($email, $mail_flag, $objQuery) {
-	// ²ñ°÷¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç
-	if(!sfCheckCustomerMailMaga($email)) {
-		$where = "email = ?";
-		$objQuery->delete("dtb_customer_mail", $where, array($email));
-		$sqlval['email'] = $email;
-		$sqlval['mail_flag'] = $mail_flag;
-		$sqlval['create_date'] = "now()";
-		$sqlval['update_date'] = "now()";
-		$objQuery->insert("dtb_customer_mail", $sqlval);
-	}
-}
-
 // ºß¸Ë¤ò¸º¤é¤¹½èÍý
 function lfReduceStock($objQuery, $arrID, $quantity) {
Index: /branches/comu/html/shopping/payment.php
===================================================================
--- /branches/comu/html/shopping/payment.php	(revision 11730)
+++ /branches/comu/html/shopping/payment.php	(revision 11982)
@@ -50,4 +50,8 @@
 	$objPage->tpl_login = '1';
 	$objPage->tpl_user_point = $objCustomer->getValue('point');
+	//Ìá¤êÀèURL
+	$objPage->tpl_back_url = URL_DELIV_TOP;
+} else {
+	$objPage->tpl_back_url = URL_SHOP_TOP . "?from=nonmember";
 }
 
Index: /branches/comu/html/shopping/deliv.php
===================================================================
--- /branches/comu/html/shopping/deliv.php	(revision 11730)
+++ /branches/comu/html/shopping/deliv.php	(revision 11982)
@@ -101,6 +101,6 @@
 // ²ñ°÷ÅÐÏ¿½»½ê¤ËÁ÷¤ë
 case 'customer_addr':
-	// ¤ªÆÏ¤±Àè¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¹¹¿·½èÍý¤ò¹Ô¤¦
-	if ($_POST['deli'] != "") {
+	// ²ñ°÷ÅÐÏ¿½»½ê¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if ($_POST['deliv_check'] == '-1') {
 		// ²ñ°÷¾ðÊó¤Î½»½ê¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à
 		lfRegistDelivData($uniqid, $objCustomer);
@@ -110,17 +110,9 @@
 		header("Location: " . URL_SHOP_PAYMENT);
 		exit;
-	}else{
-		// ¥¨¥é¡¼¤òÊÖ¤¹
-		$arrErr['deli'] = '¢¨ ¤ªÆÏ¤±Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£';
-	}
-	break;
-	
-// ÅÐÏ¿ºÑ¤ß¤ÎÊÌ¤Î¤ªÆÏ¤±Àè¤ËÁ÷¤ë
-case 'other_addr':
-	// ¤ªÆÏ¤±Àè¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¹¹¿·½èÍý¤ò¹Ô¤¦
-	if ($_POST['deli'] != "") {
-		if (sfIsInt($_POST['other_deliv_id'])) {
+	// ÊÌ¤Î¤ªÆÏ¤±Àè¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	} elseif($_POST['deliv_check'] >= 1) {
+		if (sfIsInt($_POST['deliv_check'])) {
 			// ÅÐÏ¿ºÑ¤ß¤ÎÊÌ¤Î¤ªÆÏ¤±Àè¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à
-			lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['other_deliv_id']);
+			lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['deliv_check']);
 			// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
 			$objSiteSess->setRegistFlag();
@@ -132,26 +124,6 @@
 		// ¥¨¥é¡¼¤òÊÖ¤¹
 		$arrErr['deli'] = '¢¨ ¤ªÆÏ¤±Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£';
-	}
-	break;
-
-/*
-// ÊÌ¤Î¤ªÆÏ¤±Àè¤ò»ØÄê
-case 'new_addr':
-	// ÆþÎÏÃÍ¤ÎÊÑ´¹
-	$objFormParam->convParam();
-	$objPage->arrErr = lfCheckError($arrRet);
-	// ÆþÎÏ¥¨¥é¡¼¤Ê¤·
-	if(count($objPage->arrErr) == 0) {
-		// DB¤Ø¤ªÆÏ¤±Àè¤òÅÐÏ¿
-		lfRegistNewAddrData($uniqid, $objCustomer);
-		// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
-		$objSiteSess->setRegistFlag();
-		// ¤ª»ÙÊ§¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°
-		header("Location: " . URL_SHOP_PAYMENT);
-		exit;		
-	}
-	break;
-*/
-
+	}	
+	break;
 // Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
 case 'return':
@@ -180,4 +152,5 @@
 $objOtherAddr = $objQuery->select($col, "dtb_other_deliv", $where, array($_SESSION['customer']['customer_id']));
 $objPage->arrAddr = $arrCustomerAddr;
+$objPage->tpl_addrmax = count($objOtherAddr);
 $cnt = 1;
 foreach($objOtherAddr as $val) {
@@ -189,4 +162,5 @@
 $objPage->arrForm = $objFormParam->getFormParamList();
 $objPage->arrErr = $arrErr;
+
 $objView->assignobj($objPage);
 // ¥Õ¥ì¡¼¥à¤òÁªÂò(¥­¥ã¥ó¥Ú¡¼¥ó¥Ú¡¼¥¸¤«¤éÁ«°Ü¤Ê¤éÊÑ¹¹)
@@ -208,4 +182,5 @@
 	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ2", "deliv_tel02", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
 	$objFormParam->addParam("ÅÅÏÃÈÖ¹æ3", "deliv_tel03", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+	$objFormParam->addParam("", "deliv_check");	
 }
 
@@ -238,5 +213,5 @@
 	$sqlval['update_date'] = 'Now()';
 	$sqlval['customer_id'] = $objCustomer->getValue('customer_id');
-    $sqlval['deliv_check'] = '1';
+    $sqlval['deliv_check'] = '-1';
 	$sqlval['deliv_name01'] = $objCustomer->getValue('name01');
     $sqlval['deliv_name02'] = $objCustomer->getValue('name02');
@@ -271,5 +246,5 @@
 	$arrRet = $objQuery->select("*", "dtb_other_deliv", $where, array($other_deliv_id));
 	
-	$sqlval['deliv_check'] = '1';
+	$sqlval['deliv_check'] = $other_deliv_id;
     $sqlval['deliv_name01'] = $arrRet[0]['name01'];
     $sqlval['deliv_name02'] = $arrRet[0]['name02'];
