0
누군가이 코드를 현재 로그인 양식에 어떻게 적용 할 수 있는지 설명해주십시오.모달 로그인 양식은 현재 로그인 양식에 어떻게 맞습니까?
이는 모달 코드 :
<!-- #dialog is the id of a DIV defined in the code below -->
<a href="#dialog" name="modal">My new login form</a>
<div id="boxes">
<!-- #customize your modal window here -->
<div id="dialog" class="window">
<b>Testing of Modal Window</b> |
<!-- close button is defined as close class -->
<a href="#" class="close">Close it</a>
</div>
<!-- Do not remove div#mask, because you'll need it to fill the whole screen -->
<div id="mask"></div>
</div>
<!-- Start of Login Dialog -->
<div id="dialog1" class="window">
<div class="d-header">
<input type="text" value="username" onclick="this.value=''"/><br/>
<input type="password" value="Password" onclick="this.value=''"/>
</div>
<div class="d-blank"></div>
<div class="d-login"><input type="image" alt="Login" title="Login" src="images/login-button.png"/></div>
</div>
<!-- End of Login Dialog -->
이것은 코드에 적합해야한다 형태 :
<form action="index.php" method="post" name="login" id="form-login">
<?php if ($params->get('greeting')) : ?>
<div>
<?php if ($params->get('name')) : {
echo JText::sprintf('HINAME', $user->get('name'));
} else : {
echo JText::sprintf('HINAME', $user->get('username'));
} endif; ?>
</div>
<?php endif; ?>
<div align="center">
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('BUTTON_LOGOUT'); ?>" />
</div>
<input type="hidden" name="option" value="com_user" />
<input type="hidden" name="task" value="logout" />
<input type="hidden" name="return" value="<?php echo $return; ?>" />
</form>
그것은 정확히 내가하는 것이 아니지만, 나의 지식은이 시점에서 나를 멈추게한다. 답장을 보내 주셔서 감사 드리며, 현재이 해결책이 마련되어 있습니다. – Chris