Changeset 9156
- Timestamp:
- 2006/11/27 14:18:15 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/products/product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/products/product.php
r9153 r9156 524 524 525 525 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; 534 534 535 535 $path = $objUpFile->saveResizeImage($_POST['image_key'], $scale);
Note: See TracChangeset
for help on using the changeset viewer.
