최근게시물 이미지 관련질문 드립니다. > 그누4 질문답변

그누4 질문답변

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

최근게시물 이미지 관련질문 드립니다. 정보

최근게시물 이미지 관련질문 드립니다.

본문

리스트 페이지는 아래와 같습니다.
클릭하면......해당하는 내용물로 이동않되고... 게시판으로 이동됩니다...
어떻게 하면 해결 될 수 있는지 부탁드립니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 4;

$cols  = $options; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h  = 0; // 이미지 상하 간격

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';

//관리자 설정 테이블 환경설정  ==>  $bo_table_cf;
?>
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
if ($i>0 && $i%$mod==0) { echo "</tr><tr>"; }
?>
<td>
<table width="100%">
<tr valign="top">
    <td align="center" valign="top"><table cellpadding="2" cellspacing="1" bgcolor="ffffff" >
        <tr>
          <td valign="top" bgcolor="ffffff"><?
     $image = $list[$i][file][0][file]; //원본
     $img=$data_path. "/".$image;  //썸네일이 없을경우 원본출력
     $thumb = $thumb_path. "/". $list[$i][wr_id];

       echo $list[$i][icon_reply] . " ";
       echo "  <tr><td valign='top' align='center'><table cellpadding='1' cellspacing='1' bgcolor='#cccccc'><tr><td bgcolor='white'><a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img'  width='125' height='160' border='0'></a></td></tr></table></td></tr>";?></td>
        </tr>
      </table>
      </td>
    </tr>
<tr valign="top">
  <td height="25" align="center" valign="top"><? if ($list[$i][is_notice]) {?>
    <a href='<?=$list[$i][href]?>'><span class=black><b>
    <?=$list[$i][subject]?>
    </b></span></a>
    <? } else {?>
    <a href='<?=$list[$i][href]?>'>
    <? if ($four02) echo '<b>';?>
    <? if ($four03) echo '<span class="blue">';?>
    <font color="#333333"><?=$list[$i][subject]?></font>
    <? if ($four03) echo '</span>';?>
    <? if ($four02) echo '</b>';?>
    </a>
    <? }?>
 <?=$list[$i][icon_new]?>
    <? if ($list[$i][comment_cnt]) {?>
    <a href="<?=$list[$i][comment_href]?>">
    <?=$list[$i][comment_cnt]?>
    </a>
    <? }?><br>
    <font color="#878C92">조회수 :</font> <font color="#6E7276">
    <?=$list[$i][wr_hit]?>
    </font>    <br>
  <font color="#878C92">등록일 :</font> <font color="#6E7276">
 <?=$list[$i][datetime]?>
 </font></td>
  </tr>
</table>
</td><? } ?>
<?
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++)
{ echo "<td> </td>";}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod class=bbs>내용이 없습니다.</td>"; } ?>
</tr></table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,resizable=no,width=100,height=100,top=0,left=0");
  imageHandle.document.write("<title>   </title>");
  imageHandle.document.write("<style>");
  imageHandle.document.write("*{margin:0;padding:0;border:0;}");
  imageHandle.document.write("</style>");
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>

  • 복사

댓글 전체

27 라인에 추가하시든지
$wr_id=$list[$i][wr_id];

혹은
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" ...
->수정하세요
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i]['wr_id']}\"
제목이 읽기로 링크되있네요,위처럼하면 중복이니
수정부분을 아래처럼(이미지출력) 하는게 나을듯 싶은데요...

<a href=\"javascript:popupImage('{$img}')\" ...
© SIRSOFT
현재 페이지 제일 처음으로