로그인, 로그아웃 프레임 새로고침 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

로그인, 로그아웃 프레임 새로고침 정보

로그인, 로그아웃 프레임 새로고침

본문

로그아웃 상태======================================
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
    if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
    document.getElementById("pw1").style.display = "none";
    document.getElementById("pw2").style.display = "";
}
</script>
<style>
.login_input { border:1px solid #CCCCCC; height:18px; width:75px;}
</style>
<!-- 로그인 전 외부로그인 시작 -->
<table width="" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
<tr height="20">

      <td><img src="<?=$outlogin_skin_path?>/img/title.gif"></td>

      <td width="10" align="right"></td>
<td width="75" align="center"><input name="mb_id" type="text" maxlength="30" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'></td>

      <td width="10" align="right"></td>
<td id=pw1 width="75" align="center"><input type="text" maxlength="30" required itemname="패스워드" value='●●●●' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td id=pw2 style='display:none;' width="75" align="center"><input name="mb_password" type="password" maxlength="30" required itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td width="20" valign="top"><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"></td>
<td width="100">&nbsp;<input type="image" src="<?=$outlogin_skin_path?>/img/login.gif">&nbsp;</td>
<td width="50"><a href="javascript:win_password_forget();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" border="0"></a>&nbsp;</td>
<td width="55"><div align="right"><a href="<?=$g4[bbs_path]?>/register.php" target="main"><img src="<?=$outlogin_skin_path?>/img/join.gif" border="0"></a></div></td>
</tr>
</form>
</table>

<script language="JavaScript">
function fhead_submit(f)
{
    f.action = "<?=$g4[bbs_path]?>/login_check.php";
//f.target = "_top";
    f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->

로그인상태=====================================================

<style>
.login_input { border:1px solid #CCCCCC; height:18px; width:75px;}
</style>
<!-- 로그인 후 외부로그인 시작 -->
<table width="" border="0" cellspacing="0" cellpadding="0">
<tr height="20">
<td width="44"><? if ($is_admin == "super" || $is_auth) { ?><a href="<?=$g4[admin_path]?>/" target="_parent"><img src="<?=$outlogin_skin_path?>/img/admin.gif" border="0" align="absmiddle"></a><?} else { ?><span class='member'><strong><?=$nick?></strong></span>님<? } ?></td>
<td style='padding:0 0 0 5'><img src="<?=$outlogin_skin_path?>/img/memo.gif" border="0" align="absmiddle"></td>
<td style='padding:0 10 0 5'><a href="javascript:win_memo();"><FONT color="#737373"><B>쪽지<?=$memo_not_read?>통</B></FONT></a></td>
<td width="14" align="center"><img src="<?=$outlogin_skin_path?>/img/point.gif" border="0" align="absmiddle"></td>
<td style='padding:0 10 0 5'><a href="javascript:win_point();"><font color="#737373"><B>포인트 <?=$point?>점</b></font></a></td>
<td width="55" style='padding:0 5 0 5'><a href="<?=$g4[bbs_path]?>/logout.php?url=<?=$urlencode?>"><img src="<?=$outlogin_skin_path?>/img/logout.gif" border="0" ></a></td>
<td width="72" style='padding:0 5 0 5'><a href="<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php"><img src="<?=$outlogin_skin_path?>/img/modify.gif" border="0"></a></td>
<td width="45" style='padding:0 5 0 5'><a href="javascript:win_scrap();"><img src="<?=$outlogin_skin_path?>/img/scrap.gif" border="0"></a></td>
<td width="5"></td>
</tr>
</table>

<script language="JavaScript">
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave()
{
    if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
            location.href = "<?=$g4[bbs_path]?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->

=============================================================
위소스는 로그인,로그아웃 스킨입니다.
프레임이 top,main으로 두개를 나누었습니다.
그런데 top에서 로그인창을 달았는데 로그인이나 로그아웃시..
main프레임도 같이 새로고침을 하였으면 합니다.
어케하면 되는지 고수님들 부탁드립니다.^^
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로