Files
firstgarden-web-gnu/shop/mypage.php
2013-01-25 11:48:46 +09:00

123 lines
4.0 KiB
PHP

<?
include_once("./_common.php");
if (!$is_member)
goto_url("$g4[path]/bbs/login.php?url=".urlencode("$g4[shop_path]/mypage.php"));
$g4[title] = "마이페이지";
include_once("./_head.php");
//$str = $g4[title];
//include("./navigation2.inc.php");
?>
<img src="<?=$g4[shop_img_path]?>/top_mypage.gif" border=0><p>
<table align=center width=100%>
<tr>
<td><B><?=$member[mb_name]?></B> 님의 마이페이지입니다.</td>
<td align=right>
<? if ($is_admin == 'super') { echo "<a href='$g4[admin_path]/'><img src='$g4[shop_img_path]/btn_admin.gif' border=0 align='absmiddle'></a>"; } ?>
<a href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php'><img src='<?=$g4[shop_img_path]?>/my_modify.gif' border=0 align='absmiddle'></a>
<a href="javascript:member_leave();"><img src='<?=$g4[shop_img_path]?>/my_leave.gif' border=0 align='absmiddle'></a></td>
</tr>
</table>
<script language="JavaScript">
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=$g4[bbs_path]?>/member_confirm.php?url=member_leave.php";
}
</script>
<table cellpadding=0 cellspacing=0 align=center background='<?=$g4[shop_img_path]?>/my_bg.gif'>
<tr><td colspan=4><img src='<?=$g4[shop_img_path]?>/my_box01.gif'></td></tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;보유포인트 </td>
<td>: <a href="javascript:win_point();"><?=number_format($member[mb_point])?>점</a></td>
<td>쪽지함</td>
<td>: <a href="javascript:win_memo();">쪽지보기</a></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;주소</td>
<td>: <?=sprintf("(%s-%s) %s %s", $member[mb_zip1], $member[mb_zip2], $member[mb_addr1], $member[mb_addr2]);?></td>
<td>회원권한</td>
<td>: <?=$member[mb_level]?></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;연락처</td>
<td>: <?=$member[mb_tel]?></td>
<td>최종접속일시</td>
<td>: <?=$member[mb_today_login]?></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;E-mail</td>
<td>: <?=$member[mb_email]?></td>
<td>회원가입일시</td>
<td>: <?=$member[mb_datetime]?></td>
</tr>
<tr><td colspan=4><img src='<?=$g4[shop_img_path]?>/my_box02.gif'></td></tr>
</table><BR><BR>
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td height=35><img src='<?=$g4[shop_img_path]?>/my_title01.gif'></td>
<td align=right><a href='./orderinquiry.php'><img src='<?=$g4[shop_img_path]?>/icon_more.gif' border=0></a></td>
</tr>
</table>
<?
// 최근 주문내역
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='<?=$g4[shop_img_path]?>/my_title02.gif'></td>
<td align=right><a href='./wishlist.php'><img src='<?=$g4[shop_img_path]?>/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>
<?
$sql = " select *
from $g4[yc4_wish_table] a,
$g4[yc4_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_img_path]/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>
<?
include_once("./_tail.php");
?>