#318 회원 관리페이지의 처리메세지 정리

This commit is contained in:
khongchi 2014-01-14 11:46:50 +09:00
parent cd8c0fc342
commit 1212855b2c
9 changed files with 14 additions and 21 deletions

View file

@ -834,6 +834,7 @@ class memberAdminController extends member
return $output;
}
}
$this->setMessage('success_updated');
break;
}
case 'delete':
@ -845,6 +846,7 @@ class memberAdminController extends member
$oDB->rollback();
return $output;
}
$this->setMessage('success_deleted');
}
}
}

View file

@ -4,7 +4,7 @@
<input type="hidden" name="module" value="member" />
<input type="hidden" name="act" value="procMemberAdminInsertDefaultConfig" />
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin', 'act', $act)}" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/default_config/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div class="x_control-group">
<div class="x_control-label">{$lang->enable_join}</div>
<div class="x_controls">

View file

@ -4,7 +4,7 @@
<input type="hidden" name="module" value="member" />
<input type="hidden" name="act" value="procMemberAdminInsertDesignConfig" />
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin', 'act', $act)}" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/design_config/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div class="x_control-group">
<label class="x_control-label" for="layout">{$lang->layout} <a data-admin-toggle="#help_menuName" class="x_icon-question-sign" href="./admin/help/index.html#UMAN_layout" target="_blank">{$lang->help}</a></label>
<div class="x_controls">

View file

@ -12,13 +12,13 @@
<div class="x_page-header">
<h1>{$lang->member_group} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_member_group" target="_blank">{$lang->help}</a></h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/group_list/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form action="" method="post" ruleset="insertGroupConfig">
<input type="hidden" name="module" value="member" />
<input type="hidden" name="act" value="procMemberAdminGroupConfig" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/group_list/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<table class="sortable x_table x_table-striped x_table-hover">
<caption>
<strong>{count($group_list)}{$lang->msg_groups_exist}</strong>

View file

@ -2,16 +2,7 @@
<div class="x_page-header">
<h1>{$lang->cmd_member_config} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_member_config" target="_blank">{$lang->help}</a></h1>
</div>
{@
$validator_ids = array(
'modules/member/tpl/default_config/1' => 1,
'modules/member/tpl/design_config/1' => 1,
'modules/member/tpl/login_config/1' => 1,
'modules/member/tpl/signup_cofig/1' => 1,
'modules/member/tpl/signup_cofig/2' => 1,
);
}
<div cond="$XE_VALIDATOR_MESSAGE && isset($validator_ids[$XE_VALIDATOR_ID])" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<ul class="x_nav x_nav-tabs">

View file

@ -10,7 +10,7 @@
<h1 cond="$member_srl">{$lang->msg_update_member}</h1>
<h1 cond="!$member_srl">{$lang->msg_new_member}</h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/insert_member/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form action="./" class="x_form-horizontal" ruleset="insertAdminMember" method="post" enctype="multipart/form-data">
@ -20,7 +20,7 @@
<input type="hidden" name="signature" value="{htmlspecialchars($member_info->signature, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}" />
<input type="hidden" name="success_return_url" value="{getUrl('act', $act)}" cond="$member_srl" />
<input type="hidden" name="success_return_url" value="{getUrl('act', 'dispMemberAdminList')}" cond="!$member_srl" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/insert_member/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div cond="$member_srl" class="x_control-group">
<label class="x_control-label" for="identifierForm"><em style="color:red">*</em> {$identifierForm->title} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_login_key" target="_blank">{$lang->help}</a></label>
<div class="x_controls">

View file

@ -3,7 +3,7 @@
<input type="hidden" name="module" value="member" />
<input type="hidden" name="act" value="procMemberAdminInsertLoginConfig" />
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin', 'act', $act)}" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/login_config/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div class="x_control-group">
<label class="x_control-label" for="change_password_date">{$lang->change_password_date}</label>
<div class="x_controls">

View file

@ -7,7 +7,7 @@
<div class="x_page-header">
<h1>{$lang->user_list} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_member_list" target="_blank">{$lang->help}</a></h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/member_list/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/tpl/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form action="" method="post">
@ -133,7 +133,7 @@
<input type="hidden" name="module" value="member" />
<input type="hidden" name="act" value="procMemberAdminSelectedMemberManage" />
<input type="hidden" name="success_return_url" value="{getUrl('act', $act)}" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/member_list/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div class="x_modal-header">
<h1>{$lang->cmd_selected_user_manage}: <span class="_sub"></span></h1>
</div>

View file

@ -14,7 +14,7 @@
<input type="hidden" name="act" value="procMemberAdminInsertSignupConfig" />
<input type="hidden" name="success_return_url" value="{getUrl('act', $act)}" />
<input type="hidden" name="agreement" value="{$config->agreement}" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/signup_cofig/1" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div class="x_control-group">
<label class="x_control-label" for="limit_day">{$lang->limit_day}</label>
<div class="x_controls">
@ -188,7 +188,7 @@
<input type="hidden" name="module" value="member" />
<input type="hidden" name="act" value="procMemberAdminInsertJoinForm" />
<input type="hidden" name="success_return_url" value="{getUrl('act', $act)}" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/signup_cofig/2" />
<input type="hidden" name="xe_validator_id" value="modules/member/tpl/1" />
<div id="extendForm" class="x_form-horizontal">
</div>
</form>