급해요.ㅠ 간단한건데;;display:none > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

급해요.ㅠ 간단한건데;;display:none 정보

급해요.ㅠ 간단한건데;;display:none

본문

수정중인 소스인데 소스가 이해가 안되요;ㅠㅠㅠ 고수님들 부탁드려요 설명좀;;;

<td align="right" style="background-color:transparent; padding-right:5px"><a href='javascript:;' onclick="menu('show')" style="color:#F00">▼  펼쳐보기</a> /
                                                           
                                                         
                                                            <a href="aaa.php?type=<?=$type?>&chk="  >전체선택</a> / <a href="a.php?type=<?=$type?>&chk=DEL" >전체해제</a></td>

테이블 id="show" style = "display:none;"


자바스크립
    var last_id = null;
    function menu(id)
    {
        if (id != last_id)
        {
            if (last_id != null)
                document.getElementById(last_id).style.display = "none";
            document.getElementById(id).style.display = "block";
            last_id = id;

        }
        else
        {
            document.getElementById(id).style.display = "none";
            last_id = null;

        }
    }


이상태인데 펼쳐보기를 하면 펼쳐는 지는데 안에있는 내용을 전체선택하거나 전체해제를하면 펼쳐보기가 사라져요;;;
자바 소스를 이해가 잘안되서요;;;

결론적으로 전체 선택하거나 전체해재시에도 펼쳐보기가 있어야 되고 펼쳐보기 닫기하면 그냥 닫아지게만하고싶은데 계속 전체선택이나 해제를 해도 펼쳐지지 않네요.ㅠㅠㅠ

고수님들 부탁드릴꼐요.ㅠㅠㅠ
  • 복사

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '281184' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php