<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
echo $write_bg;
?>
<style type="text/css">
#bigsizepicview	{ display:none; border:1px solid #E7E7E7; background-color:#F7F7F7; padding:10px; position:absolute; z-index:99; top:1px; cursor:hand; }
#mem_profile_box	{ clear:both; height:140px; margin:5px 2px 15px 0; }
#mem_profile_list	{ margin:5px 0 0 0; float:left; width:300px; }
#mem_profile_list .item	{ display:inline-block; width:80px; height:20px; color:#414141; }
#mem_profile_list .value	{ color:#707070; }
#mem_profile_list .field	{ }
#my_intro_box .item	{ display:inline-block; width:80px; height:20px; color:#414141; }
#my_intro_box .value	{ color:#707070; }
#my_intro_box	{ float:left; padding:10px; }
#myintro { clear:both; overflow-y:auto; width:320px; height:70px; color:#707070; margin:5px 0 0 0; line-height:140%; text-align:left; }

#zmb_mini_album	{ clear:both; height:144px; margin:3px 0 10px 0; text-align:center; }
#zmb_mini_album div span { display:inline-block; width:120px; }
</style>

<div id="bigsizepicview"></div>
<div id="mem_profile_box">
<div id="mem_profile_list">
	<div class="field"><span class="item">회원권환</span><span class="value"><?=$myinfo[mblevel]?> (<?=$myinfo[mblevelname]?>)</span></div>
<? if($is_me) : //-- 내 정보일 때만 출력 ?>
    <div class="field"><span class="item"><?=$zm_config[pointname]?></span><span class="value"><?=number_format($member[mb_point])?></span></div>
	<!--<div class="field"><span class="item"><?=$zm_config[ziummoney]?></span><span class="value"><?=number_format($zm_member[zium_money])?></span></div>-->
<? endif; ?>
    <div class="field"><span class="item">가입일</span><span class="value"><?=$myinfo[joindate]?></span></div>
	<div>
		<div style="float:left;"><span class="item">학교</span></div>
		<div style="float:left;">
			<div><span class="item"><?=$myinfo[school1]?></span> <span class="value">입학 <?=$myinfo[iphak1]?></span></div>
			<div><span class="item"><?=$myinfo[school2]?></span> <span class="value">입학 <?=$myinfo[iphak2]?></span></div>
			<div><span class="item"><?=$myinfo[school3]?></span> <span class="value">입학 <?=$myinfo[iphak3]?></span></div>
		</div>
	</div>
</div>
<div id="my_intro_box">
	<div><span class="item">홈페이지</span><span class="value"><a href="<?=$myinfo[homepage]?>" target="<?=$config[cf_link_target]?>"><?=$myinfo[homepage]?></a></span></div>
    <div><span class="item">이메일</span><span class="value"><?=$myinfo[email]?></span></div>
	<div id="myintro"><?=$myinfo[profile]?></div>
</div>
</div> <!-- end mem_profile_box -->

<!-- 미니 앨범 -->
<div id="zmb_mini_album">
	<div style="">
	<span><a href="#" onClick="picView('<?=$myinfo[pic1]?>');"><img src="<?=$myinfo[thumb_pic1]?>" width=110 height=110></a></span>
	<span><a href="#" onClick="picView('<?=$myinfo[pic2]?>');"><img src="<?=$myinfo[thumb_pic2]?>" width=110 height=110></a></span>
	<span><a href="#" onClick="picView('<?=$myinfo[pic3]?>');"><img src="<?=$myinfo[thumb_pic3]?>" width=110 height=110></a></span>
	<span><a href="#" onClick="picView('<?=$myinfo[pic4]?>');"><img src="<?=$myinfo[thumb_pic4]?>" width=110 height=110></a></span>
	<span><a href="#" onClick="picView('<?=$myinfo[pic5]?>');"><img src="<?=$myinfo[thumb_pic5]?>" width=110 height=110></a></span>
	</div>
<? if($is_me) : ?>
	<div>
	<span><a href="#" onClick="pic_upload('1')">사진올리기</a> <a href="#" onClick="pic_del('1')"><img src="<?=$member_skin_path?>/img/btn_del_gray.gif" align="absmiddle"></a></span>
	<span><a href="#" onClick="pic_upload('2')">사진올리기</a> <a href="#" onClick="pic_del('2')"><img src="<?=$member_skin_path?>/img/btn_del_gray.gif" align="absmiddle"></a></span>
	<span><a href="#" onClick="pic_upload('3')">사진올리기</a> <a href="#" onClick="pic_del('3')"><img src="<?=$member_skin_path?>/img/btn_del_gray.gif" align="absmiddle"></a></span>
	<span><a href="#" onClick="pic_upload('4')">사진올리기</a> <a href="#" onClick="pic_del('4')"><img src="<?=$member_skin_path?>/img/btn_del_gray.gif" align="absmiddle"></a></span>
	<span><a href="#" onClick="pic_upload('5')">사진올리기</a> <a href="#" onClick="pic_del('5')"><img src="<?=$member_skin_path?>/img/btn_del_gray.gif" align="absmiddle"></a></span>
	</div>
<? endif; ?>
</div>

<!-- 자기소개 -->
<div style="clear:both; padding:0 0 3px 20px; color:#616161; font-weight:bold; text-align:left;">한줄메모</div>
<?  include_once("$member_skin_path/zm.profile_lineword.skin.php"); ?>

<!-- no modify ↓ -->
<script language="javascript">
$(function() {
	$("a").click(function() {this.blur();});
});
function pic_upload(no){
	if(!no) return false;
	window.open("<?=$member_skin_path?>/zm.profile_pic.skin.php?pn="+no, "pic_upload", "toolbar=0, scrollbar=0, width=400, height=150");
}
function pic_del(no){
	if(!no) return false;
	if(confirm(no+"번 사진을 삭제 할까요?")) zm_gourl("./zm.userinfo_update.php?mode=pic_delete&picno="+no);
}
function picView(pic){
	if(!pic) return false;

	$("#bigsizepicview").css("display", "block");
	$("#bigsizepicview").html("<img id='bigsizeimg' src='"+pic+"' onClick='$(\"#bigsizepicview\").css(\"display\", \"none\")'>");

	var w = $("#bigsizeimg").width();
	var h = $("#bigsizeimg").height();
	var ww = $(window).width();
	var wh = $(window).height();
	var l = (ww - w) / 2 - 10;
	if(l < 1) l = 1;
	var t = (wh - h) / 2 - 10;
	if(t < 1) t = 1;

	if(l > 300) l = 10;
	if(t > 200) t = 30;
	$("#bigsizepicview").css("left", l);
	$("#bigsizepicview").css("top", t);
}
</script>