git-svn-id: http://xe-core.googlecode.com/svn/trunk@221 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-02 12:39:23 +00:00
parent 186770e81b
commit d9510170e5
30 changed files with 1060 additions and 2 deletions

View file

@ -305,6 +305,21 @@
$this->setTemplateFile('delete_trackback_form');
}
/**
* @brief 회원가입폼
**/
function dispSignUpForm() {
// 이미 로그인되어 있으면 메인 컨텐츠 노출
if(Context::get('is_logged')) return $this->dispContent();
// member view 객체 생성후 dispSignUpForm method호출후 템플릿 가로챔
$oMemberView = &getView('member');
$oMemberView->dispSignUpForm();
$this->setTemplatePath($oMemberView->getTemplatePath());
$this->setTemplateFile($oMemberView->getTemplateFile());
}
/**
* @brief 로그인 출력
**/

View file

@ -34,6 +34,7 @@
<action name="dispModifyComment" type="view" />
<action name="dispDeleteComment" type="view" />
<action name="dispDeleteTrackback" type="view" />
<action name="dispSignUpForm" type="view" />
<action name="dispLogin" type="view" />
<action name="dispLogout" type="view" />
<action name="dispMessage" type="view" />

View file

@ -16,10 +16,15 @@
</tr>
<tr>
<td colspan="2">
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{@getUrl('act','')}'" />
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','')}'" />
<input type="submit" value="{$lang->cmd_login}" />
</td>
</tr>
<tr>
<td colspan="2">
<a href="#" onclick="location.href='{getUrl('act','dispSignUpForm')}'">{$lang->cmd_signup}</a>
</td>
</tr>
</table>
</form>