mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@147 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7c02c41262
commit
ac3c60cf94
12 changed files with 33 additions and 42 deletions
|
|
@ -15,6 +15,8 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
|
||||||
oXml.addParam('module', module);
|
oXml.addParam('module', module);
|
||||||
oXml.addParam('act', act);
|
oXml.addParam('act', act);
|
||||||
|
|
||||||
|
response_tags[response_tags.length] = 'redirect_url';
|
||||||
|
|
||||||
var waiting_obj = document.getElementById('waitingforserverresponse');
|
var waiting_obj = document.getElementById('waitingforserverresponse');
|
||||||
waiting_obj.style.visibility = 'visible';
|
waiting_obj.style.visibility = 'visible';
|
||||||
oXml.request(xml_response_filter, oXml, callback_func, response_tags, callback_func_arg);
|
oXml.request(xml_response_filter, oXml, callback_func, response_tags, callback_func_arg);
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,6 @@ function XmlJsFilterProc(confirm_msg) {
|
||||||
|
|
||||||
var params = this.getParameterParam();
|
var params = this.getParameterParam();
|
||||||
var response = this.response;
|
var response = this.response;
|
||||||
|
|
||||||
if(confirm_msg && !confirm(confirm_msg)) return false;
|
if(confirm_msg && !confirm(confirm_msg)) return false;
|
||||||
if(!this.act) {
|
if(!this.act) {
|
||||||
this.user_func(this.fo_obj, params);
|
this.user_func(this.fo_obj, params);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,10 @@
|
||||||
function procLogout() {
|
function procLogout() {
|
||||||
// member controller 객체 생성
|
// member controller 객체 생성
|
||||||
$oMemberController = &getController('member');
|
$oMemberController = &getController('member');
|
||||||
return $oMemberController->doLogout();
|
$output = $oMemberController->doLogout();
|
||||||
|
if(!$output->toBool()) return $output;
|
||||||
|
|
||||||
|
$this->setRedirectUrl('./?module=admin');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,7 @@
|
||||||
<action name="dispAdminIndex" type="view" grant="root" />
|
<action name="dispAdminIndex" type="view" grant="root" />
|
||||||
<action name="dispLogin" type="view" grant="guest" />
|
<action name="dispLogin" type="view" grant="guest" />
|
||||||
<action name="dispLogout" type="view" grant="root" />
|
<action name="dispLogout" type="view" grant="root" />
|
||||||
|
<action name="procLogin" type="controller" grant="guest" />
|
||||||
|
<action name="procLogout" type="controller" grant="guest" />
|
||||||
</actions>
|
</actions>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<filter id="login">
|
|
||||||
<field>
|
|
||||||
<item target="user_id" required="true" filter="user_id"/>
|
|
||||||
<item target="password" required="true" />
|
|
||||||
</field>
|
|
||||||
<response>
|
|
||||||
<item name="error" />
|
|
||||||
<item name="message" />
|
|
||||||
</response>
|
|
||||||
</filter>
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
<filter id="logout">
|
|
||||||
<field>
|
|
||||||
<item target="act" required="true" />
|
|
||||||
</field>
|
|
||||||
<parameter>
|
|
||||||
<item param="act" target="act" />
|
|
||||||
</parameter>
|
|
||||||
<response>
|
|
||||||
<item name="error" />
|
|
||||||
<item name="message" />
|
|
||||||
</response>
|
|
||||||
</filter>
|
|
||||||
10
modules/admin/tpl/filter/login.xml
Normal file
10
modules/admin/tpl/filter/login.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<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>
|
||||||
7
modules/admin/tpl/filter/logout.xml
Normal file
7
modules/admin/tpl/filter/logout.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<filter name="logout" module="admin" act="procLogout">
|
||||||
|
<form />
|
||||||
|
<response>
|
||||||
|
<tag name="error" />
|
||||||
|
<tag name="message" />
|
||||||
|
</response>
|
||||||
|
</filter>
|
||||||
|
|
@ -4,16 +4,8 @@
|
||||||
* @desc : admin 모듈의 javascript
|
* @desc : admin 모듈의 javascript
|
||||||
**/
|
**/
|
||||||
|
|
||||||
// 현재 페이지 reload
|
|
||||||
function procReload(ret_obj, response_tags) {
|
|
||||||
var error = ret_obj['error'];
|
|
||||||
var message = ret_obj['message'];
|
|
||||||
|
|
||||||
location.href = location.href;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 로그아웃
|
// 로그아웃
|
||||||
function procLogout(ret_obj, response_tags) {
|
function completeLogout(ret_obj) {
|
||||||
var error = ret_obj['error'];
|
var error = ret_obj['error'];
|
||||||
var message = ret_obj['message'];
|
var message = ret_obj['message'];
|
||||||
|
|
||||||
|
|
@ -21,7 +13,7 @@ function procLogout(ret_obj, response_tags) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 로그인폼에서 아이디 포커스
|
// 로그인폼에서 아이디 포커스
|
||||||
function procAdminLoginFocus() {
|
function doAdminLoginFocus() {
|
||||||
var fo = xGetElementById('user_id');
|
var fo = xGetElementById('user_id');
|
||||||
if(fo) fo.focus();
|
if(fo) fo.focus();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<!--#include("./common/tpl/common_header.html")-->
|
<!--#include("./common/tpl/common_header.html")-->
|
||||||
|
|
||||||
<div id="admin_title"><a href="./admin.php">zeroboard5</a></div>
|
<div id="admin_title"><a href="./?module=admin">zeroboard5</a></div>
|
||||||
<div id="admin_info">
|
<div id="admin_info">
|
||||||
<a href="{getUrl('act','dispLogout')}">{$lang->cmd_logout}</a>
|
<a href="{getUrl('act','dispLogout')}">{$lang->cmd_logout}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
<!--%import("filter/filter.login.xml")-->
|
<!--%import("filter/login.xml")-->
|
||||||
<!--%import("js/admin.js")-->
|
<!--%import("js/admin.js")-->
|
||||||
|
|
||||||
<form action="./" method="get" onsubmit="return procFormFilter(this, login, procReload)">
|
<form action="./" method="get" onsubmit="return procFilter(this, login)">
|
||||||
<input type="hidden" name="sid" value="{$sid}" />
|
<input type="hidden" name="sid" value="{$sid}" />
|
||||||
<input type="hidden" name="act" value="procLogin" />
|
|
||||||
<table>
|
<table>
|
||||||
<col width="120" />
|
<col width="120" />
|
||||||
<col width="*" />
|
<col width="*" />
|
||||||
|
|
@ -26,5 +25,5 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
xAddEventListener(window, 'load', procAdminLoginFocus);
|
xAddEventListener(window, 'load', doAdminLoginFocus);
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
<!--%import("filter/filter.logout.xml")-->
|
<!--%import("filter/logout.xml")-->
|
||||||
<!--%import("js/admin.js")-->
|
<!--%import("js/admin.js")-->
|
||||||
|
|
||||||
<form action="./admin.php" method="get" onsubmit="return procFormFilter(this, logout, procLogout)">
|
<form action="./admin.php" method="get" onsubmit="return procFilter(this, logout)">
|
||||||
<input type="hidden" name="act" value="procLogout" />
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->cmd_logout}</th>
|
<th>{$lang->cmd_logout}</th>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue