if ( file_exists($thumb) ) > 그누4 질문답변

그누4 질문답변

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

if ( file_exists($thumb) ) 정보

if ( file_exists($thumb) )

본문

if ( file_exists($thumb) )
 $img = $thumb;
 
    $style = "font-size:9pt; color:#636363;";
    if ($list[$i][icon_new])
    $style = "style='font-size:9pt;' ";
 $subject = "".cut_str($list[$i][subject],12).""; //제목 글자수 자르기

 

여기가 섬네일 다음 제목부분인데
제목 부분밑<br>에 글 내용의 몇글자를 넣고싶은데
어떻게해야할지 좀 가르쳐주세요..ㅠ
대신 짤빵재미있는거올렸음
  • 복사

댓글 전체

$thumb = $thumb_path. "/". $list[$i][wr_id];

  if ( file_exists($thumb) )
$img = $thumb;
 
    $style = "font-size:9pt; color:#636363;";
    if ($list[$i][icon_new])
    $style = "style='font-size:9pt;' ";
$subject = "<span $style>".cut_str($list[$i][subject],12)."</span>"; //제목 글자수 자르기

$bg = "";  //새글?
    if ($list[$i][icon_new])
        $bg="la_top_2.gif";
    else
        $bg="la_top_1.gif";

    echo $list[$i][icon_reply] . " ";

echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><a href='{$list[$i]['href']}'><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='absmiddle' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #CCCCCC; padding:3px'></a></td></tr>";
echo " <tr><td align='center' height='21'><a href='{$list[$i]['href']}'>{$subject}</a></td></tr></table>";
?>
</td>
입니닷^^
© SIRSOFT
현재 페이지 제일 처음으로