Changeset 9222 for temp/trunk/html
- Timestamp:
- 2006/11/27 21:11:08 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/products/detail_image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/products/detail_image.php
r9221 r9222 38 38 $arrRet = $objQuery->select($col, "dtb_products", "product_id = ?", array($_GET['product_id'])); 39 39 40 if (sfIsInt($_GET['width']) && sfIsInt($_GET['height'])) { 41 /* 42 $objPage->tpl_width = $_GET['width']; 43 $objPage->tpl_height = $_GET['height']; 44 */ 45 list($width, $height) = getimagesize(IMAGE_SAVE_DIR . $arrRet[0][$image_key]); 46 $objPage->tpl_width = $width; 47 $objPage->tpl_height = $height; 48 } else { 49 list($width, $height) = getimagesize(IMAGE_SAVE_DIR . $arrRet[0][$image_key]); 50 $objPage->tpl_width = $width; 51 $objPage->tpl_height = $height; 52 } 40 list($width, $height) = getimagesize(IMAGE_SAVE_DIR . $arrRet[0][$image_key]); 41 $objPage->tpl_width = $width; 42 $objPage->tpl_height = $height; 53 43 54 44 $objPage->tpl_table_width = $objPage->tpl_width + 20;
Note: See TracChangeset
for help on using the changeset viewer.
