쇼핑몰: #149 마이페이지 표준화 및 스타일 완료
This commit is contained in:
@ -570,6 +570,29 @@ 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}
|
||||
|
||||
/* 마이페이지 */
|
||||
#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}
|
||||
|
||||
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