Changeset 18782 for branches/version-2_5-dev
- Timestamp:
- 2010/08/12 13:26:14 (16 years ago)
- Location:
- branches/version-2_5-dev
- Files:
-
- 6 edited
-
data/Smarty/templates/default/admin/products/product.tpl (modified) (2 diffs)
-
data/class/SC_UploadFile.php (modified) (3 diffs)
-
data/class/pages/admin/products/LC_Page_Admin_Products_Product.php (modified) (1 diff)
-
data/class/pages/shopping/LC_Page_Shopping_Payment.php (modified) (2 diffs)
-
data/mtb_constants_init.php (modified) (1 diff)
-
html/install/sql/insert_data.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/Smarty/templates/default/admin/products/product.tpl
r18777 r18782 128 128 <tr> 129 129 <!--{assign var=key value="down_file"}--> 130 <th>ダウンロード商品用 <BR>ファイルアップロード<span class="attention"> *</span></th>130 <th>ダウンロード商品用ファイルアップロード<span class="attention"> *</span></th> 131 131 <td> 132 132 <span class="attention"><!--{$arrErr[$key]}--><!--{$arrErr.down_realfilename}--></span> … … 136 136 <!--{/if}--> 137 137 <input type="file" name="down_file" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /> 138 <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_down', 'down_key', '<!--{$key}-->')" value="アップロード"> 138 <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_down', 'down_key', '<!--{$key}-->')" value="アップロード"><BR>登録可能拡張子:<!--{$smarty.const.DOWNLOAD_EXTENSION}--> (パラメータ DOWNLOAD_EXTENSION) 139 139 </td> 140 140 </tr> -
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 // 下限と上限が設定されている -
branches/version-2_5-dev/data/mtb_constants_init.php
r18777 r18782 627 627 /** ダウンロード販売機能 ダウンロード可能日数桁数 */ 628 628 define('DOWNLOAD_DAYS_LEN', 3); 629 /** ダウンロード販売機能用にクレジット決済のpayment_idを指定 */ 630 define('CREDIT_PAYMENT', 1); 629 /** ダウンロードファイル登録可能拡張子(カンマ区切り) */ 630 define('DOWNLOAD_EXTENSION', "zip,lzh,jpg,jpeg,gif,png,mp3,pdf,csv"); 631 /** ダウンロード販売機能用オンライン決済payment_id(カンマ区切り) */ 632 define('CREDIT_PAYMENT', "1"); 631 633 ?> -
branches/version-2_5-dev/html/install/sql/insert_data.sql
r18777 r18782 1096 1096 INSERT INTO mtb_constants VALUES ('PLUGIN_URL', 'USER_URL . PLUGIN_DIR', 602, 'プラグイン URL'); 1097 1097 INSERT INTO mtb_constants VALUES ('DOWNLOAD_DAYS_LEN','3',700,'日数桁数'); 1098 INSERT INTO mtb_constants VALUES ('DOWNLOAD_ CNT_LEN','3',701,'ダウンロード回数桁数');1098 INSERT INTO mtb_constants VALUES ('DOWNLOAD_EXTENSION','"zip,lzh,jpg,jpeg,gif,png,mp3,pdf,csv',701,'ダウンロードファイル登録可能拡張子(カンマ区切り)"'); 1099 1099 INSERT INTO mtb_constants VALUES ('DOWN_SIZE','50000',702,'ダウンロード販売ファイル用サイズ制限(KB)'); 1100 1100 INSERT INTO mtb_constants VALUES ('DEFAULT_PRODUCT_DOWN','1',703,'1:実商品 2:ダウンロード'); … … 1102 1102 INSERT INTO mtb_constants VALUES ('DOWN_SAVE_DIR','DATA_PATH . "download/save/"',705,'ダウンロードファイル保存先'); 1103 1103 INSERT INTO mtb_constants VALUES ('DOWNFILE_NOT_FOUND','22',706,'ダウンロードファイル存在エラー'); 1104 INSERT INTO mtb_constants VALUES ('CREDIT_PAYMENT',' 1',707,'ダウンロード販売機能用にクレジット決済のpayment_idを指定');1104 INSERT INTO mtb_constants VALUES ('CREDIT_PAYMENT','"1"',707,'ダウンロード販売機能用オンライン決済payment_id(カンマ区切り)'); 1105 1105 1106 1106 INSERT INTO mtb_down VALUES ('1','実商品','0');
Note: See TracChangeset
for help on using the changeset viewer.
