Changeset 9253 for temp


Ignore:
Timestamp:
2006/11/28 09:42:29 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_UploadFile.php

    r9191 r9253  
    182182     
    183183    // ¥Õ¥©¡¼¥à¤ËÅϤ¹ÍѤΥե¡¥¤¥ë¾ðÊóÇÛÎó¤òÊÖ¤¹ 
    184     function getFormFileList($temp_url, $save_url) { 
     184    function getFormFileList($temp_url, $save_url, $real_size = false) { 
    185185        $cnt = 0; 
    186186        foreach($this->keyname as $val) { 
     
    201201            } 
    202202            if($arrRet[$val]['filepath'] != "") { 
    203                 // ¥Õ¥¡¥¤¥ë²£Éý 
    204                 $arrRet[$val]['width'] = $this->width[$cnt]; 
    205                 // ¥Õ¥¡¥¤¥ë½ÄÉý 
    206                 $arrRet[$val]['height'] = $this->height[$cnt]; 
     203                 
     204                if($real_size){ 
     205                    list($width, $height) = getimagesize($arrRet[$val]['filepath']); 
     206                    // ¥Õ¥¡¥¤¥ë²£Éý 
     207                    $arrRet[$val]['width'] = $width; 
     208                    // ¥Õ¥¡¥¤¥ë½ÄÉý 
     209                    $arrRet[$val]['height'] = $height; 
     210                }else{ 
     211                    // ¥Õ¥¡¥¤¥ë²£Éý 
     212                    $arrRet[$val]['width'] = $this->width[$cnt]; 
     213                    // ¥Õ¥¡¥¤¥ë½ÄÉý 
     214                    $arrRet[$val]['height'] = $this->height[$cnt]; 
     215                } 
    207216                // ɽ¼¨Ì¾ 
    208217                $arrRet[$val]['disp_name'] = $this->disp_name[$cnt]; 
  • temp/trunk/html/products/detail.php

    r9250 r9253  
    162162$objUpFile->setDBFileList($objPage->arrProduct); 
    163163// ¥Õ¥¡¥¤¥ëɽ¼¨ÍÑÇÛÎó¤òÅϤ¹ 
    164 $objPage->arrFile = $objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL); 
     164$objPage->arrFile = $objUpFile->getFormFileList(IMAGE_TEMP_URL, IMAGE_SAVE_URL, true); 
    165165// »ÙʧÊýË¡¤Î¼èÆÀ 
    166166$objPage->arrPayment = lfGetPayment(); 
Note: See TracChangeset for help on using the changeset viewer.