쇼핑몰: 레이아웃의 장바구니 위시리스트 목록 마크업 및 스타일 완료
This commit is contained in:
@ -143,6 +143,22 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
||||
#sbn_aside ul {margin:0;padding:0;border:0;list-style:none}
|
||||
#sbn_aside li {margin:0 0 1px}
|
||||
|
||||
/* aside:장바구니 */
|
||||
#sbsk {margin:0 0 5px;padding:0 0 10px;border:1px solid #d5d5d5;background:#f5f6fa}
|
||||
#sbsk h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#sbsk ul {margin:0;padding:0;border:0;background:#fff;list-style:none}
|
||||
#sbsk a {display:block;padding:7px 10px 6px;border-bottom:1px solid #f4f4f4;text-decoration:none}
|
||||
#sbsk a:focus, #sbsk a:hover {background:#f9f9f9}
|
||||
#sbsk_empty {padding:15px 0;text-align:center}
|
||||
|
||||
/* aside:위시리스트 */
|
||||
#swish {margin:0 0 5px;padding:0 0 10px;border:1px solid #d5d5d5;background:#f5f6fa}
|
||||
#swish h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#swish ul {margin:0;padding:0;border:0;background:#fff;list-style:none}
|
||||
#swish a {display:block;padding:7px 10px 6px;border-bottom:1px solid #f4f4f4;text-decoration:none}
|
||||
#swish a:focus, #swish a:hover {background:#f9f9f9}
|
||||
#swish_empty {padding:15px 0;text-align:center}
|
||||
|
||||
#container {position:relative;float:left;width:740px;min-height:500px;height:auto !important;height:500px;background:#fff;zoom:1}
|
||||
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
|
||||
@ -2,21 +2,34 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?php echo G4_SHOP_URL; ?>/cart.php'><img src='<?php echo G4_SHOP_URL; ?>/img/bar_cart.gif' border=0></a></td></tr>
|
||||
<?php
|
||||
$hsql = " select a.it_id, a.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b where a.uq_id = '".get_session('ss_uq_id')."' and a.it_id = b.it_id order by a.ct_id ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo "<tr><td height=22><nobr style='display:block; overflow:hidden; width:170px;'> · ";
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row[it_id], 50, 50, true);
|
||||
echo "<a href=\"".G4_SHOP_URL."/cart.php\">$it_name</a></nobr></td></tr>\n";
|
||||
}
|
||||
<!-- 장바구니 간략 보기 시작 { -->
|
||||
<aside id="sbsk">
|
||||
<h2>장바구니</h2>
|
||||
|
||||
if ($i==0)
|
||||
echo "<tr><td><img src='".G4_SHOP_URL."/img/nocart.gif'></td></tr>\n";
|
||||
<ul>
|
||||
<?php
|
||||
$hsql = "
|
||||
select a.it_id, a.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '".get_session('ss_uq_id')."'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id
|
||||
";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo '<li>';
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row[it_id], 50, 50, true);
|
||||
echo '<a href="'.G4_SHOP_URL.'/cart.php">'.$it_name.'</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
echo '<li id="sbsk_empty">장바구니 상품 없음</li>'.PHP_EOL;
|
||||
?>
|
||||
</table>
|
||||
</ul>
|
||||
|
||||
</aside>
|
||||
<!-- } 장바구니 간략 보기 끝 -->
|
||||
|
||||
|
||||
@ -2,24 +2,33 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?php echo G4_SHOP_URL; ?>/wishlist.php'><img src='<?php echo G4_SHOP_URL; ?>/img/bar_wishlist.gif' border=0></a></td></tr>
|
||||
<?php
|
||||
$hsql = " select a.it_id, b.it_name from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo "<tr><td height=22><nobr style='display:block; overflow:hidden; width:170px;'> · ";
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row[it_id], 50, 50, true);
|
||||
echo "<a href=\"".G4_SHOP_URL."/wishlist.php\">$it_name</a></nobr></td></tr>\n";
|
||||
}
|
||||
<!-- 위시리스트 간략 보기 시작 { -->
|
||||
<aside id="swish">
|
||||
<h2>위시리스트</h2>
|
||||
|
||||
if ($i==0)
|
||||
echo "<tr><td><img src='".G4_SHOP_URL."/img/nowishlist.gif'></td></tr>\n";
|
||||
<ul>
|
||||
<?php
|
||||
$hsql = "
|
||||
select a.it_id, b.it_name from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo '<li>';
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row[it_id], 50, 50, true);
|
||||
echo '<a href="'.G4_SHOP_URL.'/wishlist.php">'.$it_name.'</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
echo '<li id="swish_empty">위시리스트 없음</li>'.PHP_EOL;
|
||||
?>
|
||||
</table>
|
||||
</ul>
|
||||
|
||||
</aside>
|
||||
<!-- } 위시리스트 간략 보기 끝 -->
|
||||
|
||||
@ -96,36 +96,34 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
</aside>
|
||||
|
||||
<div id="aside">
|
||||
<?php echo outlogin('shop_basic'); // 외부 로그인 ?>
|
||||
<?php echo outlogin('shop_basic'); // 아웃로그인 ?>
|
||||
|
||||
<!-- 상품분류 -->
|
||||
<?php include_once(G4_SHOP_PATH.'/boxcategory.inc.php'); ?>
|
||||
<?php include_once(G4_SHOP_PATH.'/boxcategory.inc.php'); // 상품분류 ?>
|
||||
|
||||
<!-- 이벤트 -->
|
||||
<?php include_once(G4_SHOP_PATH.'/boxevent.inc.php'); ?>
|
||||
<?php include_once(G4_SHOP_PATH.'/boxcart.inc.php'); // 장바구니 ?>
|
||||
|
||||
<!-- 커뮤니티 -->
|
||||
<?php include_once(G4_SHOP_PATH.'/boxcommunity.inc.php'); ?>
|
||||
<?php include_once(G4_SHOP_PATH.'/boxwish.inc.php'); // 위시리스트 ?>
|
||||
|
||||
<!-- 장바구니 -->
|
||||
<?php // include_once(G4_SHOP_PATH.'/boxcart.inc.php'); ?>
|
||||
<?php include_once(G4_SHOP_PATH.'/boxevent.inc.php'); // 이벤트 ?>
|
||||
|
||||
<!-- 보관함 -->
|
||||
<?php // include_once(G4_SHOP_PATH.'/boxwish.inc.php'); ?>
|
||||
<?php include_once(G4_SHOP_PATH.'/boxcommunity.inc.php'); // 커뮤니티 ?>
|
||||
|
||||
<!-- 왼쪽 배너 -->
|
||||
<!-- 쇼핑몰 배너 시작 { -->
|
||||
<aside id="sbn_aside">
|
||||
<h2>쇼핑몰 배너</h2>
|
||||
<?php echo display_banner('왼쪽'); ?>
|
||||
</aside>
|
||||
<!-- } 쇼핑몰 배너 끝 -->
|
||||
</div>
|
||||
<!-- } 상단 끝 -->
|
||||
|
||||
<!-- 콘텐츠 시작 { -->
|
||||
<div id="container">
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><div id="wrapper_title"><?php echo $g4['title'] ?></div><?php } ?>
|
||||
<!-- 글자크기 조정 display:none 되어 있음 시작 { -->
|
||||
<div id="text_size">
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'decrease');">작게</button>
|
||||
<button class="no_text_resize" onclick="font_default('container');">기본</button>
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'increase');">크게</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- } 글자크기 조정 display:none 되어 있음 끝 -->
|
||||
Reference in New Issue
Block a user