mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@733 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a64ca58dd4
commit
75496136d9
7 changed files with 17 additions and 85 deletions
|
|
@ -77,16 +77,30 @@
|
||||||
* @brief 관리자 로그인 페이지 출력
|
* @brief 관리자 로그인 페이지 출력
|
||||||
**/
|
**/
|
||||||
function dispLogin() {
|
function dispLogin() {
|
||||||
|
// 로그인 되어 있으면 메인 페이지 표시
|
||||||
if(Context::get('is_logged')) return $this->dispIndex();
|
if(Context::get('is_logged')) return $this->dispIndex();
|
||||||
$this->setTemplateFile('login_form');
|
|
||||||
|
// member모듈의 로그인 act를 이용
|
||||||
|
$oMemberView = &getView('member');
|
||||||
|
$oMemberView->dispLoginForm();
|
||||||
|
|
||||||
|
$this->setTemplatePath($oMemberView->getTemplatePath());
|
||||||
|
$this->setTemplateFile($oMemberView->getTemplateFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 관리자 로그아웃 페이지 출력
|
* @brief 관리자 로그아웃 페이지 출력
|
||||||
**/
|
**/
|
||||||
function dispLogout() {
|
function dispLogout() {
|
||||||
|
// 로그인 되어 있지 않으면 메인 페이지 표시
|
||||||
if(!Context::get('is_logged')) return $this->dispIndex();
|
if(!Context::get('is_logged')) return $this->dispIndex();
|
||||||
$this->setTemplateFile('logout');
|
|
||||||
|
// member모듈의 로그아웃 act를 이용
|
||||||
|
$oMemberView = &getView('member');
|
||||||
|
$oMemberView->dispLogout();
|
||||||
|
|
||||||
|
$this->setTemplatePath($oMemberView->getTemplatePath());
|
||||||
|
$this->setTemplateFile($oMemberView->getTemplateFile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<filter name="login" module="admin" act="procLogin">
|
|
||||||
<form>
|
|
||||||
<node target="user_id" required="true" filter="user_id"/>
|
|
||||||
<node target="password" required="true" />
|
|
||||||
</form>
|
|
||||||
<response>
|
|
||||||
<tag name="error" />
|
|
||||||
<tag name="message" />
|
|
||||||
</response>
|
|
||||||
</filter>
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<filter name="logout" module="admin" act="procLogout">
|
|
||||||
<form />
|
|
||||||
<response>
|
|
||||||
<tag name="error" />
|
|
||||||
<tag name="message" />
|
|
||||||
</response>
|
|
||||||
</filter>
|
|
||||||
|
|
@ -4,20 +4,6 @@
|
||||||
* @desc : admin 모듈의 javascript
|
* @desc : admin 모듈의 javascript
|
||||||
**/
|
**/
|
||||||
|
|
||||||
// 로그아웃
|
|
||||||
function completeLogout(ret_obj) {
|
|
||||||
var error = ret_obj['error'];
|
|
||||||
var message = ret_obj['message'];
|
|
||||||
|
|
||||||
location.href = "./admin.php";
|
|
||||||
}
|
|
||||||
|
|
||||||
// 로그인폼에서 아이디 포커스
|
|
||||||
function doAdminLoginFocus() {
|
|
||||||
var fo = xGetElementById('user_id');
|
|
||||||
if(fo) fo.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 숏컷 삭제
|
// 숏컷 삭제
|
||||||
function doDeleteShortCut(selected_module) {
|
function doDeleteShortCut(selected_module) {
|
||||||
var fo_obj = xGetElementById('fo_shortcut_info');
|
var fo_obj = xGetElementById('fo_shortcut_info');
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
<!--%import("filter/login.xml")-->
|
|
||||||
<!--%import("js/admin.js")-->
|
|
||||||
|
|
||||||
<form action="./" method="get" onsubmit="return procFilter(this, login)">
|
|
||||||
<input type="hidden" name="sid" value="{$sid}" />
|
|
||||||
<table>
|
|
||||||
<col width="120" />
|
|
||||||
<col width="*" />
|
|
||||||
<tr>
|
|
||||||
<th>{$lang->user_id}</th>
|
|
||||||
<td><input type="text" name="user_id" id="user_id" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>{$lang->password}</th>
|
|
||||||
<td><input type="password" name="password" value="" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','')}'" />
|
|
||||||
<input type="submit" value="{$lang->cmd_login}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
xAddEventListener(window, 'load', doAdminLoginFocus);
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
<!--%import("filter/logout.xml")-->
|
|
||||||
<!--%import("js/admin.js")-->
|
|
||||||
|
|
||||||
<form action="./admin.php" method="get" onsubmit="return procFilter(this, logout)">
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>{$lang->cmd_logout}</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{$lang->confirm_logout}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','')}'" />
|
|
||||||
<input type="submit" value="{$lang->cmd_logout}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
<filter name="logout" module="board" act="procLogout">
|
<filter name="logout" module="board" act="procLogout">
|
||||||
<form>
|
<form />
|
||||||
<node target="mid" required="true" />
|
|
||||||
</form>
|
|
||||||
<response>
|
<response>
|
||||||
<tag name="error" />
|
<tag name="error" />
|
||||||
<tag name="message" />
|
<tag name="message" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue