쇼핑몰: #149 마이페이지 표준화 및 스타일 완료

This commit is contained in:
whitedot
2013-05-08 15:47:51 +09:00
parent 30750e1b9c
commit 58b40d1a8f
2 changed files with 112 additions and 98 deletions

View File

@ -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 {margin:0 0 10px;padding:10px 10px 0}
#sit_rel h2 {margin:0 0 10px} #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 {}
.sod_bsk_img {width:90px;text-align:center} .sod_bsk_img {width:90px;text-align:center}

View File

@ -9,69 +9,47 @@ if (G4_IS_MOBILE) {
if (!$is_member) if (!$is_member)
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/mypage.php")); 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'); include_once('./_head.php');
//$str = $g4[title]; //$str = $g4[title];
//include("./navigation2.inc.php"); //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%> <section id="smb_my_ov">
<tr> <h2>회원정보 개요</h2>
<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>
<script> <div id="smb_my_act">
function member_leave() <ul>
{ <?php if ($is_admin == 'super') { ?><li><a href="<?php echo G4_ADMIN_URL; ?>/" class="btn_admin">관리자</a></li><?php } ?>
return confirm('정말 회원에서 탈퇴 하시겠습니까?') <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>
</script> <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>
<table cellpadding=0 cellspacing=0 align=center background='<?php echo G4_SHOP_URL; ?>/img/my_bg.gif'> <dl>
<tr><td colspan=4><img src='<?php echo G4_SHOP_URL; ?>/img/my_box01.gif'></td></tr> <dt>회원권한</dt>
<tr> <dd><?php echo $member['mb_level']; ?></dd>
<td height=25>&nbsp;&nbsp;&nbsp;보유포인트 </td> <dt>보유포인트</dt>
<td>: <a href="<?php echo G4_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></td> <dd><a href="<?php echo G4_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></dd>
<td>쪽지함</td> <dt>연락처</dt>
<td>: <a href="<?php echo G4_BBS_URL; ?>/memo.php" target="_blank" class="win_memo">쪽지보기</a></td> <dd><?php echo ($member['mb_tel'] ? $member['mb_tel'] : '미등록'); ?></dd>
</tr> <dt>E-Mail</dt>
<tr> <dd><?php echo ($member['mb_email'] ? $member['mb_email'] : '미등록'); ?></dd>
<td height=25>&nbsp;&nbsp;&nbsp;주소</td> <dt>최종접속일시</dt>
<td>: <?php echo sprintf("(%s-%s) %s %s", $member['mb_zip1'], $member['mb_zip2'], $member['mb_addr1'], $member['mb_addr2']); ?></td> <dd><?php echo $member['mb_today_login']; ?></dd>
<td>회원권한</td> <dt>회원가입일시</dt>
<td>: <?php echo $member['mb_level']; ?></td> <dd><?php echo $member['mb_datetime']; ?></dd>
</tr> <dt id="smb_my_ovaddt">주소</dt>
<tr> <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>
<td height=25>&nbsp;&nbsp;&nbsp;연락처</td> </dl>
<td>: <?php echo $member['mb_tel']; ?></td> </section>
<td>최종접속일시</td>
<td>: <?php echo $member['mb_today_login']; ?></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;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>
<section id="smb_my_od">
<h2>최근 주문내역</h2>
<?php <?php
// 최근 주문내역 // 최근 주문내역
define("_ORDERINQUIRY_", true); define("_ORDERINQUIRY_", true);
@ -79,19 +57,20 @@ define("_ORDERINQUIRY_", true);
$limit = " limit 0, 5 "; $limit = " limit 0, 5 ";
include G4_SHOP_PATH.'/orderinquiry.sub.php'; include G4_SHOP_PATH.'/orderinquiry.sub.php';
?> ?>
<br> </section>
<table width=98% cellpadding=0 cellspacing=0 align=center> <section id="smb_my_wish">
<h2>최근 위시리스트</h2>
<table class="basic_tbl">
<thead>
<tr> <tr>
<td height=35 colspan=2><img src='<?php echo G4_SHOP_URL; ?>/img/my_title02.gif'></td> <th scope="col">이미지</th>
<td align=right><a href='./wishlist.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td> <th scope="col">상품명</th>
<th scope="col">보관일시</th>
</tr> </tr>
<tr><td height=2 colspan=3 class=c1></td></tr> </thead>
<tr align=center height=25 class=c2> <tbody>
<td colspan=2>상품명</td>
<td>보관일시</td>
</tr>
<tr><td height=1 colspan=3 class=c1></td></tr>
<?php <?php
$sql = " select * $sql = " select *
from {$g4['shop_wish_table']} a, from {$g4['shop_wish_table']} a,
@ -106,21 +85,33 @@ for ($i=0; $row = sql_fetch_array($result); $i++)
if ($i>0) if ($i>0)
echo "<tr><td colspan=3 height=1 background='".G4_SHOP_URL."/img/dot_line.gif'></td></tr>"; 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']); $image = get_it_image($row['it_id']."_s", 70, 70, $row['it_id']);
?>
echo "<tr align=center height=60>"; <tr>
echo "<td width=100>$image</td>"; <td class="smb_my_img"><?php echo $image; ?></td>
echo "<td align=left><a href='./item.php?it_id={$row['it_id']}'>".stripslashes($row['it_name'])."</a></td>"; <td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
echo "<td>$row[wi_time]</td>"; <td class="td_datetime"><?php echo $row['wi_time']; ?></td>
echo "</tr>"; </tr>
<?php
} }
if ($i == 0) if ($i == 0)
echo "<tr><td colspan=3 height=100 align=center><span class=point>보관 내역이 없습니다.</span></td></tr>"; 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> </tbody>
</table> </table>
</section>
</div>
<script>
function member_leave()
{
return confirm('정말 회원에서 탈퇴 하시겠습니까?')
}
</script>
<?php <?php
include_once("./_tail.php"); include_once("./_tail.php");