최근갤러리 이미지 파일명이 나오네요. 정보
최근갤러리 이미지 파일명이 나오네요.관련링크
첨부파일
본문
파일을 조금 수정했는데
이미지도 나오고 파일명도 나오네요
새창으로 하려고 파일을 조금 수정했습니다.
어디를 고치면 좋을지 모르겠어요.
시간나시면 봐주세요
___________________________________________여기부터 원본파일_____________________
<?
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;
}
}
?>
이미지도 나오고 파일명도 나오네요
새창으로 하려고 파일을 조금 수정했습니다.
어디를 고치면 좋을지 모르겠어요.
시간나시면 봐주세요
___________________________________________여기부터 원본파일_____________________
<?
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;
}
}
?>
댓글 전체
첨부파일은 원본입니다.
그런데 제 에디트플러스에서는
?ㅤㄲㅛㄽㅤㅈㅜㄽ ?ㅽㅤㄱㅔㄺ濡ㅻㅤㄹㅣㄿ??理ㅤㅆㅝㅈㅤㄸㅒㄶ湲€
이렇게 나오네요.
그런데 제 에디트플러스에서는
?ㅤㄲㅛㄽㅤㅈㅜㄽ ?ㅽㅤㄱㅔㄺ濡ㅻㅤㄹㅣㄿ??理ㅤㅆㅝㅈㅤㄸㅒㄶ湲€
이렇게 나오네요.
$img</a> 때문에 이미지 경로가 찍히는것으로 보입니다.
제거 하시면 되실듯,,
제거 하시면 되실듯,,
-_-;;
$img만 지웠는데도 안되길래 질문 올렸더니
뒤에 </a>까지 지우니까 되네요
이런낭패가...
감사합니다.
$img만 지웠는데도 안되길래 질문 올렸더니
뒤에 </a>까지 지우니까 되네요
이런낭패가...
감사합니다.