- Timestamp:
- 2006/11/27 12:33:06 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/class/SC_UploadFile.php (modified) (1 diff)
-
html/admin/products/product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_UploadFile.php
r9112 r9113 294 294 $path = $objImage->saveResizeImage($filepath, $zip_scale); 295 295 296 return $path;296 return basename($path); 297 297 } 298 298 } -
temp/trunk/html/admin/products/product.php
r9112 r9113 123 123 // ²èÁüÊݸ½èÍý 124 124 $objPage->arrErr[$_POST['image_key']] = $objUpFile->makeTempFile($_POST['image_key']); 125 125 126 126 // Ãæ¡¢¾®²èÁüÀ¸À® 127 $arrImageKey = array_flip($objUpFile->keyname); 128 129 // ½Ì¾®Î¨ÀßÄê 130 (LARGE_IMAGE_WIDTH > LARGE_IMAGE_HEIGHT) ? $scale = SMALL_IMAGE_WIDTH / LARGE_IMAGE_WIDTH : $scale = SMALL_IMAGE_HEIGHT / LARGE_IMAGE_HEIGHT; 131 $path = $objUpFile->saveResizeImage($_POST['image_key'], $scale); 132 133 $objUpFile->temp_file[$arrImageKey["main_list_image"]] = $path; 134 127 135 sfprintr($_POST['image_key']); 128 129 $path = $objUpFile->saveResizeImage($_POST['image_key'],0.5); 130 136 137 131 138 sfprintr($path); 132 139 133 140 lfProductPage(); // ¾¦ÉÊÅÐÏ¿¥Ú¡¼¥¸ 134 141 break;
Note: See TracChangeset
for help on using the changeset viewer.
