하단 페이징 이미지가 안보여요.T.T > 그누4 질문답변

그누4 질문답변

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

하단 페이징 이미지가 안보여요.T.T 정보

하단 페이징 이미지가 안보여요.T.T

본문

이미지 출력을 10개씩 보이게 만든건데
하단 페이징 보기 1l2l3l4l5
이 부분이 1페이지만 보이고 2페이지 누르면 2페이지 화면만 나오고 이미지는 안보이내여
소스가 어디가 잘못된건지?


<?
include_once("./_common.php");

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//include_once("$g4[path]/_head.php");
include_once("../../../../head.html");
 
////////////////basic cf control///////////
$g4[g4_board_file] = "g4_board_file"; 
$one_rows = "10";  // 이미지 출력수량
$width_o = "283"; //이미지 가로값
$height_o = "158"; //이미지 세로값
$cols  = "4"; //  이미지 가로갯수
$image_h  = "17"; // 이미지 상하 간격

//jpg, jpeg, gif, png 파일만 검색한다.
$one_like  = " ( bf_file LIKE '%jpg' or bf_file LIKE '%jpeg' or bf_file LIKE '%gif' or bf_file LIKE '%png') ";
$memberis = " and mb_idx = '$mbidx' and bf_no = '0' ";

$one_count_sql = " select count(*) as cnt from $g4[g4_board_file] where $one_like $memberis ";
$row = sql_fetch($one_count_sql);
$total_count = $row[cnt];
$total_page  = ceil($total_count / $one_rows);  // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $one_rows; // 시작 열을 구함
$to_record = $from_record + $one_rows ;
     
$one_sql      = " select * from $g4[g4_board_file] where $one_like $memberis order by bf_datetime desc limit $from_record, $one_rows  ";
$one_result      = sql_query($one_sql);
?>
<style type="text/css">
<!--
A:link, A:visited, A:active {COLOR: #444444; TEXT-DECORATION: none}
A:hover {COLOR: #1200C3; TEXT-DECORATION: none}
.test_01 { color:#898989; }
.box_line img { border-top: 1 solid #ddd; border-left: 1 solid #ddd; border-right: 1 solid #ddd }

-->
</style>

<!-----------기간별 출력시작--------->


<table width=100% cellpadding=0 cellspacing=0>
<tr><td height="4"></td></tr>
<tr><td align=left><font style="font-size:9pt;">&nbsp;<b>회원 갤러리</b>&nbsp;(총 <?=$total_count?>개중 <?=$from_record+1?> -
<?
if (($from_record + ($one_rows-1)) < $total_count) {
echo "{$to_record}";
} else {
echo "{$total_count}";
}
?>)
</font>
</td></tr>
<tr><td height="10"></td></tr>
<tr><td height=1 bgcolor=#c2c2c2></td></tr>
<tr><td height="10"></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<?//출력
  for ($i=0; $one_row = sql_fetch_array($one_result); $i++){
    if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }

if ($one_row[bf_width] > $one_row[bf_height]) {
$width_i1 = $width_o;
$height_i1 = ($one_row[bf_height] * $width_o) / $one_row[bf_width] ;
if ($height_i1 > $height_o) {
$width_i = ($width_i1 * $height_o) / $height_i1;
$height_i = $height_o;
} else {
$width_i = $width_i1;
$height_i = $height_i1;
}
} else if ($one_row[bf_width] < $one_row[bf_height]) {
$width_i = ($one_row[bf_width] * $height_o) / $one_row[bf_height];
$height_i = $height_o;
} else {
$width_i = $height_o;
$height_i = $height_o;
}
?>
    <td valign=top align="center" width="150">
        <table bgcolor="#FFFFFF" width="303" height="158" border="0" cellpadding="0" cellspacing="0">
<tr><td align="center" class="box_line"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$one_row[bo_table]?>&wr_id=<?=$one_row[wr_id]?>' onfocus='this.blur()'><img src="<?=$g4[path]?>/data/file/<?=$one_row[bo_table]?>/<?=$one_row[bf_file]?>" border="0" width='<?=$width_i?>' height='<?=$height_i?>' title="사이즈 : <?=$one_row[bf_width]?> x <?=$one_row[bf_height]?> "></a></td></tr>
      </table>

<table width=303 cellpadding=0 cellspacing=0>
  <tr>
  <td width="9">
  </td>
  <td bgcolor="#000000" height="30">
<?
            $sql = " select wr_subject from $g4[write_prefix]$one_row[bo_table] where wr_id = '$one_row[wr_id]' ";
            $row = sql_fetch($sql);

            $sql2 = " select bo_subject from $g4[board_table] where bo_table = '$one_row[bo_table]' ";
            $row2 = sql_fetch($sql2);
        ?>
        &nbsp;<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$one_row[bo_table]?>&wr_id=<?=$one_row[wr_id]?>' onfocus='this.blur()'><span class="test_01"><?=cut_str($row[wr_subject], 16)?></span></a></td>
<td width="9">
</td>
</tr>
<tr>
<td colspan="3" height="10">
</td>
</tr>
<!-- <tr><td align="center">&nbsp;<?=$row2[bo_subject]?></td></tr> -->
</table>
    </td>
<? } ?>
</tr>

<tr><td width="150" height="10"></td><td width="150" height="10"></td><td width="150" height="10"></td><td width="150" height="10"></td><td width="150" height="10"></td></tr>
</table>

<table width=100% cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height="10"></td></tr>
<tr><td align=center>
<?
$page = get_paging($config[cf_write_pages], $page, $total_page, "?&page=");
echo "$page";
?>
</td></tr>
<tr><td height="10"></td></tr>
</table>

<?
//include_once("$g4[path]/_tail.php");
?>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT