상품리스트에서 아이콘 등의 출력 기본설정 코드 추가
This commit is contained in:
@ -13,10 +13,16 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(1);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -26,10 +32,16 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(2);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -39,10 +51,16 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 추천상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(3);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -52,10 +70,16 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 인기상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -65,10 +89,16 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(5);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
@ -71,6 +71,13 @@ if ($is_admin)
|
||||
$list->set_mobile(true);
|
||||
$list->set_order_by($order_by);
|
||||
$list->set_from_record($from_record);
|
||||
$list->set_view('it_img', true);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
|
||||
// where 된 전체 상품수
|
||||
|
||||
@ -14,31 +14,6 @@ include_once(G4_LIB_PATH.'/poll.lib.php');
|
||||
include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
$disp = new display_item(1);
|
||||
echo $disp->run();
|
||||
|
||||
|
||||
$disp = new display_item(1);
|
||||
$disp->set_img_size(60, 0);
|
||||
$disp->set_view("it_price", false);
|
||||
$disp->set_view("it_id", true);
|
||||
$disp->set_view("it_icon", true);
|
||||
echo $disp->run();
|
||||
|
||||
|
||||
$disp = new display_item();
|
||||
$disp->set_event("1366852726");
|
||||
$disp->set_list_skin("type10.skin.php");
|
||||
$disp->set_img_size(125, 0);
|
||||
$disp->set_list_mod(3);
|
||||
$disp->set_list_row(4);
|
||||
echo $disp->run();
|
||||
exit;
|
||||
*/
|
||||
?>
|
||||
|
||||
<!-- 메인이미지 시작 { -->
|
||||
<div id="sidx_img">
|
||||
<img src="<?php echo G4_DATA_URL; ?>/common/main_img" alt="">
|
||||
@ -54,6 +29,13 @@ exit;
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(1);
|
||||
$list->set_view('it_img', true);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -68,6 +50,12 @@ exit;
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(2);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -82,6 +70,12 @@ exit;
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(3);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -96,6 +90,12 @@ exit;
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
@ -110,6 +110,12 @@ exit;
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(5);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
@ -89,6 +89,13 @@ if ($is_admin)
|
||||
$list->set_is_page(true);
|
||||
$list->set_order_by($order_by);
|
||||
$list->set_from_record($from_record);
|
||||
$list->set_view('it_img', true);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
|
||||
// where 된 전체 상품수
|
||||
|
||||
Reference in New Issue
Block a user