최근갤러리 이미지 파일명이 나오네요.

· 19년 전 · 1522 · 3
파일을 조금 수정했는데
이미지도 나오고 파일명도 나오네요
새창으로 하려고 파일을 조금 수정했습니다.
어디를 고치면 좋을지 모르겠어요.
시간나시면 봐주세요
___________________________________________여기부터 원본파일_____________________
<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
    $title = get_text($list[$i][subject]);
//    $content = cut_str(get_text($list[$i][wr_content]), 80);
    $img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
    if (!file_exists($img) || !$list[$i][file][0][file])
        $img = "$latest_skin_path/img/noimage.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

    echo <<<HEREDOC
    <td width='150' valign='top' align='center'>
      <table width='150' border='0' cellpadding='0' cellspacing='0' align='center'>
        <tr>
          <td width='150'  align='center'>
<div style='width:150px;;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur()'><img src='{$img}' width='150'  border='0' align='absmiddle'></a>
</div>
          </td>
       </tr>
       <tr>
          <td width='150' height='20' align='center' valign='bottom'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur()'>{$list[$i][subject]}</a>
          </td>
        </tr>
    </table>
  </td>
HEREDOC;
}
}
?>

_____________________________________________여기부터수정파일_____________________

<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
    $title = get_text($list[$i][subject]);
//    $content = cut_str(get_text($list[$i][wr_content]), 80);
    $img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
    if (!file_exists($img) || !$list[$i][file][0][file])
        $img = "$latest_skin_path/img/noimage.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

    echo <<<HEREDOC
    <td width='110' valign='top' align='center'>
      <table width='110' border='0' cellpadding='0' cellspacing='0' align='center'>
        <tr>
          <td width='110'  align='center'>
<div style='width:110px;;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='#' onclick="javascript:window.open('{$list[$i][href]}' , '', 'left=150, top=10, width=400, height=600, scrollbars=0');">$img</a>
<img src='{$img}' width='110'  border='0' align='absmiddle'></a>
</div>
          </td>
       </tr>
       <tr>
          <td width='110' height='20' align='center' valign='bottom'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur()'>{$list[$i][subject]}</a>
          </td>
        </tr>
    </table>
  </td>
HEREDOC;
}
}
?>

첨부파일

latest.skin.php (2.8 KB) 1회 2006-05-22 10:11
|

댓글 3개

첨부파일은 원본입니다.
그런데 제 에디트플러스에서는
?ㅤㄲㅛㄽㅤㅈㅜㄽ ?ㅽㅤㄱㅔㄺ濡ㅻㅤㄹㅣㄿ??理ㅤㅆㅝㅈㅤㄸㅒㄶ湲€
이렇게 나오네요.
$img</a> 때문에 이미지 경로가 찍히는것으로 보입니다.
제거 하시면 되실듯,,
-_-;;
$img만 지웠는데도 안되길래 질문 올렸더니
뒤에 </a>까지 지우니까 되네요
이런낭패가...
감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,517
19년 전 조회 1,537
19년 전 조회 1,754
19년 전 조회 1,513
19년 전 조회 1,513
19년 전 조회 1,374
19년 전 조회 1,957
19년 전 조회 1,518
19년 전 조회 1,516
19년 전 조회 1,523
19년 전 조회 1,598
19년 전 조회 1,032
19년 전 조회 1,788
19년 전 조회 974
19년 전 조회 1,564
19년 전 조회 1,523
19년 전 조회 1,068
19년 전 조회 1,523
19년 전 조회 1,601
19년 전 조회 1,469
🐛 버그신고