테스트 사이트 - 개발 중인 베타 버전입니다

검색시 열람중 문제

myloss 8년 전 조회 2,989

리스트는 잘 나오는데 검색 기능만 사용하면 num 부분에 열람중이 나옵니다

열람중 부분을 주석 처리 해 보았는데 검색이 되지 않네요..

고수님들의 답변 부탁드립니다.

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

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

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); ?>

신청확인 목록

    게시물 검색

   

                                       

           

       

       

               

               
  • RSS
  •                                    

           
   

   

                                   

   

                                                                                                                       

          

         

">                                                                                     '; } ?>                
목록
번 호                                             신청자명
            공지';             else if ($wr_id == $list[$i]['wr_id'])                 echo "열람중";             else                 echo $list[$i]['num'];              ?>                                                                                                        

       

                    ()                  

신청자명으로 검색해 주세요 검색된 신청자가 없습니다.
   

       

                  
               
  •            
  •            
  •        
          

               

               

           
       

자바스크립트를 사용하지 않는 경우 별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

미스터S
8년 전

</p><p><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"> <?php</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">            if ($list[$i]['is_notice']) // 공지사항</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">                echo '<strong>공지</strong>';</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">            else if ($wr_id == $list[$i]['wr_id'])</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">                echo "<span class=\"bo_current\">열람중</span>";</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">            else</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">                echo $list[$i]['num'];</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">             ?></span> </p><p><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">

위 코드에서 나오는 문제인데

</span></p><p><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><?php</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">if ($list[$i]['is_notice']) {// 공지사항 일 경우 출력</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">   echo '<strong>공지</strong>';</span></p><p>}<br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">else if ($wr_id == $list[$i]['wr_id']) { // &wr_id= 의 숫자값과 현재 게시물이 같을 경우 출력</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">   echo "<span class=\"bo_current\">열람중</span>";</span></p><p>}<br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">else { // 위 둘다 아니면 그냥 리스트상에서 숫자값을 부여</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">   echo $list[$i]['num'];</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">}</span></p><p><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">?></span><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"> </span></p><p><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">

코드는 정상입니다.

열람중만 안나오게 하고 싶으신 거라면 아래와 같이 변경해보세요

</span></p><p style="font-size: 14.6667px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><?php</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">if ($list[$i]['is_notice']) {// 공지사항 일 경우 출력</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">   echo '<strong>공지</strong>';</span></p><p style="font-size: 14.6667px;">}</p><p style="font-size: 14.6667px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">else { // 위 둘다 아니면 그냥 리스트상에서 숫자값을 부여</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">   echo $list[$i]['num'];</span><br style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">}</span></p><p style="font-size: 14.6667px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">?></span><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;"> </span></p><p style="font-size: 14.6667px;"><span style="color: rgb(72, 72, 72); font-family: Arial, 돋움, Dotum; font-size: 14.004px;">

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인