<?
//DB연결
$dblink = SetConn($_conf_db["main_db"]);

$arrInfo = getUserInfo($_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["ID"]);

//DB해제
SetDisConn($dblink);

$arrEmail = explode("@",$arrInfo["list"][0][email]);
$arrPhone = explode("-",$arrInfo["list"][0][phone]);
$arrMobile = explode("-",$arrInfo["list"][0][mobile]);
$arrFax = explode("-",$arrInfo["list"][0][fax]);
$arrZip = explode("-",$arrInfo["list"][0][zip]);
$arrEtc3 = explode("|||",$arrInfo["list"][0][etc_3]);
$arrEtc4 = explode("|||",$arrInfo["list"][0][etc_4]);
$arrEtc5 = explode("|||",$arrInfo["list"][0][etc_5]);
?>

    <div class="location">
    	<p><img src="../images/home.gif" alt="" /> HOME &gt; 회원가입</p>
    </div>
    
    <h3 class="subTitle"><img src="../images/member/tt_join.gif" alt="회원가입" /></h3>
			
    <!-- //본문내용 -->
    <p class="joinStep"><img src="../images/member/join_step3.jpg" alt="" /></p>
    
    
    
    <div class="join_area">
        <h4><? if($arrInfo["list"][0][user_level] == "3"){?><img src="../images/member/tt_comp.gif" alt="기업고객 회원가입" /><?}else{?><img src="../images/member/tt_personalInfo.gif" alt="개인고객 회원가입" /><?}?></h4>

        <div class="jointable">
        <h5><img src="../images/member/join_idpw.gif" alt="아이디 및 비밀번호" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">회원ID <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["ID"]?></td>
                </tr>
                <tr>
                    <th>가입경로 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["job"]?></td>
                </tr>
                <tr>
                    <th>추천ID</th>
                    <td><?=$arrInfo["list"][0]["regnum2"]?></td>
                </tr>
            </tbody>
        </table>
        
        <? if($arrInfo["list"][0][user_level] == "3"){?>
		<h5><img src="../images/member/join_comp_info.gif" alt="회사정보" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">사업자등록번호 <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$arrInfo["list"][0]["etc_1"]?></p>
                    </td>
                </tr>
                <tr>
                    <th>회사명 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["company"]?></td>
                </tr>
                <tr>
                    <th>대표자성명 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["marriage"]?></td>
                </tr>
                <tr>
                    <th>사업장주소 <img src="../images/member/check.gif" alt="*" /></th>
                    <td> <?=$arrEtc3[0]?> - <?=$arrEtc3[1]?><br />
							<?=$arrEtc3[2]?><br /><?=$arrEtc3[3]?>
                    </td>
                </tr>
                <tr>
                    <th>업태/종목 <img src="../images/member/check.gif" alt="*" /></th>
                    <td>업태: <?=$arrEtc4[0]?> / 종목: <?=$arrEtc4[1]?>
                    </td>
                </tr>
                <tr>
                    <th>직원수 <img src="../images/member/check.gif" alt="*" /></th>
                    <td>구매형태: <?=$arrEtc4[2]?> / 직원수: <?=$arrEtc4[3]?>
                        <p class="join_comment2">
                            * 세금계산서는 위의 정보로 발행됩니다.<br />
                            * 사업자등록번호, 회사명, 대표자성명, 사업장주소, 업태/종목은 웹상에서 수정이 불가능하므로<br />
                            &nbsp;&nbsp; 회원가입시 정확한 회사정보를 입력해주시기 바랍니다. <br />
                        </p>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <h5><img src="../images/member/join_buy.gif" alt="구매 담당자 정보" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">담당자명(실명) <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["NAME"]?></td>
                </tr>
                <tr>
                    <th>전화번호 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["phone"]?></td>
                </tr>
                 <tr>
                    <th>팩스번호 </th>
                    <td><?=$arrInfo["list"][0]["fax"]?></td>
                </tr>
                <tr>
                    <th>휴대폰번호 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["mobile"]?><br />
                    	이벤트 및 제품정보에 대한 무료SMS서비스를 받겠습니다. (<?=$arrInfo["list"][0]["sms_accept"]=="Y"?"예":"아니오"?>)
                    </td>
                </tr>
                <tr>
                    <th>E-mail 주소 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["email"]?></td>
                </tr>
                <tr>
                    <th>E-mail 수신여부</th>
                    <td><?=$arrInfo["list"][0]["email_accept"]=="Y"?"예":"아니오"?></td>
                </tr>
                <tr>
                    <th>부서/직위 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["department"]?> / <?=$arrInfo["list"][0]["duty"]?></td>
                </tr>
				<tr>
                    <th>담당자 생년월일</th>
                    <td><?=$arrInfo["list"][0]["birth"]?><?=$arrInfo["list"][0]["solar"]=="S"?" (양력)":" (음력)"?></td>
                </tr>
                <tr>
                    <th>성별</th>
                    <td><?=$arrInfo["list"][0]["sex"]=="M"?"남자":"여자"?></td>
                </tr>
                <tr>
                    <th>오피스픽에 바라는 점</th>
                    <td><?=nl2br(stripslashes($arrInfo["list"][0]["user_memo"]))?></td>
                </tr>
            </tbody>
        </table>

		<h5><img src="../images/member/join_tax.gif" alt="세금계산서 담당자 정보" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">이름 <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$arrEtc5[0]?></td>
                </tr>
                <tr>
                    <th>휴대폰번호 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrEtc5[1]?></td>
                </tr>
                <tr>
                    <th>세금계산서 E-mail주소 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrEtc5[2]?></td>
                </tr>
            </tbody>
        </table>
        
        <h5><img src="../images/member/join_comp_addr.gif" alt="직장 배송지 정보" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">수취인 <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$arrInfo["list"][0]["etc_2"]?></td>
                </tr>
                <tr>
                    <th>연락처 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["regnum1"]?></td>
                </tr>
                <tr>
                    <th>주소 <img src="../images/member/check.gif" alt="*" /></th>
                    <td>(<?=$arrInfo["list"][0]["zip"]?>) 
                        <br />
                        <?=$arrInfo["list"][0]["address"]?><br />
                        <?=$arrInfo["list"][0]["address_ext"]?>
                    </td>
                </tr>
            </tbody>
        </table>
        </div>
		<?}else {?>
		<h5><img src="../images/member/join_info.gif" alt="개인정보" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">이름(성명) <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["NAME"]?></td>
                </tr>
                <tr>
                    <th>전화번호 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["phone"]?></td>
                </tr>
                <tr>
                    <th>팩스번호 </th>
                    <td><?=$arrInfo["list"][0]["fax"]?></td>
                </tr>
                <tr>
                    <th>휴대폰번호 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["mobile"]?><br />
                    	이벤트 및 제품정보에 대한 무료SMS서비스를 받겠습니다. (<?=$arrInfo["list"][0]["sms_accept"]=="Y"?"예":"아니오"?>)
                    </td>
                </tr>
                <tr>
                    <th>E-mail 주소 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["email"]?></td>
                </tr>
                <tr>
                    <th>E-mail 수신여부</th>
                    <td><?=$arrInfo["list"][0]["email_accept"]=="Y"?"예":"아니오"?></td>
                </tr>
                <tr>
                    <th>생년월일</th>
                    <td><?=$arrInfo["list"][0]["birth"]?><?=$arrInfo["list"][0]["solar"]=="S"?" (양력)":" (음력)"?></td>
                </tr>
                <tr>
                    <th>성별</th>
                    <td><?=$arrInfo["list"][0]["sex"]=="M"?"남자":"여자"?></td>
                </tr>
                <tr>
                    <th>오피스픽에 바라는 점</th>
                    <td><?=nl2br(stripslashes($arrInfo["list"][0]["user_memo"]))?></td>
                </tr>
            </tbody>
        </table>
        
        <h5><img src="../images/member/join_addr.gif" alt="자택 배송지 정보" /></h5>
        <table>
            <colgroup>
                <col width="155px" />
                <col width="px" />
            </colgroup>
            <tbody>
                <tr>
                    <th scope="col">수취인 <img src="../images/member/check.gif" alt="*" /></th>
                    <td scope="col"><?=$arrInfo["list"][0]["etc_2"]?></td>
                </tr>
                <tr>
                    <th>연락처 <img src="../images/member/check.gif" alt="*" /></th>
                    <td><?=$arrInfo["list"][0]["regnum1"]?></td>
                </tr>
                <tr>
                    <th>주소 <img src="../images/member/check.gif" alt="*" /></th>
                    <td>(<?=$arrInfo["list"][0]["zip"]?>) 
                        <br />
                        <?=$arrInfo["list"][0]["address"]?><br />
                        <?=$arrInfo["list"][0]["address_ext"]?>
                    </td>
                </tr>
            </tbody>
        </table>
        </div>
        <?}?>


        <div class="btn_area">
        	<a href="/"><img src="/images/member/btn_join2.gif" alt="가입완료" /></a> <a href="/member.php?goPage=Edit"><img src="/images/member/btn_rewrite.gif" alt="다시작성" /></a>
        </div>
    </div>
