Index: /branches/version-2_5-dev/html/install/sql/insert_data.sql =================================================================== --- /branches/version-2_5-dev/html/install/sql/insert_data.sql (revision 18777) +++ /branches/version-2_5-dev/html/install/sql/insert_data.sql (revision 18782) @@ -1096,5 +1096,5 @@ INSERT INTO mtb_constants VALUES ('PLUGIN_URL', 'USER_URL . PLUGIN_DIR', 602, 'プラグイン URL'); INSERT INTO mtb_constants VALUES ('DOWNLOAD_DAYS_LEN','3',700,'日数桁数'); -INSERT INTO mtb_constants VALUES ('DOWNLOAD_CNT_LEN','3',701,'ダウンロード回数桁数'); +INSERT INTO mtb_constants VALUES ('DOWNLOAD_EXTENSION','"zip,lzh,jpg,jpeg,gif,png,mp3,pdf,csv',701,'ダウンロードファイル登録可能拡張子(カンマ区切り)"'); INSERT INTO mtb_constants VALUES ('DOWN_SIZE','50000',702,'ダウンロード販売ファイル用サイズ制限(KB)'); INSERT INTO mtb_constants VALUES ('DEFAULT_PRODUCT_DOWN','1',703,'1:実商品 2:ダウンロード'); @@ -1102,5 +1102,5 @@ INSERT INTO mtb_constants VALUES ('DOWN_SAVE_DIR','DATA_PATH . "download/save/"',705,'ダウンロードファイル保存先'); INSERT INTO mtb_constants VALUES ('DOWNFILE_NOT_FOUND','22',706,'ダウンロードファイル存在エラー'); -INSERT INTO mtb_constants VALUES ('CREDIT_PAYMENT','1',707,'ダウンロード販売機能用にクレジット決済のpayment_idを指定'); +INSERT INTO mtb_constants VALUES ('CREDIT_PAYMENT','"1"',707,'ダウンロード販売機能用オンライン決済payment_id(カンマ区切り)'); INSERT INTO mtb_down VALUES ('1','実商品','0'); 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 18777) +++ /branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php (revision 18782) @@ -364,13 +364,25 @@ //削除されていない支払方法を取得 + $arrval = null; $where = "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "; + //ダウンロード商品の有無判定 if($this->cartdown != 0){ - //ダウンロード商品を含む場合は、クレジット決済以外は選択できない。 - $where .= "AND payment_id = " . CREDIT_PAYMENT; + //ダウンロード商品を含む場合は、オンライン決済以外は選択できない。 + $arrval = explode(",", CREDIT_PAYMENT); + $tmp_where = ""; + foreach ($arrval as $val) { + if($tmp_where == "") { + $tmp_where.= "AND payment_id IN ( ?"; + } else { + $tmp_where.= ",? "; + } + } + $tmp_where.= " ) "; + $where .= $tmp_where; } // 削除されていない支払方法を取得 - $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where); + $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where, $arrval); // 配列初期化 @@ -380,5 +392,5 @@ //ダウンロード販売に対する注意追加 if($this->cartdown != 0){ - $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、クレジット決済のみ選択可能です)"; + $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、オンライン決済のみ選択可能です)"; } // 下限と上限が設定されている 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 18777) +++ /branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php (revision 18782) @@ -873,5 +873,5 @@ /* ダウンロードファイル情報の初期化 */ function lfInitDownFile() { - $this->objDownFile->addFile("ダウンロード販売用ファイル", 'down_file', array('zip', 'jpg', 'mp3', 'gif', 'png'),DOWN_SIZE, true, 0, 0); + $this->objDownFile->addFile("ダウンロード販売用ファイル", 'down_file', explode(",", DOWNLOAD_EXTENSION),DOWN_SIZE, true, 0, 0); } } Index: /branches/version-2_5-dev/data/class/SC_UploadFile.php =================================================================== --- /branches/version-2_5-dev/data/class/SC_UploadFile.php (revision 18777) +++ /branches/version-2_5-dev/data/class/SC_UploadFile.php (revision 18782) @@ -321,5 +321,4 @@ $arrRet = ""; $cnt = 0; -GC_Utils::gfDebugLog($this->keyname); foreach($this->keyname as $val) { if(isset($this->temp_file[$cnt]) && $this->temp_file[$cnt] != "") { @@ -330,6 +329,4 @@ $cnt++; } -GC_Utils::gfPrintLog("1111111111111111111111"); -GC_Utils::gfDebugLog($arrRet); return $arrRet; } @@ -362,7 +359,5 @@ // DBで保存されたダウンロードファイル名をセットする function setDBDownFile($arrVal) { -GC_Utils::gfPrintLog("setDBDownFile"); -GC_Utils::gfDebugLog($arrVal); - if(isset($arrVal['down_realfilename']) && $arrVal['down_realfilename'] != "") { + if(isset($arrVal['down_realfilename']) && $arrVal['down_realfilename'] != "") { $this->save_file[0] = $arrVal['down_realfilename']; } Index: /branches/version-2_5-dev/data/Smarty/templates/default/admin/products/product.tpl =================================================================== --- /branches/version-2_5-dev/data/Smarty/templates/default/admin/products/product.tpl (revision 18777) +++ /branches/version-2_5-dev/data/Smarty/templates/default/admin/products/product.tpl (revision 18782) @@ -128,5 +128,5 @@