쇼핑몰: #146 유형별 상품리스트 표준화 및 스타일 완료
This commit is contained in:
@ -6,31 +6,25 @@ if (G4_IS_MOBILE) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once('./_head.php');
|
|
||||||
|
|
||||||
$type = $_REQUEST['type'];
|
$type = $_REQUEST['type'];
|
||||||
if ($type == 1) $g4['title'] = "히트상품";
|
if ($type == 1) $g4['title'] = "히트상품";
|
||||||
else if ($type == 2) $g4['title'] = "추천상품";
|
else if ($type == 2) $g4['title'] = "추천상품";
|
||||||
else if ($type == 3) $g4['title'] = "신규상품";
|
else if ($type == 3) $g4['title'] = "최신상품";
|
||||||
else if ($type == 4) $g4['title'] = "포인트상품";
|
else if ($type == 4) $g4['title'] = "인기상품";
|
||||||
else if ($type == 5) $g4['title'] = "사은품상품";
|
else if ($type == 5) $g4['title'] = "할인상품";
|
||||||
else
|
else
|
||||||
alert('상품유형이 아닙니다.');
|
alert('상품유형이 아닙니다.');
|
||||||
|
|
||||||
|
include_once('./_head.php');
|
||||||
|
|
||||||
// 한페이지에 출력하는 이미지수 = $list_mod * $list_row
|
// 한페이지에 출력하는 이미지수 = $list_mod * $list_row
|
||||||
$list_mod = 4; // 한줄에 이미지 몇개씩 출력?
|
$list_mod = 3; // 한줄에 이미지 몇개씩 출력?
|
||||||
$list_row = 5; // 한 페이지에 몇라인씩 출력?
|
$list_row = 5; // 한 페이지에 몇라인씩 출력?
|
||||||
|
|
||||||
$img_width = 100; // 출력이미지 폭
|
$img_width = 230; // 출력이미지 폭
|
||||||
$img_height = 100; // 출력이미지 높이
|
$img_height = 230; // 출력이미지 높이
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<img src="<?php echo G4_SHOP_URL."/img/top_type{$type}.jpg"; ?>" border="0"><p>
|
|
||||||
|
|
||||||
<table width=100% cellpadding=0 cellspacing=0>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 상품 출력순서가 있다면
|
// 상품 출력순서가 있다면
|
||||||
if ($sort != "")
|
if ($sort != "")
|
||||||
@ -80,17 +74,10 @@ if ($i==0)
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<div align=center>
|
|
||||||
<?php
|
<?php
|
||||||
$qstr .= '&type='.$type.'&sort='.$sort;
|
$qstr .= '&type='.$type.'&sort='.$sort;
|
||||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||||
?>
|
?>
|
||||||
</div><br>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 테스트
|
// 테스트
|
||||||
|
|||||||
Reference in New Issue
Block a user