display_type 및 이미지 경로 수정
@ -205,33 +205,14 @@ $pg_anchor = '<ul class="anchor">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">최신상품출력</th>
|
||||
<td>
|
||||
<label for="de_type3_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type3_list_use" value="1" id="de_type3_list_use" <?php echo $default['de_type3_list_use']?"checked":""; ?>>
|
||||
<label for="de_type3_list_skin">스킨</label>
|
||||
<select name="de_type3_list_skin" id="de_type3_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type3_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type3_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type3_list_row" value="<?php echo $default['de_type3_list_row']; ?>" id="de_type3_list_row" class="frm_input" size="3">
|
||||
<label for="de_type3_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type3_list_mod" value="<?php echo $default['de_type3_list_mod']; ?>" id="de_type3_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type3_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type3_img_width" value="<?php echo $default['de_type3_img_width']; ?>" id="de_type3_img_width" class="frm_input" size="3">
|
||||
<label for="de_type3_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type3_img_height" value="<?php echo $default['de_type3_img_height']; ?>" id="de_type3_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">히트상품출력</th>
|
||||
<td>
|
||||
<label for="de_type1_list_use">출력</label> <input type="checkbox" name="de_type1_list_use" value="1" id="de_type1_list_use" <?php echo $default['de_type1_list_use']?"checked":""; ?>>
|
||||
<label for="de_type1_list_skin">스킨 </label>
|
||||
|
||||
<label for="de_type1_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type1_list_use" value="1" id="de_type1_list_use" <?php echo $default['de_type1_list_use']?"checked":""; ?>>
|
||||
<label for="de_type1_list_skin">스킨</label>
|
||||
<select name="de_type1_list_skin" id="de_type1_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type1_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type[0-9]+.skin\.php", $shop_skin_path, $default['de_type1_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type1_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type1_list_row" value="<?php echo $default['de_type1_list_row']; ?>" id="de_type1_list_row" class="frm_input" size="3">
|
||||
@ -250,7 +231,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type2_list_use" value="1" id="de_type2_list_use" <?php echo $default['de_type2_list_use']?"checked":""; ?>>
|
||||
<label for="de_type2_list_skin">스킨</label>
|
||||
<select name="de_type2_list_skin" id="de_type2_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type2_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type[0-9]+.skin\.php", $shop_skin_path, $default['de_type2_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type2_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type2_list_row" value="<?php echo $default['de_type2_list_row']; ?>" id="de_type2_list_row" class="frm_input" size="3">
|
||||
@ -262,6 +243,25 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="text" name="de_type2_img_height" value="<?php echo $default['de_type2_img_height']; ?>" id="de_type2_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">최신상품출력</th>
|
||||
<td>
|
||||
<label for="de_type3_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type3_list_use" value="1" id="de_type3_list_use" <?php echo $default['de_type3_list_use']?"checked":""; ?>>
|
||||
<label for="de_type3_list_skin">스킨</label>
|
||||
<select name="de_type3_list_skin" id="de_type3_list_skin">
|
||||
<?php echo get_list_skin_options("^type[0-9]+.skin\.php", $shop_skin_path, $default['de_type3_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type3_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type3_list_row" value="<?php echo $default['de_type3_list_row']; ?>" id="de_type3_list_row" class="frm_input" size="3">
|
||||
<label for="de_type3_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type3_list_mod" value="<?php echo $default['de_type3_list_mod']; ?>" id="de_type3_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type3_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type3_img_width" value="<?php echo $default['de_type3_img_width']; ?>" id="de_type3_img_width" class="frm_input" size="3">
|
||||
<label for="de_type3_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type3_img_height" value="<?php echo $default['de_type3_img_height']; ?>" id="de_type3_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">인기상품출력</th>
|
||||
<td>
|
||||
@ -269,7 +269,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type4_list_use" value="1" id="de_type4_list_use" <?php echo $default['de_type4_list_use']?"checked":""; ?>>
|
||||
<label for="de_type4_list_skin">스킨</label>
|
||||
<select name="de_type4_list_skin" id="de_type4_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type4_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type[0-9]+.skin\.php", $shop_skin_path, $default['de_type4_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type4_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type4_list_row" value="<?php echo $default['de_type4_list_row']; ?>" id="de_type4_list_row" class="frm_input" size="3">
|
||||
@ -287,8 +287,8 @@ $pg_anchor = '<ul class="anchor">
|
||||
<label for="de_type5_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type5_list_use" value="1" id="de_type5_list_use" <?php echo $default['de_type5_list_use']?"checked":""; ?>>
|
||||
<label for="de_type5_list_skin">스킨</label>
|
||||
<select id="de_type5_list_skin" name="de_type5_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type5_list_skin']); ?>
|
||||
<select name="de_type5_list_skin" id="de_type5_list_skin">
|
||||
<?php echo get_list_skin_options("^type[0-9]+.skin\.php", $shop_skin_path, $default['de_type5_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type5_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type5_list_row" value="<?php echo $default['de_type5_list_row']; ?>" id="de_type5_list_row" class="frm_input" size="3">
|
||||
@ -324,7 +324,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type3_list_use" value="1" id="de_mobile_type3_list_use" <?php echo $default['de_mobile_type3_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type3_list_skin">스킨</label>
|
||||
<select name="de_mobile_type3_list_skin" id="de_mobile_type3_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type3_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type3_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type3_list_row">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type3_list_row" value="<?php echo $default['de_mobile_type3_list_row']; ?>" id="de_mobile_type3_list_row" class="frm_input" size="3">
|
||||
@ -340,7 +340,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<label for="de_mobile_type1_list_use">출력</label> <input type="checkbox" name="de_mobile_type1_list_use" value="1" id="de_mobile_type1_list_use" <?php echo $default['de_mobile_type1_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type1_list_skin">스킨 </label>
|
||||
<select name="de_mobile_type1_list_skin" id="de_mobile_type1_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type1_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type1_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type1_list_row">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type1_list_row" value="<?php echo $default['de_mobile_type1_list_row']; ?>" id="de_mobile_type1_list_row" class="frm_input" size="3">
|
||||
@ -357,7 +357,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type2_list_use" value="1" id="de_mobile_type2_list_use" <?php echo $default['de_mobile_type2_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type2_list_skin">스킨</label>
|
||||
<select name="de_mobile_type2_list_skin" id="de_mobile_type2_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type2_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type2_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type2_list_row">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type2_list_row" value="<?php echo $default['de_mobile_type2_list_row']; ?>" id="de_mobile_type2_list_row" class="frm_input" size="3">
|
||||
@ -374,7 +374,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type4_list_use" value="1" id="de_mobile_type4_list_use" <?php echo $default['de_mobile_type4_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type4_list_skin">스킨</label>
|
||||
<select name="de_mobile_type4_list_skin" id="de_mobile_type4_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type4_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type4_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type4_list_row">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type4_list_row" value="<?php echo $default['de_mobile_type4_list_row']; ?>" id="de_mobile_type4_list_row" class="frm_input" size="3">
|
||||
@ -391,7 +391,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type5_list_use" value="1" id="de_mobile_type5_list_use" <?php echo $default['de_mobile_type5_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type5_list_skin">스킨</label>
|
||||
<select id="de_mobile_type5_list_skin" name="de_mobile_type5_list_skin">
|
||||
<?php echo get_list_skin_options("^maintype(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type5_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^type(.*)\.php", G4_MSHOP_PATH, $default['de_mobile_type5_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type5_list_row">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type5_list_row" value="<?php echo $default['de_mobile_type5_list_row']; ?>" id="de_mobile_type5_list_row" class="frm_input" size="3">
|
||||
|
||||
@ -365,85 +365,6 @@ td.empty_table {padding:85px 0;text-align:center}
|
||||
#sct_sort ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sct_sort li {float:left;position:relative;margin-left:-1px}
|
||||
|
||||
/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 시작 ##### */
|
||||
/* 공통 */
|
||||
.sct_wrap {margin:0 0 30px;zoom:1}
|
||||
.sct_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_wrap header {margin:0 0 20px;zoom:1}
|
||||
.sct_wrap header:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_wrap h2 {float:left;margin:0 20px 0 0;padding:0;line-height:1em}
|
||||
.sct_wrap h2 a {text-decoration:none}
|
||||
.sct_wrap_hdesc {float:left;margin:0;padding:0;color:#777;line-height:1em}
|
||||
|
||||
.sct {margin:0;padding:0;list-style:none;zoom:1}
|
||||
.sct:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_li {position:relative}
|
||||
.sct_noitem {padding:100px 0;text-align:center}
|
||||
|
||||
/* 상품 목록 스킨 10 */
|
||||
.sct_10 .sct_li {float:left;margin:0 25px 15px 0;width:230px}
|
||||
.sct_10 .sct_last {margin:0 0 15px !important}
|
||||
.sct_10 .sct_clear {clear:both}
|
||||
.sct_10 .sct_a {display:block;position:relative;text-decoration:none}
|
||||
.sct_10 .sct_a:focus, .sct_10 .sct_a:hover {text-decoration:none}
|
||||
.sct_10 .sct_img {display:block;margin:0 0 15px}
|
||||
.sct_10 b {display:block;margin:0 0 8px;font-weight:normal}
|
||||
.sct_10 s {display:block}
|
||||
.sct_10 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.sct_10 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important}
|
||||
.sct_10 .sct_icon img {display:block}
|
||||
.sct_10 .sct_sns {position:absolute;top:190px;right:20px}
|
||||
|
||||
/* 상품 목록 스킨 11 */
|
||||
.sct_11 .sct_li {float:left;margin:0 25px 15px 0;width:230px}
|
||||
.sct_11 .sct_last {margin:0 0 15px !important}
|
||||
.sct_11 .sct_clear {clear:both}
|
||||
.sct_11 .sct_a {display:block;position:relative;padding:0 0 5px;background:#f5f6fa;text-decoration:none}
|
||||
.sct_11 .sct_a:focus, .sct_11 .sct_a:hover {text-decoration:none}
|
||||
.sct_11 .sct_img {display:block;margin:0 0 15px}
|
||||
.sct_11 b {display:block;margin:0 0 8px;padding:0 5px;font-weight:normal}
|
||||
.sct_11 s {display:block}
|
||||
.sct_11 .sct_cost {display:block;margin:0 0 10px;padding:0 5px;font-weight:bold}
|
||||
.sct_11 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important}
|
||||
.sct_11 .sct_icon img {display:block}
|
||||
.sct_11 .sct_sns {position:absolute;bottom:10px;right:10px}
|
||||
|
||||
/* 상품 목록 스킨 12 */
|
||||
.sct_12 .sct_li {float:left;margin:0 16px 15px 0;width:362px}
|
||||
.sct_12 .sct_last {margin:0 0 15px !important}
|
||||
.sct_12 .sct_clear {clear:both}
|
||||
.sct_12 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
|
||||
.sct_12 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;width:110px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
||||
.sct_12 .sct_a:focus, .sct_12 .sct_a:hover {text-decoration:none}
|
||||
.sct_12 .sct_img {position:absolute;top:0;left:0}
|
||||
.sct_12 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
|
||||
.sct_12 p {margin:0 0 15px;padding:0;line-height:1.5em}
|
||||
.sct_12 s {display:block}
|
||||
.sct_12 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.sct_12 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||
.sct_12 .sct_icon img {display:block}
|
||||
.sct_12 .sct_sns {position:absolute;bottom:20px;right:10px}
|
||||
|
||||
/* 상품 목록 스킨 13 */
|
||||
.sct_13 .sct_li {float:left;margin:0 0 16px 0;width:100%}
|
||||
.sct_13 .sct_last {}
|
||||
.sct_13 .sct_clear {clear:both}
|
||||
.sct_13 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
|
||||
.sct_13 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
||||
.sct_13 .sct_a:focus, .sct_13 .sct_a:hover {text-decoration:none}
|
||||
.sct_13 .sct_img {position:absolute;top:0;left:0}
|
||||
.sct_13 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
|
||||
.sct_13 p {margin:0 0 15px;padding:0;line-height:1.5em}
|
||||
.sct_13 s {display:block}
|
||||
.sct_13 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.sct_13 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||
.sct_13 .sct_icon img {display:block}
|
||||
.sct_13 .sct_rel {position:absolute;bottom:20px;right:20px}
|
||||
.sct_13 .sct_rel_ul {margin:0;padding:0;list-style:none}
|
||||
.sct_13 .sct_rel_li {float:left;margin:0 0 0 10px}
|
||||
.sct_13 .sct_sns {position:absolute;top:20px;right:20px}
|
||||
/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 끝 ##### */
|
||||
|
||||
/* 상품 상세보기 */
|
||||
#sit {margin:10px 0;border:1px solid #e9e9e9}
|
||||
.sit_admin {text-align:right}
|
||||
|
||||
@ -56,6 +56,14 @@ define(_MISU_QUERY_, "
|
||||
// 쇼핑몰 설정값 배열변수
|
||||
$default = sql_fetch(" select * from {$g4['shop_default_table']} ");
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
$shop_skin_path = G4_MOBILE_PATH.'/'.G4_SKIN_DIR.'/shop/'.$default['de_shop_mobile_skin'];
|
||||
$shop_skin_url = G4_MOBILE_URL .'/'.G4_SKIN_DIR.'/shop/'.$default['de_shop_mobile_skin'];
|
||||
} else {
|
||||
$shop_skin_path = G4_PATH.'/'.G4_SKIN_DIR.'/shop/'.$default['de_shop_mobile_skin'];
|
||||
$shop_skin_url = G4_URL .'/'.G4_SKIN_DIR.'/shop/'.$default['de_shop_mobile_skin'];
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// 쇼핑몰 필수 실행코드 모음 끝
|
||||
//==============================================================================
|
||||
|
||||
109
lib/shop.lib.php
@ -466,9 +466,18 @@ function is_null_time($datetime)
|
||||
|
||||
// 출력유형, 스킨파일, 1라인이미지수, 총라인수, 이미지폭, 이미지높이
|
||||
// 1.02.01 $ca_id 추가
|
||||
function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="")
|
||||
//function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="")
|
||||
function display_type($type, $list_skin='', $list_mod='', $list_row='', $img_width='', $img_height='', $ca_id='')
|
||||
{
|
||||
global $member, $g4, $config;
|
||||
global $member, $g4, $config, $default, $shop_skin_path, $shop_skin_url;
|
||||
|
||||
if (!$default["de_type{$type}_list_use"]) return "";
|
||||
|
||||
$list_skin = $list_skin ? $list_skin : $default["de_type{$type}_list_skin"];
|
||||
$list_mod = $list_mod ? $list_mod : $default["de_type{$type}_list_mod"];
|
||||
$list_row = $list_row ? $list_row : $default["de_type{$type}_list_row"];
|
||||
$img_width = $img_width ? $img_width : $default["de_type{$type}_img_width"];
|
||||
$img_height = $img_height ? $img_height : $default["de_type{$type}_img_height"];
|
||||
|
||||
// 상품의 갯수
|
||||
$items = $list_mod * $list_row;
|
||||
@ -485,12 +494,17 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_
|
||||
}
|
||||
*/
|
||||
|
||||
$file = G4_SHOP_PATH.'/'.$skin_file;
|
||||
//$file = G4_SHOP_PATH.'/'.$skin_file;
|
||||
$file = $shop_skin_path.'/'.$list_skin;
|
||||
if (!file_exists($file)) {
|
||||
echo $file.' 파일을 찾을 수 없습니다.';
|
||||
return $shop_skin_url.'/'.$list_skin.' 파일을 찾을 수 없습니다.';
|
||||
} else {
|
||||
$td_width = (int)(100 / $list_mod);
|
||||
ob_start();
|
||||
include $file;
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
|
||||
@ -823,36 +837,6 @@ function print_item_options($it_id, $uq_id)
|
||||
return $str;
|
||||
}
|
||||
|
||||
function it_name_icon($it, $it_name="", $url=1)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$str = '';
|
||||
if ($it_name)
|
||||
$str = $it_name;
|
||||
// 제목이 없으면 아이콘만 나오도록 주석처리 - 지운아빠 2013-05-03
|
||||
//else
|
||||
// $str = stripslashes($it['it_name']);
|
||||
|
||||
if ($url)
|
||||
$str = '<a href="'.G4_SHOP_URL.'/item.php?it_id='.$it['it_id'].'">'.$str.'</a>';
|
||||
|
||||
$str .= '<span class="sit_icon">';
|
||||
// 품절
|
||||
$stock = get_it_stock_qty($it['it_id']);
|
||||
if ($stock <= 0)
|
||||
$str .= ' <img src="'.G4_SHOP.'/img/icon_soldout2.gif" alt="품절"> ';
|
||||
if ($it['it_type1']) $str .= '<img src="'.G4_URL.'/img/shop/icon_hit2.gif" alt="히트">';
|
||||
if ($it['it_type2']) $str .= '<img src="'.G4_URL.'/img/shop/icon_rec2.gif" alt="추천">';
|
||||
if ($it['it_type3']) $str .= '<img src="'.G4_URL.'/img/shop/icon_new2.gif" alt="신상품">';
|
||||
if ($it['it_type4']) $str .= '<img src="'.G4_URL.'/img/shop/icon_best2.gif" alt="인기">';
|
||||
if ($it['it_type5']) $str .= '<img src="'.G4_URL.'/img/shop/icon_discount2.gif" alt="할인">';
|
||||
|
||||
$str .= '</span>';
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
// 일자형식변환
|
||||
function date_conv($date, $case=1)
|
||||
{
|
||||
@ -1074,7 +1058,7 @@ function set_unique_id($direct)
|
||||
}
|
||||
|
||||
// 상품 목록 : 관련 상품 출력
|
||||
function display_relation_item($it_id, $width, $height, $rows=3)
|
||||
function relation_item($it_id, $width, $height, $rows=3)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
@ -1112,29 +1096,54 @@ function display_relation_item($it_id, $width, $height, $rows=3)
|
||||
}
|
||||
|
||||
// 상품이미지에 유형 아이콘 출력
|
||||
function display_item_icon($it)
|
||||
function item_icon($it)
|
||||
{
|
||||
/*
|
||||
$icon = '';
|
||||
|
||||
if($it['it_gallery'] || $it['it_type1'] || $it['it_type2'] || $it['it_type3'] || $it['it_type4'] || $it['it_type5']) {
|
||||
if($it['it_gallery']) // sold out
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_soldout.gif" alt="품절" class="sct_icon_so">';
|
||||
if($it['it_gallery']) // sold out
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_soldout.gif" alt="품절" class="sct_icon_soldout">';
|
||||
|
||||
if($it['it_type3'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_new.gif" alt="신상품" class="sct_icon_new">';
|
||||
if($it['it_type1'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_new.gif" alt="최신상품" class="sct_icon_new">';
|
||||
|
||||
if($it['it_type1'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_hit.gif" alt="히트" class="sct_icon_hit">';
|
||||
if($it['it_type2'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_hit.gif" alt="히트상품" class="sct_icon_hit">';
|
||||
|
||||
if($it['it_type2'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_rec.gif" alt="추천" class="sct_icon_rec">';
|
||||
if($it['it_type3'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_rec.gif" alt="추천상품" class="sct_icon_rec">';
|
||||
|
||||
if($it['it_type4'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_best.gif" alt="인기" class="sct_icon_best">';
|
||||
if($it['it_type4'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_best.gif" alt="인기상품" class="sct_icon_best">';
|
||||
|
||||
if($it['it_type5'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_discount.gif" alt="할인" class="sct_icon_discount">';
|
||||
}
|
||||
if($it['it_type5'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_discount.gif" alt="할인상품" class="sct_icon_discount">';
|
||||
|
||||
return $icon;
|
||||
*/
|
||||
|
||||
$icon = '<span class="sit_icon">';
|
||||
// 품절
|
||||
$stock = get_it_stock_qty($it['it_id']);
|
||||
if ($stock <= 0)
|
||||
$icon .= '<img src="'.G4_SHOP_URL.'/img/icon_soldout.gif" alt="품절"> ';
|
||||
|
||||
if ($it['it_type1'])
|
||||
$icon .= '<img src="'.G4_SHOP_URL.'/img/icon_hit.gif" alt="최신상품">';
|
||||
|
||||
if ($it['it_type2'])
|
||||
$icon .= '<img src="'.G4_SHOP_URL.'/img/icon_rec.gif" alt="히트상품">';
|
||||
|
||||
if ($it['it_type3'])
|
||||
$icon .= '<img src="'.G4_SHOP_URL.'/img/icon_new.gif" alt="추천상품">';
|
||||
|
||||
if ($it['it_type4'])
|
||||
$icon .= '<img src="'.G4_SHOP_URL.'/img/icon_best.gif" alt="인기상품">';
|
||||
|
||||
if ($it['it_type5'])
|
||||
$icon .= '<img src="'.G4_SHOP_URL.'/img/icon_discount.gif" alt="할인상품">';
|
||||
|
||||
$icon .= '</span>';
|
||||
|
||||
return $icon;
|
||||
}
|
||||
|
||||
@ -86,9 +86,9 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
|
||||
<?php } ?>
|
||||
|
||||
<ul id="stv_nb">
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/cart.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_cart.gif" alt="장바구니"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_wish.gif" alt="위시리스트"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_deli.gif" alt="주문/배송조회"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/cart.php"><img src="<?php echo G4_SHOP_URL; ?>/img/hd_nb_cart.gif" alt="장바구니"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G4_SHOP_URL; ?>/img/hd_nb_wish.gif" alt="위시리스트"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G4_SHOP_URL; ?>/img/hd_nb_deli.gif" alt="주문/배송조회"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 35 B |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 277 B |
|
Before Width: | Height: | Size: 181 B |
|
Before Width: | Height: | Size: 702 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 960 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 53 B |
|
Before Width: | Height: | Size: 46 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 161 B |
|
Before Width: | Height: | Size: 143 B |
|
Before Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 161 B |
|
Before Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 202 B |
|
Before Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 273 B |
|
Before Width: | Height: | Size: 224 B |
|
Before Width: | Height: | Size: 218 B |
|
Before Width: | Height: | Size: 200 B |
|
Before Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 118 B |
|
Before Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 546 B |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 169 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 332 B |
|
Before Width: | Height: | Size: 215 B |
|
Before Width: | Height: | Size: 213 B |
|
Before Width: | Height: | Size: 275 B |
|
Before Width: | Height: | Size: 216 B |
|
Before Width: | Height: | Size: 869 B |
|
Before Width: | Height: | Size: 873 B |
|
Before Width: | Height: | Size: 875 B |
|
Before Width: | Height: | Size: 881 B |
|
Before Width: | Height: | Size: 884 B |
|
Before Width: | Height: | Size: 875 B |
|
Before Width: | Height: | Size: 560 B |
|
Before Width: | Height: | Size: 165 B |
|
Before Width: | Height: | Size: 705 B |
|
Before Width: | Height: | Size: 115 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 175 B |
|
Before Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 169 B |
|
Before Width: | Height: | Size: 208 B |
|
Before Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 173 B |
BIN
shop/img/dot.gif
|
Before Width: | Height: | Size: 35 B |
|
Before Width: | Height: | Size: 63 B |
|
Before Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 50 B |
|
Before Width: | Height: | Size: 56 B After Width: | Height: | Size: 56 B |
|
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 415 B |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 141 B |
|
Before Width: | Height: | Size: 88 B |
|
Before Width: | Height: | Size: 50 B |
|
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 696 B |
|
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
|
Before Width: | Height: | Size: 137 B |
|
Before Width: | Height: | Size: 83 B |
|
Before Width: | Height: | Size: 67 B |
|
Before Width: | Height: | Size: 115 B |
|
Before Width: | Height: | Size: 60 B |
|
Before Width: | Height: | Size: 49 B |