라디오 버튼 선택이 풀립니다.

라디오 버튼 선택이 풀립니다.

QA

라디오 버튼 선택이 풀립니다.

본문

write.php

 

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
?>

<section id="bo_w">
    <h2 class="sound_only"><?php echo $g5['title'] ?></h2>

    <!-- 게시물 작성/수정 시작 { -->
    <form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
    <input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
    <input type="hidden" name="w" value="<?php echo $w ?>">
    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
    <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
    <input type="hidden" name="sca" value="<?php echo $sca ?>">
    <input type="hidden" name="sfl" value="<?php echo $sfl ?>">
    <input type="hidden" name="stx" value="<?php echo $stx ?>">
    <input type="hidden" name="spt" value="<?php echo $spt ?>">
    <input type="hidden" name="sst" value="<?php echo $sst ?>">
    <input type="hidden" name="sod" value="<?php echo $sod ?>">
    <input type="hidden" name="page" value="<?php echo $page ?>">
    <?php
    $option = '';
    $option_hidden = '';
    if ($is_notice || $is_html || $is_secret || $is_mail) { 
        $option = '';
        if ($is_notice) {
            $option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="notice" name="notice"  class="selec_chk" value="1" '.$notice_checked.'>'.PHP_EOL.'<label for="notice"><span></span>공지</label></li>';
        }
        if ($is_html) {
            if ($is_dhtml_editor) {
                $option_hidden .= '<input type="hidden" value="html1" name="html">';
            } else {
                $option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" class="selec_chk" value="'.$html_value.'" '.$html_checked.'>'.PHP_EOL.'<label for="html"><span></span>html</label></li>';
            }
        }
        if ($is_secret) {
            if ($is_admin || $is_secret==1) {
                $option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="secret" name="secret"  class="selec_chk" value="secret" '.$secret_checked.'>'.PHP_EOL.'<label for="secret"><span></span>비밀글</label></li>';
            } else {
                $option_hidden .= '<input type="hidden" name="secret" value="secret">';
            }
        }
        if ($is_mail) {
            $option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="mail" name="mail"  class="selec_chk" value="mail" '.$recv_email_checked.'>'.PHP_EOL.'<label for="mail"><span></span>답변메일받기</label></li>';
        }
    }
    echo $option_hidden;
    ?>

    <?php if ($is_category) { ?>
    <div class="bo_w_select write_div">
        <label for="ca_name" class="sound_only">분류<strong>필수</strong></label>
        <select name="ca_name" id="ca_name" required>
            <option value="">분류를 선택하세요</option>
            <?php echo $category_option ?>
        </select>
    </div>
    <?php } ?>

    <div class="bo_w_info write_div">
        <?php if ($is_name) { ?>
            <label for="wr_name" class="sound_only">이름<strong>필수</strong></label>
            <input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input half_input required" placeholder="이름">
        <?php } ?>
    
        <?php if ($is_password) { ?>
            <label for="wr_password" class="sound_only">비밀번호<strong>필수</strong></label>
            <input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input half_input <?php echo $password_required ?>" placeholder="비밀번호">
        <?php } ?>
    
        <?php if ($is_email) { ?>
            <label for="wr_email" class="sound_only">이메일</label>
            <input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input half_input email " placeholder="이메일">
        <?php } ?>
        
    
        <?php if ($is_homepage) { ?>
            <label for="wr_homepage" class="sound_only">홈페이지</label>
            <input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input half_input" size="50" placeholder="홈페이지">
        <?php } ?>
    </div>
    
    <?php if ($option) { ?>
    <div class="write_div">
        <span class="sound_only">옵션</span>
        <ul class="bo_v_option">
        <?php echo $option ?>
        </ul>
    </div>
    <?php } ?>
    <div class="write_div">
      <label for="wr_content" class="sound_only">내용<strong>필수</strong></label>
        <div class="wr_content <?php echo $is_dhtml_editor ? $config['cf_editor'] : ''; ?>">
            <?php if($write_min || $write_max) { ?>
            <!-- 최소/최대 글자 수 사용 시 -->
            <p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
            <?php } ?>
            
            <!-- 개인별 상담 기록지 폼-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="47" align="center" valign="top"><span style="font-weight: bold; font-size: 24px;">개인별 상담 기로지</span></td>
  </tr>
  <tr>
    <td height="81" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" style="font-weight: bold; font-size: 16px;">
      <tr>
      
        <td width="14%" height="40" align="center">관리번호</td>
        
        <!--wr_1번-->
        <td width="29%">

<input type="text" name="wr_1" value="<?php echo $write['wr_1']?>" id="wr_1"required="required" class="fm_input" size="20"/>

</td>
        
        <td width="11%" align="center">상 담 일</td>
        
        <!--wr_2번-->
        <td width="28%">
        
<input type="text" name="wr_2" value="<?php echo $write['wr_2']?>" id="wr_2"required="required" class="fm_input" size="20"/>

</td>
        
        <td width="8%" align="center">회차</td>
        
        <!--wr_3번-->
        <td width="10%">
        
<input type="text" name="wr_3" value="<?php echo $write['wr_3']?>" id="wr_3"required="required" class="fm_input" size="5"/>

</td>
      </tr>
      <tr>
        <td height="40" align="center">참 여 자</td>
        
        <!--wr_4번-->
        <td height="40"><table width="231" border="0" cellspacing="0" cellpadding="0">
          <tr>
          
          
            <td width="104" height="34">
       
<input type="text" name="wr_4" value="<?php echo $write['wr_4']?>" id="wr_4"required="required" class="fm_input" size="10"/>

</td>
                 
       <!--wr_5번 라디오 버튼-->
            <td width="124">
            <input type ="radio" name="wr_5" value="남자" <?php echo get_checked($write['wr_5'], '남자'); ?> required="required"/>
            남자
            <input type ="radio" name="wr_5" value="여자" <?php echo get_checked($write['wr_5'], '여자'); ?>required/>
            여자</td>
            
          </tr>
        </table></td>
        
        
        <td height="40" align="center">상담시간</td>
        
        <!--wr_6번-->
        <td height="40" colspan="3">
        
<input type="text" name="wr_6" value="<?php echo $write['wr_6']?>" id="wr_6"required="required" class="fm_input" size="20"/>

</td>
        </tr>
      <tr>
        <td height="40" align="center">연락처</td>
        
        <!--wr_7번-->
        <td height="40">
        
<input type="text" name="wr_7" value="<?php echo $write['wr_7']?>" id="wr_7"required="required" class="fm_input" size="20"/>

</td>
        <td height="40" align="center">상담장소</td>
        
      <!--wr_8번-->  
        <td height="40" colspan="3">
        
<input type="text" name="wr_8" value="<?php echo $write['wr_8']?>" id="wr_8"required="required" class="fm_input" size="20"/>

</td>
        </tr>
        
      <tr>
        <td height="45" align="center">장애유형/<br />
          정도</td>
          
          <!--wr_9번-->
        <td height="45">
        
<input type="text" name="wr_9" value="<?php echo $write['wr_9']?>" id="wr_9"required="required" class="fm_input" size="20"/>

</td>
        
        <td height="45" align="center">보장구/<br />
          고려사항</td>
          
           <!--wr_10번-->
        <td height="45" colspan="3">
        
<input type="text" name="wr_10" value="<?php echo $write['wr_10']?>" id="wr_10"required="required" class="fm_input" size="20"/>

</td>
        </tr>
      <tr>
        <td height="40" align="center">상담방법</td>
        
        <!--wr_11번-->
        <td height="40" colspan="5"><input type ="radio" name="wr_11" value="본인방문(내방)" <?php echo get_checked($write['wr_11'], '본인방문(내방)'); ?> required="required"/>
본인방문(내방)

  <input type ="radio" name="wr_11" value="담당자방문" <?php echo get_checked($write['wr_11'], '담당자방문'); ?>required/> 
  담당자방문
  
  <input type ="radio" name="wr_11" value="기타" <?php echo get_checked($write['wr_11'], '기타'); ?>required/>
  
기타

<!--wr_12번-->
(
<input type="text" name="wr_12" value="<?php echo $write['wr_12']?>" id="wr_12"required="required" class="fm_input" size="20"/>
)</td>


      </tr>
      <tr>
        <td height="42" align="center">상담유형</td>
        <td height="42" colspan="5">
   
        <!--wr_13번-->
<input type ="radio" name="wr_13" value="심리/정서" <?php echo get_checked($write['wr_13'], '심리/정서'); ?> required="required"/>
심리/정서

  <input type ="radio" name="wr_13" value="일상생활" <?php echo get_checked($write['wr_13'], '일상생활'); ?>required/>
  일상생활
  
  <input type ="radio" name="wr_13" value="주거환경" <?php echo get_checked($write['wr_13'], '주거환경'); ?>required/> 
  주거환경
  
  <input type ="radio" name="wr_13" value="경제/취업" <?php echo get_checked($write['wr_13'], '경제/취업'); ?>required/>
  경제/취업</td>
  
      </tr>
      <tr>
        <td height="43" align="center">상담목적</td>
        <td height="43" colspan="5"><div class="bo_w_tit write_div">
          <label for="wr_subject" class="sound_only">제목<strong>필수</strong></label>
          <div id="autosave_wrapper" class="write_div">
            <input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required="required" class="frm_input full_input required" size="20" maxlength="255" placeholder="제목" />
            <?php if ($is_member) { // 임시 저장된 글 기능 ?>
            <script src="<?php echo G5_JS_URL; ?>/autosave.js"></script>
            <?php if($editor_content_js) echo $editor_content_js; ?>
            <button type="button" id="btn_autosave" class="btn_frmline">임시 저장된 글 (<span id="autosave_count"><?php echo $autosave_count; ?></span>)</button>
            <div id="autosave_pop"> <strong>임시 저장된 글 목록</strong>
              <ul>
              </ul>
              <div>
                <button type="button" class="autosave_close">닫기</button>
              </div>
            </div>
            <?php } ?>
          </div>
        </div></td>
      </tr>
      <tr>
        <td height="95" align="center"><p>상담내용<br />
          /<br />
        생활패턴</p></td>
        <td height="95" colspan="5" valign="top"><p>※ 6하 원칙으로 해서 기록해주세요. (누가, 언제, 어디서, 무엇을, 어떻게, 왜)<br />
          <br />
            <?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?><br />
          <br />
          </p></td>
      </tr>
      <tr>
        <td height="40" align="center">상담가<br />
          의견</td>
          
          
           <!--wr_14번-->
        <td height="40" colspan="5">
        
<input type="text" name="wr_14" value="<?php echo $write['wr_14']?>" id="wr_14"required="required" class="fm_input" size="20"/>

</td>
      </tr>
      
      
      
      <tr>
        <td height="46" align="center">지원내용</td>
        <td height="46" colspan="5">
        
 <!--wr_15번-->       
<input type ="radio" name="wr_15" value="취업연계지원" <?php echo get_checked($write['wr_15'], '취업연계지원'); ?> required="required"/>
취업연계지원

<input type ="radio" name="wr_15" value="취업교육지원" <?php echo get_checked($write['wr_15'], '취업교육지원'); ?>required/>
취업교육지원

<input type ="radio" name="wr_15" value="취업정보제공" <?php echo get_checked($write['wr_15'], '취업정보제공'); ?>required/>
취업정보제공

<input type ="radio" name="wr_15" value="기타" <?php echo get_checked($write['wr_15'], '기타'); ?>required/>

<!--wr_16번-->
기타(
<input type="text" name="wr_16" value="<?php echo $write['wr_16']?>" id="wr_16"required="required" class="fm_input" size="20"/>
)</td>


      </tr>
      <tr>
        <td height="49" align="center">취업내용</td>
        <td height="49" colspan="5">
   

 <!--wr_17번-->        
<input type ="radio" name="wr_17" value="진행중" <?php echo get_checked($write['wr_17'], '진행중'); ?> required="required"/>
진행중


  <input type ="radio" name="wr_17" value="취업포기" <?php echo get_checked($write['wr_17'], '취업포기'); ?>required/>
취업포기


<input type ="radio" name="wr_17" value="완료(취업)" <?php echo get_checked($write['wr_17'], '완료(취업)'); ?>required/>
완료(취업)


<input type ="radio" name="wr_17" value="완료(교육)" <?php echo get_checked($write['wr_17'], '완료(교육)'); ?>required/>
완료(교육)


<input type ="radio" name="wr_17" value="사후관리" <?php echo get_checked($write['wr_17'], '사후관리'); ?>required/>
사후관리


<input type ="radio" name="wr_17" value="기타" <?php echo get_checked($write['wr_17'], '기타'); ?>required/>
기타

<!--wr_18번-->
(
<input type="text" name="wr_18" value="<?php echo $write['wr_18']?>" id="wr_18"required="required" class="fm_input" size="20"/>
)</td>


      </tr>
      <tr>
        <td height="40" align="center">동료지원가</td>
        
        
        <td height="40" align="center">로그인하시면 본인의 이름이<br />          
          나옵니다.                   (인)</td>
        <td height="40" align="center">슈퍼<br />
          바이처</td>
        <td height="40" colspan="3" align="center">최진기                    (인)</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" align="center" valign="bottom"><span style="font-weight: bold; font-size: 18px;">진해장애인자립생활센터</span></td>
  </tr>
</table>

<!-- 개인별 상담 기록지 폼 끝-->
<?php if($write_min || $write_max) { ?>
            <!-- 최소/최대 글자 수 사용 시 -->
          <div id="char_count_wrap"><span id="char_count"></span>글자</div>
            <?php } ?>
        </div>
        
    </div>

    <?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
    <div class="bo_w_link write_div">
        <label for="wr_link<?php echo $i ?>"><i class="fa fa-link" aria-hidden="true"></i><span class="sound_only"> 링크  #<?php echo $i ?></span></label>
        <input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){ echo $write['wr_link'.$i]; } ?>" id="wr_link<?php echo $i ?>" class="frm_input full_input" size="50">
    </div>
    <?php } ?>

    <?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
    <div class="bo_w_flie write_div">
        <div class="file_wr write_div">
            <label for="bf_file_<?php echo $i+1 ?>" class="lb_icon"><i class="fa fa-folder-open" aria-hidden="true"></i><span class="sound_only"> 파일 #<?php echo $i+1 ?></span></label>
            <input type="file" name="bf_file[]" id="bf_file_<?php echo $i+1 ?>" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file ">
        </div>
        <?php if ($is_file_content) { ?>
        <input type="text" name="bf_content[]" value="<?php echo ($w == 'u') ? $file[$i]['bf_content'] : ''; ?>" title="파일 설명을 입력해주세요." class="full_input frm_input" size="50" placeholder="파일 설명을 입력해주세요.">
        <?php } ?>

        <?php if($w == 'u' && $file[$i]['file']) { ?>
        <span class="file_del">
            <input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i;  ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')';  ?> 파일 삭제</label>
        </span>
        <?php } ?>
        
    </div>
    <?php } ?>


    <?php if ($is_use_captcha) { //자동등록방지  ?>
    <div class="write_div">
        <?php echo $captcha_html ?>
    </div>
    <?php } ?>

    <div class="btn_confirm write_div">
        <a href="<?php echo get_pretty_url($bo_table); ?>" class="btn_cancel btn">취소</a>
        <button type="submit" id="btn_submit" accesskey="s" class="btn_submit btn">작성완료</button>
    </div>
    </form>

    <script>
    <?php if($write_min || $write_max) { ?>
    // 글자수 제한
    var char_min = parseInt(<?php echo $write_min; ?>); // 최소
    var char_max = parseInt(<?php echo $write_max; ?>); // 최대
    check_byte("wr_content", "char_count");

    $(function() {
        $("#wr_content").on("keyup", function() {
            check_byte("wr_content", "char_count");
        });
    });

    <?php } ?>
    function html_auto_br(obj)
    {
        if (obj.checked) {
            result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
            if (result)
                obj.value = "html2";
            else
                obj.value = "html1";
        }
        else
            obj.value = "";
    }

    function fwrite_submit(f)
    {
        <?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함   ?>

        var subject = "";
        var content = "";
        $.ajax({
            url: g5_bbs_url+"/ajax.filter.php",
            type: "POST",
            data: {
                "subject": f.wr_subject.value,
                "content": f.wr_content.value
            },
            dataType: "json",
            async: false,
            cache: false,
            success: function(data, textStatus) {
                subject = data.subject;
                content = data.content;
            }
        });

        if (subject) {
            alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
            f.wr_subject.focus();
            return false;
        }

        if (content) {
            alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
            if (typeof(ed_wr_content) != "undefined")
                ed_wr_content.returnFalse();
            else
                f.wr_content.focus();
            return false;
        }

        if (document.getElementById("char_count")) {
            if (char_min > 0 || char_max > 0) {
                var cnt = parseInt(check_byte("wr_content", "char_count"));
                if (char_min > 0 && char_min > cnt) {
                    alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
                    return false;
                }
                else if (char_max > 0 && char_max < cnt) {
                    alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
                    return false;
                }
            }
        }

        <?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함  ?>

        document.getElementById("btn_submit").disabled = "disabled";

        return true;
    }
    </script>
</section>
<!-- } 게시물 작성/수정 끝 -->

 

 

view.php

 

<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
?>

<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>

<!-- 게시물 읽기 시작 { -->

<article id="bo_v" style="width:<?php echo $width; ?>">
    <header>
        <h2 id="bo_v_title">
            <?php if ($category_name) { ?>
            <span class="bo_v_cate"><?php echo $view['ca_name']; // 분류 출력 끝 ?></span> 
            <?php } ?>
            <span class="bo_v_tit">
            <?php
            echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
            ?></span>
        </h2>
    </header>

    <section id="bo_v_info">
        <h2>페이지 정보</h2>
        <div class="profile_info">
            <div class="pf_img"><?php echo get_member_profile_img($view['mb_id']) ?></div>
            <div class="profile_info_ct">
                <span class="sound_only">작성자</span> <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo " ($ip)"; } ?></strong><br>
                    <span class="sound_only">댓글</span><strong><a href="#bo_vc"> <i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?>건</a></strong>
                <span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?>회</strong>
                <strong class="if_date"><span class="sound_only">작성일</span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>
            </div>
        </div>

        <!-- 게시물 상단 버튼 시작 { -->
        <div id="bo_v_top">
            <?php ob_start(); ?>

            <ul class="btn_bo_user bo_v_com">
                <li><a href="<?php echo $list_href ?>" class="btn_b01 btn" title="목록"><i class="fa fa-list" aria-hidden="true"></i><span class="sound_only">목록</span></a></li>
                <?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01 btn" title="답변"><i class="fa fa-reply" aria-hidden="true"></i><span class="sound_only">답변</span></a></li><?php } ?>
                <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b01 btn" title="글쓰기"><i class="fa fa-pencil" aria-hidden="true"></i><span class="sound_only">글쓰기</span></a></li><?php } ?>
                <?php if($update_href || $delete_href || $copy_href || $move_href || $search_href) { ?>
                <li>
                    <button type="button" class="btn_more_opt is_view_btn btn_b01 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>
                    <ul class="more_opt is_view_btn"> 
                        <?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>">수정<i class="fa fa-pencil-square-o" aria-hidden="true"></i></a></li><?php } ?>
                        <?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" onclick="del(this.href); return false;">삭제<i class="fa fa-trash-o" aria-hidden="true"></i></a></li><?php } ?>
                        <?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" onclick="board_move(this.href); return false;">복사<i class="fa fa-files-o" aria-hidden="true"></i></a></li><?php } ?>
                        <?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" onclick="board_move(this.href); return false;">이동<i class="fa fa-arrows" aria-hidden="true"></i></a></li><?php } ?>
                        <?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>">검색<i class="fa fa-search" aria-hidden="true"></i></a></li><?php } ?>
                    </ul> 
                </li>
                <?php } ?>
            </ul>
            <script>

            jQuery(function($){
                // 게시판 보기 버튼 옵션
                $(".btn_more_opt.is_view_btn").on("click", function(e) {
                    e.stopPropagation();
                    $(".more_opt.is_view_btn").toggle();
                })
;
                $(document).on("click", function (e) {
                    if(!$(e.target).closest('.is_view_btn').length) {
                        $(".more_opt.is_view_btn").hide();
                    }
                });
            });
            </script>
            <?php
            $link_buttons = ob_get_contents();
            ob_end_flush();
            ?>
        </div>
        <!-- } 게시물 상단 버튼 끝 -->
    </section>

    <section id="bo_v_atc">
        <h2 id="bo_v_atc_title">본문</h2>
        <div id="bo_v_share">
            <?php include_once(G5_SNS_PATH."/view.sns.skin.php"); ?>
            <?php if ($scrap_href) { ?><a href="<?php echo $scrap_href;  ?>" target="_blank" class="btn btn_b03" onclick="win_scrap(this.href); return false;"><i class="fa fa-bookmark" aria-hidden="true"></i> 스크랩</a><?php } ?>
        </div>

        <style>
        .page {width: 21cm;min-height: 29.7cm;padding: 2cm;margin: 1cm auto;border: 1px #D3D3D3 solid;border-radius: 5px;background: white;box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);}
        .subpage {padding: 1cm;border: 5px red solid;height: 256mm;outline: 2cm #FFEAEA solid;}

         {
            size: A4;
            margin: 0;
        }
        @media print {
            .page {
                margin: 0;
                border: initial;
                border-radius: initial;
                width: initial;
                min-height: initial;
                box-shadow: initial;
                background: initial;
                page-break-after: always;
            }
        }
        </style>
        <!-- 새창으로 인쇄 -->
        <script type="text/javascript">
          var win=null;
          function printIt(printThis)  {
            win = window.open('','offprint','width=900 height=1000');
            self.focus();
            win.document.open();
            win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');
            win.document.write('body, td { font-family: Verdana; font-size: 10pt;}');
            win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>');
            win.document.write(printThis);
            win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
            win.document.close();
            setTimeout(function(){
            win.print(); 
            win.close();
            }, 800);      
        }
        </script>

    <div style="float:right">
        <a href="javascript:printIt(document.getElementById('printme').innerHTML)"><span class="btn_print" title='프린트'><i class='fa fa-print fa-2x'></i></span></a><p>
    </div>

    <!-- 본문 내용 시작 { -->

    <section id="bo_v_atc">
        <h2 id="bo_v_atc_title">본문</h2>

        <!-- 본문 내용 시작 { -->
        <div id="bo_v_con">
            <div id="printme">
                <?php
                // 파일 출력
                $v_img_count = count($view['file']);
                if($v_img_count) {
                    echo "<div id=\"bo_v_img\">\n";

                    for ($i=0; $i<=count($view['file']); $i++) {
                        echo get_file_thumbnail($view['file'][$i]);
                    }

                    echo "</div>\n";
                }
                 ?>

<!-- 개인별 상담 기록지 폼-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="47" align="center" valign="top"><span style="font-weight: bold; font-size: 24px;">개인별 상담 기로지</span></td>
  </tr>
  <tr>
    <td height="81" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" style="font-weight: bold; font-size: 16px;">
      <tr>
      
        <td width="14%" height="40" align="center">관리번호</td>
        
        <!--wr_1번-->
        <td width="29%"><?php echo $view['wr_1']?></td>
        
        <td width="11%" align="center">상 담 일</td>
        
        <!--wr_2번-->
        <td width="28%"><?php echo $view['wr_2']?></td>
        
        <td width="8%" align="center">회차</td>
        
        <!--wr_3번-->
        <td width="10%"><?php echo $view['wr_3']?></td>
      </tr>
      <tr>
        <td height="40" align="center">참 여 자</td>
        
        <!--wr_4번-->
        <td height="40"><table width="213" border="0" cellspacing="0" cellpadding="0">
          <tr>
          
          
            <td width="103" height="34"><?php echo $view['wr_4']?></td>
                 
       <!--wr_5번 라디오 버튼-->
            <td width="110">
            <input type ="radio" name="wr_5" value="남자" <?php echo get_checked($view['wr_5'], '남자'); ?> required="required"/>
            남자
            <input type ="radio" name="wr_5" value="여자" <?php echo get_checked($view['wr_5'], '여자'); ?>required/>
            여자</td>
            
          </tr>
        </table></td>
        
        
        <td height="40" align="center">상담시간</td>
        
        <!--wr_6번-->
        <td height="40" colspan="3"><?php echo $view['wr_6']?></td>
        </tr>
      <tr>
        <td height="40" align="center">연락처</td>
        
        <!--wr_7번-->
        <td height="40"><?php echo $view['wr_7']?></td>
        <td height="40" align="center">상담장소</td>
        
      <!--wr_8번-->  
        <td height="40" colspan="3"><?php echo $view['wr_8']?></td>
        </tr>
        
      <tr>
        <td height="45" align="center">장애유형/<br />
          정도</td>
          
          <!--wr_9번-->
        <td height="45"><?php echo $view['wr_9']?></td>
        
        <td height="45" align="center">보장구/<br />
          고려사항</td>
          
           <!--wr_10번-->
        <td height="45" colspan="3"><?php echo $view['wr_10']?></td>
        </tr>
      <tr>
        <td height="40" align="center">상담방법</td>
        
        <!--wr_11번-->
        <td height="40" colspan="5"><input type ="radio" name="wr_11" value="본인방문(내방)" <?php echo get_checked($view['wr_11'], '본인방문(내방)'); ?> required="required"/>
본인방문(내방)

  <input type ="radio" name="wr_11" value="담당자방문" <?php echo get_checked($view['wr_11'], '담당자방문'); ?>required/> 
  담당자방문
  
  <input type ="radio" name="wr_11" value="기타" <?php echo get_checked($view['wr_11'], '기타'); ?>required/>
  
기타

<!--wr_12번-->
(<?php echo $view['wr_12']?>)</td>


      </tr>
      <tr>
        <td height="42" align="center">상담유형</td>
        <td height="42" colspan="5">
   
        <!--wr_13번-->
<input type ="radio" name="wr_13" value="심리/정서" <?php echo get_checked($view['wr_13'], '심리/정서'); ?> required="required"/>
심리/정서

  <input type ="radio" name="wr_13" value="일상생활" <?php echo get_checked($view['wr_13'], '일상생활'); ?>required/>
  일상생활
  
  <input type ="radio" name="wr_13" value="주거환경" <?php echo get_checked($view['wr_13'], '주거환경'); ?>required/> 
  주거환경
  
  <input type ="radio" name="wr_13" valu

이 질문에 댓글 쓰기 :

답변 2

답없는 질문을 올렸네요,

차가 안움직입니다. 이러면 그걸 봐줄 사람이 없습니다.

바퀴가 문제인지, 엔진이 문제인지, 전기계통인지, 

또다른 문제인지 모든걸 검사해봐야 하는데....난감하겠죠?

 

이런때는 전기계통 이부분인데 이거 좀 봐주세요

이렇게 정리해서 올리세요,

글자하나만 틀려도 안되는게 웹인데 위의 많은 코드를 누가 보겠습니까,,,,

나도 초보이지만 이렇게 질문을 올린거 같지는 않아요,

 

0.본인이 여러가지로 살펴보고 문제의 원인에 접근해 있어야 하며

1.그리고 내가 원하는거를 정확히

2.이걸 상대가 빨리 쉽게 알 수 있도록

이게 질문의 기본 요건입니다.

 

view.skin.php 기준으로

<input type ="radio" name="wr_13" value="심리/정서" <?php echo get_checked($view['wr_13'], '심리/정서'); ?> required="required"/>

이렇게 하시면 되어야 합니다.

우선 DB에 값이 있는지 확인해 보세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 123,534 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT