39 $this->memberConfig = $oMemberModel->getMemberConfig();
42 $oSecurity->encodeHTML(
'config.signupForm..');
48 $this->memberInfo = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
49 if(!$this->memberInfo)
60 $this->group_list = $oMemberModel->getGroups();
64 $security->encodeHTML(
'group_list..',
'config..');
78 $output = $oMemberAdminModel->getMemberList();
84 case 'super_admin' :
Context::set(
'filter_type_title', $lang->cmd_show_super_admin_member);
break;
85 case 'site_admin' :
Context::set(
'filter_type_title', $lang->cmd_show_site_admin_member);
break;
86 default :
Context::set(
'filter_type_title', $lang->cmd_show_all_member);
break;
91 foreach(
$output->data as $key => $member)
93 $output->data[$key]->group_list = $oMemberModel->getMemberGroups($member->member_srl,0);
97 $memberIdentifiers = array(
'user_id'=>
'user_id',
'user_name'=>
'user_name',
'nick_name'=>
'nick_name');
98 $usedIdentifiers = array();
100 if(is_array($config->signupForm))
102 foreach($config->signupForm as $signupItem)
104 if(!count($memberIdentifiers))
break;
105 if(in_array($signupItem->name, $memberIdentifiers) && ($signupItem->required || $signupItem->isUse))
107 unset($memberIdentifiers[$signupItem->name]);
108 $usedIdentifiers[$signupItem->name] = $lang->{$signupItem->name};
120 $security->encodeHTML(
'member_list..user_name',
'member_list..nick_name',
'member_list..group_list..');
121 $security->encodeHTML(
'search_target',
'search_keyword');
134 Context::set(
'password_hashing_algos', $oPassword->getSupportedAlgorithms());
136 $this->setTemplateFile(
'default_config');
141 $config = $this->memberConfig;
143 if($config->redirect_url)
159 Context::set(
'editor_skin_list', $oEditorModel->getEditorSkinList());
162 $option =
new stdClass();
163 $option->skin = $oEditorModel->getEditorConfig()->editor_skin;
164 $option->primary_key_name =
'temp_srl';
165 $option->content_key_name =
'agreement';
166 $option->allow_fileupload =
false;
167 $option->enable_autosave =
false;
168 $option->enable_default_component =
true;
169 $option->enable_component =
true;
170 $option->resizable =
true;
171 $option->height = 300;
172 $editor = $oEditorModel->getEditor(0, $option);
175 $signupForm = $config->signupForm;
176 foreach($signupForm as $val)
178 if($val->name ==
'user_id')
186 if($userIdInfo->isUse)
190 $denied_list = $oMemberModel->getDeniedIDs();
192 $oSecurity->encodeHTML(
'deniedIDs..user_id');
196 $deniedNickNames = $oMemberModel->getDeniedNickNames();
198 $oSecurity->encodeHTML(
'deniedNickNames..nick_name');
199 $this->setTemplateFile(
'signup_config');
204 $this->setTemplateFile(
'login_config');
212 $layout_list = $oLayoutModel->getLayoutList();
216 $mlayout_list = $oLayoutModel->getLayoutList(0,
'M');
225 $mskin_list =
$oModuleModel->getSkins($this->module_path,
'm.skins');
228 $this->setTemplateFile(
'design_config');
243 $layout_list = $oLayoutModel->getLayoutList();
247 $mlayout_list = $oLayoutModel->getLayoutList(0,
'M');
256 $mskin_list =
$oModuleModel->getSkins($this->module_path,
'm.skins');
261 Context::set(
'editor_skin_list', $oEditorModel->getEditorSkinList());
264 $option->skin = $oEditorModel->getEditorConfig()->editor_skin;
265 $option->primary_key_name =
'temp_srl';
266 $option->content_key_name =
'agreement';
267 $option->allow_fileupload =
false;
268 $option->enable_autosave =
false;
269 $option->enable_default_component =
true;
270 $option->enable_component =
true;
271 $option->resizable =
true;
272 $option->height = 300;
273 $editor = $oEditorModel->getEditor(0, $option);
276 $signupForm = $config->signupForm;
277 foreach($signupForm as $val)
279 if($val->name ==
'user_id')
286 if($userIdInfo->isUse)
290 $denied_list = $oMemberModel->getDeniedIDs();
295 $deniedNickNames = $oMemberModel->getDeniedNickNames();
299 $security->encodeHTML(
'config..');
301 $this->setTemplateFile(
'member_config');
316 $extendForm = $oMemberModel->getCombineJoinForm($this->memberInfo);
318 $memberInfo = get_object_vars(
Context::get(
'member_info'));
319 if (!is_array($memberInfo[
'group_list'])) $memberInfo[
'group_list'] = array();
322 $disableColumns = array(
'password',
'find_account_question',
'find_account_answer');
326 $security->encodeHTML(
'member_config..');
327 $security->encodeHTML(
'extend_form_list...');
329 $oMemberView =
getView(
'member');
331 $oMemberView->_getDisplayedMemberInfo($this->memberInfo, $extendForm, $member_config);
333 $this->setTemplateFile(
'member_info');
347 if(isset($memberInfo))
349 $memberInfo->signature = $oMemberModel->getSignature($this->memberInfo->member_srl);
354 if($memberInfo->member_srl)
357 $option =
new stdClass();
358 $option->skin = $oEditorModel->getEditorConfig()->editor_skin;
359 $option->primary_key_name =
'member_srl';
360 $option->content_key_name =
'signature';
361 $option->allow_fileupload =
false;
362 $option->enable_autosave =
false;
363 $option->enable_default_component =
true;
364 $option->enable_component =
false;
365 $option->resizable =
false;
366 $option->height = 200;
367 $editor = $oEditorModel->getEditor($this->memberInfo->member_srl, $option);
371 unset($memberInfo->find_account_question);
372 unset($memberInfo->find_account_answer);
373 $formTags = $this->_getMemberInputTag($memberInfo,
true);
375 $member_config = $this->memberConfig;
378 $identifierForm =
new stdClass();
379 $identifierForm->title = $lang->{$member_config->identifier};
380 $identifierForm->name = $member_config->identifier;
381 $identifierForm->value = $memberInfo->{$member_config->identifier};
383 $this->setTemplateFile(
'insert_member');
398 $extend_form_list = $oMemberModel->getCombineJoinForm($memberInfo);
399 $security =
new Security($extend_form_list);
400 $security->encodeHTML(
'..column_title',
'..description',
'..default_value.');
404 $memberInfo = get_object_vars($memberInfo);
407 $member_config = $this->memberConfig;
408 if(!$this->memberConfig)
410 $member_config = $this->memberConfig = $oMemberModel->getMemberConfig();
413 unset($member_config->signupForm->find_account_question);
414 unset($member_config->signupForm->find_account_answer);
419 foreach($member_config->signupForm as $no=>$formInfo)
421 if(!$formInfo->isUse)
continue;
424 if($formInfo->name ==
'find_account_question' && $memberInfo[
'member_srl'] !==
$logged_info->member_srl)
426 unset($member_config->signupForm[$no]);
430 if($formInfo->name == $member_config->identifier || $formInfo->name ==
'password')
continue;
432 $formTag =
new stdClass();
434 $formTag->title = ($formInfo->isDefaultForm) ? $lang->{$formInfo->name} : $formInfo->title;
437 if($formInfo->mustRequired) $formTag->title =
'<em style="color:red">*</em> '.$formTag->title;
441 if ($formInfo->required && $formInfo->name !=
'password') $formTag->title =
'<em style="color:red">*</em> '.$formTag->title;
443 $formTag->name = $formInfo->name;
445 if($formInfo->isDefaultForm)
447 if($formInfo->imageType)
449 $formTag->type =
'image';
450 if($formInfo->name ==
'profile_image')
452 $target = $memberInfo[
'profile_image'];
453 $functionName =
'doDeleteProfileImage';
455 else if($formInfo->name ==
'image_name')
457 $target = $memberInfo[
'image_name'];
458 $functionName =
'doDeleteImageName';
460 else if($formInfo->name ==
'image_mark')
462 $target = $memberInfo[
'image_mark'];
463 $functionName =
'doDeleteImageMark';
468 $inputTag = sprintf(
'<input type="hidden" name="__%s_exist" value="true" /><span id="%s"><img src="%s" alt="%s" /> <button type="button" onclick="%s(%d);return false;">%s</button></span>',
470 $formInfo->name.
'tag',
474 $memberInfo[
'member_srl'],
479 $inputTag = sprintf(
'<input type="hidden" name="__%s_exist" value="false" />', $formInfo->name);
481 $inputTag .= sprintf(
'<input type="file" name="%s" id="%s" value="" accept="image/*" /><p class="help-block">%s: %dpx, %s: %dpx</p>',
484 $lang->{$formInfo->name.
'_max_width'},
485 $member_config->{$formInfo->name.
'_max_width'},
486 $lang->{$formInfo->name.
'_max_height'},
487 $member_config->{$formInfo->name.
'_max_height'});
489 else if($formInfo->name ==
'birthday')
491 $formTag->type =
'date';
492 $inputTag = sprintf(
'<input type="hidden" name="birthday" id="date_birthday" value="%s" /><input type="text" placeholder="YYYY-MM-DD" name="birthday_ui" class="inputDate" id="birthday" value="%s" readonly="readonly" /> <input type="button" value="%s" class="btn dateRemover" />',
493 $memberInfo[
'birthday'],
494 zdate($memberInfo[
'birthday'],
'Y-m-d',
false),
497 else if($formInfo->name ==
'find_account_question')
499 $disabled = (!!$memberInfo[
'member_srl']) ?
'disabled="disabled"' :
'';
501 $formTag->type =
'select';
502 $inputTag =
'<select name="find_account_question" id="find_account_question" style="display:block;margin:0 0 8px 0" %s>%s</select>';
503 $optionTag = array();
504 foreach(
$lang->find_account_question_items as $key=>$val)
506 if($key == $memberInfo[
'find_account_question']) $selected =
'selected="selected"';
508 $optionTag[] = sprintf(
'<option value="%s" %s >%s</option>',
513 $inputTag = sprintf($inputTag, $disabled, implode(
'', $optionTag));
514 $inputTag .=
'<input type="text" name="find_account_answer" id="find_account_answer" title="'.Context::getLang(
'find_account_answer').
'" value="" ' . $disabled .
' />';
517 $inputTag .=
' <label><input type="checkbox" name="modify_find_account_answer" value="Y" /> ' .
Context::getLang(
'cmd_modify') .
'</label>';
518 $inputTag .=
'<script>(function($) {$(function() {$(\'[name=modify_find_account_answer]\').change(function() {var $this = $(this); if($this.prop(\'checked\')) {$(\'[name=find_account_question],[name=find_account_answer]\').attr(\'disabled\', false); } else {$(\'[name=find_account_question]\').attr(\'disabled\', true); $(\'[name=find_account_answer]\').attr(\'disabled\', true).val(\'\'); } }); }); })(jQuery);</script>';
521 else if($formInfo->name ==
'email_address')
523 $formTag->type =
'email';
524 $inputTag =
'<input type="email" name="email_address" id="email_address" value="'.$memberInfo[
'email_address'].
'" />';
526 else if($formInfo->name ==
'homepage')
528 $formTag->type =
'url';
529 $inputTag =
'<input type="url" name="homepage" id="homepage" value="'.$memberInfo[
'homepage'].
'" />';
531 else if($formInfo->name ==
'blog')
533 $formTag->type =
'url';
534 $inputTag =
'<input type="url" name="blog" id="blog" value="'.$memberInfo[
'blog'].
'" />';
538 $formTag->type =
'text';
539 $inputTag = sprintf(
'<input type="text" name="%s" id="%s" value="%s" />',
542 $memberInfo[$formInfo->name]);
547 $extendForm = $extend_form_list[$formInfo->member_join_form_srl];
548 $replace = array(
'column_name' => $extendForm->column_name,
'value' => $extendForm->value);
549 $extentionReplace = array();
551 $formTag->type = $extendForm->column_type;
552 if($extendForm->column_type ==
'text')
554 $template =
'<input type="text" name="%column_name%" id="%column_name%" value="%value%" />';
556 else if($extendForm->column_type ==
'homepage')
558 $template =
'<input type="url" name="%column_name%" id="%column_name%" value="%value%" />';
560 else if($extendForm->column_type ==
'email_address')
562 $template =
'<input type="email" name="%column_name%" id="%column_name%" value="%value%" />';
564 else if($extendForm->column_type ==
'tel')
566 $extentionReplace = array(
'tel_0' => $extendForm->value[0],
567 'tel_1' => $extendForm->value[1],
568 'tel_2' => $extendForm->value[2]);
569 $template =
'<input type="tel" name="%column_name%[]" id="%column_name%" value="%tel_0%" size="4" maxlength="4" style="width:30px" title="First Number" /> - <input type="tel" name="%column_name%[]" value="%tel_1%" size="4" maxlength="4" style="width:35px" title="Second Number" /> - <input type="tel" name="%column_name%[]" value="%tel_2%" size="4" maxlength="4" style="width:35px" title="Third Number" />';
571 else if($extendForm->column_type ==
'textarea')
573 $template =
'<textarea name="%column_name%" id="%column_name%" rows="4" cols="42">%value%</textarea>';
575 else if($extendForm->column_type ==
'checkbox')
578 if($extendForm->default_value)
580 $template =
'<div style="padding-top:5px">%s</div>';
582 $optionTag = array();
583 foreach($extendForm->default_value as $v)
586 if(is_array($extendForm->value) && in_array($v, $extendForm->value))$checked =
'checked="checked"';
587 $optionTag[] =
'<label for="%column_name%'.$__i.
'"><input type="checkbox" id="%column_name%'.$__i.
'" name="%column_name%[]" value="'.$v.
'" '.$checked.
' /> '.$v.
'</label>';
590 $template = sprintf($template, implode(
'', $optionTag));
593 else if($extendForm->column_type ==
'radio')
596 if($extendForm->default_value)
598 $template =
'<div style="padding-top:5px">%s</div>';
599 $optionTag = array();
600 foreach($extendForm->default_value as $v)
602 if($extendForm->value == $v)$checked =
'checked="checked"';
604 $optionTag[] =
'<label><input type="radio" name="%column_name%" value="'.$v.
'" '.$checked.
' /> '.$v.
'</label>';
606 $template = sprintf($template, implode(
'', $optionTag));
609 else if($extendForm->column_type ==
'select')
611 $template =
'<select name="'.$formInfo->name.
'" id="'.$formInfo->name.
'">%s</select>';
612 $optionTag = array();
613 $optionTag[] = sprintf(
'<option value="">%s</option>',
$lang->cmd_select);
614 if($extendForm->default_value)
616 foreach($extendForm->default_value as $v)
618 if($v == $extendForm->value) $selected =
'selected="selected"';
620 $optionTag[] = sprintf(
'<option value="%s" %s >%s</option>', $v, $selected, $v);
623 $template = sprintf($template, implode(
'', $optionTag));
625 else if($extendForm->column_type ==
'kr_zip')
628 if($krzipModel && method_exists($krzipModel ,
'getKrzipCodeSearchHtml' ))
630 $template = $krzipModel->getKrzipCodeSearchHtml($extendForm->column_name, $extendForm->value);
633 else if($extendForm->column_type ==
'jp_zip')
635 $template =
'<input type="text" name="%column_name%" id="%column_name%" value="%value%" />';
637 else if($extendForm->column_type ==
'date')
639 $extentionReplace = array(
'date' =>
zdate($extendForm->value,
'Y-m-d'),
'cmd_delete' =>
$lang->cmd_delete);
640 $template =
'<input type="hidden" name="%column_name%" id="date_%column_name%" value="%value%" /><input type="text" placeholder="YYYY-MM-DD" class="inputDate" value="%date%" readonly="readonly" /> <input type="button" value="%cmd_delete%" class="btn dateRemover" />';
643 $replace = array_merge($extentionReplace, $replace);
644 $inputTag = preg_replace_callback(
'@%(\w+)%@',
function($n) use($replace) {
return $replace[$n[1]]; }, $template);
646 if($extendForm->description)
647 $inputTag .=
'<p class="help-block">'.$extendForm->description.
'</p>';
649 $formTag->inputTag = $inputTag;
650 $formTags[] = $formTag;
666 $this->setTemplateFile(
'group_list');
676 $member_join_form_srl =
Context::get(
'member_join_form_srl');
677 if($member_join_form_srl)
680 $join_form = $oMemberModel->getJoinForm($member_join_form_srl);
682 if(!$join_form)
Context::set(
'member_join_form_srl',
'',
true);
687 $security->encodeHTML(
'join_form..');
691 $this->setTemplateFile(
'insert_join_form');
dispMemberAdminGroupList()
setTemplateFile($filename)
zdate($str, $format= 'Y-m-d H:i:s', $conversion=TRUE)
dispMemberAdminInsertJoinForm()
set($key, $val, $set_to_get_vars=0)
dispMemberAdminConfigOLD()
getAdminModel($module_name)
dispMemberAdminLoginConfig()
dispMemberAdminDesignConfig()
_getMemberInputTag($memberInfo, $isAdmin=false)
dispMemberAdminSignUpConfig()
if(isset($_REQUEST['encode'])) if(isset($_REQUEST['decode'])) $lang