<?php } // end if if (empty($mr['banner_name']) || $mr['banner_type'] == 'image') { ?> <div class="yui3-g"> <div class="yui3-u-1-6 right"><?php echo Kohana::lang('global_lang.lbl_image'); ?> :</div> <div class="yui3-u-4-5"> <?php if (!empty($mr['banner_name'])) { $src = "uploads/banner/" . $mr['banner_name']; $arr = MyImage::thumbnail(300, 300, $src); ?> <img src="<?php echo url::base(); ?> uploads/banner/<?php echo $mr['banner_name']; ?> " width="<?php echo !empty($arr['width']) ? $arr['width'] . 'px' : 'auto'; ?> " height="<?php echo !empty($arr['height']) ? $arr['height'] . 'px' : @$maxh; ?> "/>
" id="row_<?php echo $list['banner_id']; ?> "> <td align="center"><?php echo $list['banner_id']; ?> </td> <td align="center"> <?php if (@$list['banner_type'] == 'image' && file_exists($list['path_file']) && is_file($list['path_file'])) { $src = "uploads/banner/" . $list['path_file']; $maxw = Configuration_Model::get_value('MAX_WIDTH_BANNER_ADMIN_LIST'); $maxh = Configuration_Model::get_value('MAX_HEIGHT_BANNER_ADMIN_LIST'); $arr = MyImage::thumbnail($maxw, $maxh, $src); ?> <a href="<?php echo url::base(); ?> uploads/banner/<?php echo $list['banner_name']; ?> "> <img src="<?php echo url::base(); ?> uploads/banner/<?php echo $list['banner_name']; ?> " width="<?php