묻고답하기
헤더로그인상자에다가 "아이디" "비밀번호" 글씨 넣는방법
2012.08.22 13:07
<!--@if(!$is_logged)-->
<form id="fo_login_widget" action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login"class="login_{$colorset}">
<input type="hidden" name="act" value="procMemberLogin" />
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment())}" />
<div class="idpwWrap">
<div class="idpw">
<input name="user_id" type="text" title="<!--@if($member_config->identifier != 'email_address')-->{$lang->user_id}<!--@else-->{$lang->email_address}<!--@end-->" />
<input name="password" type="password" title="{$lang->password}" />
<input type="checkbox" name="keep_signed" id="keep_signed" value="Y" />
<input type="submit" value="Login" alt="login" class="login" />
<a href="{getUrl('act','dispMemberSignUpForm')}">{$lang->cmd_signup}</a>
<a href="{getUrl('act','dispMemberFindAccount')}">{$lang->cmd_find_member_account}</a>
<a href="{getUrl('act','dispMemberResendAuthMail')}">{$lang->cmd_resend_auth_mail}</a>
</div>
</div>
</form>
<!--@else-->
<form action="" method="post">
<div class="userName">
<div class="fl"><div class="member_{$logged_info->member_srl}"><strong>{$logged_info->nick_name}</strong> <a href="{getUrl('act','dispMemberLogout')}">Logout</a></div>
</div>
</div>
</form>
<!--@end-->
송동우님이 써주신 코드사용했습니다.
사용하니 위에처럼 상자가 떠서 기뻣는데
"아이디" "비밀번호"라는 말을 상자안에다가 밑에처럼 쓰고 싶습니다.
답변해주신분께 진심으로 감사드립니다. ^^
{@
$oMemberModel = &getModel('member');
$member_config = $oMemberModel->getMemberConfig();
}
<!--@if(!$is_logged)-->
<form id="fo_login_widget" action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" class="login_{$colorset}" onsubmit="jQuery(this).find('input').each(function(){if(this.title==this.value)this.value='';});">
<input type="hidden" name="act" value="procMemberLogin" />
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment())}" />
<div class="idpwWrap">
<div class="idpw">
<input name="user_id" type="text" title="<!--@if($member_config->identifier != 'email_address')-->{$lang->user_id}<!--@else-->{$lang->email_address}<!--@end-->" value="<!--@if($member_config->identifier != 'email_address')-->{$lang->user_id}<!--@else-->{$lang->email_address}<!--@end-->" onfocus="if(this.value==this.title) this.value='';" />
<input name="password" type="text" title="{$lang->password}" value="{$lang->password}" onfocus="this.type='password'; if(this.value==this.title) this.value='';" />
<input type="checkbox" name="keep_signed" id="keep_signed" value="Y" />
<input type="submit" value="Login" alt="login" class="login" />
<a href="{getUrl('act','dispMemberSignUpForm')}">{$lang->cmd_signup}</a>
<a href="{getUrl('act','dispMemberFindAccount')}">{$lang->cmd_find_member_account}</a>
<a href="{getUrl('act','dispMemberResendAuthMail')}">{$lang->cmd_resend_auth_mail}</a>
</div>
</div>
</form>
<!--@else-->
<form action="" method="post">
<div class="userName">
<div class="fl"><div class="member_{$logged_info->member_srl}"><strong>{$logged_info->nick_name}</strong> <a href="{getUrl('act','dispMemberLogout')}">Logout</a></div>
</div>
</div>
</form>
<!--@end-->