merge
This commit is contained in:
@ -19,7 +19,7 @@ if (PHP_VERSION >= '5.3.0') {
|
||||
|
||||
/*
|
||||
보안서버 도메인
|
||||
회원가입, 글쓰기에 사용되는 https 로 시작되는 주소를 말합니다.
|
||||
회원가입, 글쓰기에 사용되는 https 로 시작되는 주소를 말합니다.
|
||||
포트가 있다면 도메인 뒤에 :443 과 같이 입력하세요.
|
||||
보안서버주소가 없다면 공란으로 두시면 되며 보안서버주소 뒤에 / 는 붙이지 않습니다.
|
||||
입력예) https://www.domain.com:443/gnuboard4s
|
||||
@ -56,9 +56,9 @@ define('G4_SYNDI_DIR', 'syndi');
|
||||
if (G4_DOMAIN) {
|
||||
define('G4_URL', G4_DOMAIN);
|
||||
} else {
|
||||
if (isset($g4_path['url']))
|
||||
if (isset($g4_path['url']))
|
||||
define('G4_URL', $g4_path['url']);
|
||||
else
|
||||
else
|
||||
define('G4_URL', '');
|
||||
}
|
||||
|
||||
|
||||
15
js/shop.js
15
js/shop.js
@ -1,15 +0,0 @@
|
||||
if (typeof(SHOP_JS) == 'undefined') { // 한번만 실행
|
||||
var SHOP_JS = true;
|
||||
|
||||
// 큰이미지 창
|
||||
function popup_large_image(it_id, img, width, height, cart_dir)
|
||||
{
|
||||
var top = 10;
|
||||
var left = 10;
|
||||
url = cart_dir+"/largeimage.php?it_id=" + it_id + "&img=" + img;
|
||||
width = width + 50;
|
||||
height = height + 100;
|
||||
opt = 'scrollbars=yes,width='+width+',height='+height+',top='+top+',left='+left;
|
||||
popup_window(url, "largeimage", opt);
|
||||
}
|
||||
}
|
||||
@ -8,8 +8,6 @@ define("_INDEX_", TRUE);
|
||||
include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
|
||||
|
||||
<div id="sidx_img">
|
||||
<img src="<?php echo G4_DATA_URL; ?>/common/main_img" alt="">
|
||||
</div>
|
||||
|
||||
@ -132,6 +132,7 @@ $row = sql_fetch($sql);
|
||||
$item_relation_count = $row['cnt'];
|
||||
?>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<?php
|
||||
function pg_anchor($anc_id) {
|
||||
global $default;
|
||||
@ -147,6 +148,8 @@ function pg_anchor($anc_id) {
|
||||
<?php } ?>
|
||||
|
||||
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
|
||||
=======
|
||||
>>>>>>> e996e707806fc6f359cb4e91fb92d84e4386e022
|
||||
<script src="<?php echo G4_JS_URL; ?>/md5.js"></script>
|
||||
|
||||
<?php
|
||||
@ -170,7 +173,7 @@ else
|
||||
$img_big = $it['it_id'].'_l1'; // 기본이미지(대)
|
||||
?>
|
||||
<div id="sit_pvi_big">
|
||||
<?php echo get_large_image($it['it_id'].'_l1', $it['it_id'], false); ?><?php echo get_it_image($img_big); ?><span class="sound_only">새창</span></a>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/largeimage.php?it_id=<?php echo $it['it_id']; ?>&img=<?php echo $img_big; ?>" id="<?php echo $img_big; ?>" class="popup_item_image" target="_blank"><img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $img_big; ?>" alt=""></a>
|
||||
</div>
|
||||
<?php
|
||||
// 이미지(중) 썸네일
|
||||
@ -498,10 +501,26 @@ else
|
||||
</section>
|
||||
|
||||
<script>
|
||||
$(function(){ // 이미지 미리보기
|
||||
$('#sit_pvi .img_thumb').bind('hover focus', function(){
|
||||
var img_src = $(this).attr('id');
|
||||
$('#sit_pvi_big img').attr('src','<?php echo G4_DATA_URL; ?>/item/'+img_src); // 이미지 소스 교체
|
||||
$(function(){
|
||||
// 이미지 미리보기
|
||||
$("#sit_pvi .img_thumb").bind("hover focus", function(){
|
||||
var img_src = $(this).attr("id").replace("_s", "_l1");
|
||||
$("#sit_pvi_big img").attr("src","<?php echo G4_DATA_URL; ?>/item/"+img_src); // 이미지 소스 교체
|
||||
$("#sit_pvi_big a").attr("id", img_src);
|
||||
});
|
||||
|
||||
// 상품이미지 크게보기
|
||||
$(".popup_item_image").click(function() {
|
||||
var it_id = "<?php echo $it['it_id']; ?>";
|
||||
var img = $(this).attr("id");
|
||||
|
||||
var top = 10;
|
||||
var left = 10;
|
||||
var url = "<?php echo G4_SHOP_URL; ?>/largeimage.php?it_id=" + it_id + "&img=" + img;
|
||||
var opt = 'scrollbars=yes,top='+top+',left='+left;
|
||||
popup_window(url, "largeimage", opt);
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -2,9 +2,15 @@
|
||||
define('_SHOP_', true);
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id='$it_id' ";
|
||||
$it_id = $_GET['it_id'];
|
||||
$img = $_GET['img'];
|
||||
|
||||
$sql = " select it_id, it_name from {$g4['shop_item_table']} where it_id='$it_id' ";
|
||||
$row = sql_fetch_array(sql_query($sql));
|
||||
|
||||
if(!$row['it_id'])
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
$imagefile = G4_DATA_PATH."/item/$img";
|
||||
$imagefileurl = G4_DATA_URL."/item/$img";
|
||||
$size = getimagesize($imagefile);
|
||||
@ -26,10 +32,12 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
for ($i=1; $i<=5; $i++)
|
||||
{
|
||||
if ($i == 1) echo '<ul>';
|
||||
if (file_exists(G4_DATA_PATH."/item/{$it_id}_l{$i}"))
|
||||
if (file_exists(G4_DATA_PATH."/item/{$it_id}_l{$i}")) {
|
||||
$id = $it_id.'_l'.$i;
|
||||
?>
|
||||
<li><a href="#" id="<?php echo $it_id; ?>_l<?php echo $i; ?>" class="img_thumb"><img id="large<?php echo $i; ?>" src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it_id; ?>_l<?php echo $i; ?>" alt=""></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/largeimage.php?it_id=<?php echo $it_id; ?>&img=<?php echo $id; ?>" id="<?php echo $id; ?>" class="img_thumb"><img id="large<?php echo $i; ?>" src="<?php echo G4_DATA_URL; ?>/item/<?php echo $id; ?>" alt=""></a></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($i > 1) echo '</ul>';
|
||||
?>
|
||||
@ -40,10 +48,16 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){ // 이미지 미리보기
|
||||
$('.img_thumb').bind('hover focus', function(){
|
||||
var img_src = $(this).attr('id');
|
||||
$('#sit_pvi_nwbig img').attr('src','<?php echo G4_DATA_URL; ?>/item/'+img_src); // 이미지 소스 교체
|
||||
$(function(){
|
||||
// 창 사이즈 조절
|
||||
var w = <?php echo $size[0]; ?> + 50;
|
||||
var h = <?php echo $size[1]; ?> + 210;
|
||||
window.resizeTo(w, h);
|
||||
|
||||
// 이미지 미리보기
|
||||
$(".img_thumb").bind("hover focus", function(){
|
||||
var img_src = $(this).attr("id");
|
||||
$("#sit_pvi_nwbig img").attr("src","<?php echo G4_DATA_URL; ?>/item/"+img_src); // 이미지 소스 교체
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user