Changeset 18782 for branches/version-2_5-dev/data/class
- Timestamp:
- 2010/08/12 13:26:14 (16 years ago)
- Location:
- branches/version-2_5-dev/data/class
- Files:
-
- 3 edited
-
SC_UploadFile.php (modified) (3 diffs)
-
pages/admin/products/LC_Page_Admin_Products_Product.php (modified) (1 diff)
-
pages/shopping/LC_Page_Shopping_Payment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_UploadFile.php
r18777 r18782 321 321 $arrRet = ""; 322 322 $cnt = 0; 323 GC_Utils::gfDebugLog($this->keyname);324 323 foreach($this->keyname as $val) { 325 324 if(isset($this->temp_file[$cnt]) && $this->temp_file[$cnt] != "") { … … 330 329 $cnt++; 331 330 } 332 GC_Utils::gfPrintLog("1111111111111111111111");333 GC_Utils::gfDebugLog($arrRet);334 331 return $arrRet; 335 332 } … … 362 359 // DBで保存されたダウンロードファイル名をセットする 363 360 function setDBDownFile($arrVal) { 364 GC_Utils::gfPrintLog("setDBDownFile"); 365 GC_Utils::gfDebugLog($arrVal); 366 if(isset($arrVal['down_realfilename']) && $arrVal['down_realfilename'] != "") { 361 if(isset($arrVal['down_realfilename']) && $arrVal['down_realfilename'] != "") { 367 362 $this->save_file[0] = $arrVal['down_realfilename']; 368 363 } -
branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php
r18777 r18782 873 873 /* ダウンロードファイル情報の初期化 */ 874 874 function lfInitDownFile() { 875 $this->objDownFile->addFile("ダウンロード販売用ファイル", 'down_file', array('zip', 'jpg', 'mp3', 'gif', 'png'),DOWN_SIZE, true, 0, 0);875 $this->objDownFile->addFile("ダウンロード販売用ファイル", 'down_file', explode(",", DOWNLOAD_EXTENSION),DOWN_SIZE, true, 0, 0); 876 876 } 877 877 } -
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r18777 r18782 364 364 365 365 //削除されていない支払方法を取得 366 $arrval = null; 366 367 $where = "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "; 368 367 369 //ダウンロード商品の有無判定 368 370 if($this->cartdown != 0){ 369 //ダウンロード商品を含む場合は、クレジット決済以外は選択できない。 370 $where .= "AND payment_id = " . CREDIT_PAYMENT; 371 //ダウンロード商品を含む場合は、オンライン決済以外は選択できない。 372 $arrval = explode(",", CREDIT_PAYMENT); 373 $tmp_where = ""; 374 foreach ($arrval as $val) { 375 if($tmp_where == "") { 376 $tmp_where.= "AND payment_id IN ( ?"; 377 } else { 378 $tmp_where.= ",? "; 379 } 380 } 381 $tmp_where.= " ) "; 382 $where .= $tmp_where; 371 383 } 372 384 373 385 // 削除されていない支払方法を取得 374 $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where );386 $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where, $arrval); 375 387 376 388 // 配列初期化 … … 380 392 //ダウンロード販売に対する注意追加 381 393 if($this->cartdown != 0){ 382 $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、 クレジット決済のみ選択可能です)";394 $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、オンライン決済のみ選択可能です)"; 383 395 } 384 396 // 下限と上限が設定されている
Note: See TracChangeset
for help on using the changeset viewer.
