Index: /branches/comu-ver2/data/class/pages/contact/LC_Page_Contact.php
===================================================================
--- /branches/comu-ver2/data/class/pages/contact/LC_Page_Contact.php	(revision 16741)
+++ /branches/comu-ver2/data/class/pages/contact/LC_Page_Contact.php	(revision 17074)
@@ -38,43 +38,9 @@
 
     /**
-     * Page を初期化する.
-     *
-     * @return void
-     */
-    function init() {
-        parent::init();
-        $this->tpl_mainpage = 'contact/index.tpl';
-        $this->tpl_title = 'お問い合わせ(入力ページ)';
-        $this->tpl_page_category = 'contact';
-
-        $masterData = new SC_DB_MasterData_Ex();
-        $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank"));
-    }
-
-    /**
-     * Page のプロセス.
-     *
-     * @return void
-     */
-    function process() {
-        global $objCampaignSess;
-
-        $conn = new SC_DBConn();
-        $this->objView = new SC_SiteView();
-        $objCampaignSess = new SC_CampaignSession();
-        $objDb = new SC_Helper_DB_Ex();
-        $CONF = $objDb->sf_getBasisData();			// 店舗基本情報
-        SC_Utils_Ex::sfDomainSessionStart();
-
-        $objCustomer = new SC_Customer();
-
-        $this->arrData = isset($_SESSION['customer']) ? $_SESSION['customer'] : "";
-
-        // レイアウトデザインを取得
-        $layout = new SC_Helper_PageLayout_Ex();
-        $layout->sfGetPageLayout($this, false, DEF_LAYOUT);
-
-        //フォーム値変換用カラム
-        $arrConvertColumn = array(
+     * フォーム値変換用カラム
+     *
+     *
+     */
+     var $arrConvertColumn = array(
                                      array(  "column" => "name01",		"convert" => "aKV" ),
                                      array(  "column" => "name02",		"convert" => "aKV" ),
@@ -93,47 +59,62 @@
                                   );
 
+    /**
+     * Page を初期化する.
+     *
+     * @return void
+     */
+    function init() {
+        parent::init();
+        $this->tpl_mainpage = 'contact/index.tpl';
+        $this->tpl_title = 'お問い合わせ(入力ページ)';
+        $this->tpl_page_category = 'contact';
+
+        $masterData = new SC_DB_MasterData_Ex();
+        $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank"));
+    }
+
+    /**
+     * Page のプロセス.
+     *
+     * @return void
+     */
+    function process() {
+        global $objCampaignSess;
+
+        $conn = new SC_DBConn();
+        $this->objView = new SC_SiteView();
+        $objCampaignSess = new SC_CampaignSession();
+        $objDb = new SC_Helper_DB_Ex();
+        $CONF = $objDb->sf_getBasisData();			// 店舗基本情報
+        SC_Utils_Ex::sfDomainSessionStart();
+
+        $objCustomer = new SC_Customer();
+
+        $this->arrData = isset($_SESSION['customer']) ? $_SESSION['customer'] : "";
+
+        // レイアウトデザインを取得
+        $layout = new SC_Helper_PageLayout_Ex();
+        $layout->sfGetPageLayout($this, false, DEF_LAYOUT);
+
+        //フォーム値変換用カラム
+        $arrConvertColumn = $this->lfGetConvertColumn();
+
         if (!isset($_POST['mode'])) $_POST['mode'] = "";
 
         switch ($_POST['mode']) {
             case 'confirm':
-            // エラーチェック
-            $this->arrForm = $_POST;
-            $this->arrForm['email'] = strtolower($_POST['email']);
-            $this->arrForm = $this->lfConvertParam($this->arrForm,$arrConvertColumn);
-            $this->arrErr = $this->lfErrorCheck($this->arrForm);
-            if ( ! $this->arrErr ){
-                // エラー無しで完了画面
-                $this->tpl_mainpage = 'contact/confirm.tpl';
-                $this->tpl_title = 'お問い合わせ(確認ページ)';
-            } else {
-                foreach ($this->arrForm as $key => $val){
-                    $this->$key = $val;
-                }
-            }
-            break;
+              $this->lfContactConfirm();
+              break;
 
             case 'return':
-            foreach ($_POST as $key => $val){
-                $this->$key = $val;
-                }
-            break;
+              $this->lfContactReturn();
+              break;
 
             case 'complete':
-            $this->arrForm = $_POST;
-            $this->arrForm['email'] = strtolower($_POST['email']);
-            $this->arrForm = $this->lfConvertParam($this->arrForm,$arrConvertColumn);
-            $this->arrErr = $this->lfErrorCheck($this->arrForm);
-            if(!$this->arrErr) {
-                $this->lfSendMail($CONF, $this);
-                // 完了ページへ移動する
-                $this->sendRedirect($this->getLocation("./complete.php", array(), true));
-                exit;
-            } else {
-                SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
-            }
-            break;
+              $this->lfContactComplete();
+              break;
 
             default:
-            break;
+              break;
         }
 
@@ -181,4 +162,57 @@
     // }}}
     // {{{ protected functions
+
+    /**
+     * 確認画面
+     *
+     * @return void
+     */
+    function lfContactConfirm() {
+        // エラーチェック
+        $this->arrForm = $_POST;
+        $this->arrForm['email'] = strtolower($_POST['email']);
+        $this->arrForm = $this->lfConvertParam($this->arrForm,$this->arrConvertColumn);
+        $this->arrErr = $this->lfErrorCheck($this->arrForm);
+        if ( ! $this->arrErr ){
+            // エラー無しで完了画面
+            $this->tpl_mainpage = 'contact/confirm.tpl';
+            $this->tpl_title = 'お問い合わせ(確認ページ)';
+        } else {
+            foreach ($this->arrForm as $key => $val){
+                $this->$key = $val;
+            }
+        }
+    }
+
+    /**
+     * 前に戻る
+     *
+     * @return void
+     */
+    function lfContactReturn() {
+        foreach ($_POST as $key => $val){
+            $this->$key = $val;
+        }
+    }
+
+    /**
+     * 完了ページへ
+     *
+     * @return void
+     */
+    function lfContactComplete() {
+        $this->arrForm = $_POST;
+        $this->arrForm['email'] = strtolower($_POST['email']);
+        $this->arrForm = $this->lfConvertParam($this->arrForm,$this->arrConvertColumn);
+        $this->arrErr = $this->lfErrorCheck($this->arrForm);
+        if(!$this->arrErr) {
+            $this->lfSendMail($CONF, $this);
+            // 完了ページへ移動する
+            $this->sendRedirect($this->getLocation("./complete.php", array(), true));
+            exit;
+        } else {
+            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
+        }
+    }
 
     //エラーチェック処理部
