<div><h1>File List:</h1></div> <?php for ($i = 0; $i < $j; $i++) { ?> <div class="floater calign linepad" style="margin: 8px; width: <?php echo HEADING_IMAGE_WIDTH + 16; ?> px;"> <div style="border: 1px solid #DDD; padding: 8px; width: <?php echo HEADING_IMAGE_WIDTH; ?> px; height: <?php echo HEADING_IMAGE_HEIGHT; ?> px;"><?php echo '<a class="file_list" href="#" attr="' . basename(DIR_WS_CATALOG_IMAGES) . '/' . $files_array[$i] . '">' . tep_catalog_image($files_array[$i], $switch_folder . $files_array[$i], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '</a>'; ?> </div> <div class="hideover calign" style="height: <?php echo 40; ?> px;"><?php echo basename($files_array[$i]); ?> </div> </div> <?php } ?> </div> <?php
?> </div> <div><?php echo tep_draw_input_field('img_group_name', '', 'title="' . TEXT_IMAGE_GROUP_INFO . '"'); ?> </div> </fieldset></div> <div><fieldset><legend><b><?php echo TEXT_IMAGE_PREVIEW; ?> </b></legend> <div id="image_resize_complete" attr="<?php echo $resized_image; ?> " class="main" style="text-align: center; padding: 8px 0px 8px 0px;"><?php echo tep_catalog_image($image, $image, $width, $height); ?> </div> <div style="display:none;"> <?php echo tep_image_submit('button_insert.gif', IMAGE_INSERT, 'attr="' . $image . '" class="resize_button"'); echo tep_draw_hidden_field('module', 'image_resize'); echo tep_draw_hidden_field('image', $rel_path . $image); echo tep_draw_hidden_field('org_image', $g_crelpath . $org_image); ?> </div> </fieldset></div> </div> </form> <?php } else {
function tep_info_image($image, $alt, $width = '', $height = '') { extract(tep_load('defs')); $images_path = tep_front_physical_path(DIR_WS_CATALOG_IMAGES); if (!empty($image) && file_exists($images_path . $image)) { $image = tep_catalog_image($image, $alt, $width, $height); } else { $image = TEXT_IMAGE_NONEXISTENT; } return $image; }