view화면 전체목록보이기 하면.... 정보
view화면 전체목록보이기 하면....본문
view 화면에서 전체목록 보이기 하면 밑에 리스트 나오잖아요.
리스트에서 "1,2,3....이나 다음 버튼" 클릭하면 왜 view 화면이 사라지는 걸까요?
없어지지 않게 하는법좀 알려주세요.
리스트에서 "1,2,3....이나 다음 버튼" 클릭하면 왜 view 화면이 사라지는 걸까요?
없어지지 않게 하는법좀 알려주세요.
댓글 전체
현재 보시는 게시판으로 설명 드리겠습니다.
현재 주소
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=135605&sca=&sfl=&stx=&spt=0
2 페이지 클릭 한 후 주소
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&sca=&sfl=&stx=&spt=0&page=2
wr_id 값을 페이지 이동 링크에 추가 해서 같이 넘겨 주시면 됩니다.
2페이지 클릭 예
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&sca=&sfl=&stx=&spt=0&page=2&wr_id=135605
현재 주소
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=135605&sca=&sfl=&stx=&spt=0
2 페이지 클릭 한 후 주소
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&sca=&sfl=&stx=&spt=0&page=2
wr_id 값을 페이지 이동 링크에 추가 해서 같이 넘겨 주시면 됩니다.
2페이지 클릭 예
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&sca=&sfl=&stx=&spt=0&page=2&wr_id=135605
조금 어려운데요.. 쉽게 말씀해주시면 감사하겠습니다.
<?
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; color:#999999; font-size:9pt; \">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#A88A31;\">$1</font></b>", $write_pages);
?>
여기에서 수정은 안되나요??
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; color:#999999; font-size:9pt; \">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#A88A31;\">$1</font></b>", $write_pages);
?>
여기에서 수정은 안되나요??
<? if (!$wr_id) { ?>
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]);
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";
$row1 = sql_fetch($sql1);
$str .= "<td><a href='./board.php?bo_table=$bo_table&page=$page&mode=$mode&sca=$arr[$i]'>$arr[$i] ($row1[cCount])</a> <font color='#838383'>|</font> </td>";
if ($cnt == 5) { $cnt = 1; $str .= ""; }
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>
<? } ?>
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]);
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";
$row1 = sql_fetch($sql1);
$str .= "<td><a href='./board.php?bo_table=$bo_table&page=$page&mode=$mode&sca=$arr[$i]'>$arr[$i] ($row1[cCount])</a> <font color='#838383'>|</font> </td>";
if ($cnt == 5) { $cnt = 1; $str .= ""; }
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>
<? } ?>
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td height="10" ></td >
</tr>
<tr>
<? for ($i=0; $i<count($list); $i++) {
// Thumbnail
$image = urlencode($list[$i][file][0][file]);
$ori="$g4[path]/data/file/$bo_table/" . $image;
$ext = strtolower(substr(strrchr($ori,"."), 1)); //?
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { // [ 2JPG, 2JPEG, 3PNG ] .
$thum = $ori."" ;
if ( file_exists($thum) ) { // Thumbnail [O]
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
} else { // Thumbnail [X]
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { // [ 1GIF,6BMP,7TIF ] .
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
$thum = $ori ;
}
} else { // [ 1,2,3,6,7 ] ? .
$thum = $noIMG ;
}
?>
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td height="10" ></td >
</tr>
<tr>
<? for ($i=0; $i<count($list); $i++) {
// Thumbnail
$image = urlencode($list[$i][file][0][file]);
$ori="$g4[path]/data/file/$bo_table/" . $image;
$ext = strtolower(substr(strrchr($ori,"."), 1)); //?
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { // [ 2JPG, 2JPEG, 3PNG ] .
$thum = $ori."" ;
if ( file_exists($thum) ) { // Thumbnail [O]
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
} else { // Thumbnail [X]
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { // [ 1GIF,6BMP,7TIF ] .
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
$thum = $ori ;
}
} else { // [ 1,2,3,6,7 ] ? .
$thum = $noIMG ;
}
?>
위에서 어디부분을 수정하면 될런지요..
/bbs/list.php 124Line에 추가 해 보세요
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page="&wr_id=".$wr_id.");
안돼시면 다시 글 주세요~확인을 자주 못해서 죄송합니다.
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page="&wr_id=".$wr_id.");
안돼시면 다시 글 주세요~확인을 자주 못해서 죄송합니다.
Parse error: syntax error, unexpected '=' in /home1/yoturn/html/bbs/list.php on line 124
이렇게 떠요...
이렇게 떠요...
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&wr_id=".$wr_id."&page=");
따옴표 때문이네요 자리를 바꿔 주세요 ^^
따옴표 때문이네요 자리를 바꿔 주세요 ^^
너무 잘 됩니다. 감사합니다!!!