답급 클릭시 필드가 비워져 다시 입력하라고 하네요

1. 정확한 제품 또는 플러그인 이름

kboard - 기본게시판

 

2. 상세 내용

답글 클릭시 필드가 비워져 있어서 해당 내용을 다시 입력하고 뜹니다......

그래서 문의를 찾아보니 아래링크에서 이메일과 핸드폰 번호는 출력되게끔 수정하였는데,

체크박스, 라디오버튼, 셀렉에 관한 부분이 없어서 ㅠㅠ 문의드립니다.

https://www.cosmosfarm.com/threads/document/22409

 

아래는 적용되어 있는 코드이며, 답글 클릭 시 필드값이 출력이 안됩니다...

1. 개인정보취급방침 체크박스가 풀려있습니다..ㅠㅠ 아래는 적용되어 있는 코드입니다.

<div class="attr-value custom_check">
 <input type="checkbox" name="kboard_option_prvcagree" value="1" required<?php if($content->option->prvcagree):?> checked<?php endif?>>개인정보취급방침에 동의합니다.
</div>

 

2. 셀렉버튼 - 날짜를 셀렉할 수 있게 되어있는데 입력된 값이 아니라 기본값으로 보여집니다...

<div class="kboard-attr-row">
            <label class="attr-name">예약날짜</label>
            <div class="attr-value sel_year">
                <select name="kboard_option_year">                    
                    <option value="2023" <?php if($content->option->year3 == '2023'):?> selected<?php endif?>><?php echo __('2023년', 'kboard')?></option>
                    <option value="2024" <?php if($content->option->year4 == '2024'):?> selected<?php endif?>><?php echo __('2024년', 'kboard')?></option>
                    <option value="2025" <?php if($content->option->year5 == '2025'):?> selected<?php endif?>><?php echo __('2025년', 'kboard')?></option>
                </select>
            </div>
            <div class="attr-value sel_month">
                <select name="kboard_option_month">
                    <option value="1" <?php if($content->option->month1 == '1'):?> selected<?php endif?>><?php echo __('1월', 'kboard')?></option>
                    <option value="2" <?php if($content->option->month2 == '2'):?> selected<?php endif?>><?php echo __('2월', 'kboard')?></option>
                    <option value="3" <?php if($content->option->month3 == '3'):?> selected<?php endif?>><?php echo __('3월', 'kboard')?></option>
                    <option value="4" <?php if($content->option->month4 == '4'):?> selected<?php endif?>><?php echo __('4월', 'kboard')?></option>
                    <option value="5" <?php if($content->option->month5 == '5'):?> selected<?php endif?>><?php echo __('5월', 'kboard')?></option>
                    <option value="6" <?php if($content->option->month6 == '6'):?> selected<?php endif?>><?php echo __('6월', 'kboard')?></option>
                    <option value="7" <?php if($content->option->month7 == '7'):?> selected<?php endif?>><?php echo __('7월', 'kboard')?></option>
                    <option value="8" <?php if($content->option->month8 == '8'):?> selected<?php endif?>><?php echo __('8월', 'kboard')?></option>
                    <option value="9" <?php if($content->option->month9 == '9'):?> selected<?php endif?>><?php echo __('9월', 'kboard')?></option>
                    <option value="10" <?php if($content->option->month10 == '10'):?> selected<?php endif?>><?php echo __('10월', 'kboard')?></option>
                    <option value="11" <?php if($content->option->month11 == '11'):?> selected<?php endif?>><?php echo __('11월', 'kboard')?></option>
                    <option value="12" <?php if($content->option->month12 == '12'):?> selected<?php endif?>><?php echo __('12월', 'kboard')?></option>
                </select>
            </div>

            <div class="attr-value sel_day">
                <select name="kboard_option_day">
                    <option value="1" <?php if($content->option->day1 == '1'):?> selected<?php endif?>><?php echo __('1일', 'kboard')?></option>
                    <option value="2" <?php if($content->option->day2 == '2'):?> selected<?php endif?>><?php echo __('2일', 'kboard')?></option>
                    <option value="3" <?php if($content->option->day3 == '3'):?> selected<?php endif?>><?php echo __('3일', 'kboard')?></option>
                    <option value="4" <?php if($content->option->day4 == '4'):?> selected<?php endif?>><?php echo __('4일', 'kboard')?></option>
                    <option value="5" <?php if($content->option->day5 == '5'):?> selected<?php endif?>><?php echo __('5일', 'kboard')?></option>
                    <option value="6" <?php if($content->option->day6 == '6'):?> selected<?php endif?>><?php echo __('6일', 'kboard')?></option>
                    <option value="7" <?php if($content->option->day7 == '7'):?> selected<?php endif?>><?php echo __('7일', 'kboard')?></option>
                    <option value="8" <?php if($content->option->day8 == '8'):?> selected<?php endif?>><?php echo __('8일', 'kboard')?></option>
                    <option value="9" <?php if($content->option->day9 == '9'):?> selected<?php endif?>><?php echo __('9일', 'kboard')?></option>
                    <option value="10" <?php if($content->option->day10 == '10'):?> selected<?php endif?>><?php echo __('10일', 'kboard')?></option>
                    <option value="11" <?php if($content->option->day11 == '11'):?> selected<?php endif?>><?php echo __('11일', 'kboard')?></option>
                    <option value="12" <?php if($content->option->day12 == '12'):?> selected<?php endif?>><?php echo __('12일', 'kboard')?></option>
                    <option value="13" <?php if($content->option->day13 == '13'):?> selected<?php endif?>><?php echo __('13일', 'kboard')?></option>
                    <option value="14" <?php if($content->option->day14 == '14'):?> selected<?php endif?>><?php echo __('14일', 'kboard')?></option>
                    <option value="15" <?php if($content->option->day15 == '15'):?> selected<?php endif?>><?php echo __('15일', 'kboard')?></option>
                    <option value="16" <?php if($content->option->day16 == '16'):?> selected<?php endif?>><?php echo __('16일', 'kboard')?></option>
                    <option value="17" <?php if($content->option->day17 == '17'):?> selected<?php endif?>><?php echo __('17일', 'kboard')?></option>
                    <option value="18" <?php if($content->option->day18 == '18'):?> selected<?php endif?>><?php echo __('18일', 'kboard')?></option>
                    <option value="19" <?php if($content->option->day19 == '19'):?> selected<?php endif?>><?php echo __('19일', 'kboard')?></option>
                    <option value="20" <?php if($content->option->day20 == '20'):?> selected<?php endif?>><?php echo __('20일', 'kboard')?></option>
                    <option value="21" <?php if($content->option->day21 == '21'):?> selected<?php endif?>><?php echo __('21일', 'kboard')?></option>
                    <option value="22" <?php if($content->option->day22 == '22'):?> selected<?php endif?>><?php echo __('22일', 'kboard')?></option>
                    <option value="23" <?php if($content->option->day23 == '23'):?> selected<?php endif?>><?php echo __('23일', 'kboard')?></option>
                    <option value="24" <?php if($content->option->day24 == '24'):?> selected<?php endif?>><?php echo __('24일', 'kboard')?></option>
                    <option value="25" <?php if($content->option->day25 == '25'):?> selected<?php endif?>><?php echo __('25일', 'kboard')?></option>
                    <option value="26" <?php if($content->option->day26 == '26'):?> selected<?php endif?>><?php echo __('26일', 'kboard')?></option>
                    <option value="27" <?php if($content->option->day27 == '27'):?> selected<?php endif?>><?php echo __('27일', 'kboard')?></option>
                    <option value="28" <?php if($content->option->day28 == '28'):?> selected<?php endif?>><?php echo __('28일', 'kboard')?></option>
                    <option value="29" <?php if($content->option->day29 == '29'):?> selected<?php endif?>><?php echo __('29일', 'kboard')?></option>
                    <option value="30" <?php if($content->option->day30 == '30'):?> selected<?php endif?>><?php echo __('30일', 'kboard')?></option>
                    <option value="31" <?php if($content->option->day31 == '31'):?> selected<?php endif?>><?php echo __('31일', 'kboard')?></option>

                </select>
            </div>
            <div class="attr-value sel_time">
                <select name="kboard_option_time">
                    <option value="오전" <?php if($content->option->time1 == '오전'):?> selected<?php endif?>><?php echo __('오전', 'kboard')?></option>
                    <option value="오후" <?php if($content->option->time2 == '오후'):?> selected<?php endif?>><?php echo __('오후', 'kboard')?></option>
                </select>
            </div>
            <div class="attr-value sel_hour">
                <select name="kboard_option_hour">
                    <option value="1" <?php if($content->option->hour1 == '1'):?> selected<?php endif?>><?php echo __('1시', 'kboard')?></option>
                    <option value="2" <?php if($content->option->hour2 == '2'):?> selected<?php endif?>><?php echo __('2시', 'kboard')?></option>
                    <option value="3" <?php if($content->option->hour3 == '3'):?> selected<?php endif?>><?php echo __('3시', 'kboard')?></option>
                    <option value="4" <?php if($content->option->hour4 == '4'):?> selected<?php endif?>><?php echo __('4시', 'kboard')?></option>
                    <option value="5" <?php if($content->option->hour5 == '5'):?> selected<?php endif?>><?php echo __('5시', 'kboard')?></option>
                    <option value="6" <?php if($content->option->hour6 == '6'):?> selected<?php endif?>><?php echo __('6시', 'kboard')?></option>
                    <option value="7" <?php if($content->option->hour7 == '7'):?> selected<?php endif?>><?php echo __('7시', 'kboard')?></option>
                    <option value="8" <?php if($content->option->hour8 == '8'):?> selected<?php endif?>><?php echo __('8시', 'kboard')?></option>
                    <option value="9" <?php if($content->option->hour9 == '9'):?> selected<?php endif?>><?php echo __('9시', 'kboard')?></option>
                    <option value="10" <?php if($content->option->hour10 == '10'):?> selected<?php endif?>><?php echo __('10시', 'kboard')?></option>
                    <option value="11" <?php if($content->option->hour11 == '11'):?> selected<?php endif?>><?php echo __('11시', 'kboard')?></option>
                    <option value="12" <?php if($content->option->hour12 == '12'):?> selected<?php endif?>><?php echo __('12시', 'kboard')?></option>
                </select>
            </div>
            <div class="attr-value sel_minute">
                <select name="kboard_option_minute">
                    <option value="00" <?php if($content->option->minute1 == '00'):?> selected<?php endif?>><?php echo __('00분', 'kboard')?></option>
                    <option value="10" <?php if($content->option->minute2 == '10'):?> selected<?php endif?>><?php echo __('10분', 'kboard')?></option>
                    <option value="20" <?php if($content->option->minute3 == '20'):?> selected<?php endif?>><?php echo __('20분', 'kboard')?></option>
                    <option value="30" <?php if($content->option->minute4 == '30'):?> selected<?php endif?>><?php echo __('30분', 'kboard')?></option>
                    <option value="40" <?php if($content->option->minute5 == '40'):?> selected<?php endif?>><?php echo __('40분', 'kboard')?></option>
                    <option value="50" <?php if($content->option->minute6 == '50'):?> selected<?php endif?>><?php echo __('50분', 'kboard')?></option>


                </select>
            </div>

 

3. 라디오버튼

<div class="kboard-attr-row">
 <label class="attr-name">진료과목</label>
 <div class="attr-value">
                <input type="radio" name="kboard_option_s5" value="1" <?php if($content->option->s5=='1'):?> checked<?php endif?>>유방
                <input type="radio" name="kboard_option_s5" value="2" <?php if($content->option->s5=='2'):?> checked<?php endif?>>맘모톰
                <input type="radio" name="kboard_option_s5" value="3" <?php if($content->option->s5=='3'):?> checked<?php endif?>>유방미용
                <input type="radio" name="kboard_option_s5" value="4" <?php if($content->option->s5=='4'):?> checked<?php endif?>>산모가슴
                <input type="radio" name="kboard_option_s5" value="5" <?php if($content->option->s5=='5'):?> checked<?php endif?>>갑상선
                <input type="radio" name="kboard_option_s5" value="6" <?php if($content->option->s5=='6'):?> checked<?php endif?>>갑상선 고주파
                <input type="radio" name="kboard_option_s5" value="7" <?php if($content->option->s5=='7'):?> checked<?php endif?>>기타
 </div>
</div>

 

ㅠㅠ빠른  답변 부탁드려요 ㅠㅠ... 2015년에 셋팅한 사이트여서 필드도 php에서 추가 하였습니다.

 

3. 확인 가능한 상세 페이지 주소

 

 

4. 수정한 코드 내역 (있다면)

이메일, 핸드폰 번호는 아래처럼 적용하니 잘 노출됩니다.

        <div class="kboard-attr-row">
            <label class="attr-name"><?php echo __('Phone number', 'kboard')?></label>
            <div class="attr-value"><input type="text" name="kboard_option_tel" value="<?php echo $content->option->tel? $content->option->tel : ($parent->option ? $parent->option->tel : '')?>"></div>
        </div>
        <div class="kboard-attr-row">
            <label class="attr-name"><?php echo __('E-mail', 'kboard')?></label>
            <div class="attr-value"><input type="text" name="kboard_option_mail" value="<?php echo $content->option->mail? $content->option->mail : ($parent->option ? $parent->option->mail : '')?>"></div>
        </div>

 

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기