Changeset 9112
- Timestamp:
- 2006/11/27 11:55:07 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/class/SC_UploadFile.php (modified) (2 diffs)
-
html/admin/products/product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_UploadFile.php
r8732 r9112 99 99 return $objErr->arrErr[$keyname]; 100 100 } 101 101 102 102 // ²èÁü¤òºï½ü¤¹¤ë¡£ 103 103 function deleteFile($keyname) { … … 280 280 return $arrRet; 281 281 } 282 283 // ³ÈÂçΨ¤ò»ØÄꤷ¤Æ²èÁüÊݸ 284 function saveResizeImage($keyname, $zip_scale = 1) { 285 $path = ""; 286 287 // keyname¤ÎźÉÕ¥Õ¥¡¥¤¥ë¤ò¼èÆÀ 288 $arrImageKey = array_flip($this->keyname); 289 $file = $this->temp_file[$arrImageKey[$keyname]]; 290 $filepath = $this->temp_dir . $file; 291 292 $objImage = new SC_Image($filepath); 293 294 $path = $objImage->saveResizeImage($filepath, $zip_scale); 295 296 return $path; 297 } 282 298 } 283 299 ?> -
temp/trunk/html/admin/products/product.php
r9111 r9112 125 125 126 126 // Ãæ¡¢¾®²èÁüÀ¸À® 127 $arrImageKey = array_flip($objUpFile->keyname);128 sfprintr($arrImageKey[$_POST['image_key']]);129 127 sfprintr($_POST['image_key']); 130 128 131 sfprintr($objUpFile); 132 $objUpFile->temp_file[3] = $objUpFile->temp_file[4]; 129 $path = $objUpFile->saveResizeImage($_POST['image_key'],0.5); 130 131 sfprintr($path); 133 132 134 133 lfProductPage(); // ¾¦ÉÊÅÐÏ¿¥Ú¡¼¥¸
Note: See TracChangeset
for help on using the changeset viewer.
