- Timestamp:
- 2008/03/04 14:30:57 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/products/LC_Page_Products_Detail.php
r17071 r17103 213 213 $this->arrRelativeCat = $objDb->sfGetMultiCatTree($tmp_id); 214 214 215 // DBからのデータを引き継ぐ 216 $this->objUpFile->setDBFileList($this->arrProduct); 217 // ファイル表示用配列を渡す 218 $this->arrFile = $this->objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL, true); 215 $this->lfSetFile(); 219 216 // 支払方法の取得 220 217 $this->arrPayment = $this->lfGetPayment(); … … 440 437 $this->tpl_subtitle = $tpl_subtitle; 441 438 442 // DBからのデータを引き継ぐ 443 $this->objUpFile->setDBFileList($this->arrProduct); 444 // ファイル表示用配列を渡す 445 $this->arrFile = $this->objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL, true); 439 // ファイル情報のセット 440 $this->lfSetFile(); 446 441 // 支払方法の取得 447 442 $this->arrPayment = $this->lfGetPayment(); … … 824 819 $this->arrForm['quantity']['value'] = htmlspecialchars($value, ENT_QUOTES, CHAR_CODE); 825 820 } 821 822 /* 823 * ファイルの情報をセットする 824 * 825 */ 826 function lfSetFile() { 827 // DBからのデータを引き継ぐ 828 $this->objUpFile->setDBFileList($this->arrProduct); 829 // ファイル表示用配列を渡す 830 $this->arrFile = $this->objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL, true); 831 832 // サブ画像の有無を判定 833 $this->subImageFlag = false; 834 for ($i = 1; $i <= PRODUCTSUB_MAX; $i++) { 835 if ($this->arrFile["sub_image" . $i]["filepath"] != "") { 836 $this->subImageFlag = true; 837 } 838 } 839 } 826 840 } 827 841 ?>
Note: See TracChangeset
for help on using the changeset viewer.