펼침메뉴에 선택하여 검색하는 기능을 넣고 싶어요.

펼침메뉴에 선택하여 검색하는 기능을 넣고 싶어요.

QA

펼침메뉴에 선택하여 검색하는 기능을 넣고 싶어요.

본문

게시판에서 펼침메뉴 두개 기능을 넣어서 날짜 + 이용코드를 선택하여 검색버튼 클릭하면 게시판에 나타날 수 있게 하고 싶어요.

 

1893572170_1621306237.0777.jpg

 

리스트 페이지입니다.

 

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

// 게시물 번호 1번부터 시작
$notice_count = 0;
if ($board['bo_notice']) $notice_count = $board_notice_count;
if ($notice_count)
    $list_num = (($page - 1) * $list_page_rows - $notice_count) + 1;
else
    $list_num = ($page - 1) * ($list_page_rows - $notice_count) + 1;
    

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;

if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;

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

add_stylesheet('<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">', 0);

include('tagCol1.php');
include('tagCol.php');

if($sfl==$tagCol){
    $tag = $stx;
    $stx ='';
}
if($sfl==$tagCol1){
    $tag = $stx1;
    $stx1 ='';
    
}
?>

<?
                            if($list[$i][$tagCol2]){
                                $tags = explode(',',$list[$i][$tagCol]);
                                for($k=0; $k<count($tags); $k++){
                        ?>

             <a <?if($tag == $tags[$k]){ echo'class="onTag"'; }?> href="board.php?bo_table=<?=$bo_table?>&sfl=<?=$tagCol?>&stx=<?=$tags[$k]?>"><?=$tags[$k]?>
             </a>
             <?
                            }
                        }
                        ?>
             <div id="bo_list" style="width:<?php echo $width; ?> font-size: 24px; font-weight: bold;">


  <!-- 게시판 페이지 정보 및 버튼 시작 { -->
  <div id="bo_btn_top">
    <?php if ($rss_href || $write_href) { ?>
        <ul class="btn_bo_user">
            <?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01 btn"><i class="fa fa-rss" aria-hidden="true"></i> RSS</a></li><?php } ?>
            <?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin btn"><i class="fa fa-user-circle" aria-hidden="true"></i> </a></li><?php } ?>
            <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02 btn"><i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기</a></li><?php } ?>
        </ul>
        <?php } ?>
    </div>
    <!-- } 게시판 페이지 정보 및 버튼 끝 -->

    <!-- 게시판 카테고리 시작 { -->
    <?php if ($is_category) { ?>
    <nav id="bo_cate">
        <h2><?php echo $board['bo_subject'] ?> 카테고리</h2>
        <ul id="bo_cate_ul">
            <?php echo $category_option ?>
        </ul>
    </nav>
    <?php } ?>
    <!-- } 게시판 카테고리 끝 -->

 <!-- } 게시판 카테고리 전체 삭제 시작 -->
    <script>
    // 인쇄.php
<?php
$bungiValue = $_REQUEST["bungi"]; //선택.php에서 전달한 bungi 파라메터를 $bungiValue에 받는다.
?>
<script>
    $("#분기선택").val( "<?php echo $bungiValue; ?>" ); // 인쇄.php의 분기 셀렉트 창을 자동으로 선택되게 한다.
    
  $('#bo_cate_on').css('display','none');
   </script>
    <!-- } 게시판 카테고리 전체 삭제 끝 -->

    <form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
    <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="sca" value="<?php echo $sca ?>">
    <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 ?>">
    <input type="hidden" name="sw" value="">

     <th align="center"> </th>
<!-- 인쇄 영역 부분 -->
<div id="box">
    <div class="tbl_head01 tbl_wrap">
      <table border="2" cellpadding="0" cellspacing="0">
        <caption>
        <?php echo $board['bo_subject'] ?> 목록
        </caption>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr style="
    border-top: black;
"></tr>
    </table>
      <table width="796" border="0" cellspacing="0" cellpadding="0">
        <tr></tr>
      </table>
      
<style type="text/css">
.h {
    font-weight: bold;
    color: #000;
    font-size: 36px;
}
.frm_input {
    width:47px;
    border:0px;
}
</style>
      
      <!-- 제목 시작 -->
     <div class="h" style="font-size: 36px; text-align: center">
       <table width="319" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td><span class="h" style="font-size: 36px; text-align: center"><span class="qw">동료상담 대장</span></span>(<span class="h" style="font-size: 36px; text-align: center"><span class="qw">
             <input name="wr_7" type="text" required="required" class="frm_input" id="wr_7" value="<?php echo $write['wr_4'] ?>" size="5" />○○
           </span></span>)</td>
           </tr>
     </table>
     </div>
      <!-- 제목 끝 -->
      
      <table border="1" cellpadding="0" cellspacing="0">
        <thead style="
    border-top: black;
">
          <tr></tr>
         
          <th align="center" scope="col">No</th>
            <th width="56" align="center" scope="col">월/일</th>
            <th width="51" align="center" scope="col">시간(분)</th>
            <th width="68" align="center" scope="col">이용자</th>
            <th width="42" align="center" scope="col">회차</th>
            <th width="143" align="center" scope="col">장애유형 및 장애정도</th>
            <th width="65" align="center" scope="col">상담방법</th>
            <th width="64" align="center" scope="col">상담유형</th>
            <th width="159" align="center" scope="col">상담목적</th>
            <th width="20" align="center" scope="col">지원내용</th>
            <th width="14" align="center" scope="col">진행형태</th>
            <th width="100" align="center" scope="col">이용자 코드</th>
          </tr>
        </thead>
        <tbody>
          <?php
        for ($i=0; $i<count($list); $i++) {
            //여분필드 이름 별표 표시 시작
            if (!$is_admin && $list[$i]['wr_4']) {
    $list[$i]['wr_4'] = preg_replace('/-(\d+)-/e',"'-'.str_repeat('*',strlen('\\1')).'-'",$list[$i]['wr_4']); }           
            //여분필드 이름 별표 표시 끝

            $list[$i]['num'] = $list_num + $i;
         ?>
          <tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">
            <?php if ($is_checkbox) { ?>
            <?php } ?>
            <td width="30" align="center" class="td_num2"><?php
            if ($list[$i]['is_notice']) // 공지사항
                echo '<strong class="notice_icon"><i class="fa fa-bullhorn" aria-hidden="true"></i><span class="sound_only">공지</span></strong>';
            else if ($wr_id == $list[$i]['wr_id'])
                echo "<span class=\"bo_current\">열람중</span>";
            else
                echo $list[$i]['num'];
             ?></td>
            <td align="center" class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><span class="tagInfo">
              <?
                            if($list[$i][$tagCol]){
                                $tags = explode(',',$list[$i][$tagCol1]);
                                for($k=0; $k<count($tags); $k++){
                        ?>
              <a <?if($tag == $tags[$k]){ echo'class="onTag1"'; }?> href="board.php?bo_table=<?=$bo_table?>&sfl=<?=$tagCol1?>&stx=<?=$tags[$k]?>">
              <?=$tags[$k]?>
              </a>
              <?
                            }
                        }
                        ?>
              <span class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><?php echo $list[$i]['wr_19'] ?></span>일</span></td>
            <td align="center" class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><?php echo $list[$i]['wr_5'] ?></td>
            <td align="center" class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><span class="tagInfo">
             <?php echo cut_str($list[$i]['wr_4'], 1, '○○') ?>

           </span>
           <td align="center" class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><?php echo $list[$i]['wr_3'] ?></td>
            <td align="center" class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><?php echo $list[$i]['wr_9'] ?></td>
            <td align="center" class="td_name sv_use" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><span class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><?php echo $list[$i]['wr_20'] ?></span><?php echo $list[$i]['wr_15']; ?></td>
            <td align="center" class="td_name sv_use" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><span class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><?php echo $list[$i]['wr_21'] ?></span><?php echo $list[$i]['wr_16']; ?></td>
            <td align="center" class="td_subject" style="padding-left:<?php echo $list[$i]['reply'] ? (strlen($list[$i]['wr_reply'])*10) : '0'; ?>px"><div class="bo_tit"> <a href="<?php echo $list[$i]['href'] ?>"> <?php echo $list[$i]['icon_reply'] ?>
              <?php
                            if (isset($list[$i]['icon_secret'])) echo rtrim($list[$i]['icon_secret']);
                         ?>
              <?php echo $list[$i]['subject'] ?></a>
              <?php if ($list[$i]['comment_cnt']) { ?>
              <span class="sound_only">댓글</span><span class="cnt_cmt">+ <?php echo $list[$i]['wr_comment']; ?></span><span class="sound_only">개</span>
              <?php } ?>
              </div></td>
            <td align="center" class="td_name sv_use"><?php echo $list[$i]['wr_22']; ?><?php echo $list[$i]['wr_17']; ?></td>
            <td align="center" class="td_name sv_use"><?php echo $list[$i]['wr_23']; ?><?php echo $list[$i]['wr_18']; ?></td>
            <td align="center"><span class="tagInfo">
              <?
                            if($list[$i][$tagCol]){
                                $tags = explode(',',$list[$i][$tagCol]);
                                for($k=0; $k<count($tags); $k++){
                        ?>
              <a <?if($tag == $tags[$k]){ echo'class="onTag"'; }?> href="board.php?bo_table=<?=$bo_table?>&sfl=<?=$tagCol?>&stx=<?=$tags[$k]?>">
              <?=$tags[$k]?>
              </a>
              <?
                            }
                        }
                        ?>
            </span></td>
            <?php if ($is_good) { ?>
            <?php } ?>
            <?php if ($is_nogood) { ?>
            <?php } ?>
            </tr>
          <?php } ?>
          <?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
        </tbody>
</table>
      <br />
      <p><?php echo $list[$i]['wr_1'] ?></p>
    </div>
</div>


    <?php if ($list_href || $is_checkbox || $write_href) { ?>
    <div class="bo_fx">
        <?php if ($list_href || $write_href) { ?>
        <ul class="btn_bo_user">
            <?php if ($is_checkbox) { ?>
            <li></li>
            <li></li>
            <?php } ?>
            <?php if ($list_href) { ?>
            <li><a href="<?php echo $list_href ?>" class="btn_b01 btn"><i class="fa fa-list" aria-hidden="true"></i> 목록</a></li>
            <?php } ?>
            <?php if ($write_href) { ?>
            <li><a href="<?php echo $write_href ?>" class="btn_b02 btn"><i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기</a></li>
            <?php } ?>
        </ul>
        <?php } ?>
    </div>
    <?php } ?>

<?php if($is_checkbox) { ?>
<noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript>
<?php } ?>

<!-- 페이지 -->
<?php echo $write_pages;  ?>


<?php if ($is_checkbox) { ?>
<script>
function all_checked(sw) {
    var f = document.fboardlist;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}

function fboardlist_submit(f) {
    var chk_count = 0;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }

    if (!chk_count) {
        alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }

    if(document.pressed == "선택복사") {
        select_copy("copy");
        return;
    }

    if(document.pressed == "선택이동") {
        select_copy("move");
        return;
    }

    if(document.pressed == "선택삭제") {
        if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다."))
            return false;

        f.removeAttribute("target");
        f.action = "./board_list_update.php";
    }

    return true;
}

// 선택한 게시물 복사 및 이동
function select_copy(sw) {
    var f = document.fboardlist;

    if (sw == "copy")
        str = "복사";
    else
        str = "이동";

    var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<?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; ?> font-weight: bold font-weight: bold font-weight: bold font-weight: bold font-weight: bold font-weight: bold">
    <header>
        <h2 id="bo_v_title">
            <?php if ($category_name) { ?>
            <span class="bo_v_cate"><?php echo $view['ca_name']; // 분류 출력 끝 ?></span> 
            <?php } ?>
        </h2>
    </header>

    <!-- 새창으로 인쇄 -->
    <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();
        win.print();
        win.close();
      }
    </script>

    <div style="float:right">
        <a href="javascript:printIt(document.getElementById('printme').innerHTML)"><span class="btn_print" title='출력하기'>출력하기<i class='fa fa-print'></i></span></a><p>
    </div>

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

    <section id="bo_v_atc">
        <h2 id="bo_v_atc_title">본문</h2>
        <div id="printme"><!-- 본문 내용 시작 { -->
          <div id="bo_v_con">
            <table width="748" border="0" cellspacing="0" cellpadding="0">
              <tr>                                              <!-- 동료상담 기록지 제목 이미지 -->
                <td height="43" align="center"><div class="aa"></div></td>
              </tr>
              <tr>
                <td height="19" align="center"><span class="aa"><img src=<?php echo G5_IMG_URL ?>/aa.gif width="253" height="34" /></span></td>
              </tr>
              <tr>
                <td height="3" align="center"><img src="<?php echo G5_IMG_URL ?>/aa2.gif" width="100" height="3" /></td>
              </tr>
              <tr>
              <!-- 동료상담 기록지 옵션기능 시작(1) -->
                <td><table width="855" border="1" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="87" height="35" align="center">접수번호</td>
                    <td width="278" height="35"> <?php echo $view['wr_7'] ?></td>
                    <td width="78" align="center">상 담 일</td>
                    <td width="259"> <?php echo $view['wr_8'] ?><span style="font-size: 17px; font-family: '바탕체';"><?php echo $view['wr_19'] ?>일</span></td>
                    <td width="44" align="center">회차</td>
                    <td width="95" align="center"><?php echo $view['wr_3'] ?></td>
                  </tr>
                  <tr>
                    <td height="35" align="center">내담자</td>
                    <td height="35"><table width="265" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="108"> <?php echo $view['wr_4'] ?></td>
                        <td width="31" align="center">성별</td>
                        <td width="126"><?php $check1 = explode(",", $view['wr_1']);?>
                          <input type="checkbox" name="check1[]" value="남자"<?php echo in_array("남자", $check1) ? ' checked="checked"' : '' ?> />
남자
<input type="checkbox" name="check1[]2" value="여자"<?php echo in_array("여자", $check1) ? ' checked="checked"' : '' ?> />
여자</td>
                      </tr>
                      </table></td>
                    <td height="35" align="center">상담시간</td>
                    <td height="35" colspan="3"> <?php echo $view['wr_5'] ?></td>
                  </tr>
                  <tr>
                    <td height="35" align="center">연락처☎</td>
                    <td height="35"> <?php echo $view['wr_6'] ?></td>
                    <td height="35" align="center">상담장소</td>
                    <td height="35" colspan="3"> <?php echo $view['wr_11'] ?></td>
                  </tr>
                  <tr>
                    <td height="35" align="center"><p>장애유형 및<br />
                      장애정도</p></td>
                    <td height="35"> <?php echo $view['wr_9'] ?></td>
                    <td height="35" align="center">보장구/<br />
                      고려사항</td>
                    <td height="35" colspan="3"> <?php echo $view['wr_12'] ?></td>
                  </tr>
                  <tr>
                    <td height="35" align="center">상담방법</td>
                    <td height="35" colspan="5"> 
                      <?php $check2 = explode(",", $view['wr_20']);?>
                      <input type="checkbox" name="check2[]" value="본인방문(내방)"<?php echo in_array("본인방문(내방)", $check2) ? ' checked="checked"' : '' ?> />
본인방문(내방)
<input type="checkbox" name="check2[]" value="내담자방문"<?php echo in_array("내담자방문", $check2) ? ' checked="checked"' : '' ?> />
내담자방문
<input type="checkbox" name="check2[]" value="전화"<?php echo in_array("전화", $check2) ? ' checked="checked"' : '' ?> />
전화
<input type="checkbox" name="check2[]" value="팩스/문자"<?php echo in_array("팩스/문자", $check2) ? ' checked="checked"' : '' ?> />
팩스/문자
<input type="checkbox" name="check2[]" value="온라인"<?php echo in_array("온라인", $check2) ? ' checked="checked"' : '' ?> />
온라인
<input type="checkbox" name="check2[]" value="기타"<?php echo in_array("기타", $check2) ? ' checked="checked"' : '' ?> />
기타
(<?php echo $view['wr_15'] ?>)</td>
                  </tr>
                  <tr>
                    <td height="35" align="center">상담유형</td>
                    <td height="35" colspan="5"> <?php $check3 = explode(",", $write['wr_21']);?>
                      <input type="checkbox" name="check3[]" value="종합"<?php echo in_array("종합", $check3) ? ' checked="checked"' : '' ?> />
종합
<input type="checkbox" name="check3[]" value="심리/정서"<?php echo in_array("심리/정서", $check3) ? ' checked="checked"' : '' ?> />
심리/정서
<input type="checkbox" name="check3[]" value="사회적관계"<?php echo in_array("사회적관계", $check3) ? ' checked="checked"' : '' ?> />
사회적관계
<input type="checkbox" name="check3[]" value="일상생활"<?php echo in_array("일상생활", $check3) ? ' checked="checked"' : '' ?> />
일상생활
<input type="checkbox" name="check3[]" value="건강관리"<?php echo in_array("건강관리", $check3) ? ' checked="checked"' : '' ?> />
건강관리
<input type="checkbox" name="check3[]" value="경제적"<?php echo in_array("경제적", $check3) ? ' checked="checked"' : '' ?> />
경제적
<input type="checkbox" name="check3[]" value="환경적"<?php echo in_array("환경적", $check3) ? ' checked="checked"' : '' ?> />
환경적
<input type="checkbox" name="check3[]" value="목표싱행정도"<?php echo in_array("목표실행정도", $check3) ? ' checked="checked"' : '' ?> />
목표실행정도
<input type="checkbox" name="check3[]" value="기타"<?php echo in_array("기타", $check3) ? ' checked="checked"' : '' ?> />
기타
(<?php echo $view['wr_16'] ?>)</td>
                  </tr>
                  <tr>
                    <td height="35" align="center">상담목적</td>
                    <td height="35" colspan="5"> <?php
            echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
            ?></td>
                  </tr>
                  <tr>
                    <td height="131" rowspan="3" align="center">상담<br />
                      내용/<br />
                      생활패턴</td>
                    <td height="19" colspan="5" valign="top"><table width="100%" border="1" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="18%" height="31" align="center">관련자/속소</td>
                        <td width="31%"> <?php echo $view['wr_13'] ?></td>
                        <td width="17%" align="center">연락처</td>
                        <td width="34%"> <?php echo $view['wr_14'] ?></td>
                      </tr>
                      </table></td>
                  </tr>
                  <tr>
                    <td height="30" colspan="5" valign="top"><table width="757" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="10" rowspan="3"> </td>
                          <td width="747">※ 전 회차 상담내용을 간략하게 작성</td>
                        </tr>
                        <tr>
                          <td> </td>
                        </tr>
                        <tr>
                          <td><?php echo $view['wr_2'] ?></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="543" colspan="5" valign="top">  ※ 지난 상담 이후 변화에 관한 탐색과 변화노력을 인정, 지지, 격려
                    
                   <table width="756" border="0" cellspacing="0" cellpadding="0">
                     <tr>
                       <td width="10" rowspan="2"> </td>
                       <td width="746"> </td>
                      </tr>
                     <tr>
                       <td style="font-size: 17px; font-family: '바탕체';"><?php echo get_view_thumbnail($view['content']); ?></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="49" align="center">상담가<br />
                      의견</td>
                    <td height="49" colspan="5"> <?php echo $view['wr_10'] ?></td>
                  </tr>
                  <tr>
                    <td height="35" align="center">지원내용</td>
                    <td height="35" colspan="5"> 
                      <?php $check4 = explode(",", $write['wr_22']);?>
                      <input type="checkbox" name="check4[]" value="권익옹호"<?php echo in_array("권익옹호", $check4) ? ' checked="checked"' : '' ?> />
권익옹호
<input type="checkbox" name="check4[]" value="정보제공"<?php echo in_array("정보제공", $check4) ? ' checked="checked"' : '' ?> />
정보제공
<input type="checkbox" name="check4[]" value="기관연계"<?php echo in_array("기관연계", $check4) ? ' checked="checked"' : '' ?> />
기관연계
<input type="checkbox" name="check4[]" value="관련자 상담"<?php echo in_array("관련자 상담", $check4) ? ' checked="checked"' : '' ?> />
관련자 상담
<input type="checkbox" name="check4[]" value="심리/정서"<?php echo in_array("심리/정서", $check4) ? ' checked="checked"' : '' ?> />
심리/정서
<input type="checkbox" name="check4[]" value="기타"<?php echo in_array("기타", $check4) ? ' checked="checked"' : '' ?> />
기타
(<?php echo $view['wr_17'] ?>)</td>
                  </tr>
                  <tr>
                    <td height="35" align="center">진행상태</td>
                    <td height="35" colspan="5">  
                      <?php $check5 = explode(",", $write['wr_23']);?>
                      <input type="checkbox" name="check5[]" value="접수"<?php echo in_array("접수", $check5) ? ' checked="checked"' : '' ?> />
접수
<input type="checkbox" name="check5[]" value="진행중"<?php echo in_array("진행중", $check5) ? ' checked="checked"' : '' ?> />
진행중
<input type="checkbox" name="check5[]" value="미처리"<?php echo in_array("미처리", $check5) ? ' checked="checked"' : '' ?> />
미처리
<input type="checkbox" name="check5[]" value="타기관의뢰"<?php echo in_array("타기관의뢰", $check5) ? ' checked="checked"' : '' ?> />
타기관의뢰
<input type="checkbox" name="check5[]" value="종료"<?php echo in_array("종료", $check5) ? ' checked="checked"' : '' ?> />
종료
<input type="checkbox" name="check5[]" value="사후관리"<?php echo in_array("사후관리", $check5) ? ' checked="checked"' : '' ?> />
사후관리
<input type="checkbox" name="check5[]" value="기타"<?php echo in_array("기타", $check5) ? ' checked="checked"' : '' ?> />
기타(<?php echo $view['wr_18'] ?>)</td>
                  </tr>
                  <tr>
                    <td height="44" align="center">상담가</td>
                    <td height="44"><table width="276" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="245"><strong> <?php echo $view['name'] ?></strong></td>
                        <td width="31" align="right">(인)</td>
                      </tr>
                      </table></td>
                    <td height="44" align="center">수퍼<br />
                      바이저</td>
                    <td height="44" colspan="3"><table width="396" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="369"> 최진기</td>
                        <td width="27" align="right">(인)</td>
                      </tr>
                      </table></td>
                  </tr>
                </table></td>
              </tr>
              <tr></tr>
              <tr></tr>
              <tr>                  <!-- 기관이름 이미지 -->
                <td align="center"><img src="<?php echo G5_IMG_URL ?>/aa3.gif" width="595" height="54" /></td>
              </tr>
            </table>
          </div>
          <!-- } 본문 내용 끝 -->
      </div><p> </p>


        <!--  추천 비추천 시작 { -->
        <?php if ( $good_href || $nogood_href) { ?>
        <div id="bo_v_act">
            <?php if ($good_href) { ?>
            <span class="bo_v_act_gng">
                <a href="<?php echo $good_href.'../&'.$qstr ?>" id="good_button" class="bo_v_good"><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></a>
                <b id="bo_v_act_good"></b>
            </span>
            <?php } ?>
            <?php if ($nogood_href) { ?>
            <span class="bo_v_act_gng">
                <a href="<?php echo $nogood_href.'../&'.$qstr ?>" id="nogood_button" class="bo_v_nogood"><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
                <b id="bo_v_act_nogood"></b>
            </span>
            <?php } ?>
        </div>
        <?php } else {
            if($board['bo_use_good'] || $board['bo_use_nogood']) {
        ?>
        <div id="bo_v_act">
            <?php if($board['bo_use_good']) { ?><span class="bo_v_good"><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
            <?php if($board['bo_use_nogood']) { ?><span class="bo_v_nogood"><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
        </div>
        <?php
            }
        }
        ?>
        <!-- }  추천 비추천 끝 -->
    </section>

    <div id="bo_v_share">
        <?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-thumb-tack" aria-hidden="true"></i> 스크랩</a><?php } ?>

        <?php
        include_once(G5_SNS_PATH."/view.sns.skin.php");
        ?>
    </div>

    <?php
    $cnt = 0;
    if ($view['file']['count']) {
        for ($i=0; $i<count($view['file']); $i++) {
            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
                $cnt++;
        }
    }
     ?>

    <?php if($cnt) { ?>
    <!-- 첨부파일 시작 { -->
    <section id="bo_v_file">
        <h2>첨부파일</h2>
        <ul>
        <?php
        // 가변 파일
        for ($i=0; $i<count($view['file']); $i++) {
            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
         ?>
            <li>
                <i class="fa fa-download" aria-hidden="true"></i>
                <

이 질문에 댓글 쓰기 :

답변 2

이용자 코드 정도는

간단하게 해결할 수 있는데

조건 두 개를 처리하는 건 좀 복잡하네요.

이용자 코드가 wr_1에 있다고 가정하면

/bbs/board.php?bo_table=doro&sfl=wr_1&stx=어떤코드

 

사용자 코드는 따로 있는 리스트가 아닌 듯하니

select distinct wr_1 from g5_write_doro

이렇게 해서 나온 것 가지고 <select를 만드시면 됩니다.

 

조건 두 개를 처리하는 건

/lib/common.lib.php에서
function get_sql_search($search_ca_name, $search_field, $search_text, $search_operator='and')
이 함수를 적절히 변경해야 합니다.

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

회원로그인

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