mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
fixed member modify by admin
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9961 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dab5d9ef0d
commit
f6af716d6b
5 changed files with 12 additions and 20 deletions
|
|
@ -73,7 +73,7 @@
|
|||
<action name="procMemberUpdateAuthMail" type="controller" standalone="true" />
|
||||
<action name="procMemberResendAuthMail" type="controller" standalone="true" ruleset="resendAuthMail" />
|
||||
|
||||
<action name="procMemberAdminInsert" type="controller" standalone="true" ruleset="@insertAdminMember" />
|
||||
<action name="procMemberAdminInsert" type="controller" standalone="true" ruleset="insertAdminMember" />
|
||||
<action name="procMemberAdminDelete" type="controller" standalone="true" />
|
||||
<action name="procMemberAdminInsertConfig" type="controller" standalone="true" ruleset="insertConfig" />
|
||||
<action name="procMemberAdminInsertGroup" type="controller" standalone="true" ruleset="insertGroup" />
|
||||
|
|
|
|||
|
|
@ -238,7 +238,6 @@
|
|||
|
||||
function _createSignupRuleset($signupForm, $agreement = null){
|
||||
$xml_file = './files/ruleset/insertMember.xml';
|
||||
$admin_xml_file = './files/ruleset/insertAdmintMember.xml';
|
||||
$buff = '<?xml version="1.0" encoding="utf-8"?>'
|
||||
.'<ruleset version="1.5.0">'
|
||||
.'<customrules>'
|
||||
|
|
@ -249,7 +248,7 @@
|
|||
$fields = array();
|
||||
|
||||
if ($agreement){
|
||||
$fields[] = '<field name="accept_agreement" required="true" />';
|
||||
$fields[] = '<field name="accept_agreement"><if test="$act == \'procMemberInsert\'" attr="required" value="true" /></field>';
|
||||
}
|
||||
foreach($signupForm as $formInfo){
|
||||
if ($formInfo->required || $formInfo->mustRequired){
|
||||
|
|
@ -259,12 +258,14 @@
|
|||
$fields[] = '<field name="password"><if test="$act == \'procMemberInsert\'" attr="required" value="true" /><if test="$act == \'procMemberInsert\'" attr="length" value="3:20" /></field>';
|
||||
$fields[] = '<field name="password2"><if test="$act == \'procMemberInsert\'" attr="required" value="true" /><if test="$act == \'procMemberInsert\'" attr="equalto" value="password" /></field>';
|
||||
}else if($formInfo->name == 'find_account_question'){
|
||||
$fields[100] = '<field name="find_account_question" required="true" />';
|
||||
$fields[101] = '<field name="find_account_answer" required="true" length=":250"/>';
|
||||
$fields[] = '<field name="find_account_question"><if test="$act != \'procMemberAdminInsert\'" attr="required" value="true" /></field>';
|
||||
$fields[] = '<field name="find_account_answer"><if test="$act != \'procMemberAdminInsert\'" attr="required" value="true" /><if test="$act != \'procMemberAdminInsert\'" attr="length" value=":250" /></field>';
|
||||
}else if($formInfo->name == 'email_address'){
|
||||
$fields[] = sprintf('<field name="%s" required="true" rule="email"/>', $formInfo->name);
|
||||
}else if($formInfo->name == 'user_id'){
|
||||
$fields[] = sprintf('<field name="%s" required="true" rule="userid" length="3:20" />', $formInfo->name);
|
||||
}else if(strpos($formInfo->name, 'image') !== false){
|
||||
$fields[] = sprintf('<field name="%s"><if test="$act != \'procMemberAdminInsert\' && $__%s_exist != \'true\'" attr="required" value="true" /></field>', $formInfo->name, $formInfo->name);
|
||||
}else{
|
||||
$fields[] = sprintf('<field name="%s" required="true" />', $formInfo->name);
|
||||
}
|
||||
|
|
@ -275,21 +276,9 @@
|
|||
FileHandler::writeFile($xml_file, $xml_buff);
|
||||
unset($xml_buff);
|
||||
|
||||
$adminFields = $fields;
|
||||
$adminFields[100] = '<field name="find_account_question" />';
|
||||
$adminFields[101] = '<field name="find_account_answer" length=":250"/>';
|
||||
|
||||
$xml_buff = sprintf($buff, implode('', $adminFields));
|
||||
FileHandler::writeFile($admin_xml_file, $xml_buff);
|
||||
unset($xml_buff);
|
||||
|
||||
$validator = new Validator($xml_file);
|
||||
$validator->setCacheDir('files/cache');
|
||||
$validator->getJsPath();
|
||||
|
||||
$adminValidator = new Validator($admin_xml_file);
|
||||
$adminValidator->setCacheDir('files/cache');
|
||||
$adminValidator->getJsPath();
|
||||
}
|
||||
|
||||
function _createLoginRuleset($identifier){
|
||||
|
|
|
|||
|
|
@ -222,7 +222,8 @@
|
|||
$functionName = 'doDeleteImageMark';
|
||||
}
|
||||
if($target->src){
|
||||
$inputTag = sprintf('<p class="a"><span id="%s"><img src="%s" alt="%s" /> <button type="button" class="text" onclick="%s(%d);return false;">%s</button></span></p>'
|
||||
$inputTag = sprintf('<p class="a"><input type="hidden" name="__%s_exist" value="true" /><span id="%s"><img src="%s" alt="%s" /> <button type="button" class="text" onclick="%s(%d);return false;">%s</button></span></p>'
|
||||
,$formInfo->name
|
||||
,$formInfo->name.'tag'
|
||||
,$target->src
|
||||
,$formInfo->title
|
||||
|
|
@ -230,7 +231,8 @@
|
|||
,$memberInfo['member_srl']
|
||||
,$lang->cmd_delete);
|
||||
}
|
||||
$inputTag .= sprintf('<p class="a"><input type="file" name="%s" id="%s" value="" /> <span class="desc">%s : %dpx, %s : %dpx</span></p>'
|
||||
$inputTag .= sprintf('<p class="a"><input type="hidden" name="__%s_exist" value="false" /><input type="file" name="%s" id="%s" value="" /> <span class="desc">%s : %dpx, %s : %dpx</span></p>'
|
||||
,$formInfo->name
|
||||
,$formInfo->name
|
||||
,$formInfo->name
|
||||
,$lang->{$formInfo->name.'_max_width'}
|
||||
|
|
|
|||
|
|
@ -1995,6 +1995,7 @@
|
|||
$pointModuleConfig = $oModuleModel->getModuleConfig('point');
|
||||
$pointGroup = $pointModuleConfig->point_group;
|
||||
|
||||
$levelGroup = array();
|
||||
if(is_array($pointGroup) && count($pointGroup)>0)
|
||||
{
|
||||
$levelGroup = array_flip($pointGroup);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form action="./" class="form" ruleset="@insertAdminMember" method="post" enctype="multipart/form-data">
|
||||
<form action="./" class="form" ruleset="insertAdminMember" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="module" value="member" />
|
||||
<input type="hidden" name="act" value="procMemberAdminInsert" />
|
||||
<input type="hidden" name="member_srl" value="{$member_srl}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue