게시판 하단 페이지 나오는 부분에서 엑박 정보
게시판 하단 페이지 나오는 부분에서 엑박본문
게시판 하단 페이지 나오는 부분에서 엑박이 나옵니다.
소스를 건드리지 않았는데 왜그런지 모르겠네요.... ㅠㅠ
오류 주소 : http://cafe3.ktdom.com/thailove/onuri/bbs/board.php?bo_table=airpass&page=11
[common.lib.php]
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
/*function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
{
$str = "";
if ($cur_page > 1) {
$str .= "<a href='" . $url . "1{$add}'>처음</a>";
//$str .= "[<a href='" . $url . ($cur_page-1) . "'>이전</a>]";
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1) $str .= " <a href='" . $url . ($start_page-1) . "{$add}'>이전</a>";
if ($total_page > 1) {
for ($k=$start_page;$k<=$end_page;$k++) {
if ($cur_page != $k)
$str .= " <a href='$url$k{$add}'><span>$k</span></a>";
else
$str .= " <b>$k</b> ";
}
}
if ($total_page > $end_page) $str .= " <a href='" . $url . ($end_page+1) . "{$add}'>다음</a>";
if ($cur_page < $total_page) {
//$str .= "[<a href='$url" . ($cur_page+1) . "'>다음</a>]";
$str .= " <a href='$url$total_page{$add}'>맨끝</a>";
}
$str .= "";
return $str;
}*/
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
function get_paging($write_pages, $cur_page, $total_page, $url)
{
$str = "<TABLE cellSpacing=0 cellPadding=0 align=center><TR>";
if ($cur_page > 1) {
$str .= "";
//$str .= "[<a href='" . $url . ($cur_page-1) . "'>이전</a>]";
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1)
$str .= "<td width=45 align=center valign=bottom><a href='" . $url . ($start_page-1) . "'><img src={$g4[path]}/img/page_next.gif border=0 align=absmiddle><span style='font-size:8pt;'> 이전</span></a></td>";
if ($total_page > 1)
$str .= "<TD width=1 height=16 bgColor=#D5D5D5></TD>";
if ($total_page > 1)
for ($k=$start_page;$k<=$end_page;$k++)
if ($cur_page != $k)
$str .= "<td width=24 align=center onmouseover=\"this.style.background='#F7F7F7'\" style=\"CURSOR: hand\" onmouseout=\"this.style.background=''\" onclick=\"location.href='$url$k'\" valign=bottom><FONT color='#000000'><span style='font-size:8pt;'>$k</span></font></td><TD width=1 bgColor=#D5D5D5></TD>";
else
$str .= "<td width=24 align=center valign=bottom><FONT color=f98217><span style='font-size:8pt;'>$k</span></font></td><TD width=1 bgColor=#D5D5D5></TD>";
if ($total_page > $end_page)
$str .= "<td width=45 align=center valign=bottom><a href='" . $url . ($end_page+1) . "'><span style='font-size:8pt;'>다음 </span><img src={$g4[path]}/img/page_prev.gif border=0 align=absmiddle></a></td>";
if ($cur_page < $total_page) {
//$str .= "[<a href='$url" . ($cur_page+1) . "'>다음</a>]";
$str .= "";
}
$str .= "</TR></TABLE>";
return $str;
}
[list.skin.php]
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class=mw_basic_page>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
echo $write_pages;
?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
소스를 건드리지 않았는데 왜그런지 모르겠네요.... ㅠㅠ
오류 주소 : http://cafe3.ktdom.com/thailove/onuri/bbs/board.php?bo_table=airpass&page=11
[common.lib.php]
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
/*function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
{
$str = "";
if ($cur_page > 1) {
$str .= "<a href='" . $url . "1{$add}'>처음</a>";
//$str .= "[<a href='" . $url . ($cur_page-1) . "'>이전</a>]";
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1) $str .= " <a href='" . $url . ($start_page-1) . "{$add}'>이전</a>";
if ($total_page > 1) {
for ($k=$start_page;$k<=$end_page;$k++) {
if ($cur_page != $k)
$str .= " <a href='$url$k{$add}'><span>$k</span></a>";
else
$str .= " <b>$k</b> ";
}
}
if ($total_page > $end_page) $str .= " <a href='" . $url . ($end_page+1) . "{$add}'>다음</a>";
if ($cur_page < $total_page) {
//$str .= "[<a href='$url" . ($cur_page+1) . "'>다음</a>]";
$str .= " <a href='$url$total_page{$add}'>맨끝</a>";
}
$str .= "";
return $str;
}*/
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
function get_paging($write_pages, $cur_page, $total_page, $url)
{
$str = "<TABLE cellSpacing=0 cellPadding=0 align=center><TR>";
if ($cur_page > 1) {
$str .= "";
//$str .= "[<a href='" . $url . ($cur_page-1) . "'>이전</a>]";
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1)
$str .= "<td width=45 align=center valign=bottom><a href='" . $url . ($start_page-1) . "'><img src={$g4[path]}/img/page_next.gif border=0 align=absmiddle><span style='font-size:8pt;'> 이전</span></a></td>";
if ($total_page > 1)
$str .= "<TD width=1 height=16 bgColor=#D5D5D5></TD>";
if ($total_page > 1)
for ($k=$start_page;$k<=$end_page;$k++)
if ($cur_page != $k)
$str .= "<td width=24 align=center onmouseover=\"this.style.background='#F7F7F7'\" style=\"CURSOR: hand\" onmouseout=\"this.style.background=''\" onclick=\"location.href='$url$k'\" valign=bottom><FONT color='#000000'><span style='font-size:8pt;'>$k</span></font></td><TD width=1 bgColor=#D5D5D5></TD>";
else
$str .= "<td width=24 align=center valign=bottom><FONT color=f98217><span style='font-size:8pt;'>$k</span></font></td><TD width=1 bgColor=#D5D5D5></TD>";
if ($total_page > $end_page)
$str .= "<td width=45 align=center valign=bottom><a href='" . $url . ($end_page+1) . "'><span style='font-size:8pt;'>다음 </span><img src={$g4[path]}/img/page_prev.gif border=0 align=absmiddle></a></td>";
if ($cur_page < $total_page) {
//$str .= "[<a href='$url" . ($cur_page+1) . "'>다음</a>]";
$str .= "";
}
$str .= "</TR></TABLE>";
return $str;
}
[list.skin.php]
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class=mw_basic_page>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
echo $write_pages;
?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
댓글 전체

img 폴더 안에 page_prev.gif 나 page_next.gif 파일이 없는건 아닌지......
있어요 ㅠㅠ

get_paging 을 수정하셨군요.....
아래로 바꿔보세요...
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
{
$str = "";
if ($cur_page > 1) {
$str .= "<a href='" . $url . "1{$add}'>처음</a>";
//$str .= "[<a href='" . $url . ($cur_page-1) . "'>이전</a>]";
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1) $str .= " <a href='" . $url . ($start_page-1) . "{$add}'>이전</a>";
if ($total_page > 1) {
for ($k=$start_page;$k<=$end_page;$k++) {
if ($cur_page != $k)
$str .= " <a href='$url$k{$add}'><span>$k</span></a>";
else
$str .= " <b>$k</b> ";
}
}
if ($total_page > $end_page) $str .= " <a href='" . $url . ($end_page+1) . "{$add}'>다음</a>";
if ($cur_page < $total_page) {
//$str .= "[<a href='$url" . ($cur_page+1) . "'>다음</a>]";
$str .= " <a href='$url$total_page{$add}'>맨끝</a>";
}
$str .= "";
return $str;
}
아래로 바꿔보세요...
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
{
$str = "";
if ($cur_page > 1) {
$str .= "<a href='" . $url . "1{$add}'>처음</a>";
//$str .= "[<a href='" . $url . ($cur_page-1) . "'>이전</a>]";
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1) $str .= " <a href='" . $url . ($start_page-1) . "{$add}'>이전</a>";
if ($total_page > 1) {
for ($k=$start_page;$k<=$end_page;$k++) {
if ($cur_page != $k)
$str .= " <a href='$url$k{$add}'><span>$k</span></a>";
else
$str .= " <b>$k</b> ";
}
}
if ($total_page > $end_page) $str .= " <a href='" . $url . ($end_page+1) . "{$add}'>다음</a>";
if ($cur_page < $total_page) {
//$str .= "[<a href='$url" . ($cur_page+1) . "'>다음</a>]";
$str .= " <a href='$url$total_page{$add}'>맨끝</a>";
}
$str .= "";
return $str;
}
오누리에서 잘못 수정한듯 하네요.
감사합니다~ ^^
감사합니다~ ^^