mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@190 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
591f780345
commit
3515dc984a
9 changed files with 108 additions and 6 deletions
|
|
@ -213,11 +213,44 @@
|
|||
$join_form_count = count($join_form_list);
|
||||
for($i=0;$i<$join_form_count;$i++) {
|
||||
$member_join_form_srl = $join_form_list[$i]->member_join_form_srl;
|
||||
$column_type = $join_form_list[$i]->column_type;
|
||||
$default_value = $join_form_list[$i]->default_value;
|
||||
|
||||
if(in_array($column_type, array('checkbox','select'))) {
|
||||
$join_form_list[$i]->default_value = unserialize($default_value);
|
||||
if(!$join_form_list[$i]->default_value[0]) $join_form_list[$i]->default_value = '';
|
||||
} else {
|
||||
$join_form_list[$i]->default_value = '';
|
||||
}
|
||||
|
||||
$list[$member_join_form_srl] = $join_form_list[$i];
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 한개의 가입항목을 가져옴
|
||||
**/
|
||||
function getJoinForm($member_join_form_srl) {
|
||||
// DB 객체 생성
|
||||
$oDB = &DB::getInstance();
|
||||
$args->member_join_form_srl = $member_join_form_srl;
|
||||
$output = $oDB->executeQuery('member.getJoinForm', $args);
|
||||
$join_form = $output->data;
|
||||
if(!$join_form) return NULL;
|
||||
|
||||
$column_type = $join_form->column_type;
|
||||
$default_value = $join_form->default_value;
|
||||
|
||||
if(in_array($column_type, array('checkbox','select'))) {
|
||||
$join_form->default_value = unserialize($default_value);
|
||||
} else {
|
||||
$join_form->default_value = '';
|
||||
}
|
||||
|
||||
return $join_form;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 금지 아이디 목록 가져오기
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue