Index: /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php	(revision 19991)
+++ /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php	(revision 20041)
@@ -92,7 +92,5 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
             case 'delete':
                 // TODO
Index: /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php	(revision 19960)
+++ /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php	(revision 20041)
@@ -132,7 +132,5 @@
         $this->shipping = $objPurchase->getShippingTemp();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         // 前のページに戻る
         case 'return':
Index: /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php	(revision 20018)
+++ /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php	(revision 20041)
@@ -140,7 +140,5 @@
         $this->arrPayment = $objPurchase->getPayment($total_inctax, $objCartSess->getAllProductClassID($this->cartKey));
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'confirm':
             // 入力値の変換
@@ -218,5 +216,5 @@
     }
 
-  
+
     /* 入力内容のチェック */
     function lfCheckError($arrData, $arrPayment) {
Index: /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php	(revision 19960)
+++ /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php	(revision 20041)
@@ -122,7 +122,5 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'nonmember_confirm':
             $this->tpl_mainpage = 'shopping/nonmember_input.tpl';
Index: /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Deliv.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Deliv.php	(revision 19943)
+++ /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Deliv.php	(revision 20041)
@@ -103,13 +103,11 @@
         $this->cartKey = $objCartSess->getKey();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         // ログインチェック
-        if($_POST['mode'] != 'login' && !$objCustomer->isLoginSuccess(true)) {
+        if($this->getMode() != 'login' && !$objCustomer->isLoginSuccess(true)) {
             // 不正アクセスとみなす
             SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
         }
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'login':
             $this->objLoginFormParam->toLower('login_email');
@@ -315,5 +313,5 @@
         $objErr->arrErr = $this->objFormParam->checkError();
         // 複数項目チェック
-        if ($_POST['mode'] == 'login'){
+        if ($this->getMode() == 'login'){
             $objErr->doFunc(array("メールアドレス", "login_email", STEXT_LEN), array("EXIST_CHECK"));
             $objErr->doFunc(array("パスワード", "login_pass", STEXT_LEN), array("EXIST_CHECK"));
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php	(revision 20041)
@@ -78,8 +78,6 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         // 要求判定
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         // 編集処理
         case 'edit':
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Point.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Point.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Point.php	(revision 20041)
@@ -93,5 +93,5 @@
         }
 
-        if(isset($_POST['mode']) && !empty($_POST['mode'])) {
+        if(!empty($this->getMode())) {
             // 入力値の変換
             $this->objFormParam->convParam();
@@ -99,5 +99,5 @@
 
             if(count($this->arrErr) == 0) {
-                switch($_POST['mode']) {
+                switch($this->getMode()) {
                 case 'update':
                     $this->lfUpdateData(); // 既存編集
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php	(revision 19827)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php	(revision 20041)
@@ -70,5 +70,5 @@
         $this->tpl_mainno = 'basis';
 
-        $this->tpl_mode = $_GET['mode'];
+        $this->tpl_mode = $this->getMode();
         $this->exec = (boolean)$_GET['exec'];
     }
@@ -247,5 +247,5 @@
         echo "<img src='". $img_path ."space_w.gif'>";
         echo "</div>\n";
-        
+
         ?>
         <script type="text/javascript" language="javascript">
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment_Input.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment_Input.php	(revision 19943)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment_Input.php	(revision 20041)
@@ -92,5 +92,5 @@
         $this->objFormParam->setParam($_POST);
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'edit':
             // 入力値の変換
@@ -124,6 +124,6 @@
         }
 
-        if($_POST['mode'] == "") {
-            switch($_GET['mode']) {
+        if($this->getMode() == "") {
+            switch($this->getMode()) {
             case 'pre_edit':
                 if(SC_Utils_Ex::sfIsInt($_GET['payment_id'])) {
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Kiyaku.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Kiyaku.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Kiyaku.php	(revision 20041)
@@ -74,8 +74,6 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         // 要求判定
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         // 編集処理
         case 'edit':
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment.php	(revision 20041)
@@ -73,7 +73,5 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             case 'delete':
                 // ランク付きレコードの削除
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php	(revision 19996)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php	(revision 20041)
@@ -93,5 +93,5 @@
         }
 
-        if(isset($_POST['mode']) && !empty($_POST["mode"])) {
+        if(!empty($this->getMode())) {
             // POSTデータの引き継ぎ
             $this->arrForm = $_POST;
@@ -104,5 +104,5 @@
 
             if(count($this->arrErr) == 0) {
-                switch($_POST['mode']) {
+                switch($this->getMode()) {
                 case 'update':
                     $this->lfUpdateData($this->arrForm);	// 既存編集
@@ -206,5 +206,5 @@
         $ret = $objQuery->insert("dtb_baseinfo", $sqlval);
     }
-    
+
 
     /* 取得文字列の変換 */
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Control.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Control.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Control.php	(revision 20041)
@@ -82,7 +82,5 @@
         $this->objFormParam->setParam($_POST);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             case 'edit':
                 // 入力値の変換
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery_Input.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery_Input.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery_Input.php	(revision 20041)
@@ -57,5 +57,5 @@
         $this->arrProductType = $masterData->getMasterData("mtb_product_type");
         $this->tpl_subtitle = '配送業者設定';
-        $this->mode = isset($_POST['mode']) ? $_POST['mode'] : '';
+        $this->mode = $this->getMode();
     }
 
@@ -158,5 +158,5 @@
      * 配送情報を登録する
      *
-     * @return $deliv_id 
+     * @return $deliv_id
      */
     function lfRegistData() {
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Mail.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Mail.php	(revision 19974)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Mail.php	(revision 20041)
@@ -77,7 +77,5 @@
         $this->arrMailTEMPLATE = $masterData->getMasterData("mtb_mail_template");
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        if ( $_POST['mode'] == 'id_set'){
+        if ( $this->getMode() == 'id_set'){
             // テンプレートプルダウン変更時
 
@@ -92,5 +90,5 @@
             }
 
-        } elseif ( $_POST['mode'] == 'regist' && SC_Utils_Ex::sfCheckNumLength( $_POST['template_id']) ){
+        } elseif ( $this->getMode() == 'regist' && SC_Utils_Ex::sfCheckNumLength( $_POST['template_id']) ){
 
             // POSTデータの引き継ぎ
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Delivery.php	(revision 20041)
@@ -77,7 +77,5 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'delete':
             // ランク付きレコードの削除
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Tradelaw.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Tradelaw.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Tradelaw.php	(revision 20041)
@@ -96,5 +96,5 @@
         }
 
-        if(isset($_POST['mode']) && !empty($_POST['mode'])) {
+        if(!empty($this->getMode())) {
             // 入力値の変換
             $this->objFormParam->convParam();
@@ -102,5 +102,5 @@
 
             if(count($this->arrErr) == 0) {
-                switch($_POST['mode']) {
+                switch($this->getMode()) {
                 case 'update':
                     $this->lfUpdateData(); // 既存編集
Index: /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Seo.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Seo.php	(revision 19967)
+++ /branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Seo.php	(revision 20041)
@@ -89,7 +89,5 @@
         $page_id = (isset($_POST['page_id'])) ? $_POST['page_id'] : '';
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        if($_POST['mode'] == "confirm") {
+        if($this->getMode() == "confirm") {
             // エラーチェック
             $this->arrErr[$device_type_id][$page_id] = $this->lfErrorCheck($_POST['meta'][$device_type_id][$page_id]);
@@ -230,5 +228,5 @@
         $objLayout = new SC_Helper_PageLayout_Ex();
         $arrRet = array();
-        
+
         $arrRet[DEVICE_TYPE_PC] = $objLayout->lfgetPageData('edit_flg = ? AND device_type_id = ?', array('2', DEVICE_TYPE_PC));
         $arrRet[DEVICE_TYPE_MOBILE] = $objLayout->lfgetPageData('edit_flg = ? AND device_type_id = ?', array('2', DEVICE_TYPE_MOBILE));
Index: /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php	(revision 19999)
+++ /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php	(revision 20041)
@@ -260,8 +260,7 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
 
         // 顧客削除
-        if ($_POST['mode'] == "delete") {
+        if ($this->getMode() == "delete") {
             $sql = "SELECT status,email FROM dtb_customer WHERE customer_id = ? AND del_flg = 0";
             $result_customer = $objQuery->getAll($sql, array($_POST["edit_customer_id"]));
@@ -275,5 +274,5 @@
         }
         // 登録メール再送
-        if ($_POST['mode'] == "resend_mail") {
+        if ($this->getMode() == "resend_mail") {
             $arrRet = $objQuery->select("name01, name02, secret_key, email, email_mobile", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"]));
             if( is_array($arrRet) === true && count($arrRet) > 0 ){
@@ -320,6 +319,6 @@
 
         }
-
-        if ($_POST['mode'] == "search" || $_POST['mode'] == "csv"  || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all" || $_POST['mode'] == "resend_mail") {
+        $mode = $this->getMode();
+        if ($mode == "search" || $mode == "csv"  || $mode == "delete" || $mode == "delete_all" || $mode == "resend_mail") {
 
             // 入力文字の強制変換
@@ -353,5 +352,5 @@
                 $objSelect->setLimitOffset($page_max, $offset);
 
-                if ($_POST["mode"] == 'csv') {
+                if ($this->getMode() == 'csv') {
                     $searchSql = $objSelect->getListCSV($this->arrColumnCSV);
                 }else{
@@ -361,5 +360,5 @@
                 $this->search_data = $objQuery->getAll($searchSql, $objSelect->arrVal);
 
-                switch($_POST['mode']) {
+                switch($this->getMode()) {
                 case 'csv':
                     require_once(CLASS_EX_REALDIR . "helper_extends/SC_Helper_CSV_Ex.php");
Index: /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Customer.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Customer.php	(revision 19986)
+++ /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Customer.php	(revision 20041)
@@ -50,15 +50,15 @@
         $this->tpl_pager = TEMPLATE_REALDIR . 'admin/pager.tpl';
         $this->tpl_subtitle = '顧客登録';
-        
+
         $masterData = new SC_DB_MasterData_Ex();
         $this->arrPref = $masterData->getMasterData('mtb_pref');
         $this->arrJob = $masterData->getMasterData("mtb_job");
         $this->arrSex = $masterData->getMasterData("mtb_sex");
-        $this->arrReminder = $masterData->getMasterData("mtb_reminder");        
+        $this->arrReminder = $masterData->getMasterData("mtb_reminder");
     }
 
     /**
      * Page のプロセス.
-     * 
+     *
      * @return void
      */
@@ -77,5 +77,5 @@
         $objSess = new SC_Session();
         SC_Utils_Ex::sfIsSuccess($objSess);
-        
+
         $this->objQuery = new SC_Query();
         $objDate = new SC_Date(1901);
@@ -118,6 +118,7 @@
         $arrRejectRegistColumn = array("year", "month", "day");
 
+        $mode = $this->getMode();
         //----　顧客情報編集
-        if ($_POST["mode"] == "confirm" || $_POST["mode"] == "complete" || $_POST["mode"] == "return") {
+        if ($mode == "confirm" || $mode == "complete" || $mode == "return") {
 
             //-- POSTデータの引き継ぎ
@@ -131,5 +132,5 @@
 
             //-- 入力エラー発生 or リターン時
-            if ($this->arrErr  || $_POST["mode"] == "return") {
+            if ($this->arrErr  || $mode == "return") {
                 foreach($this->arrForm as $key => $val) {
                     $this->list_data[ $key ] = $val;
@@ -138,5 +139,5 @@
             } else {
                 //-- 確認
-                if ($_POST["mode"] == "confirm") {
+                if ($mode == "confirm") {
                     $this->tpl_mainpage = 'customer/customer_confirm.tpl';
                     $passlen = strlen($this->arrForm['password']);
@@ -145,5 +146,5 @@
                 }
                 //--　登録
-                if($_POST["mode"] == "complete") {
+                if($mode == "complete") {
                     $this->tpl_mainpage = 'customer/customer_complete.tpl';
 
@@ -152,5 +153,5 @@
                     $this->arrForm['secret_key'] = $secret;
                     array_push($arrRegistColumn, array('column' => 'secret_key', 'convert' => 'n'));
-                        
+
                     //-- 登録
                     $this->lfRegisData($this->arrForm, $arrRegistColumn);
Index: /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php	(revision 19986)
+++ /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php	(revision 20041)
@@ -121,5 +121,5 @@
 
         // 検索条件を保持
-        if ($_POST['mode'] == "edit_search") {
+        if ($this->getMode() == "edit_search") {
             $arrSearch = $_POST;
         }else{
@@ -135,5 +135,6 @@
 
         //----　顧客編集情報取得
-        if (($_POST["mode"] == "edit" || $_POST["mode"] == "edit_search") && is_numeric($_POST["edit_customer_id"])) {
+        $mode = $this->getMode();
+        if (($mode == "edit" || $mode == "edit_search") && is_numeric($_POST["edit_customer_id"])) {
 
             //--　顧客データ取得
@@ -160,5 +161,5 @@
 
         //----　顧客情報編集
-        if ( $_POST["mode"] != "edit" && $_POST["mode"] != "edit_search" && is_numeric($_POST["customer_id"])) {
+        if ( $mode != "edit" && $mode != "edit_search" && is_numeric($_POST["customer_id"])) {
 
             //-- POSTデータの引き継ぎ
@@ -172,5 +173,5 @@
 
             //-- 入力エラー発生 or リターン時
-            if ($this->arrErr || $_POST["mode"] == "return") {
+            if ($this->arrErr || $mode == "return") {
                 foreach($this->arrForm as $key => $val) {
                     $this->list_data[ $key ] = $val;
@@ -183,5 +184,5 @@
             } else {
                 //-- 確認
-                if ($_POST["mode"] == "confirm") {
+                if ($mode == "confirm") {
                     $this->tpl_mainpage = 'customer/edit_confirm.tpl';
                     $passlen = strlen($this->arrForm['password']);
@@ -190,5 +191,5 @@
                 }
                 //--　編集
-                if($_POST["mode"] == "complete") {
+                if($mode == "complete") {
                     $this->tpl_mainpage = 'customer/edit_complete.tpl';
 
Index: /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_SearchCustomer.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_SearchCustomer.php	(revision 19976)
+++ /branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_SearchCustomer.php	(revision 20041)
@@ -70,5 +70,5 @@
 
         // POSTのモードがsearchなら顧客検索開始
-        if($_POST['mode'] == 'search'){
+        if($this->getMode() == 'search'){
             $this->objFormParam = new SC_FormParam();
             // 値の初期化
@@ -88,5 +88,5 @@
             $sqlval = array();
             $where = "";
-            
+
             if ($is_select) {
                 $where = "del_flg = 0";
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_TrackbackEdit.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_TrackbackEdit.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_TrackbackEdit.php	(revision 20041)
@@ -105,5 +105,5 @@
         $this->tpl_status_change = true;
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             // 登録
         case 'complete':
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php	(revision 20041)
@@ -80,6 +80,5 @@
             isset($_POST['parent_category_id']) ? $_POST['parent_category_id'] : 0;
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'up':
             $where = "category_id = " . SC_Utils_Ex::sfQuoteSmart($_POST['parent_category_id']);
@@ -102,5 +101,5 @@
             $this->tpl_pageno = "";
             break;
-            
+
         case 'renumber':
             $sql = <<< __EOS__
@@ -124,5 +123,5 @@
             $objQuery->query($sql, array($_POST['parent_category_id']));
             break;
-        
+
         default:
             break;
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php	(revision 20041)
@@ -90,7 +90,5 @@
             isset($_POST['parent_category_id']) ? $_POST['parent_category_id'] : "";
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'edit':
             $this->objFormParam->convParam();
@@ -188,5 +186,5 @@
                 $objQuery = new SC_Query();
                 $objQuery->begin();
-        
+
                 // 移動したデータのrank、level、parent_category_idを取得
                 $rank   = $objQuery->get("rank", "dtb_category", "category_id = ?", array($keys[0]));
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSVCategory.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSVCategory.php	(revision 20032)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSVCategory.php	(revision 20041)
@@ -87,7 +87,5 @@
         $this->arrTitle = $this->objFormParam->getHtmlDispNameArray();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
             case 'csv_upload':
                 $err = false;
@@ -235,5 +233,5 @@
         $this->objFormParam->addParam("親カテゴリID","parent_category_id",INT_LEN,"n",array("MAX_LENGTH_CHECK","NUM_CHECK"));
     }
-    
+
     /**
      * カテゴリ登録を行う.
@@ -244,10 +242,10 @@
      */
     function lfRegistProduct($objQuery, $line = "",$arrCSV) {
-        
+
         $objDb = new SC_Helper_DB_Ex();
         $sqlval['category_id'] = $arrCSV[0];
         $sqlval['category_name'] = $arrCSV[1];
         $sqlval['parent_category_id'] = strlen($arrCSV[2]) ? $arrCSV[2] : 0;
-        
+
         //存在確認
         $count = $objQuery->count("dtb_category","category_id = ?",array($sqlval['category_id']));
@@ -261,5 +259,5 @@
             $sqlval['level'] = $parent_level + 1;
         }
-        
+
         // その他
         $time = date("Y-m-d H:i:s");
@@ -270,5 +268,5 @@
         $sqlval['update_date'] = $time;
         $sqlval['creator_id'] = $_SESSION['member_id'];
-        
+
         // 更新
         if ($update) {
@@ -276,5 +274,5 @@
             $where = "category_id = ?";
             $objQuery->update("dtb_category", $sqlval, $where, array($sqlval['category_id']));
-        
+
         // 新規登録
         } else {
@@ -293,5 +291,5 @@
                 $sqlup = "UPDATE dtb_category SET rank = rank + 1 WHERE rank >= ?";
                 $objQuery->exec($sqlup, array($sqlval['rank']));
-                
+
             }
             $sqlval['category_id'] = $objQuery->nextVal('dtb_category_category_id');
@@ -310,10 +308,10 @@
         $arrRet['category_name'] = $arrCSV[1];
         $arrRet['parent_category_id'] = $arrCSV[2];
-        
+
         $objQuery = new SC_Query();
-        
+
         $objErr = new SC_CheckError($arrRet);
         $objErr->arrErr = $this->objFormParam->checkError(false);
-        
+
         // 親カテゴリID設定
         if ($arrRet['parent_category_id'] == 0) {
@@ -322,5 +320,5 @@
             $parent_category_id = $arrRet['parent_category_id'];
         }
-        
+
         // 存在する親カテゴリIDかチェック
         if (count($objErr->arrErr) == 0) {
@@ -332,5 +330,5 @@
             }
         }
-        
+
         // 階層チェック
         if (!isset($objErr->arrErr['category_name']) && !isset($objErr->arrErr['parent_category_id'])) {
@@ -352,16 +350,16 @@
                 echo $arrCat[0]['category_id'];
                 echo "#######--------- line is ".__LINE__." on ".__FILE__."--------########<br/>";
-                        
+
                 echo $arrRet['category_id'];
                 echo "#######--------- line is ".__LINE__." on ".__FILE__."--------########<br/>";
-                        
+
                 echo  $arrCat[0]['category_name'] ;
                 echo "#######--------- line is ".__LINE__." on ".__FILE__."--------########<br/>";
                         echo  $arrRet['category_name'];
                         echo "#######--------- line is ".__LINE__." on ".__FILE__."--------########<br/>";
-                                
-                
+
+
                 $objErr->arrErr['category_name'] = "※ 既に同じ内容の登録が存在します。</br>";
-                
+
             }
         }
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Maker.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Maker.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Maker.php	(revision 20041)
@@ -74,8 +74,6 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         // 要求判定
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         // 編集処理
         case 'edit':
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php	(revision 20032)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php	(revision 20041)
@@ -93,6 +93,4 @@
         $objSess = new SC_Session();
         SC_Utils_Ex::sfIsSuccess($objSess);
-
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
 
         // POST値の引き継ぎ
@@ -121,5 +119,6 @@
 
         // 商品削除
-        if ($_POST['mode'] == "delete") {
+        $mode = $this->getMode();
+        if ($mode == "delete") {
             $objQuery = new SC_Query();
             $objQuery->delete("dtb_products",
@@ -138,5 +137,5 @@
 
 
-        if ($_POST['mode'] == "search" || $_POST['mode'] == "csv"  || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all" || $_POST['mode'] == "camp_search") {
+        if ($mode == "search" || $mode == "csv"  || $mode == "delete" || $mode == "delete_all" || $mode == "camp_search") {
             // 入力文字の強制変換
             $this->lfConvertParam();
@@ -234,5 +233,5 @@
                 $objQuery = new SC_Query();
                 $objProduct = new SC_Product();
-                switch($_POST['mode']) {
+                switch($mode) {
                     case 'csv':
                         require_once(CLASS_EX_REALDIR . "helper_extends/SC_Helper_CSV_Ex.php");
@@ -297,5 +296,5 @@
                         // 検索結果の取得
                         $this->arrProducts = $objQuery->select($col, $from, $where, $arrval);
-                        
+
                         // 各商品ごとのカテゴリIDを取得
                         if (count($this->arrProducts) > 0) {
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php	(revision 20032)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php	(revision 20041)
@@ -131,7 +131,5 @@
         $this->arrForm = $_POST;
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             // 検索画面からの編集
             case 'pre_edit':
@@ -160,5 +158,5 @@
                 $this->lfProductPage();     // 商品登録ページ
 
-                if($_POST['mode'] == "copy"){
+                if($this->getMode() == "copy"){
                     $this->arrForm["copy_product_id"] = $this->arrForm["product_id"];
                     $this->arrForm["product_id"] = "";
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductSelect.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductSelect.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductSelect.php	(revision 20041)
@@ -76,7 +76,5 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        if ($_POST['mode'] == "search") {
+        if ($this->getMode() == "search") {
 
             // POST値の引き継ぎ
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php	(revision 20032)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php	(revision 20041)
@@ -45,11 +45,11 @@
     /** SC_UploadFile インスタンス */
     var $objUpfile;
-    
+
     /** TAGエラーチェックフィールド情報 */
     var $arrTagCheckItem;
-    
+
     /** 商品テーブルカラム情報 (登録処理用) **/
     var $arrProductColumn;
-    
+
     /** 商品規格テーブルカラム情報 (登録処理用) **/
     var $arrProductClassColumn;
@@ -114,5 +114,5 @@
         // CSV構造読み込み
         $arrCSVFrame = $this->objCSV->sfGetCsvOutput($this->csv_id);
-        
+
         // CSV構造がインポート可能かのチェック
         if( !$this->objCSV->sfIsImportCSVFrame($arrCSVFrame) ) {
@@ -135,7 +135,5 @@
         $this->arrTitle = $this->objFormParam->getHtmlDispNameArray();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'csv_upload':
             // 登録先テーブル カラム情報の初期化
@@ -143,5 +141,5 @@
             // 登録フォーム カラム情報
             $this->arrFormKeyList = $this->objFormParam->getKeyList();
-            
+
             $err = false;
             // CSVファイルアップロード エラーチェック
@@ -331,5 +329,5 @@
         }
     }
-    
+
     /**
      * 入力チェックを行う.
@@ -363,5 +361,5 @@
         $this->arrProductClassColumn = $objQuery->listTableFields('dtb_products_class');
     }
-    
+
     /**
      * 商品登録を行う.
@@ -411,5 +409,5 @@
             $objProduct->setProductStatus($product_id, $arrStatus_id);
         }
-        
+
         // 商品規格情報を登録する
         $this->lfRegistProductClass($objQuery, $arrList, $product_id, $arrList['product_class_id']);
@@ -680,5 +678,5 @@
             }
         }
-*/        
+*/
         // ダウンロード商品チェック
         if(array_search('product_type_id', $this->arrFormKeyList) !== FALSE
@@ -777,5 +775,5 @@
         $count = count($arrItems);
         $where = $tblkey ." IN (" . implode(",", array_fill(0, $count, "?")) . ")";
-        
+
         $objQuery =& SC_Query::getSingletonInstance();
         $db_count = $objQuery->count($table, $where, $arrItems);
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Review.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Review.php	(revision 19956)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Review.php	(revision 20041)
@@ -116,13 +116,12 @@
             }
         }
-
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        if ($_POST['mode'] == "delete"){
+        $mode = $this->getMode();
+
+        if ($mode == "delete"){
             //レビューの削除
             $objQuery->exec("UPDATE dtb_review SET del_flg=1 WHERE review_id=?", array($_POST['review_id']));
         }
 
-        if ($_POST['mode'] == 'search' || $_POST['mode'] == 'csv' || $_POST['mode'] == 'delete'){
+        if ($mode == 'search' || $mode == 'csv' || $mode == 'delete'){
 
             //削除されていない商品を検索
@@ -256,5 +255,5 @@
 
             //CSVダウンロード
-            if ($_POST['mode'] == 'csv'){
+            if ($mode == 'csv'){
 
                 $objCSV = new SC_Helper_CSV_Ex();
@@ -285,7 +284,5 @@
         $objErr = new SC_CheckError();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']){
+        switch ($this->getMode()){
         case 'search':
             $objErr->doFunc(array("投稿者", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE"));
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ClassCategory.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ClassCategory.php	(revision 19943)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ClassCategory.php	(revision 20041)
@@ -93,6 +93,4 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         if (isset($_POST['class_id'])) {
             if (!SC_Utils_Ex::sfIsInt($_POST['class_id'])) {
@@ -102,5 +100,5 @@
 
         // 新規作成 or 編集
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             // 登録ボタン押下
         case 'edit':
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Class.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Class.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Class.php	(revision 20041)
@@ -74,8 +74,6 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         // 要求判定
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             // 編集処理
         case 'edit':
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Trackback.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Trackback.php	(revision 19807)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Trackback.php	(revision 20041)
@@ -107,12 +107,11 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
+        $mode = $this->getMode();
         // トラックバックの削除
-        if ($_POST['mode'] == "delete") {
+        if ($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'){
+        if ($mode == 'search' || $mode == 'csv' || $mode == 'delete'){
 
             //削除されていない商品を検索
@@ -232,5 +231,5 @@
 
             //CSVダウンロード
-            if ($_POST['mode'] == 'csv'){
+            if ($mode == 'csv'){
 
                 $objCSV = new SC_Helper_CSV_Ex();
@@ -260,5 +259,5 @@
     function lfCheckError() {
         $objErr = new SC_CheckError();
-        switch ($_POST['mode']){
+        switch ($this->getMode()){
         case 'search':
             $objErr->doFunc(array("投稿者", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE"));
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php	(revision 20032)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php	(revision 20041)
@@ -94,10 +94,9 @@
             isset($_POST['product_id']) ? $_POST['product_id'] : "" ;
         $this->tpl_pageno = isset($_POST['pageno']) ? $_POST['pageno'] : "";
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
 
         // Downファイル管理クラス
         $this->objDownFile = new SC_UploadFile(DOWN_TEMP_REALDIR, DOWN_SAVE_REALDIR);
         $this->lfInitDownFile();
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
         case 'edit':
             // 入力値の変換
Index: /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ReviewEdit.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ReviewEdit.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ReviewEdit.php	(revision 20041)
@@ -86,6 +86,5 @@
         $this->tpl_status_change = true;
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
             // 登録
             case 'complete':
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php	(revision 19981)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php	(revision 20041)
@@ -116,7 +116,5 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'preview':
             // プレビューファイル作成
@@ -209,7 +207,5 @@
             break;
         default:
-            if(isset($_POST['mode'])) {
-               GC_Utils::gfPrintLog("MODEエラー：".$_POST['mode']);
-            }
+            GC_Utils::gfPrintLog("MODEエラー：".$this->getMode());
             break;
         }
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design.php	(revision 19998)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design.php	(revision 20041)
@@ -116,7 +116,5 @@
         $arrBloc = $objQuery->select("*", "dtb_bloc", "device_type_id = ?", array($device_type_id));
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
         // 新規ブロック作成
         case 'new_bloc':
@@ -134,5 +132,5 @@
         case 'preview':
             $page_id = $_POST['page_id'];
-            if ($_POST['mode'] == 'preview') {
+            if ($this->getMode() == 'preview') {
                 $page_id = '0';
             }
@@ -205,5 +203,5 @@
 
             // プレビュー処理
-            if ($_POST['mode'] == 'preview') {
+            if ($this->getMode() == 'preview') {
                 $this->lfSetPreData($arrPageData, $objLayout);
 
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php	(revision 19832)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php	(revision 20041)
@@ -115,7 +115,5 @@
         $this->css_data = $css_data;
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             // データ更新処理
             case 'confirm':
@@ -126,7 +124,5 @@
                 break;
             default:
-                if(isset($_POST['mode'])) {
-                   GC_Utils::gfPrintLog("MODEエラー：".$_POST['mode']);
-                }
+                GC_Utils::gfPrintLog("MODEエラー：".$this->getMode());
                 break;
         }
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php	(revision 19807)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php	(revision 20041)
@@ -96,5 +96,5 @@
 
             // 登録時はプレビュー用テンプレートをコピーする
-            if ($_POST['mode'] == 'confirm'){
+            if ($this->getMode() == 'confirm'){
                 copy($pre_DIR.$division.".tpl", $this->objLayout->getTemplatePath($device_type_id) . $division . ".tpl");
                 // 完了メッセージ（プレビュー時は表示しない）
@@ -104,5 +104,5 @@
                 $_POST['header_row'] = "";
                 $_POST['footer_row'] = "";
-            }else if ($_POST['mode'] == 'preview'){
+            }else if ($this->getMode() == 'preview'){
                 if ($division == "header") $this->header_prev = "on";
                 if ($division == "footer") $this->footer_prev = "on";
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php	(revision 19998)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php	(revision 20041)
@@ -105,7 +105,5 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
         case 'preview':
             $this->lfPreviewPageData($page_id, $device_type_id);
@@ -197,5 +195,5 @@
         $cre_tpl = $this->objLayout->getTemplatePath($device_type_id) . "{$url}.tpl";
         $this->lfCreateFile($cre_tpl, $_POST['tpl_data']);
-        
+
         // blocposition を削除
         $objQuery = new SC_Query(); // DB操作オブジェクト
@@ -372,11 +370,11 @@
         // 同一のURLが存在している場合にはエラー
         $params = array();
-        
+
         $sqlWhere = 'url = ?';
         $params[] = $this->objLayout->getUserDir($device_type_id) . $array['url'] . '.php';
-        
+
         // プレビュー用のレコードは除外
         $sqlWhere .= ' AND page_id <> 0';
-        
+
         // 変更の場合、自身のレコードは除外
         if (strlen($array['page_id']) != 0) {
@@ -384,11 +382,11 @@
             $params[] = $array['page_id'];
         }
-        
+
         $arrChk = $this->objLayout->lfgetPageData($sqlWhere , $params);
-        
+
         if (count($arrChk) >= 1) {
             $objErr->arrErr['url'] = '※ 同じURLのデータが存在しています。別のURLを付けてください。<br />';
         }
-        
+
         return $objErr->arrErr;
     }
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php	(revision 19966)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php	(revision 20041)
@@ -93,5 +93,5 @@
         $objView = new SC_AdminView();
 
-        switch($this->lfGetMode()) {
+        switch($this->getMode()) {
 
             // 登録ボタン押下時
@@ -138,5 +138,5 @@
                 SC_Utils::sfDispError('');
             }
-                
+
             //現在使用中のテンプレートとデフォルトのテンプレートは削除できないようにする
             $template_code = $objForm->getValue('template_code_temp');
@@ -188,8 +188,4 @@
     }
 
-    function lfGetMode(){
-        if (isset($_POST['mode'])) return $_POST['mode'];
-    }
-
     function lfInitRegister() {
         $objForm = new SC_FormParam();
@@ -252,5 +248,5 @@
         $masterData->createCache('mtb_constants', array(), true, array('id', 'remarks'));
     }
-    
+
     /**
      * ブロック位置の更新
@@ -262,5 +258,5 @@
          * $filepath = USER_TEMPLATE_REALDIR. $template_code. "/sql/update_bloc.sql";
          */
-        
+
         // ブロック位置更新SQLファイル有
         if(file_exists($filepath)) {
Index: /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Up_Down.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Up_Down.php	(revision 20011)
+++ /branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Up_Down.php	(revision 20041)
@@ -90,5 +90,5 @@
         $this->uniqid = $objSession->getUniqId();
 
-        switch($this->lfGetMode()) {
+        switch($this->getMode()) {
 
             // ダウンロードボタン押下時の処理
@@ -140,13 +140,4 @@
 
     /**
-     * POSTされるmodeパラメータを取得する.
-     *
-     * @param void
-     * @return string modeパラメータ, 無ければnull
-     */
-    function lfGetMode(){
-        if (isset($_POST['mode'])) return $_POST['mode'];
-    }
-    /**
      * SC_UploadFileクラスの初期化.
      *
Index: /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order.php	(revision 19999)
+++ /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order.php	(revision 20041)
@@ -118,8 +118,7 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($arrRet)) $arrRet = array();
 
-        if($_POST['mode'] == 'delete') {
+        if($this->getMode() == 'delete') {
             if(SC_Utils_Ex::sfIsInt($_POST['order_id'])) {
                 $objQuery = new SC_Query();
@@ -130,5 +129,5 @@
         }
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             case 'delete':
             case 'csv':
@@ -267,5 +266,5 @@
 
                     $order = "update_date DESC";
-                    switch($_POST['mode']) {
+                    switch($this->getMode()) {
                         case 'csv':
 
Index: /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php	(revision 20041)
@@ -77,6 +77,4 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         if ($_GET['no'] != '') {
             $this->tpl_no = strval($_GET['no']);
@@ -85,5 +83,5 @@
         }
 
-        if ($_POST['mode'] == "search") {
+        if ($this->getMode() == "search") {
 
             // POST値の引き継ぎ
Index: /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php	(revision 19943)
+++ /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php	(revision 20041)
@@ -90,5 +90,5 @@
         $objMail = new SC_Helper_Mail_Ex();
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'pre_edit':
             break;
Index: /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php	(revision 20041)
@@ -83,21 +83,19 @@
         $this->arrPayment = $objDb->sfGetIDValueList("dtb_payment", "payment_id", "payment_method");
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($_POST['search_pageno'])) $_POST['search_pageno'] = 1;
 
-        switch ($_POST['mode']){
-
+        switch ($this->getMode()){
         case 'update':
             if (!isset($_POST['change_status'])) $_POST['change_status'] = "";
-            
+
             switch ($_POST['change_status']) {
                 case '':
                     break;
-                
+
                 // 削除
                 case 'delete':
                     $this->lfDelete($_POST['move']);
                     break;
-                
+
                 // 更新
                 default:
@@ -105,5 +103,5 @@
                     break;
             }
-            
+
             //ステータス情報
             $status = isset($_POST['status']) ? $_POST['status'] : "";
@@ -175,5 +173,5 @@
     function lfStatusMove($statusId, $arrOrderId) {
         $objQuery = new SC_Query();
-        
+
         if (!isset($arrOrderId) || !is_array($arrOrderId)) {
             return false;
@@ -181,13 +179,13 @@
         $masterData = new SC_DB_MasterData_Ex();
         $arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
-        
+
         $objQuery->begin();
-        
+
         foreach ($arrOrderId as $orderId) {
             SC_Helper_DB_Ex::sfUpdateOrderStatus($orderId, $statusId);
         }
-        
+
         $objQuery->commit();
-        
+
         $this->tpl_onload = "window.alert('選択項目を" . $arrORDERSTATUS[$statusId] . "へ移動しました。');";
         return true;
@@ -199,22 +197,22 @@
     function lfDelete($arrOrderId) {
         $objQuery = new SC_Query();
-        
+
         if (!isset($arrOrderId) || !is_array($arrOrderId)) {
             return false;
         }
-        
+
         $arrUpdate = array(
              'del_flg' => 1
             ,'update_date' => 'Now()'
         );
-        
+
         $objQuery->begin();
-        
+
         foreach ($arrOrderId as $orderId) {
             $objQuery->update('dtb_order', $arrUpdate, 'order_id = ?', array($orderId));
         }
-        
+
         $objQuery->commit();
-        
+
         $this->tpl_onload = "window.alert('選択項目を削除しました。');";
         return true;
Index: /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php	(revision 20021)
+++ /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php	(revision 20041)
@@ -122,5 +122,5 @@
         }
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'pre_edit':
         case 'order_id':
@@ -137,5 +137,5 @@
 
             if(count($this->arrErr) == 0) {
-                if ($_POST['mode'] == 'add') {
+                if ($this->getMode() == 'add') {
                     $order_id = $this->lfRegistNewData($objPurchase);
 
@@ -644,8 +644,8 @@
         // 加算ポイント
         $arrVal['add_point'] = SC_Helper_DB_Ex::sfGetAddPoint($totalpoint, $arrVal['use_point']);
-        
+
         // 最終保持ポイント
         $arrVal['total_point'] = $this->objFormParam->getValue('point') - $arrVal['use_point'] + $arrVal['add_point'];
-        
+
         if ($arrVal['total'] < 0) {
             $arrErr['total'] = '合計額がマイナス表示にならないように調整して下さい。<br />';
@@ -656,5 +656,5 @@
         }
         //新規追加受注のみ
-        if ($_POST['mode'] == "add") {
+        if ($this->getMode() == "add") {
             if ($arrVal['total_point'] < 0) {
                 $arrErr['use_point'] = '最終保持ポイントがマイナス表示にならないように調整して下さい。<br />';
@@ -829,5 +829,5 @@
      * @return integer 注文番号
      */
-    function lfRegistNewData(&$objPurchase) {
+    function $this->getMode()(&$objPurchase) {
         $objQuery = new SC_Query();
 
Index: /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Pdf.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Pdf.php	(revision 19945)
+++ /branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Pdf.php	(revision 20041)
@@ -98,8 +98,7 @@
         $this->objFormParam->setParam($_POST);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($arrRet)) $arrRet = array();
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case "confirm":
             // 入力値の変換
Index: /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail.php	(revision 19958)
+++ /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail.php	(revision 20041)
@@ -135,8 +135,6 @@
         if (!isset($_POST['htmlmail'])) $_POST['htmlmail'] = "";
         if (!isset($_POST['mail_type'])) $_POST['mail_type'] = "";
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($_POST['buy_product_code'])) $_POST['buy_product_code'] = "";
-        if (!isset($_GET['mode'])) $_GET['mode'] = "";
-        
+
         $this->httpCacheControl('nocache');
     }
@@ -173,5 +171,5 @@
          query:配信履歴「確認」
         */
-        if ($_GET["mode"] == "query" && SC_Utils_Ex::sfCheckNumLength($_GET["send_id"])) {
+        if ($this->getMode() == "query" && SC_Utils_Ex::sfCheckNumLength($_GET["send_id"])) {
             // 送信履歴より、送信条件確認画面
             $sql = "SELECT search_data FROM dtb_send_history WHERE send_id = ?";
@@ -214,8 +212,5 @@
         }
 
-        if($_POST['mode'] == 'delete') {
-        }
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             /*
              search:「検索」ボタン
@@ -359,7 +354,7 @@
                     ? $this->list_data['name'] : "";
 
-                if ( $_POST['mode'] == 'regist_confirm'){
+                if ( $this->getMode() == 'regist_confirm'){
                     $this->tpl_mainpage = 'mail/input_confirm.tpl';
-                } else if( $_POST['mode'] == 'regist_complete' ){
+                } else if( $this->getMode() == 'regist_complete' ){
                     $sendId = $this->lfRegistData($objQuery, $this->list_data);
                     if (MELMAGA_SEND) {
Index: /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php	(revision 20041)
@@ -77,9 +77,8 @@
 
         if (!isset($_GET['send_id'])) $_GET['send_id'] = "";
-        if (!isset($_GET['mode'])) $_GET['mode'] = "";
         if (!isset($_POST['search_pageno'])) $_POST['search_pageno'] = "";
 
         // 削除時
-        if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($_GET['mode']=='delete')) {
+        if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($this->getMode()=='delete')) {
 
             $sql = "UPDATE dtb_send_history SET del_flg = 1 WHERE send_id = ?";
Index: /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_Template.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_Template.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_Template.php	(revision 20041)
@@ -76,8 +76,7 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_GET['mode'])) $_GET['mode'] = "";
         if (!isset($_GET['id'])) $_GET['id'] = "";
 
-        if ( $_GET['mode'] == "delete" && SC_Utils_Ex::sfCheckNumLength($_GET['id'])===true ){
+        if ( $this->getMode() == "delete" && SC_Utils_Ex::sfCheckNumLength($_GET['id'])===true ){
 
             // メール担当の画像があれば削除しておく
Index: /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_TemplateInput.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_TemplateInput.php	(revision 19958)
+++ /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_TemplateInput.php	(revision 20041)
@@ -88,8 +88,6 @@
         }
 
-        if (!isset($_GET['mode'])) $_GET['mode'] = "";
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         // モードによる処理分岐
-        if ( $_GET['mode'] == 'edit' && SC_Utils_Ex::sfCheckNumLength($_GET['template_id'])===true ){
+        if ( $this->getMode() == 'edit' && SC_Utils_Ex::sfCheckNumLength($_GET['template_id'])===true ){
 
             // 編集
@@ -99,5 +97,5 @@
 
 
-        } elseif ( $_POST['mode'] == 'regist' ) {
+        } elseif ( $this->getMode() == 'regist' ) {
 
             // 新規登録
@@ -112,5 +110,5 @@
             }
 
-        } elseif ( $_GET['mode'] == 'complete' ) {
+        } elseif ( $this->getMode() == 'complete' ) {
 
             // 完了画面表示
Index: /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_Sendmail.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_Sendmail.php	(revision 19834)
+++ /branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_Sendmail.php	(revision 20041)
@@ -33,5 +33,5 @@
  */
 class LC_Page_Admin_Mail_Sendmail extends LC_Page_Admin {
-    
+
     var $objMail;
     // }}}
@@ -74,5 +74,5 @@
         $sqlval = array();
         // リアルタイム配信モードがオンのとき
-        if ($_GET['mode'] == 'now') {
+        if ($this->getMode() == 'now') {
             // 指定データを取得する
             $where .= ' AND send_id = ?';
@@ -177,5 +177,5 @@
             }
         }
-        if ($_GET['mode'] == 'now') {
+        if ($this->getMode() == 'now') {
             SC_Response_Ex::sendRedirectFromUrlPath(ADMIN_DIR . 'mail/history.php');
         }
Index: /branches/version-2_5-dev/data/class/pages/admin/total/LC_Page_Admin_Total.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/total/LC_Page_Admin_Total.php	(revision 19972)
+++ /branches/version-2_5-dev/data/class/pages/admin/total/LC_Page_Admin_Total.php	(revision 20041)
@@ -127,6 +127,5 @@
         }
 
-        $mode = $this->objFormParam->getValue('mode');
-        switch($mode) {
+        switch($this->getMode()) {
         case 'csv':
         case 'search':
@@ -234,5 +233,5 @@
                 }
 
-                if($mode == 'csv') {
+                if($this->getMode() == 'csv') {
                     // CSV出力タイトル行の取得
                     list($arrTitleCol, $arrDataCol) = $this->lfGetCSVColum($page, $this->keyname);
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Masterdata.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Masterdata.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Masterdata.php	(revision 20041)
@@ -74,7 +74,5 @@
         $masterData = new SC_DB_MasterData_Ex();
 
-        if (!isset($_POST["mode"])) $_POST["mode"] = "";
-
-        switch ($_POST["mode"]) {
+        switch ($this->getMode()) {
         case "edit":
             // POST 文字列の妥当性チェック
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Editdb.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Editdb.php	(revision 20037)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Editdb.php	(revision 20041)
@@ -44,5 +44,5 @@
     function init() {
         parent::init();
-        
+
         $this->tpl_mainpage = 'system/editdb.tpl';
         $this->tpl_subnavi  = 'system/subnavi.tpl';
@@ -89,5 +89,5 @@
         $this->initForm();
 
-        switch($this->objForm->getValue('mode')) {
+        switch($this->getMode()) {
         case 'confirm' :
             $this->lfDoChange();
@@ -109,5 +109,5 @@
         parent::destroy();
     }
-    
+
     function lfGetTargetData() {
         $objQuery = new SC_Query();
@@ -196,4 +196,4 @@
         return $arrIndexList;
     }
-    
+
 }
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Plugin.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Plugin.php	(revision 20027)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Plugin.php	(revision 20041)
@@ -11,5 +11,5 @@
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -83,5 +83,5 @@
         SC_Utils_Ex::sfIsSuccess(new SC_Session);
         $this->initForm();
-        switch($this->objForm->getValue('mode')) {
+        switch($this->getMode()) {
             // PHP INFOを表示
             case 'install':
@@ -102,5 +102,5 @@
                 $plugin = new $name();
                 $plugin->enable();
-                
+
                 break;
             case 'disable':
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Input.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Input.php	(revision 20002)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Input.php	(revision 20041)
@@ -53,5 +53,5 @@
         $masterData = new SC_DB_MasterData_Ex();
         $this->arrAUTHORITY = $masterData->getMasterData('mtb_authority');
-        
+
         $this->httpCacheControl('nocache');
     }
@@ -109,20 +109,4 @@
 
     /**
-     * switchアクション振り分け用パラメータを取得する.
-     *
-     * @param void
-     * @return string モード名
-     */
-    function getMode() {
-        $mode = '';
-        if ($_SERVER['REQUEST_METHOD'] == 'GET') {
-            if(isset($_GET['mode'])) $mode = $_GET['mode'];
-        } elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {
-            if(isset($_POST['mode'])) $mode = $_POST['mode'];
-        }
-        return $mode;
-    }
-
-    /**
      * newアクションの実行
      * メンバーデータの新規登録を行う.
@@ -142,5 +126,5 @@
         if (count($arrErr) > 0) {
             // 入力された値を保持する
-            $this->tpl_mode      = $_POST['mode'];
+            $this->tpl_mode      = $this->getMode();
             $this->tpl_member_id = $_POST['member_id'];
             $this->tpl_old_login_id = $_POST['old_login_id'];
@@ -235,5 +219,5 @@
         if (count($arrErr) > 0) {
             // 入力された値を保持する
-            $this->tpl_mode      = $_POST['mode'];
+            $this->tpl_mode      = $this->getMode();
             $this->tpl_member_id = $_POST['member_id'];
             $this->tpl_old_login_id = $_POST['old_login_id'];
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Parameter.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Parameter.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Parameter.php	(revision 20041)
@@ -86,5 +86,5 @@
         $this->arrKeys = $this->getParamKeys($masterData);
 
-        if (isset($_POST["mode"]) && $_POST["mode"] == "update") {
+        if ($this->getMode() == "update") {
 
             // データの引き継ぎ
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Bkup.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Bkup.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Bkup.php	(revision 20041)
@@ -78,7 +78,5 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
             // バックアップを作成する
         case 'bkup':
@@ -111,5 +109,5 @@
         case 'restore':
         case 'restore_config':
-            if ($_POST['mode'] == 'restore_config') {
+            if ($this->getMode() == 'restore_config') {
                 $this->mode = "restore_config";
             }
Index: /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_System.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_System.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_System.php	(revision 20041)
@@ -82,5 +82,5 @@
 
         $this->initForm();
-        switch($this->objForm->getValue('mode')) {
+        switch($this->getMode()) {
 
         // PHP INFOを表示
Index: /branches/version-2_5-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Settings.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Settings.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Settings.php	(revision 20041)
@@ -83,5 +83,4 @@
         $this->transactionid = SC_Helper_Session_Ex::getToken();
 
-        // $_POST['mode']によってアクション振り分け
         switch($this->getMode()) {
         // 入力内容をDBへ登録する
@@ -105,20 +104,4 @@
 
     /**
-     * switchアクション振り分け用パラメータを取得する.
-     *
-     * @param void
-     * @return string モード名
-     */
-    function getMode() {
-        $mode = '';
-        if ($_SERVER['REQUEST_METHOD'] == 'GET') {
-            if (isset($_GET['mode'])) $mode = $_GET['mode'];
-        } elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {
-            if (isset($_POST['mode'])) $mode = $_POST['mode'];
-        }
-        return $mode;
-    }
-
-    /**
      * registerアクションの実行.
      * 入力内容をDBへ登録する.
Index: /branches/version-2_5-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Log.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Log.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Log.php	(revision 20041)
@@ -71,6 +71,5 @@
         SC_Utils::sfIsSuccess(new SC_Session());
 
-        $mode = isset($_GET['mode']) ? $_GET['mode'] : '';
-        switch ($mode) {
+        switch ($this->getMode()) {
         case 'detail':
             $objForm = $this->initParam();
Index: /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php	(revision 20041)
@@ -72,6 +72,5 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-        if ($_POST['mode'] == "search") {
+         if ($this->getMode() == "search") {
 
             // POST値の引き継ぎ
Index: /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php	(revision 20030)
+++ /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php	(revision 20041)
@@ -85,8 +85,6 @@
         $this->arrDay = $objDate->getDay();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
         //---- 新規登録/編集登録
-        if ( $_POST['mode'] == 'regist'){
+        if ( $this->getMode() == 'regist'){
             $_POST = $this->lfConvData($_POST);
 
@@ -116,5 +114,5 @@
 
         //----　編集データ取得
-        if ($_POST["mode"] == "search" && is_numeric($_POST["news_id"])) {
+        if ($this->getMode() == "search" && is_numeric($_POST["news_id"])) {
             $sql = "SELECT *, cast(news_date as date) as cast_news_date FROM dtb_news WHERE news_id = ? ";
             $result = $objQuery->getAll($sql, array($_POST["news_id"]));
@@ -130,5 +128,5 @@
 
         //----　データ削除
-        if ( $_POST['mode'] == 'delete' && is_numeric($_POST["news_id"])) {
+        if ( $this->getMode() == 'delete' && is_numeric($_POST["news_id"])) {
 
             // rankを取得
@@ -149,5 +147,5 @@
         //----　表示順位移動
 
-        if ( $_POST['mode'] == 'move' && is_numeric($_POST["news_id"]) ) {
+        if ( $this->getMode() == 'move' && is_numeric($_POST["news_id"]) ) {
             if ($_POST["term"] == "up") {
                 $objDb->sfRankUp("dtb_news", "news_id", $_POST["news_id"]);
@@ -160,5 +158,5 @@
 
         //----　指定表示順位移動
-        if ($_POST['mode'] == 'moveRankSet') {
+        if ($this->getMode() == 'moveRankSet') {
             $key = "pos-".$_POST['news_id'];
             $input_pos = mb_convert_kana($_POST[$key], "n");
Index: /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php	(revision 19805)
+++ /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php	(revision 20041)
@@ -83,9 +83,8 @@
         $this->tpl_disp_max = RECOMMEND_NUM;
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($_POST['category_id'])) $_POST['category_id'] = "";
 
         // 登録時
-        if ( $_POST['mode'] == 'regist' ){
+        if ( $this->getMode() == 'regist' ){
 
             // 入力文字の強制変換
@@ -107,5 +106,5 @@
             }
 
-        } elseif ( $_POST['mode'] == 'delete' ){
+        } elseif ( $this->getMode() == 'delete' ){
             // 削除時
 
@@ -132,6 +131,6 @@
         // 商品変更時 or 登録エラー時は、選択された商品に一時的に置き換える
         if (
-            $_POST['mode'] == 'set_item'
-            || $_POST['mode'] == 'regist' && !empty($this->arrErr[$this->arrForm['rank']])
+            $this->getMode() == 'set_item'
+            || $this->getMode() == 'regist' && !empty($this->arrErr[$this->arrForm['rank']])
         ) {
             $sql = "SELECT product_id, name, main_list_image FROM dtb_products WHERE product_id = ? AND del_flg = 0";
Index: /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php	(revision 19909)
+++ /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php	(revision 20041)
@@ -80,8 +80,6 @@
         $objFileManager = new SC_Helper_FileManager_Ex();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-		
         // 現在の階層を取得
-        if($_POST['mode'] != "") {
+        if($this->getMode() != null) {
             $now_dir = $_POST['now_file'];
         } else {
@@ -95,5 +93,5 @@
         $this->lfInitFile($objUpFile);
 
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
 
             // ファイル表示
@@ -118,5 +116,5 @@
 
             break;
-            
+
             // ファイルダウンロード
         case 'download':
Index: /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CSV.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CSV.php	(revision 19999)
+++ /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CSV.php	(revision 20041)
@@ -107,7 +107,5 @@
         // データの登録
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        if ($_POST["mode"] == "confirm") {
+        if ($this->getMode() == "confirm") {
 
             // エラーチェック
Index: /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php	(revision 19832)
+++ /branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php	(revision 20041)
@@ -74,5 +74,4 @@
         SC_Utils_Ex::sfIsSuccess($objSess);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($_POST['sql_id'])) $_POST['sql_id'] = "";
         if (!isset($_GET['sql_id'])) $_GET['sql_id'] = "";
@@ -88,7 +87,7 @@
         }
 
-        $mode = $_POST['mode'];
-
-        switch($_POST['mode']) {
+        $mode = $this->getMode();
+
+        switch($mode) {
             // データの登録
         case "confirm":
Index: /branches/version-2_5-dev/data/class/pages/cart/LC_Page_Cart.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/cart/LC_Page_Cart.php	(revision 19947)
+++ /branches/version-2_5-dev/data/class/pages/cart/LC_Page_Cart.php	(revision 20041)
@@ -96,7 +96,5 @@
         $this->cartItems =& $objCartSess->getAllCartList();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'confirm':
             // カート内情報の取得
@@ -130,9 +128,8 @@
 
         // 商品の個数変更、削除処理
-        $changeCartMode = (Net_UserAgent_Mobile::isMobile() === true) ? $_GET['mode'] : $_POST['mode'];
         /*
          * FIXME モバイルの場合 sfReload() ではなく sendRedirect() を使った方が良いが無限ループしてしまう...
          */
-        switch($changeCartMode) {
+        switch($this->getMode()) {
         case 'up':
             if(Net_UserAgent_Mobile::isMobile() === true) {
@@ -165,5 +162,5 @@
             break;
         }
-        
+
         // 基本情報の取得
         $this->arrInfo = $objSiteInfo->data;
Index: /branches/version-2_5-dev/data/class/pages/contact/LC_Page_Contact.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/contact/LC_Page_Contact.php	(revision 19961)
+++ /branches/version-2_5-dev/data/class/pages/contact/LC_Page_Contact.php	(revision 20041)
@@ -96,7 +96,5 @@
         $this->arrData = isset($_SESSION['customer']) ? $_SESSION['customer'] : "";
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
             case 'confirm':
               $this->lfContactConfirm();
Index: /branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php	(revision 19882)
+++ /branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php	(revision 20041)
@@ -74,10 +74,10 @@
 
         //--　本登録完了のためにメールから接続した場合
-        if ($_GET["mode"] == "regist") {
+        if ($this->getMode() == "regist") {
             //-- 入力チェック
             $this->arrErr = $this->lfErrorCheck($_GET);
             if ($this->arrErr) {
                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", true, $this->arrErr["id"]);
-            
+
             } else {
                 $registSecretKey = $this->lfRegistData($_GET);			//本会員登録（フラグ変更）
Index: /branches/version-2_5-dev/data/class/pages/forgot/LC_Page_Forgot.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/forgot/LC_Page_Forgot.php	(revision 19998)
+++ /branches/version-2_5-dev/data/class/pages/forgot/LC_Page_Forgot.php	(revision 20041)
@@ -38,5 +38,5 @@
     /** フォームパラメータの配列 */
     var $objFormParam;
-    
+
     /** 秘密の質問の答え */
     var $arrReminder;
@@ -44,5 +44,5 @@
     /** 変更後パスワード */
     var $temp_password;
-    
+
     /** エラーメッセージ */
     var $errmsg;
@@ -84,5 +84,5 @@
     function action() {
         $objQuery = new SC_Query();
-        
+
         if ($_SERVER["REQUEST_METHOD"] == "POST") {
             if (!SC_Helper_Session_Ex::isValidToken()) {
@@ -90,7 +90,5 @@
             }
         }
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST["mode"]) {
+        switch($this->getMode()) {
             case 'mail_check':
                 $this->lfForgotMailCheck();
@@ -114,5 +112,5 @@
         }
     }
-    
+
     // 最初に開いた時の処理（メールアドレス入力画面）
     function lfForgotDefault() {
@@ -121,5 +119,5 @@
         $this->tpl_login_email = $objCookie->getCookie('login_email');
     }
-    
+
     // メールアドレス確認（秘密の質問入力画面）
     function lfForgotMailCheck() {
@@ -162,5 +160,5 @@
         return $objErr->arrErr;
     }
-    
+
     // メールアドレス確認におけるパラメーター情報の初期化
     function lfMailCheckInitParam() {
@@ -172,5 +170,5 @@
             $this->objFormParam->addParam('メールアドレス', "email", MTEXT_LEN, "a", array("EXIST_CHECK", "EMAIL_CHECK", "NO_SPTAB" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK","MOBILE_EMAIL_CHECK"));
         }
-        
+
     }
 
@@ -195,5 +193,5 @@
             if (isset($result[0]['reminder']) and isset($this->arrReminder[$result[0]['reminder']])
                     and $result[0]['reminder'] == $this->arrForm['reminder']) {
-                
+
                 if (SC_Utils_Ex::sfIsMatchHashPassword($this->arrForm['reminder_answer'], $result[0]['reminder_answer'], $result[0]['salt'])) {
                     // 秘密の答えが一致
@@ -228,5 +226,5 @@
         }
     }
-    
+
     function lfSecretCheckInitParam() {
         // メールチェックと同等のチェックを再度行う
Index: /branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry.php	(revision 19995)
+++ /branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry.php	(revision 20041)
@@ -38,6 +38,6 @@
     /** フォームパラメータの配列 */
     var $objFormParam;
-    
-    
+
+
     // }}}
     // {{{ functions
@@ -54,5 +54,5 @@
         $this->arrJob = $masterData->getMasterData("mtb_job");
         $this->arrReminder = $masterData->getMasterData("mtb_reminder");
-        
+
         // 生年月日選択肢の取得
         $objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
@@ -60,7 +60,7 @@
         $this->arrMonth = $objDate->getMonth(true);
         $this->arrDay = $objDate->getDay(true);
-        
+
         $this->httpCacheControl('nocache');
-        
+
         $this->isMobile = Net_UserAgent_Mobile::isMobile();
     }
@@ -68,5 +68,5 @@
     /**
      * Page のプロセス.
-     * 
+     *
      * @return void
      */
@@ -75,8 +75,8 @@
         $this->sendResponse();
     }
-    
+
     /* パラメータ情報の初期化 */
     function lfInitParam() {
-                         
+
         $this->objFormParam->addParam("お名前(姓)", 'name01', STEXT_LEN, "aKV", array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
         $this->objFormParam->addParam("お名前(名)", 'name02', STEXT_LEN, "aKV", array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
@@ -100,5 +100,5 @@
         $this->objFormParam->addParam("日", "day", INT_LEN, "n", array("MAX_LENGTH_CHECK"), "", false);
         $this->objFormParam->addParam("メールマガジン", "mailmaga_flg", INT_LEN, "n", array("EXIST_CHECK", "NUM_CHECK"));
-        
+
         if ($this->isMobile === false){
             $this->objFormParam->addParam("FAX番号1", 'fax01', TEL_ITEM_LEN, "n", array("SPTAB_CHECK"));
@@ -125,10 +125,10 @@
         // PC時は規約ページからの遷移でなければエラー画面へ遷移する
         $this->lfCheckReferer();
-        
+
         // mobile用（戻るボタンでの遷移かどうかを判定）
         if (!empty($_POST["return"])) {
             $_POST["mode"] = "return";
         }
-        
+
         // パラメータ管理クラス,パラメータ情報の初期化
         $this->objFormParam = new SC_FormParam();
@@ -137,36 +137,36 @@
 
         if ($_SERVER["REQUEST_METHOD"] == "POST") {
-            
+
             //CSRF対策
             if (!SC_Helper_Session_Ex::isValidToken()) {
                 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, "", true);
             }
-            
+
             $this->objFormParam->convParam();
             $this->objFormParam->toLower('email');
             $this->objFormParam->toLower('email02');
             $this->arrForm = $this->objFormParam->getHashArray();
-     
+
             //-- 確認
-            if ($_POST["mode"] == "confirm") {
+            if ($this->getMode() == "confirm") {
 
                 $this->arrErr = $this->lfErrorCheck();
-                
+
                 // 入力エラーなし
                 if(count($this->arrErr) == 0) {
-                    
+
                     $this->list_data = $this->objFormParam->getHashArray();
-                
+
                     //パスワード表示
                     $passlen = strlen($this->arrForm['password']);
                     $this->passlen = SC_Utils_Ex::lfPassLen($passlen);
-    
+
                     $this->tpl_mainpage = 'entry/confirm.tpl';
                     $this->tpl_title = '会員登録(確認ページ)';
                 }
 
-            } elseif ($_POST["mode"] == "complete") {
+            } elseif ($this->getMode() == "complete") {
                 //-- 会員登録と完了画面
-           
+
                 // 会員情報の登録
                 $this->CONF = $CONF;
@@ -182,5 +182,5 @@
                 SC_Response_Ex::sendRedirect('complete.php', array("ci" => $customer_id));
                 exit;
-                
+
             }
         }
@@ -202,9 +202,9 @@
     // 会員情報の登録
     function lfRegistData() {
-                
+
         $objQuery = new SC_Query();
         $arrRet = $this->objFormParam->getHashArray();
         $sqlval = $this->objFormParam->getDbArray();
-        
+
         // 登録データの作成
         $sqlval['birth'] = SC_Utils_Ex::sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']);
@@ -216,5 +216,5 @@
             $count = $objQuery->count("dtb_customer", "secret_key = ?", array($uniqid));
         }
-        
+
         // 仮会員登録の場合
         if(CUSTOMER_CONFIRM_MAIL == true) {
@@ -242,8 +242,8 @@
         SC_Helper_Customer_Ex::sfEditCustomerData($sqlval);
         $objQuery->commit();
-        
+
         return $uniqid;
     }
-    
+
     function lfSendMail(){
         // 完了メール送信
@@ -305,5 +305,5 @@
             $objErr->doFunc(array("FAX番号", "fax01", "fax02", "fax03") ,array("TEL_CHECK"));
         }
-        
+
         // 現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可
         $register_user_flg =  SC_Helper_Customer_Ex::sfCheckRegisterUserFromEmail($arrRet["email"]);
@@ -320,9 +320,9 @@
         return $objErr->arrErr;
     }
-    
+
     function lfCheckReferer(){
     	/**
     	 * 規約ページからの遷移でなければエラー画面へ遷移する
-    	 */ 
+    	 */
         if ($this->isMobile === FALSE
         	 && empty($_POST)
Index: /branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php	(revision 19921)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php	(revision 20041)
@@ -85,7 +85,5 @@
         $this->objFormParam->setParam($_POST);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'login':
             $this->objFormParam->toLower('login_email');
Index: /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php	(revision 19947)
+++ /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php	(revision 20041)
@@ -440,5 +440,5 @@
         $this->arrForm = $_GET;
 
-        $this->mode = $this->arrForm['mode'];
+        $this->mode = $this->getMode();
         $this->arrSearchData['category_id'] = $this->lfGetCategoryId($this->arrForm['category_id']);
         $this->arrSearchData['maker_id'] = $this->arrForm['maker_id'];
Index: /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Review.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Review.php	(revision 19956)
+++ /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Review.php	(revision 20041)
@@ -102,6 +102,5 @@
                                 );
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-        switch ($_POST['mode']){
+        switch ($this->getMode()){
         case 'confirm':
             $arrForm = $this->lfConvertParam($_POST, $arrRegistColumn);
Index: /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Detail.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Detail.php	(revision 19972)
+++ /branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Detail.php	(revision 20041)
@@ -91,7 +91,7 @@
         // プロダクトIDの正当性チェック
         $product_id = $this->lfCheckProductId();
-
+        $mode = $this->getMode();
         // XXX 削除可能か、SC_SiteViewクラスコンストラクタ内の処理を要確認
-        $objView = new SC_SiteView(strlen($_POST['mode']) == 0);
+        $objView = new SC_SiteView(strlen($mode) == 0);
 
         $objCustomer = new SC_Customer();
@@ -99,5 +99,5 @@
 
         // ログイン中のユーザが商品をお気に入りにいれる処理
-        if ($objCustomer->isLoginSuccess() === true && strlen($_POST['mode']) > 0 && $_POST['mode'] == "add_favorite" && strlen($_POST['favorite_product_id']) > 0 ) {
+        if ($objCustomer->isLoginSuccess() === true && strlen($mode) > 0 && $mode == "add_favorite" && strlen($_POST['favorite_product_id']) > 0 ) {
             // 値の正当性チェック
             if(!SC_Utils_Ex::sfIsInt($_POST['favorite_product_id']) || !$objDb->sfIsRecord("dtb_products", "product_id", $_POST['favorite_product_id'], "del_flg = 0 AND status = 1")) {
@@ -168,7 +168,5 @@
         $this->tpl_product_id = $product_id;
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($mode) {
             case 'cart':
                 // 入力値の変換
@@ -222,5 +220,5 @@
         // モバイル用 ポストバック処理
         if(Net_UserAgent_Mobile::isMobile() === true) {
-            switch($_POST['mode']) {
+            switch($mode) {
                 case 'select':
                     // 規格1が設定されている場合
@@ -332,6 +330,5 @@
 
         if (defined('MOBILE_SITE')) {
-            if (!isset($_POST['mode'])) $_POST['mode'] = "";
-            if (!empty($_POST['mode'])) {
+            if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                 $product_id = $_POST['product_id'];
             } else {
@@ -339,5 +336,5 @@
             }
         } else {
-            if(isset($_POST['mode']) && $_POST['mode'] != '') {
+            if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                 $product_id = $_POST['product_id'];
             } else {
@@ -501,5 +498,5 @@
     /* 入力内容のチェック */
     function lfCheckError() {
-        if ($_POST['mode'] == "add_favorite") {
+        if ($this->getMode() == "add_favorite") {
             $objCustomer = new SC_Customer();
             $objErr = new SC_CheckError();
Index: /branches/version-2_5-dev/data/class/pages/rss/LC_Page_Rss_Products.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/rss/LC_Page_Rss_Products.php	(revision 19943)
+++ /branches/version-2_5-dev/data/class/pages/rss/LC_Page_Rss_Products.php	(revision 20041)
@@ -64,5 +64,5 @@
         //商品IDを取得
         $product_id = $_GET['product_id'];
-        $mode = $_GET['mode'];
+        $mode = $this->getMode();
 
         if(($product_id != "" and is_numeric($product_id)) or $mode == "all"){
@@ -215,12 +215,12 @@
             FROM  vw_products_allclass as allcls
             WHERE allcls.del_flg = 0 AND allcls.status = 1";
-        
+
         // 在庫無し商品の非表示
         if (NOSTOCK_HIDDEN === true) {
             $sql .= ' AND (allcls.stock_max >= 1 OR allcls.stock_unlimited_max = 1)';
         }
-        
+
         $sql .= " ORDER BY allcls.product_id";
-        
+
         $arrProduct = $objQuery->getAll($sql);
         return $arrProduct;
Index: /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php	(revision 19959)
+++ /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php	(revision 20041)
@@ -70,5 +70,5 @@
         $objCustomer = new SC_Customer();
         $objSiteSess = new SC_SiteSession();
-        
+
         // 退会判定用情報の取得
         $this->tpl_login = $objCustomer->isLoginSuccess(true);
@@ -76,7 +76,5 @@
         $this->lfCheckLogin();
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch ($_POST['mode']){
+        switch ($this->getMode()){
         case 'confirm':
 
@@ -118,5 +116,5 @@
         }
     }
-    
+
     function lfCheckLogin(){
         $objCustomer = new SC_Customer();
@@ -131,5 +129,5 @@
         }
     }
-    
+
     function lfDeleteCustomer(){
         $objQuery = new SC_Query();
@@ -143,5 +141,5 @@
         exit;
     }
-    
+
 }
 ?>
Index: /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php	(revision 19807)
+++ /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php	(revision 20041)
@@ -73,5 +73,5 @@
         //$objView = new SC_SiteView();
         $objCustomer = new SC_Customer();
-        
+
         // 退会判定用情報の取得
         $this->tpl_login = $objCustomer->isLoginSuccess();
@@ -79,5 +79,5 @@
         // ポップアップを開けたまま退会された状態でポップアップが閉じた場合のエラー画面の抑止。
         // コメントアウトした「ログイン判定」は他の「Mypage」内に施した退会時処理で補間。
-        
+
         // XXX コメントアウトによる問題が確認された場合はコメントアウトを外し、エラー画面が出る様に戻す。
         ////ログイン判定
@@ -91,8 +91,6 @@
         //}
 
-        $mode = isset($_POST['mode']) ? $_POST['mode'] : '';
         $customerId = $objCustomer->getValue('customer_id');
-
-        switch($mode) {
+        switch($this->getMode()) {
 
         // お届け先の削除
Index: /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php	(revision 20025)
+++ /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php	(revision 20041)
@@ -58,5 +58,5 @@
         $this->arrSex = $masterData->getMasterData("mtb_sex");
         $this->httpCacheControl('nocache');
-        
+
         // 生年月日選択肢の取得
         $objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now")));
@@ -64,5 +64,5 @@
         $this->arrMonth = $objDate->getMonth(true);
         $this->arrDay = $objDate->getDay(true);
-        
+
         $this->isMobile = Net_UserAgent_Mobile::isMobile();
     }
@@ -77,5 +77,5 @@
         $this->sendResponse();
     }
-    
+
     /**
      * Page のプロセス
@@ -85,8 +85,8 @@
         $objDb = new SC_Helper_DB_Ex();
         $CONF = $objDb->sfGetBasisData();
-        
+
         $objQuery = new SC_Query();
         $objCustomer = new SC_Customer();
-        
+
         // ログインチェック
         if (!$objCustomer->isLoginSuccess(true)){
@@ -99,18 +99,18 @@
             $this->CustomerPoint = $objCustomer->getvalue('point');
         }
-        
+
         // mobile用（戻るボタンでの遷移かどうかを判定）
         if (!empty($_POST["return"])) {
             $_POST["mode"] = "return";
         }
-        
+
         // パラメータ管理クラス,パラメータ情報の初期化
         $this->objFormParam = new SC_FormParam();
         $this->lfInitParam();
         $this->objFormParam->setParam($_POST);    // POST値の取得
-        
-       
+
+
         if ($_SERVER["REQUEST_METHOD"] == "POST") {
-            
+
             //CSRF対策
             /*
@@ -119,5 +119,5 @@
             }
             */
-                        
+
             $this->objFormParam->convParam();
             $this->objFormParam->toLower('email');
@@ -126,34 +126,34 @@
             $this->objFormParam->toLower('email_mobile02');
             $this->arrForm = $this->objFormParam->getHashArray();
-                 
+
             //-- 確認
-            if ($_POST["mode"] == "confirm") {
+            if ($this->getMode() == "confirm") {
 
                 $this->arrErr = $this->lfErrorCheck();
-                
+
                 // 入力エラーなし
                 if(count($this->arrErr) == 0) {
-                    
+
                     $this->list_data = $this->objFormParam->getHashArray();
-                
+
                     //パスワード表示
                     $passlen = strlen($this->arrForm['password']);
                     $this->passlen = SC_Utils_Ex::lfPassLen($passlen);
-    
+
                     $this->tpl_mainpage = 'mypage/change_confirm.tpl';
                     $this->tpl_title = '会員登録(確認ページ)';
                 }
 
-            } elseif ($_POST["mode"] == "complete") {
+            } elseif ($this->getMode() == "complete") {
                 //-- 会員登録と完了画面
-           
+
                 // 会員情報の登録
                 $this->CONF = $CONF;
                 $this->lfRegistData();
-                
+
                 // 完了ページに移動させる。
                 SC_Response_Ex::sendRedirect('change_complete.php');
                 exit;
-                
+
             }
         } else {
@@ -177,5 +177,5 @@
     /* パラメータ情報の初期化 */
     function lfInitParam() {
-                         
+
         $this->objFormParam->addParam("お名前(姓)", 'name01', STEXT_LEN, "aKV", array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
         $this->objFormParam->addParam("お名前(名)", 'name02', STEXT_LEN, "aKV", array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
@@ -199,5 +199,5 @@
         $this->objFormParam->addParam("日", "day", INT_LEN, "n", array("MAX_LENGTH_CHECK"), "", false);
         $this->objFormParam->addParam("メールマガジン", "mailmaga_flg", INT_LEN, "n", array("EXIST_CHECK", "NUM_CHECK"));
-        
+
         if ($this->isMobile === false){
             $this->objFormParam->addParam("FAX番号1", 'fax01', TEL_ITEM_LEN, "n", array("SPTAB_CHECK"));
@@ -228,5 +228,5 @@
             unset($objErr->arrErr['reminder_answer']);
         }
-                        
+
         $objErr->doFunc(array("お電話番号", "tel01", "tel02", "tel03"),array("TEL_CHECK"));
         $objErr->doFunc(array("郵便番号", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
@@ -239,5 +239,5 @@
             $objErr->doFunc(array("FAX番号", "fax01", "fax02", "fax03") ,array("TEL_CHECK"));
         }
-                
+
         // 現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可
         $register_user_flg = SC_Helper_Customer_Ex::sfCheckRegisterUserFromEmail($arrRet["email"]);
@@ -254,21 +254,21 @@
         return $objErr->arrErr;
     }
-    
+
     function lfRegistData() {
-                
+
         $objQuery = new SC_Query();
         $objCustomer = new SC_Customer();
-        
+
         $arrRet = $this->objFormParam->getHashArray();
-        
+
         // 登録データの作成
         $sqlval = $this->objFormParam->getDbArray();
         $sqlval['birth'] = SC_Utils_Ex::sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']);
-                       
+
         $objQuery->begin();
-        SC_Helper_Customer_Ex::sfEditCustomerData($sqlval, $objCustomer->getValue('customer_id'));        
+        SC_Helper_Customer_Ex::sfEditCustomerData($sqlval, $objCustomer->getValue('customer_id'));
         $objQuery->commit();
     }
-    
+
     /**
      * 顧客情報の取得
@@ -279,5 +279,5 @@
         $objQuery = new SC_Query();
         $objCustomer = new SC_Customer();
-        
+
         // 顧客情報DB取得
         $ret = $objQuery->select("*","dtb_customer","customer_id=?", array($objCustomer->getValue('customer_id')));
@@ -310,5 +310,5 @@
         }
     }
-    
+
 }
 ?>
Index: /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_LoginCheck.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_LoginCheck.php	(revision 19998)
+++ /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_LoginCheck.php	(revision 20041)
@@ -81,7 +81,5 @@
         $this->objFormParam->setParam($_POST);
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
-
-        switch($_POST['mode']) {
+        switch($this->getMode()) {
         case 'login':
             $this->objFormParam->toLower('mypage_login_email');
@@ -142,5 +140,5 @@
                     }
                 }
-                
+
                 SC_Response_Ex::sendRedirect(DIR_INDEX_PATH);
                 exit;
Index: /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php	(revision 19991)
+++ /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php	(revision 20041)
@@ -78,5 +78,5 @@
         }
         $this->ParentPage = $ParentPage;
-        
+
         /*
          * ログイン判定 及び 退会判定
@@ -87,8 +87,7 @@
         }
 
-        if (!isset($_POST['mode'])) $_POST['mode'] = "";
         if (!isset($_GET['other_deliv_id'])) $_GET['other_deliv_id'] = "";
 
-        if ($_POST['mode'] == ""){
+        if ($this->getMode() == null){
             $_SESSION['other_deliv_id'] = $_GET['other_deliv_id'];
         }
@@ -125,5 +124,5 @@
         }
 
-        switch ($_POST['mode']) {
+        switch ($this->getMode()) {
             case 'edit':
                 $_POST = $this->lfConvertParam($_POST,$arrRegistColumn);
@@ -142,5 +141,5 @@
                         SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
                     }
-                    
+
                     if ($objCustomer->isLoginSuccess(true)) {
                         $this->lfRegistData($_POST, $arrRegistColumn, $objCustomer);
@@ -212,9 +211,9 @@
                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '別のお届け先最大登録数に達しています。');
             }
-            
+
             // 実行
             $arrRegist['other_deliv_id'] = $objQuery->nextVal('dtb_other_deliv_other_deliv_id');
             $objQuery->insert("dtb_other_deliv", $arrRegist);
-            
+
         // 変更
         } else {
@@ -223,5 +222,5 @@
                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '一致する別のお届け先がありません。');
             }
-            
+
             // 実行
             $objQuery->update("dtb_other_deliv", $arrRegist,
Index: /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php	(revision 19959)
+++ /branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php	(revision 20041)
@@ -76,5 +76,5 @@
         $objQuery = new SC_Query();
         $objCustomer = new SC_Customer();
-        
+
         // 退会判定用情報の取得
         $this->tpl_login = $objCustomer->isLoginSuccess(true);
@@ -91,5 +91,5 @@
 
         // お気に入り削除
-        if ($_POST['mode'] == 'delete_favorite') {
+        if ($this->getMode() == 'delete_favorite') {
             $customer_id = $objCustomer->getValue('customer_id');
             $this->lfDeleteFavoriteProduct($customer_id, $_POST['product_id']);
@@ -104,5 +104,5 @@
         $col = "alldtl.*";
         $from = "dtb_customer_favorite_products AS dcfp LEFT JOIN vw_products_allclass_detail AS alldtl USING(product_id)";
-        
+
         $where = "dcfp.customer_id = ? AND alldtl.del_flg = 0 AND alldtl.status = 1";
         // 在庫無し商品の非表示
