Changeset 9156


Ignore:
Timestamp:
2006/11/27 14:18:15 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/products/product.php

    r9153 r9156  
    524524     
    525525    if($objUpFile->temp_file[$arrImageKey[$to_key]] == ""){ 
    526         // ¸µ²èÁü¤Î¤Û¤¦¤¬Â礭¤¤¾ì¹ç¤Ë¤Ï½Ì¾®Î¨ÀßÄê 
    527         if($to_w < $from_w and $to_h < $from_h){ 
    528             ($from_w > $from_h) ? $scale = $to_w / $from_w : $scale = $to_h / $from_h; 
    529         }else{ 
    530             $scale = 1; 
    531         } 
    532          
    533         sfprintr($scale); 
     526        // Éý¤Î½Ì¾®Î¨ 
     527        ($to_w < $from_w) ? $wscale = $to_w / $from_w : $wscale = 1; 
     528         
     529        // ¹â¤µ¤Î½Ì¾®Î¨ 
     530        ($to_h < $from_h) ? $hscale = $to_h / $from_h : $hscale = 1; 
     531         
     532        // ½Ì¾®Î¨¤Ï¾®¤µ¤¤¤Û¤¦¤Ë¤¢¤ï¤»¤ë 
     533        ($wscale < $hscale) ? $scale = $wscale : $scale = $hscale; 
    534534         
    535535        $path = $objUpFile->saveResizeImage($_POST['image_key'], $scale); 
Note: See TracChangeset for help on using the changeset viewer.