본문으로 건너뛰기

결혼여부 기본값 저장 안정성 개선

PHP 7 · GODO25
변경 파일 수: 11개
변경 파일 목록
총 11개
변경 파일 코드
추가삭제
Admin/member/_member_view_other.php+2-2
변경 전_member_view_other.php
<td>
<label class="radio-inline">
<input type="radio" name="marriFl" value="n"
data-target="input[name=marriDate]" <?= $checked['marriFl']['n']; ?>>
미혼
</label>
<label class="radio-inline">
<input type="radio" name="marriFl" value="y"
data-target="input[name=marriDate]" <?= $checked['marriFl']['y']; ?>>
기혼
</label>
</td>
 
변경 후_member_view_other.php
<td>
<label class="radio-inline">
<input type="radio" name="marriFl" value="n"
data-target="input[name=marriDate]" <?= $checked['marriFl']['n'] ?? ''; ?>>
미혼
</label>
<label class="radio-inline">
<input type="radio" name="marriFl" value="y"
data-target="input[name=marriDate]" <?= $checked['marriFl']['y'] ?? ''; ?>>
기혼
</label>
</td>
 
Component/Database/MemberTableField.php+1-1
변경 전MemberTableField.php
[
'val' => 'marriFl',
'typ' => 's',
'def' => 'n',
],
// 결혼여부
[
 
변경 후MemberTableField.php
[
'val' => 'marriFl',
'typ' => 's',
'def' => '',
],
// 결혼여부
[
 
Component/Member/History.php+1
변경 전History.php
}
if ('marriFl' == $key) {
$displayArray = [
 
'n' => __('미혼'),
'y' => __('기혼'),
];
 
변경 후History.php
}
if ('marriFl' == $key) {
$displayArray = [
'' => __('선택안함'),
'n' => __('미혼'),
'y' => __('기혼'),
];
 
Component/Member/MemberAdmin.php+1-1
변경 전MemberAdmin.php
 
if (isset($params['marriFl']) === true && $params['marriFl'] == 'y') {
$v->add('marriDate', '', $require['marriDate'], '{' . __('결혼기념일') . '}'); // 결혼기념일
} elseif (isset($params['marriFl']) === true && $params['marriFl'] == 'n') {
$v->add('marriDate', '', false, '{' . __('결혼기념일') . '}'); // 결혼기념일
$params['marriDate'] = '';
}
 
변경 후MemberAdmin.php
 
if (isset($params['marriFl']) === true && $params['marriFl'] == 'y') {
$v->add('marriDate', '', $require['marriDate'], '{' . __('결혼기념일') . '}'); // 결혼기념일
} elseif (isset($params['marriFl']) === true) {
$v->add('marriDate', '', false, '{' . __('결혼기념일') . '}'); // 결혼기념일
$params['marriDate'] = '';
}
 
Component/Member/MyPage.php+1-1
변경 전MyPage.php
$requestParams['marriDate'] = $requestParams['marriYear'].'-'.$requestParams['marriMonth'].'-'.$requestParams['marriDay'];
}
$v->add('marriDate', '', $require['marriDate'], '{' . __('결혼기념일') . '}'); // 결혼기념일
} elseif (isset($requestParams['marriFl']) === true && $requestParams['marriFl'] == 'n') {
$v->add('marriDate', '', false, '{' . __('결혼기념일') . '}'); // 결혼기념일
$requestParams['marriDate'] = '';
}
 
변경 후MyPage.php
$requestParams['marriDate'] = $requestParams['marriYear'].'-'.$requestParams['marriMonth'].'-'.$requestParams['marriDay'];
}
$v->add('marriDate', '', $require['marriDate'], '{' . __('결혼기념일') . '}'); // 결혼기념일
} elseif (isset($requestParams['marriFl']) === true) {
$v->add('marriDate', '', false, '{' . __('결혼기념일') . '}'); // 결혼기념일
$requestParams['marriDate'] = '';
}
 
data/skin/front/moment/member/_join_view_other.html+1-1
변경 전_join_view_other.html
</tr>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<tr class="js_marridateinfo {? data.marriFl == 'n'}dn{/}">
<th><span>{=__('결혼기념일')}</span></th>
<td>
<div class="member_warning">{=gd_select_box('marriYear', 'marriYear', DateYearMarri, null, data.marriYear, __('년'), 'style="width: 100px;"', 'chosen-single')}</div>
 
변경 후_join_view_other.html
</tr>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<tr class="js_marridateinfo {? joinField.marriFl.use == 'y' && data.marriFl != 'y'}dn{/}">
<th><span>{=__('결혼기념일')}</span></th>
<td>
<div class="member_warning">{=gd_select_box('marriYear', 'marriYear', DateYearMarri, null, data.marriYear, __('년'), 'style="width: 100px;"', 'chosen-single')}</div>
 
data/skin/front/mygreek/member/_join_view_other.html+1-1
변경 전_join_view_other.html
</tr>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<tr class="js_marridateinfo {? data.marriFl == 'n'}dn{/}">
<th><span>{=__('결혼기념일')}</span></th>
<td>
<div class="member_warning">{=gd_select_box('marriYear', 'marriYear', DateYearMarri, null, data.marriYear, __('년'), 'style="width: 100px;"', 'chosen-single')}</div>
 
변경 후_join_view_other.html
</tr>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<tr class="js_marridateinfo {? joinField.marriFl.use == 'y' && data.marriFl != 'y'}dn{/}">
<th><span>{=__('결혼기념일')}</span></th>
<td>
<div class="member_warning">{=gd_select_box('marriYear', 'marriYear', DateYearMarri, null, data.marriYear, __('년'), 'style="width: 100px;"', 'chosen-single')}</div>
 
data/skin/front/story_g/member/_join_view_other.html+1-1
변경 전_join_view_other.html
</tr>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<tr class="marridateinfo {? data.marriFl == 'n'}dn{/}">
<th class="ta-l">{=__('결혼기념일')}</th>
<td>
<div class="marry">
 
변경 후_join_view_other.html
</tr>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<tr class="marridateinfo {? joinField.marriFl.use == 'y' && data.marriFl != 'y'}dn{/}">
<th class="ta-l">{=__('결혼기념일')}</th>
<td>
<div class="marry">
 
data/skin/mobile/moment/member/_join_view_other.html+1-1
변경 전_join_view_other.html
</div>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<div class="input_wrap marridateinfo {? data.marriFl == 'n'}dn{/}">
<div class="input_title">{=__('결혼기념일')}</div>
<div class="input_content">
<div class="inp_sel">
 
변경 후_join_view_other.html
</div>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<div class="input_wrap marridateinfo {? joinField.marriFl.use == 'y' && data.marriFl != 'y'}dn{/}">
<div class="input_title">{=__('결혼기념일')}</div>
<div class="input_content">
<div class="inp_sel">
 
data/skin/mobile/mygreek/member/_join_view_other.html+1-1
변경 전_join_view_other.html
</div>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<div class="input_wrap marridateinfo {? data.marriFl == 'n'}dn{/}">
<div class="input_title">{=__('결혼기념일')}</div>
<div class="input_content">
<div class="inp_sel">
 
변경 후_join_view_other.html
</div>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<div class="input_wrap marridateinfo {? joinField.marriFl.use == 'y' && data.marriFl != 'y'}dn{/}">
<div class="input_title">{=__('결혼기념일')}</div>
<div class="input_content">
<div class="inp_sel">
 
data/skin/mobile/story_g/member/_join_view_other.html+1-1
변경 전_join_view_other.html
</div>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<div class="input_wrap marridateinfo {? data.marriFl == 'n'}dn{/}">
<div class="input_title">{=__('결혼기념일')}</div>
<div class="input_content">
<div class="inp_sel">
 
변경 후_join_view_other.html
</div>
<!--{/}-->
<!--{? joinField.marriDate.use == 'y'}-->
<div class="input_wrap marridateinfo {? joinField.marriFl.use == 'y' && data.marriFl != 'y'}dn{/}">
<div class="input_title">{=__('결혼기념일')}</div>
<div class="input_content">
<div class="inp_sel">