목록 링크건에 급질문 합니다...............

 
안녕하세요!
 
위에 링크를 보시면 1페이지당 첨부파일 출력하게 했습니다.
 
부탁드리고 싶은건 이미지를 클릭시 2페이지로 넘어가게 하려고 합니다.
 
즉 이미지를 클릭시 next(다음 페이지) 로 넘어가게요..
 
링크를 찾지 못했고 또한 어떻게 적용을 하는지요.
 
참고로:
 
==================================================================
 
위에 list.skin.php 소스 입니다.
 
==================================================================
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// $image_width  = 250; // 이미지 폭
// $image_height = 200; // 이미지 높이
if (!$skin_no) $skin_no = "01";
?>
 
<!-- 게시판 목록 시작 --><style type="text/css">
<!--
body {
 background-color: #000000;
}
.style1 {
 color: #FFFFFF;
 font-weight: bold;
}
-->
</style>
<table width="100%" height="120" border="0" cellspacing="0">
  <tr>
    <td align="center" bgcolor="#242424"><span class="style1">IMAGES</span></td>
  </tr>
</table>
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
    <td align="right">
            <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a><?}?></td>
</tr>
<tr>
  <td height=5>&nbsp;</td>
</tr>
</table>
<!-- 박스 시작-->
<br>
           <!-- 게시물 리스트 시작 -->
<!-- 제목 -->
<?
// 번호에 이미지를 사용할 경우는 아래의 주석을 제거하고 $list[$i][num]의 내용을 수정후 사용하세요.
// if (!is_int($list[$i][num])) { $list[$i][num] = "<img src='$board_skin/img/arrow.gif'>"; }
?>
<? for ($i=0; $i<count($list); $i++) { ?>
<table width=100% border=0 cellpadding=0 cellspacing=0 align="center">
<tr align=center>
    <td align=center valign=top>
         <?
    $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
            if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
                echo "<img src='$g4[path]/data/file/$bo_table/$image' border='0'>&nbsp;&nbsp;";
}
    else if (file_exists($list[$i][file_image1])) { $gznews_img = "border=0)'><br>"; }
  
      else if (preg_match("/\.(swf|wma|asf)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
                echo "<embed src='$g4[path]/data/file/$bo_table/$image' width='700' height='200' border='1' wmode='transparent'></embed>&nbsp;&nbsp;";
}
  
?>
    <a href='<?="./board.php?&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'></a>
    </td>
    </tr>
   
    <tr>
   
    <td align=left>
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
              <?=$list[$i][wr_content]?>
              <br>
              <? if ($admin_href) { ?><a href="<?=$list[$i][href]?>"><img src="<?=$board_skin_path?>/img/btn_update.gif" border=0></a><?}?>
              </td>
          </tr>
        </table></td>
 
 </tr>
</table>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=6 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; } ?>
</form>
<!-- 게시물 리스트 끝 -->
<!-- 박스 끝-->
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
    <td width="100%" align="center" height=30 valign=bottom>
        <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
        <?
        // 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
        //echo $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:돋움; font-size:9pt; color:#797979\">$1</font></b>", $write_pages);
        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
        ?>
        <?=$write_pages?>
        <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
    </td>
</tr>
</table>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca      value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" height="40">
        <? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
        <? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
    </td>
  
</tr>
</table>
</form>
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
    document.fsearch.sfl.value = "<?=$sfl?>";
    document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
    var f = document.fboardlist;
    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}
function check_confirm(str)
{
    var f = document.fboardlist;
    var chk_count = 0;
    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }
    if (!chk_count) {
        alert(str + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }
    return true;
}
// 선택한 게시물 삭제
function select_delete()
{
    var f = document.fboardlist;
    str = "삭제";
    if (!check_confirm(str))
        return;
    if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
        return;
    f.action = "./delete_all.php";
    f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
    var f = document.fboardlist;
    if (sw == "copy")
        str = "복사";
    else
        str = "이동";
                      
    if (!check_confirm(str))
        return;
    var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
|

댓글 2개

echo "<img ~~~>";
위의 라인을
echo "<a href='$next_part_href'><img ~~~></a>";
이렇게 바꾸어 주세요
웹씨님..그렇게 해봤는데..안되는데요???ㅠ.ㅠ

마우스 가져다 대면...경로가 http://주소/gnu/bbs 여기까지 밖에 안됩니다..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,517
18년 전 조회 1,763
18년 전 조회 1,448
18년 전 조회 1,605
18년 전 조회 3,290
18년 전 조회 1,382
18년 전 조회 1,529
18년 전 조회 1,546
18년 전 조회 1,636
18년 전 조회 1,525
18년 전 조회 1,508
18년 전 조회 1,641
18년 전 조회 1,515
18년 전 조회 2,397
18년 전 조회 1,513
18년 전 조회 1,574
18년 전 조회 1,573
18년 전 조회 1,569
18년 전 조회 1,527
18년 전 조회 1,454
🐛 버그신고