Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -570,6 +570,51 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
|
||||
#sit_rel {margin:0 0 10px;padding:10px 10px 0}
|
||||
#sit_rel h2 {margin:0 0 10px}
|
||||
|
||||
/* 사용후기 모음 */
|
||||
#sps {zoom:1}
|
||||
#sps ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
|
||||
#sps li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9}
|
||||
#sps li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
.sps_img {float:left;margin:0 10px 0 0;width:80px}
|
||||
.sps_img span {position:absolute;font-size:0;line-height:0}
|
||||
|
||||
.sps_section {float:left;width:630px}
|
||||
|
||||
#sps dl {margin:5px 0 10px;zoom:1}
|
||||
#sps dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sps dt {float:left}
|
||||
#sps dd {float:left;margin:0 20px 0 5px}
|
||||
#sps dd img {position:relative;top:-2px}
|
||||
|
||||
.sps_section p {padding:0;width:100%;height:20px;overflow:hidden}
|
||||
.sps_con_full {padding:0;height:auto !important}
|
||||
.sps_con_btn {margin:5px 0 0;text-align:right}
|
||||
.sps_con_btn button {margin:0;padding:5px;border:0;background:#565e60;color:#fff}
|
||||
|
||||
/* 마이페이지 */
|
||||
#smb_my {}
|
||||
|
||||
#smb_my_ov {margin:0 0 20px}
|
||||
#smb_my_ov h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#smb_my_act {margin:0 0 10px;;zoom:1}
|
||||
#smb_my_act:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#smb_my_act ul {float:right;margin:0;padding:0;list-style:none}
|
||||
#smb_my_act li {float:left;margin:0 0 0 4px}
|
||||
#smb_my_ov dl {margin:0;border:1px solid #e9e9e9;background:#f5f6fa;zoom:1}
|
||||
#smb_my_ov dl:after {display:block;visibility:hidden;clear:both;content:''}
|
||||
#smb_my_ov dt {float:left;padding:7px 10px;width:100px;border-bottom:1px solid #e9e9e9;font-weight:bold}
|
||||
#smb_my_ov dd {float:left;margin:0;padding:7px 10px;width:220px;border-bottom:1px solid #e9e9e9}
|
||||
#smb_my_ovaddt {border-bottom:0 !important}
|
||||
#smb_my_ovaddd {width:590px !important;border-bottom:0 !important}
|
||||
|
||||
#smb_my_od {margin:0 0 20px}
|
||||
#smb_my_od h2 {margin:0 0 10px}
|
||||
|
||||
#smb_my_wish h2 {margin:0 0 10px}
|
||||
|
||||
.smb_my_img {width:90px;text-align:center}
|
||||
|
||||
/* 장바구니 */
|
||||
#sod_bsk {}
|
||||
.sod_bsk_img {width:90px;text-align:center}
|
||||
|
||||
@ -21,85 +21,87 @@ if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// 사용후기 제목을 클릭하면 내용을 가지고 옴
|
||||
$(".is_subject").click(function(){
|
||||
var $is_content = $(this).parents().next(".is_content");
|
||||
if ($is_content.is(":visible")) {
|
||||
$is_content.hide();
|
||||
} else {
|
||||
$is_content.show();
|
||||
}
|
||||
}).css("cursor","pointer").attr("title","클릭하시면 후기내용을 볼수 있습니다.");
|
||||
});
|
||||
</script>
|
||||
<div id="sps">
|
||||
|
||||
<br>
|
||||
<table width=100% align=center cellpadding=0 cellspacing=0>
|
||||
<colgroup width=50></colgroup>
|
||||
<colgroup width=''></colgroup>
|
||||
<colgroup width=100></colgroup>
|
||||
<colgroup width=100></colgroup>
|
||||
<colgroup width=100></colgroup>
|
||||
<tr><td colspan="5" height="2" bgcolor="#ededed"></td></tr>
|
||||
<tr height=30 bgcolor="#f7f7f7" align=center>
|
||||
<td>번호</td>
|
||||
<td>상품후기</td>
|
||||
<td>작성자</td>
|
||||
<td>작성일</td>
|
||||
<td>평가점수</td>
|
||||
</tr>
|
||||
<tr><td colspan="5" height="1" bgcolor="#ededed"></td></tr>
|
||||
<?php
|
||||
$sql = " select *
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_order
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$num = $total_count - ($page - 1) * $rows - $i;
|
||||
$star = get_star($row['is_score']);
|
||||
<p><?php echo $config['cf_title']; ?> 전체 사용후기 목록입니다.</p>
|
||||
|
||||
$thumb = new g4_thumb(G4_DATA_PATH.'/itemuse', 500);
|
||||
$is_content = $thumb->run($row['is_content']);
|
||||
$is_time = substr($row['is_time'], 2, 14);
|
||||
$small_image = $row['it_id']."_s";
|
||||
<?php
|
||||
$sql = " select *
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_order
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$num = $total_count - ($page - 1) * $rows - $i;
|
||||
$star = get_star($row['is_score']);
|
||||
|
||||
$row2 = sql_fetch(" select it_name from {$g4['shop_item_table']} where it_id = '{$row['it_id']}' ");
|
||||
$it_href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
$thumb = new g4_thumb(G4_DATA_PATH.'/itemuse', 500);
|
||||
$is_content = $thumb->run($row['is_content']);
|
||||
$is_time = substr($row['is_time'], 2, 14);
|
||||
$small_image = $row['it_id']."_s";
|
||||
|
||||
$row2 = sql_fetch(" select it_name from {$g4['shop_item_table']} where it_id = '{$row['it_id']}' ");
|
||||
$it_href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
|
||||
if ($i == 0) echo '<ol>';
|
||||
?>
|
||||
<li>
|
||||
|
||||
<div class="sps_img">
|
||||
<a href="<?php echo $it_href; ?>">
|
||||
<?php echo get_it_image($small_image, 70, 70); ?>
|
||||
<span><?php echo $row2['it_name']; ?></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<section class="sps_section">
|
||||
<h2><?php echo $row['is_subject']; ?></h2>
|
||||
|
||||
<dl class="sps_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $row['is_name']; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo substr($row['is_time'],0,10); ?></dd>
|
||||
<dt>평가점수</dt>
|
||||
<dd><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<p id="sps_con_<?php echo $i; ?>">
|
||||
<?php echo $is_content; // 상품 문의 내용 ?>
|
||||
</p>
|
||||
|
||||
<div class="sps_con_btn"><button class="sps_con_<?php echo $i; ?>">더보기</button></div>
|
||||
</section>
|
||||
|
||||
</li>
|
||||
<?php }
|
||||
if ($i > 0) echo '</ol>';
|
||||
if ($i == 0) echo '<p id="sps_empty">자료가 없습니다.</p>';
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
echo "
|
||||
<tr height=30>
|
||||
<td align=center>$num</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td width='120' align='center' valign='top'><a href='$it_href'>".get_it_image($small_image, 100, 100)."</a></td>
|
||||
<td valign='top'>
|
||||
<div style='padding:5px 0;'><a href='$it_href'>{$row2['it_name']}</a></div>
|
||||
<div class='is_subject'>{$row['is_subject']}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td align=center>{$row['is_name']}</td>
|
||||
<td align=center>".substr($row['is_time'],0,10)."</td>
|
||||
<td align=center><img src='".G4_SHOP_URL."/img/star{$star}.gif' border=0></td>
|
||||
</tr>
|
||||
<tr class='is_content' style='display:none;'><td colspan='5' style='padding:10px;' class='lh'><div style='padding:20px;border:1px solid #ccc;'>$is_content</div></td></tr>
|
||||
<tr><td colspan='5' height='1' bgcolor='#ededed'></td></tr>
|
||||
";
|
||||
}
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=5 align=center height=100>자료가 없습니다.</td></tr>";
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
|
||||
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// 사용후기 더보기
|
||||
$('.sps_con_btn button').click(function(){
|
||||
$this = $(this);
|
||||
sps_con_no = $this.attr('class');
|
||||
$('#'+sps_con_no).toggleClass('sps_con_full');
|
||||
});
|
||||
$('.sps_con_btn button').toggle(function(){
|
||||
$this.text('닫기');
|
||||
}, function(){
|
||||
$this.text('더보기');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
||||
@ -6,31 +6,25 @@ if (G4_IS_MOBILE) {
|
||||
return;
|
||||
}
|
||||
|
||||
include_once('./_head.php');
|
||||
|
||||
$type = $_REQUEST['type'];
|
||||
if ($type == 1) $g4['title'] = "히트상품";
|
||||
else if ($type == 2) $g4['title'] = "추천상품";
|
||||
else if ($type == 3) $g4['title'] = "신규상품";
|
||||
else if ($type == 4) $g4['title'] = "포인트상품";
|
||||
else if ($type == 5) $g4['title'] = "사은품상품";
|
||||
else if ($type == 3) $g4['title'] = "최신상품";
|
||||
else if ($type == 4) $g4['title'] = "인기상품";
|
||||
else if ($type == 5) $g4['title'] = "할인상품";
|
||||
else
|
||||
alert('상품유형이 아닙니다.');
|
||||
|
||||
include_once('./_head.php');
|
||||
|
||||
// 한페이지에 출력하는 이미지수 = $list_mod * $list_row
|
||||
$list_mod = 4; // 한줄에 이미지 몇개씩 출력?
|
||||
$list_mod = 3; // 한줄에 이미지 몇개씩 출력?
|
||||
$list_row = 5; // 한 페이지에 몇라인씩 출력?
|
||||
|
||||
$img_width = 100; // 출력이미지 폭
|
||||
$img_height = 100; // 출력이미지 높이
|
||||
$img_width = 230; // 출력이미지 폭
|
||||
$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
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "")
|
||||
@ -80,17 +74,10 @@ if ($i==0)
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<div align=center>
|
||||
<?php
|
||||
$qstr .= '&type='.$type.'&sort='.$sort;
|
||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
?>
|
||||
</div><br>
|
||||
|
||||
<?php
|
||||
// 테스트
|
||||
|
||||
187
shop/mypage.php
187
shop/mypage.php
@ -9,24 +9,102 @@ if (G4_IS_MOBILE) {
|
||||
if (!$is_member)
|
||||
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/mypage.php"));
|
||||
|
||||
$g4['title'] = '마이페이지';
|
||||
$g4['title'] = $member['mb_name'].'님 마이페이지';
|
||||
include_once('./_head.php');
|
||||
|
||||
//$str = $g4[title];
|
||||
//include("./navigation2.inc.php");
|
||||
?>
|
||||
|
||||
<img src="<?php echo G4_SHOP_URL; ?>/img/top_mypage.gif" border=0><p>
|
||||
<div id="smb_my">
|
||||
|
||||
<table align=center width=100%>
|
||||
<tr>
|
||||
<td><B><?php echo $member['mb_name']; ?></B> 님의 마이페이지입니다.</td>
|
||||
<td align=right>
|
||||
<?php if ($is_admin == 'super') { echo "<a href='".G4_ADMIN_URL."/'><img src='".G4_SHOP_URL."/img/btn_admin.gif' border=0 align='absmiddle'></a>"; } ?>
|
||||
<a href='<?php echo G4_BBS_URL; ?>/member_confirm.php?url=register_form.php'><img src='<?php echo G4_SHOP_URL; ?>/img/my_modify.gif' border=0 align='absmiddle'></a>
|
||||
<a href="<?php echo G4_BBS_URL; ?>/member_confirm.php?url=member_leave.php" onclick="return member_leave();"><img src='<?php echo G4_SHOP_URL; ?>/img/my_leave.gif' border=0 align='absmiddle'></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<section id="smb_my_ov">
|
||||
<h2>회원정보 개요</h2>
|
||||
|
||||
<div id="smb_my_act">
|
||||
<ul>
|
||||
<?php if ($is_admin == 'super') { ?><li><a href="<?php echo G4_ADMIN_URL; ?>/" class="btn_admin">관리자</a></li><?php } ?>
|
||||
<li><a href="<?php echo G4_BBS_URL; ?>/memo.php" target="_blank" class="win_memo btn01">쪽지함</a></li>
|
||||
<li><a href="<?php echo G4_BBS_URL; ?>/member_confirm.php?url=register_form.php" class="btn01">회원정보수정</a></li>
|
||||
<li><a href="<?php echo G4_BBS_URL; ?>/member_confirm.php?url=member_leave.php" onclick="return member_leave();" class="btn02">회원탈퇴</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<dl>
|
||||
<dt>회원권한</dt>
|
||||
<dd><?php echo $member['mb_level']; ?></dd>
|
||||
<dt>보유포인트</dt>
|
||||
<dd><a href="<?php echo G4_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></dd>
|
||||
<dt>연락처</dt>
|
||||
<dd><?php echo ($member['mb_tel'] ? $member['mb_tel'] : '미등록'); ?></dd>
|
||||
<dt>E-Mail</dt>
|
||||
<dd><?php echo ($member['mb_email'] ? $member['mb_email'] : '미등록'); ?></dd>
|
||||
<dt>최종접속일시</dt>
|
||||
<dd><?php echo $member['mb_today_login']; ?></dd>
|
||||
<dt>회원가입일시</dt>
|
||||
<dd><?php echo $member['mb_datetime']; ?></dd>
|
||||
<dt id="smb_my_ovaddt">주소</dt>
|
||||
<dd id="smb_my_ovaddd"><?php echo sprintf("(%s-%s) %s %s", $member['mb_zip1'], $member['mb_zip2'], $member['mb_addr1'], $member['mb_addr2']); ?></dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section id="smb_my_od">
|
||||
<h2>최근 주문내역</h2>
|
||||
<?php
|
||||
// 최근 주문내역
|
||||
define("_ORDERINQUIRY_", true);
|
||||
|
||||
$limit = " limit 0, 5 ";
|
||||
include G4_SHOP_PATH.'/orderinquiry.sub.php';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<section id="smb_my_wish">
|
||||
<h2>최근 위시리스트</h2>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
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
|
||||
limit 0, 3 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($i>0)
|
||||
echo "<tr><td colspan=3 height=1 background='".G4_SHOP_URL."/img/dot_line.gif'></td></tr>";
|
||||
|
||||
$image = get_it_image($row['it_id']."_s", 70, 70, $row['it_id']);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="smb_my_img"><?php echo $image; ?></td>
|
||||
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
|
||||
<td class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=3 height=100 align=center><span class=point>보관 내역이 없습니다.</span></td></tr>";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function member_leave()
|
||||
@ -35,93 +113,6 @@ function member_leave()
|
||||
}
|
||||
</script>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 align=center background='<?php echo G4_SHOP_URL; ?>/img/my_bg.gif'>
|
||||
<tr><td colspan=4><img src='<?php echo G4_SHOP_URL; ?>/img/my_box01.gif'></td></tr>
|
||||
<tr>
|
||||
<td height=25> 보유포인트 </td>
|
||||
<td>: <a href="<?php echo G4_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></td>
|
||||
<td>쪽지함</td>
|
||||
<td>: <a href="<?php echo G4_BBS_URL; ?>/memo.php" target="_blank" class="win_memo">쪽지보기</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25> 주소</td>
|
||||
<td>: <?php echo sprintf("(%s-%s) %s %s", $member['mb_zip1'], $member['mb_zip2'], $member['mb_addr1'], $member['mb_addr2']); ?></td>
|
||||
<td>회원권한</td>
|
||||
<td>: <?php echo $member['mb_level']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25> 연락처</td>
|
||||
<td>: <?php echo $member['mb_tel']; ?></td>
|
||||
<td>최종접속일시</td>
|
||||
<td>: <?php echo $member['mb_today_login']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=25> E-mail</td>
|
||||
<td>: <?php echo $member['mb_email']; ?></td>
|
||||
<td>회원가입일시</td>
|
||||
<td>: <?php echo $member['mb_datetime']; ?></td>
|
||||
</tr>
|
||||
<tr><td colspan=4><img src='<?php echo G4_SHOP_URL; ?>/img/my_box02.gif'></td></tr>
|
||||
</table><BR><BR>
|
||||
|
||||
|
||||
<table width=98% cellpadding=0 cellspacing=0 align=center>
|
||||
<tr>
|
||||
<td height=35><img src='<?php echo G4_SHOP_URL; ?>/img/my_title01.gif'></td>
|
||||
<td align=right><a href='./orderinquiry.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
// 최근 주문내역
|
||||
define("_ORDERINQUIRY_", true);
|
||||
|
||||
$limit = " limit 0, 5 ";
|
||||
include G4_SHOP_PATH.'/orderinquiry.sub.php';
|
||||
?>
|
||||
<br>
|
||||
|
||||
<table width=98% cellpadding=0 cellspacing=0 align=center>
|
||||
<tr>
|
||||
<td height=35 colspan=2><img src='<?php echo G4_SHOP_URL; ?>/img/my_title02.gif'></td>
|
||||
<td align=right><a href='./wishlist.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
|
||||
</tr>
|
||||
<tr><td height=2 colspan=3 class=c1></td></tr>
|
||||
<tr align=center height=25 class=c2>
|
||||
<td colspan=2>상품명</td>
|
||||
<td>보관일시</td>
|
||||
</tr>
|
||||
<tr><td height=1 colspan=3 class=c1></td></tr>
|
||||
<?php
|
||||
$sql = " select *
|
||||
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
|
||||
limit 0, 3 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($i>0)
|
||||
echo "<tr><td colspan=3 height=1 background='".G4_SHOP_URL."/img/dot_line.gif'></td></tr>";
|
||||
|
||||
$image = get_it_image($row['it_id']."_s", 50, 50, $row['it_id']);
|
||||
|
||||
echo "<tr align=center height=60>";
|
||||
echo "<td width=100>$image</td>";
|
||||
echo "<td align=left><a href='./item.php?it_id={$row['it_id']}'>".stripslashes($row['it_name'])."</a></td>";
|
||||
echo "<td>$row[wi_time]</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=3 height=100 align=center><span class=point>보관 내역이 없습니다.</span></td></tr>";
|
||||
?>
|
||||
<tr><td height=1 colspan=3 bgcolor=#94D7E7></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
include_once("./_tail.php");
|
||||
?>
|
||||
Reference in New Issue
Block a user