저희 조회수관리스킨 사용하시는 분들께서 필수로 보세요.
금방 저희 스킨을 체크해본 결과 게시판별로 보기에서 약간 불편한 점이 있더군요.
그리하여 수정작업을 진행하고 여기로 알려드리고저 합니다.
저희 스킨에서 new_hit_list.php 파일을 열고
13라인에서
--수정전--
<script language="JavaScript">
var list_update_php = 'new_hit_update.php';
</script>
--수정후--
<script language="JavaScript">
function gr_select(){
location.href='new_hit_list.php?gr_id='+document.fnew.gr_id.value;
}
function bo_select(){
location.href='new_hit_list.php?gr_id=<?=$gr_id?>&bo_table='+document.fnew.bo_table.value;
}
var list_update_php = 'new_hit_update.php';
</script>
그리고 53라인에서
--수정전--
$group_select = "<select name=gr_id id=gr_id onchange='select_change();'><option value=''>전체그룹";
--수정후--
$group_select = "<select name='gr_id' id='gr_id' onchange='gr_select();'><option value=''>전체그룹";
그리고 62라인에서
--수정전--
$board_select = "<select name=bo_table id=bo_table onchange='select_change();'><option value=''>전체게시판";
--수정후--
$board_select = "<select name='bo_table' id='bo_table' onchange='bo_select();'><option value=''>게시판선택";
마지막으로 63라인에서
--수정전--
$sql = " select bo_table, bo_subject from $g4[board_table] order by bo_table";
--수정후--
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id='$gr_id' order by bo_table";
로 변경해주시면 게시판별로 보기가 작동이 잘 됩니다.
그리하여 수정작업을 진행하고 여기로 알려드리고저 합니다.
저희 스킨에서 new_hit_list.php 파일을 열고
13라인에서
--수정전--
<script language="JavaScript">
var list_update_php = 'new_hit_update.php';
</script>
--수정후--
<script language="JavaScript">
function gr_select(){
location.href='new_hit_list.php?gr_id='+document.fnew.gr_id.value;
}
function bo_select(){
location.href='new_hit_list.php?gr_id=<?=$gr_id?>&bo_table='+document.fnew.bo_table.value;
}
var list_update_php = 'new_hit_update.php';
</script>
그리고 53라인에서
--수정전--
$group_select = "<select name=gr_id id=gr_id onchange='select_change();'><option value=''>전체그룹";
--수정후--
$group_select = "<select name='gr_id' id='gr_id' onchange='gr_select();'><option value=''>전체그룹";
그리고 62라인에서
--수정전--
$board_select = "<select name=bo_table id=bo_table onchange='select_change();'><option value=''>전체게시판";
--수정후--
$board_select = "<select name='bo_table' id='bo_table' onchange='bo_select();'><option value=''>게시판선택";
마지막으로 63라인에서
--수정전--
$sql = " select bo_table, bo_subject from $g4[board_table] order by bo_table";
--수정후--
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id='$gr_id' order by bo_table";
로 변경해주시면 게시판별로 보기가 작동이 잘 됩니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 9개
new_list_update.php 가 아니라 new_hit_update.php 입니다.
그룹선택하고 게시물 선택하면 게시물이 안나옵니다. 왜그런지요?
게시물갯수를 선택해도 안나옵니다. ???
날짜도 수정 할 수 있었으면 좋겠습니다.
근데 새로 추가된 게시물은 잘 나오는데,
이전 게시물은 하나도 나오지 않습니다.
어디를 손봐야 하나요???