Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
chicpro
2013-07-02 09:37:08 +09:00
16 changed files with 87 additions and 65 deletions

View File

@ -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:""}

View File

@ -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;'>&nbsp;&nbsp;· ";
$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>
<!-- } 장바구니 간략 보기 끝 -->

View File

@ -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;'>&nbsp;&nbsp;· ";
$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>
<!-- } 위시리스트 간략 보기 끝 -->

View File

@ -10,38 +10,24 @@ $g4['title'] = '커뮤니티';
include_once('./_head.php');
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?php
// 최신글 시작
$sql = " select bo_table, bo_subject from {$g4['board_table']} order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// tr 바꾸기
if (($i > 0) && ($i % $list_mod == 0))
echo "</tr><tr>";
echo "
<td width=50% valign=top>
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td colspan=2>";
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
// 스킨은 입력하지 않을 경우 운영자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
echo latest("", $row['bo_table'], $list_row, $subject_len);
echo latest(shop_basic, $row['bo_table'], $list_row, $subject_len);
echo "</td></tr></table><br></td>";
echo "";
}
if ($i > 0 && ($i % $list_mod == 1))
echo "<td width=50% valign=top>&nbsp;</td>";
echo '';
?>
</tr>
</table>
<?php
include_once('./_tail.php');

View File

@ -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 되어 있음 끝 -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B