#sit_pvi_nwbig span.visible img { max-width:100%; height:auto; } .img_thumb_box { position:fixed; top:0; left:0; height:60px; width:100%; text-align:center; z-index:9999; background:#000; } .img_thumb img {width:60px;height:60px} </style> <div id="sit_pvi_nw"> <div id="sit_pvi_nwbig"> <?php $thumbnails = array(); for ($i = 1; $i <= 10; $i++) { if (!$row['it_img' . $i]) { continue; } $file = G5_DATA_PATH . '/item/' . $row['it_img' . $i]; if (is_file($file)) { // 썸네일 $thumb = get_it_thumbnail($row['it_img' . $i], 60, 60); $thumbnails[$i] = $thumb; $imageurl = G5_DATA_URL . '/item/' . $row['it_img' . $i]; ?> <span> <a href="javascript:window.close();"> <img src="<?php echo $imageurl; ?> " alt="<?php echo $row['it_name']; ?> " id="largeimage_<?php echo $i; ?> ">
<input type="hidden" name="sw_direct"> <input type="hidden" name="url"> <div id="sit_ov_wrap"> <?php // 이미지(중) 썸네일 $thumb_img = ''; $thumb_img_w = 280; // 넓이 $thumb_img_h = 280; // 높이 for ($i = 1; $i <= 10; $i++) { if (!$it['it_img' . $i]) { continue; } $thumb = get_it_thumbnail($it['it_img' . $i], $thumb_img_w, $thumb_img_h); if (!$thumb) { continue; } $thumb_img .= '<li>'; $thumb_img .= '<a href="' . G5_SHOP_URL . '/largeimage.php?it_id=' . $it['it_id'] . '&no=' . $i . '" class="popup_item_image slide_img" target="_blank">' . $thumb . '</a>'; $thumb_img .= '</li>' . PHP_EOL; } if ($thumb_img) { echo '<div id="sit_pvi">' . PHP_EOL; echo '<button type="button" id="sit_pvi_prev" class="sit_pvi_btn" >이전</button>' . PHP_EOL; echo '<button type="button" id="sit_pvi_next" class="sit_pvi_btn">다음</button>' . PHP_EOL; echo '<ul id="sit_pvi_slide" style="width:' . $thumb_img_w . 'px;height:' . $thumb_img_h . 'px">' . PHP_EOL; echo $thumb_img; echo '</ul>' . PHP_EOL; echo '</div>';
echo $i; ?> </label></th> <td> <input type="file" name="it_img<?php echo $i; ?> " id="it_img<?php echo $i; ?> "> <?php $it_img = G5_DATA_PATH . '/item/' . $it['it_img' . $i]; if (is_file($it_img) && $it['it_img' . $i]) { $size = @getimagesize($it_img); $thumb = get_it_thumbnail($it['it_img' . $i], 25, 25); ?> <label for="it_img<?php echo $i; ?> _del"><span class="sound_only">이미지 <?php echo $i; ?> </span>파일삭제</label> <input type="checkbox" name="it_img<?php echo $i; ?> _del" id="it_img<?php echo $i; ?> _del" value="1">
<div id="sit_ov_wrap"> <!-- 상품이미지 미리보기 시작 { --> <div id="sit_pvi"> <div id="sit_pvi_big"> <?php $big_img_count = 0; $thumbnails = array(); for ($i = 1; $i <= 10; $i++) { if (!$it['it_img' . $i]) { continue; } $img = get_it_thumbnail($it['it_img' . $i], $default['de_mimg_width'], $default['de_mimg_height']); if ($img) { // 썸네일 $thumb = get_it_thumbnail($it['it_img' . $i], 74, 74); $thumbnails[] = $thumb; $big_img_count++; echo '<a href="' . G5_SHOP_URL . '/largeimage.php?it_id=' . $it['it_id'] . '&no=' . $i . '" target="_blank" class="popup_item_image">' . $img . '</a>'; } } if ($big_img_count == 0) { echo '<img src="' . G5_SHOP_URL . '/img/no_image.gif" alt="">'; } ?> </div> <?php // 썸네일 $thumb1 = true; $thumb_count = 0; $total_count = count($thumbnails);