M쇼핑몰: #164 마이페이지 스타일 완료
This commit is contained in:
@ -158,14 +158,15 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei
|
||||
.td_group {width:100px;text-align:center}
|
||||
.td_board {width:120px;text-align:center}
|
||||
.td_num {width:50px;text-align:center}
|
||||
.td_bignum {width:80px;text-align:center}
|
||||
.td_bignum {width:120px;text-align:center}
|
||||
.td_mb_id {width:100px;text-align:center}
|
||||
.td_nick {width:100px;text-align:center}
|
||||
.td_name {width:100px;text-align:left}
|
||||
.td_date {width:60px;text-align:center}
|
||||
.td_datetime {width:110px;text-align:center}
|
||||
.td_date {width:100px;text-align:center}
|
||||
.td_datetime {width:170px;text-align:center}
|
||||
.td_smallmng {width:50px;text-align:center}
|
||||
.td_mng {width:80px;text-align:center}
|
||||
.td_stat {text-align:center}
|
||||
|
||||
/* 새창 기본 스타일 */
|
||||
.new_win {}
|
||||
@ -423,21 +424,16 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei
|
||||
/* 마이페이지 */
|
||||
#smb_my {}
|
||||
|
||||
#smb_my_ov {margin:0 0 20px}
|
||||
#smb_my_ov {margin:0 0 2em}
|
||||
#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 {margin:0;border-top: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_ov dt {float:left;padding:0.8em;width:30%;border-bottom:1px solid #e9e9e9;font-weight:bold}
|
||||
#smb_my_ov dd {margin:0;padding:0.8em 0;border-bottom:1px solid #e9e9e9}
|
||||
|
||||
#smb_my_od {margin:0 0 20px}
|
||||
#smb_my_od h2 {margin:0 0 10px}
|
||||
#smb_my_od .td_stat {width:100px}
|
||||
|
||||
#smb_my_wish h2 {margin:0 0 10px}
|
||||
|
||||
|
||||
@ -8,17 +8,86 @@ $g4['title'] = '마이페이지';
|
||||
include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
?>
|
||||
|
||||
<img src="<?php echo G4_MSHOP_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_MSHOP_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_MSHOP_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_MSHOP_URL; ?>/img/my_leave.gif' border=0 align='absmiddle'></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<section id="smb_my_ov">
|
||||
<h2>회원정보 개요</h2>
|
||||
|
||||
<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>주소</dt>
|
||||
<dd><?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_MSHOP_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()
|
||||
@ -27,93 +96,6 @@ function member_leave()
|
||||
}
|
||||
</script>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 align=center background='<?php echo G4_MSHOP_URL; ?>/img/my_bg.gif'>
|
||||
<tr><td colspan=4><img src='<?php echo G4_MSHOP_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_MSHOP_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_MSHOP_URL; ?>/img/my_title01.gif'></td>
|
||||
<td align=right><a href='<?php echo G4_MSHOP_URL; ?>/orderinquiry.php'><img src='<?php echo G4_MSHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
// 최근 주문내역
|
||||
define("_ORDERINQUIRY_", true);
|
||||
|
||||
$limit = " limit 0, 5 ";
|
||||
include G4_MSHOP_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_MSHOP_URL; ?>/img/my_title02.gif'></td>
|
||||
<td align=right><a href='<?php echo G4_MSHOP_URL; ?>/wishlist.php'><img src='<?php echo G4_MSHOP_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_MSHOP_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="'.G4_MSHOP_URL.'"/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(G4_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
@ -9,12 +9,10 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">주문서번호</th>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">주문일시</th>
|
||||
<th scope="col">상품수</th>
|
||||
<th scope="col">주문금액</th>
|
||||
<th scope="col">입금액</th>
|
||||
<th scope="col">미입금액</th>
|
||||
<th scope="col">배송상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -37,18 +35,16 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||
<a href="<?php echo G4_MSHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uq_id=<?php echo $row['uq_id']; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_bignum"><?php echo $row['itemcount']; ?></td>
|
||||
<td class="td_datetime"><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['receiptamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['misu']); ?></td>
|
||||
<td class="td_stat">배송상태</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="6" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
echo '<tr><td colspan="4" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user