스킨 질문좀 할게요,.. > 그누4 질문답변

그누4 질문답변

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

스킨 질문좀 할게요,.. 정보

스킨 질문좀 할게요,..

본문

 
여기에 올라온 스킨 보면 영화게시판이 다른분거 응용하여 한걸 볼수 있는데
 
질문은..
 
글작성 할땐 이미지 5개까지 올라 갑니다.
 
하지만 리스트에선 첫번째 올린 이미지만 보여주고
 
읽기 들어가면 5개 이미지가 다 보이는데..
 
리스트에서도 4개의 이미지를 줄거리 위에 다 출력하려고 하는데
 
아무리 소스 수정해도 안되네요 ㅠㅠ
 
이미지가 출력 되질 않아요 무엇이 문제일까요 고수님들 많은 답좀..ㅠㅠ
 
소스 올려봅니다 ㅠㅠ
 
포인트 걸게용
 
-----------------------------------------------
리스트부분 소스
-----------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 -이중카테고리 사용안함 분류를 등급가로만 사용함
// 영화포스트 이미지 가로150 세로 170이 적당함
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 4;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
// 지정한 이미지의 넓이, 높이에 따라 열크기 조정 = 10정도 더 넓게 함
$td_width = $bo_img_width + 10;
$td_height = $bo_img_height + 10;
?>
<script language="javascript">
<!--
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>그림을 클릭함 창이 닫혀요..</title>\n"); //오픈창 타이틀 이름 지정하는 부분
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height +20; myWidth = eval(pic).width + 0;\n");
imgwin.document.write(" } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n");
imgwin.document.write(" clearTimeout();\n");
imgwin.document.write(" var height = screen.height;\n");
imgwin.document.write(" var width = screen.width;\n");
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
imgwin.document.write(" self.resizeTo(myWidth, myHeight);\n");
imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="black">\n');
imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' onclick='window.close();' style='cursor:pointer'>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
-->
</script>
<?if($bo_catview != 0) {?><? if ($is_category) { // 분류가 있으면 보여줌?>
<table width="100%" cellspacing="0" cellpadding="0" background="<?=$board_skin_path?>/img/<?=$bo_color?>/<?=$top_bar?>" height='35'>
<tr height='35'>
    <td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_left.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_left.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_left.gif"><?}?></td>
    <? if ($is_checkbox) { ?><td width="100" align="center" valign="middle"><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox> 전체선택</td><? } ?>
    <td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_right.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_right.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_right.gif"><?}?></td>
</tr>
</table>
<? } ?><? } ?>
<!-- 목록 -->
<table border=0 cellpadding=0 cellspacing=0>
<?
for ($i=0; $i<count($list); $i++) {
 $mov_filed = explode("|",$list[$i][wr_4]); // 감독입력, 출연자, 장르/기타, 몇년도작품, 별점주기
 $mov_00  = $mov_filed[0];
 $mov_01  = $mov_filed[1];
 $mov_02  = $mov_filed[2];
 $mov_03  = $mov_filed[3];
 $mov_04  = $mov_filed[4];
 $mov_05  = $mov_filed[5];
 if($mov_05 == 1){ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif>";
 }else if($mov_05 == 2){ $marks_img = "<img src=" .$board_skin_path ."/img/2.gif>";
 }else if($mov_05 == 3){ $marks_img = "<img src=" .$board_skin_path ."/img/3.gif>";
 }else if($mov_05 == 4){ $marks_img = "<img src=" .$board_skin_path ."/img/4.gif>";
 }else if($mov_05 == 5){ $marks_img = "<img src=" .$board_skin_path ."/img/5.gif>";
 }else{ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif>";}
?>
<tr align=center>
    <td width="4" align="center" valign="middle"></td>
    <td width="<?=$td_width?>" height="<?=$td_height?>" align="center" valign="middle">
  <?               
        $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 "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
   echo "</a>";
  } else{
   echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
   echo "</a>";
  }
        ?>
 </td>
    <td align=left>
  <table border=0 cellpadding=0 cellspacing=0 width=100%>
  <tr>
   <td style='word-break:break-all; padding-left:10px;' height=30>
   <? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?>
   <?
   echo $nobr_begin;
   echo $list[$i][reply];
   echo $list[$i][icon_reply];
   echo "<a href='{$list[$i][href]}'>";
   if ($list[$i][is_notice])
    echo "<font class='$w_notice'><strong>{$list[$i][subject]}</strong></font>";
   else
    echo "<strong>{$list[$i][subject]}</strong>";
   echo "</a>";
   if ($list[$i][comment_cnt])
    echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
   // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
   // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
   if ($list[$i][icon_new])
    echo " <img src=\"$board_skin_path/img/$bo_color/icon_new.gif\"> ";
   echo $nobr_end;
   ?>
      평점 : <?=$marks_img?>
   </td>
  </tr>
  <tr><td style='padding-left:15px;' height=20><img src="<?=$board_skin_path?>/img/icon5.gif" width="11" height="10">감독 : <?=$mov_00?></td></tr>
  <tr><td style='padding-left:15px;' height=20><img src="<?=$board_skin_path?>/img/icon5.gif" width="11" height="10">출연 : <?=$mov_01?></td></tr>
  <tr><td style='padding-left:15px;'><img src="<?=$board_skin_path?>/img/icon5.gif" width="11" height="10">장르 : <?=$mov_02?></td></tr>
  <tr><td style='padding-left:15px;' height=20><img src="<?=$board_skin_path?>/img/icon5.gif" width="11" height="10">기타 : <?=$mov_03?> 개봉 / <?=$mov_03?> / <?=$list[$i][ca_name]?></td></tr>
  <tr><td height="5"></td></tr>
  <tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
  <tr><td height="5"></td></tr>
  <tr><td style='padding-left:15px;'><img src="<?=$board_skin_path?>/img/icon5.gif" width="11" height="10"><font color="cf4900">줄거리 :</font> <a href='<?=$list[$i][href]?>'><?=cut_str(strip_tags($list[$i][wr_content]),400,"…more")?></a></td></tr>
  <tr><td height="5"></td></tr>
  </table>
 </td>
    <td width="4" align="center" valign="middle"></td>
</tr>
<!-- 구분선이 직선인지 점선인지 판단하여 보여줌 -->
<?if($bo_line == 0){?>
<tr><td colspan="<?=$colspan?>" height="1" background="<?=$board_skin_path?>/img/win_line.gif"></td></tr>
<?}else{?>
<tr><td colspan="<?=$colspan?>" height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<?}?>
<? } // for문 끝 ?>
<? if (count($list) == 0) {
 echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>";
} ?>
</table>
 
 
--------------------------------
view.php 소스
--------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 환경설정값들을 불러온다. - 여유필드10은 더블카테고리 부분임
$color_filed = explode("|",$board[bo_1]); // 게시판색깔,상단모양,하단모양, 마크 분리
$bo_color  = $color_filed[0];    // 게시판의 바, 버튼, 특정아이콘 색깔 지정
$bo_top   = $color_filed[1];    // 상단모양 지정
$bo_bottom  = $color_filed[2];    // 상단모양 지정
$bo_mark  = $color_filed[3];    // 상단 이미지모양 마크표시
$bo_outline  = $color_filed[4];    // 리스트 테두리여부
$bo_line  = $board[bo_2];     // 구분선 - 점선과 직선 두가지
//$bo_auth  = $board[bo_3];     // 관리자 승인여부 - 리스트에서만 작동하게 함 편법접근 무시
// 글쓰기폼과 리스트에서만 사용함 리스트에 안 나오면 뷰접근도 어렵기에 쉽게처리함
$bo_bbs   = $board[bo_5];     // 게시판의 종류 - 일반, 이미지가 보이는일반
$bo_img   = $board[bo_6];     // 이미지 있음,없음
$img_filed  = explode("|",$board[bo_7]); // 이미지넓이 높이 분리
$bo_img_width = $img_filed[0];    // 이미지 넓이
$bo_img_height = $img_filed[1];    // 이미지 높이
$opt_filed  = explode("|",$board[bo_8]); // 뷰페이지 애니콘사용여부, 코멘트페이지 이모티콘사용여부 분리
$bo_anicon  = $opt_filed[0];    // 애니콘사용여부
$bo_emoticon = $opt_filed[1];    // 이모티콘사용여부
$bo_categroy = $board[bo_10];    // 더블카테고리 부분

if($bo_bbs == "story"){ // 끝말잇기면 바로 리스트로 보냄
 goto_url("./board.php?bo_table=$bo_table");
 exit;
}
// 환경설정 안할 경우의 기본값들
if($bo_color == "") {$bo_color = "img1";}  // 게시판색깔
if($bo_top == "") {$bo_top = "0";}    // 상단이미지
if($bo_bottom == "") {$bo_bottom = "0";}  // 하단이미지
if($bo_outline == "") {$bo_outline = "0";}  // 게시판 테두리 윤곽여부
if($bo_mark == "") {$bo_mark = "1";}   // 게시판마크 이미지
if($bo_bbs == "") {$bo_bbs = "bbs";}   // 게시판종류
if($bo_catview == "") {$bo_catview = "0";}  // 분류보여주기 여부
if($bo_edit == "") {$bo_edit = "on";}   // 글쓰기폼 여부
if($bo_edit_re == "") {$bo_edit_re = "0";}  // 답글형식 여부
// 게시판분류 글자색과 공지사항의 글자색을 게시판색과 맞춤
if($bo_top == "0" || $bo_top == "1"){ // 블록입체형 또는 평명입체형이면 글자색 검정으로 처리함
 $b_txt = "b_text4";
}else{
 if($bo_color == "img2"){$b_txt = "b_text2";}
 else if($bo_color == "img3" || $bo_color == "img4" || $bo_color == "img8"){$b_txt = "b_text6";}
 else if($bo_color == "img5" ||$bo_color == "img6" || $bo_color == "img7"){$b_txt = "b_text7";}
 else if($bo_color == "img8"){$b_txt = "b_text6";}
 else if($bo_color == "img9" || $bo_color == "img10" || $bo_color == "img11"){$b_txt = "b_text3";}
 else {$b_txt = "b_text4";}
}
if($bo_color == "img1"){$w_notice = "w_notice1";
}else if($bo_color == "img2"){$w_notice = "w_notice2";
}else if($bo_color == "img3"){$w_notice = "w_notice3";
}else if($bo_color == "img4"){$w_notice = "w_notice4";
}else if($bo_color == "img5"){$w_notice = "w_notice5";
}else if($bo_color == "img6"){$w_notice = "w_notice6";
}else if($bo_color == "img7"){$w_notice = "w_notice7";
}else if($bo_color == "img8"){$w_notice = "w_notice8";
}else if($bo_color == "img9"){$w_notice = "w_notice9";
}else if($bo_color == "img10"){$w_notice = "w_notice10";
}else if($bo_color == "img11"){$w_notice = "w_notice11";
}else{$w_notice = "w_notice1";}
// 상단모양에 대해서 - 8가지
if($bo_top == "0"){ $top_bar = "bar_top.gif";
}else if($bo_top == "1") {$top_bar = "bar_top1.gif";
}else if($bo_top == "2") {$top_bar = "bar_top2.gif";
}else if($bo_top == "3") {$top_bar = "bar_top3.gif";
}else if($bo_top == "4") {$top_bar = "bar_top5.gif";
}else if($bo_top == "5") {$top_bar = "bar_top6.gif";
}else if($bo_top == "6") {$top_bar = "bar_top4.gif";
}else if($bo_top == "7") {$top_bar = "bar_top5.gif";
}else if($bo_top == "8") {$top_bar = "bar_top6.gif";
}else {$top_bar = "bar_top.gif";}
// 하단모양에 대해서 - 2가지
if($bo_bottom == "0"){$buttom_bar = "bar_buttom.gif";}else{$buttom_bar = "bar_buttom1.gif";}
// 상단마크에 대해서
$img_mk = "mk" .$bo_mark .".gif";
?>
<?
if($bo_bbs == "movie") { // 영화게시판이면
 $mov_filed = explode("|",$view[wr_4]); // 감독입력, 출연자, 장르/기타, 개봉년월, 상영시간, 별점주기
 $mov_00  = $mov_filed[0];
 $mov_01  = $mov_filed[1];
 $mov_02  = $mov_filed[2];
 $mov_03  = $mov_filed[3];
 $mov_04  = $mov_filed[4];
 $mov_05  = $mov_filed[5];
 if($mov_05 == 1){ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif align=absmiddle>";
 }else if($mov_05 == 2){ $marks_img = "<img src=" .$board_skin_path ."/img/2.gif align=absmiddle>";
 }else if($mov_05 == 3){ $marks_img = "<img src=" .$board_skin_path ."/img/3.gif align=absmiddle>";
 }else if($mov_05 == 4){ $marks_img = "<img src=" .$board_skin_path ."/img/4.gif align=absmiddle>";
 }else if($mov_05 == 5){ $marks_img = "<img src=" .$board_skin_path ."/img/5.gif align=absmiddle>";
 }else{ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif align=absmiddle>";}
?>
<script language="javascript">
<!--
 function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>그림을 클릭함 창이 닫혀요..</title>\n"); //오픈창 타이틀 이름 지정하는 부분
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height +20; myWidth = eval(pic).width + 0;\n");
imgwin.document.write(" } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n");
imgwin.document.write(" clearTimeout();\n");
imgwin.document.write(" var height = screen.height;\n");
imgwin.document.write(" var width = screen.width;\n");
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
imgwin.document.write(" self.resizeTo(myWidth, myHeight);\n");
imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="black">\n');
imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' onclick='window.close();' style='cursor:pointer'>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
-->
</script>
<?} // 영화게시판이면 설정 끝?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" height=40 background="<?=$board_skin_path?>/img/top_bar.gif">
<tr>
 <td width="100%" valign="middle">
  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td> <img src="<?=$board_skin_path?>/img/<?=$img_mk?>" align="absmiddle"> <a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'> <font size=3><b><?=$board[bo_subject]?></b></font></a></td>
  </tr>
  </table>
 </td>
</tr>
</table>
<? // 에니콘 - 플래쉬콘 - 사용하면 보여준다.
if($bo_anicon == 1){
 if(!function_exists('anicon_html')) { include "../anicon/anicon.php"; }
 $view[content] = anicon_html($view[content],$dir);
}
?>
<table width="100%" cellspacing="0" cellpadding="0" background="<?=$board_skin_path?>/img/<?=$bo_color?>/<?=$top_bar?>" height='35'>
<tr>
    <td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_left.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_left.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_left.gif"><?}?></td>
 <TD width=80%>  <font class=<?=$b_txt?>><strong>
 <?if($view[wr_10] == ""){ // 여유필드 wr_10에 이중분류 입력값이 없으면 분류 하나만 사용?><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?}else{?><? if ($is_category) { echo ($category_name ? "[$view[ca_name] > $view[wr_10]] " : ""); } ?><?}?> <?if($bo_bbs == "money") { // 회비/회계 게시판이면?>납부자 또는 지출항목<?}else{?>제  목<?}?> : <?=$view[subject]?></strong></font> <?if($bo_bbs == "movie") { echo"$marks_img";}?></td>
 <TD width=20% align=right>
        <font color="#727272">
        <? if ($is_good) echo "<b>추천</b>($view[wr_good])";?>
        <? if ($is_nogood) echo "<b>비추천</b>($view[wr_nogood])";?></font>  
 </td>
    <td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_right.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_right.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_right.gif"><?}?></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="30">
    <td width="35%">  <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
    <td width="45%" align="right"><strong>날 짜 : </strong><?=substr($view[wr_datetime],2,14)?></td>
    <td width="20%" align="center">
 <?if($bo_bbs == "psd") {?>
 <font color="#727272"><b>자료평가</b></font>
 <?
 if ($view[wr_hit]<1)
 echo ("<img src='$board_skin_path/graph/icon_ball00.gif' width=43 height=7 border=0 align=absmiddle>");
 elseif($view[wr_hit]<=5)
 echo ("<img src='$board_skin_path/graph/icon_ball01.gif' width=43 height=7 border=0 align=absmiddle>");
 elseif($view[wr_hit]<=10)
 echo ("<img src='$board_skin_path/graph/icon_ball02.gif' width=43 height=7 border=0 align=absmiddle>");
 elseif($view[wr_hit]<=30)
 echo ("<img src='$board_skin_path/graph/icon_ball03.gif' width=43 height=7 border=0 align=absmiddle>");
 elseif($view[wr_hit]<=60)
 echo ("<img src='$board_skin_path/graph/icon_ball04.gif' width=43 height=7 border=0 align=absmiddle>");
 elseif($view[wr_hit]<=100)
 echo ("<img src='$board_skin_path/graph/icon_ball05.gif' width=43 height=7 border=0 align=absmiddle>");
 ?> 
 <?}else{?>
        <font color="#727272"><b>조회</b>(<?=$view[wr_hit]?>)</font>
 <?}?>
 </td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>

<?if($bo_bbs == "money") { // 회비/회계 게시판이면?>
<tr height="30">
 <td width="35%">  <b>납부/지출</b> : <?=$view[wr_1]?>월 <?=$view[wr_2]?>일</td>
 <td width="45%" align="right">  <b>수입액</b></font> : <?=number_format($view[wr_3])?>원</td>
 <td width="20%" align="center">  <b>지출액</b> : <?=number_format($view[wr_3])?>원</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?}?>
<?
if($bo_bbs == "bmusic") { // 블로그음악실이면 가수이름 보여줌
?>
<tr height="30"><td width="100%" colSpan=3>  <strong>가수명 : <?=$view[wr_3]?></strong></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?}?>

<? if ($trackback_url) { ?>
<tr height=30>
    <td>
    <a href="javascript:FontPlus();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_txtplus1.gif" border="0" title="글자크게 보기" align="absmiddle"></a>
  <a href="javascript:FontMinus();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_txtminus1.gif" border="0" title="글자작게 보기" align="absmiddle"></span></a>
  <a href="javascript:GPEN_PRINT();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_print.gif" border="0" title="인쇄하기" align="absmiddle"></span></a>
  <?if($scrap_href) { echo " <a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/sbtn_smscrap1.gif' border='0' align='absmiddle' title='이 글 스크랩하기'></a> "; }?>
  <? if($bo_bbs == "gallery" || $bo_bbs == "thum" || $bo_bbs == "movie"){?>
  <img src="<?=$board_skin_path?>/img/sbtn_show.gif" border=0 style="vertical-align: middle;cursor:pointer;" onClick="OpenWin('<?=$board_skin_path?>/slideshow.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>',550,650); return false;" alt="슬라이드 쇼 보기" title="상단 이미지 슬라이드 쇼 보기">
  <?}?>
    </td>
    <td align="right" colSpan=2>
        트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a> 
        <script language="JavaScript">
            function clipboard_trackback(str) {
                if (g4_is_gecko)
                    prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
                else if (g4_is_ie) {
                    window.clipboardData.setData("Text", str);
                    alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
                }
            }
        </script>
    </td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<? } ?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
    if ($view[file][$i][source] && !$view[file][$i][view]) {
        $cnt++;
        echo <<<HEREDOC
        <tr height=30><td colSpan=3>  FILE #{$cnt} : <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><b>{$view[file][$i][source]}</b> ({$view[file][$i][size]}), Down:{$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>
        <tr><td height="1" background="{$board_skin_path}/img/dot_bg.gif" colSpan=3></td></tr>
HEREDOC;
    }
}
if($bo_bbs != "movie") {
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
    if ($view[link][$i]) {
        $cnt++;
        $link = cut_str($view[link][$i], 70);
        echo <<<HEREDOC
        <tr height=30><td colSpan=3>  LINK {$cnt} : <a href="{$view[link_href][$i]}" target="_blank"><b>{$link}</b></a> ({$view[link_hit][$i]})</td></tr>
        <tr><td height="1" background="{$board_skin_path}/img/dot_bg.gif" colSpan=3></td></tr>
HEREDOC;
    }
}
}// 영화게시판이 아니면 링크를 보여준다.
?>
<?if($bo_bbs == "movie") {?>
<tr>
    <td valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
  <table border=0 cellpadding=0 cellspacing=0 width=100%>
  <tr>
   <td width=30%>
   <?
   if($view[file][0][file]){ // 첫번째 이미지
    $image = $view[file][0][file];
    $file1_v= "<img src='$g4[path]/data/file/$board[bo_table]/$image' width='200' height='220' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" border=\"0\">";}
   else{echo "<center>메인이미지 지정안함</center>";}
   for ($i=0; $i<=count; $i++){
    if ($view[file][$i]){echo "<a href='javascript:;'>$file1_v</a>";}
   }
   ?>
   </td>
   <td width='70%' align=center>
    <table border=0 cellpadding=0 cellspacing=0 width=100%>
    <tr height=20><td><font color=cf4911>감독</font> : <?=$mov_00?></td></tr>
    <tr><td height="2"></td></tr>
    <tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
    <tr><td height="2"></td></tr>
    <tr height=20><td><font color=cf4911>출연</font> : <?=$mov_01?></td></tr>
    <tr><td height="2"></td></tr>
    <tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
    <tr><td height="2"></td></tr>
    <tr height=20><td><font color=cf4911>장르/기타</font> : <?=$mov_02?> / <?=$mov_03?> 개봉 / <?=$mov_04?> / <?=$list[$i][ca_name]?></td></tr>
    <tr><td height="2"></td></tr>
    <tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
    <tr><td height="2"></td></tr>
    <?if($view[link][$i]){?>
    <tr><td><font color=cf4911>공식홈</font> :
    <?// 링크
    $cnt = 0;
    for ($i=1; $i<=$g4[link_count]; $i++) {
     if ($view[link][$i]) {
      $cnt++;
      $link = cut_str($view[link][$i], 70);
      echo "  <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><strong>{$link}</strong> ({$view[link_hit][$i]})</a>";
     }}?>
    </td></tr>
    <tr><td height="2"></td></tr>
    <tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
    <tr><td height="7"></td></tr>
    <?}?>
    <tr>
     <td>
     <? // 이미지를 나열해준다.
      $image1 = $view[file][1][file];
      $image2 = $view[file][2][file];
      $image3 = $view[file][3][file];
      $image4 = $view[file][4][file];
      $file1= "<img src='$g4[path]/data/file/$board[bo_table]/$image1' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image1')\" border=\"0\">";
      $file2= "<img src='$g4[path]/data/file/$board[bo_table]/$image2' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image2')\" border=\"0\">";
      $file3= "<img src='$g4[path]/data/file/$board[bo_table]/$image3' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image3')\" border=\"0\">";
      $file4= "<img src='$g4[path]/data/file/$board[bo_table]/$image4' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image4')\" border=\"0\">";
      if ($view[file][1][view]){echo "<a href='javascript:;'>$file1</a>";}
      if ($view[file][2][view]){echo "  <a href='javascript:;'>$file2</a>";}
      if ($view[file][3][view]){echo "  <a href='javascript:;'>$file3</a>";}
      if ($view[file][4][view]){echo "  <a href='javascript:;'>$file4</a>";}
      else if(!$view[file][1][file] && !$view[file][2][file] && !$view[file][3][file] && !$view[file][4][file])
       echo "추가이미지없음";
     ?>
     </td>
    </tr>
    </table>
   </td>
  </tr>
  <tr><td height="7" colspan="2"></td></tr>
  <tr><td colspan="2" height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
  <tr><td height="7" colspan="2"></td></tr>
  <tr>
   <td width=100% valign="top" style='word-break:break-all;' colSpan=2>
    <div id="ContentsLayer">
    <span class="ct lh"><?=$view[content];?></span>
    <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
    </div>
    <? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
   </td>
  </tr>
  </table>
 </td>
</tr>
<?
}else if($bo_bbs == "poll") { // 설문조사이면 - 투표여부 쿠키대신 디비값으로 비교함
 $m_ip = $HTTP_SERVER_VARS[REMOTE_ADDR];   // 아이피로 투표여부 대조함 - 비회원참여도 고려해서
 $poll_filed  = explode("|",$view[wr_5]);  // 각 항목별 투표자 수, 참여자아이디, 주제설명 분리
 $poll_ck  = $poll_filed[0];    // 설문인지 찬반인지 체크
 $poll_num  = $poll_filed[1];    // 각 항목별 투표자 수
 $poll_id  = $poll_filed[2];    // 참여자아이피
 $poll_notice = $poll_filed[3];    // 주제설명
?>
<tr>
    <td valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
  <table border=0 cellpadding=0 cellspacing=0 width=100%>
  <form name=fpollskin method=post action="<?=$board_skin_path?>/poll_answer_update.php" onsubmit="return fpollskin_check(this.form);" target="hiddenframe">
  <input type=hidden name=bo_table value="<?=$bo_table?>">
  <input type=hidden name=wr_id value="<?=$wr_id?>">
  <input type=hidden name=poll_member value="<?=$m_ip?>">
  <input type=hidden name=poll_notice value="<?=$poll_notice?>">
  <input type=hidden name=poll_ck value="<?=$poll_ck?>">
  <? if ($poll_notice) { // 주제설명이 있으면?><tr><TD><img src="<?=$board_skin_path?>/img/icon_bullet.gif" align="absmiddle"> 설명 : <span class="ct lh"><?=nl2br($poll_notice)?></span></TD></tr><? } ?>
  <tr><td height="5"></td></tr>
  <tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
  <tr><td height="5"></td></tr>
  <TR>
   <TD style='word-break:break-all; padding:10px' height=150>
    <img src="<?=$board_skin_path?>/img/icon_bullet.gif" align="absmiddle"> 설문조사 :
   <!-- 내용 출력 -->
   <?
   // 투표한 사람, 자신, 관리자만 결과가 보임
   $is_poll = false;      // 기본값
   $preson = explode(",",$poll_id);  // 참여자아이디를 ,로 다시 분리
   $s = count($preson);
   for ($i=0; $i<count($preson); $i++){
    $man = $preson[$i];
    if ($man == $m_ip || $is_admin){$is_poll = true;}
   }
   $max = 1;
   $total = 0;
   $tmp = explode(",",$poll_num);  // 각 항목별 투표자 수를 ,로 다시 분리
   for ($i=0; $i<count($tmp); $i++){
    $total += (int)$tmp[$i];
    if ((int)$tmp[$i] > $max)
     $max = (int)$tmp[$i];
   }
   echo "<table>";
   $ans = explode("\n", $view[wr_content]);
   for ($i=0; $i<count($ans); $i++){
    echo "<tr>";
    echo "<td>";
    echo "<input type=radio name='ans' id='ans$i' value='$i'><label for='ans$i'>";
    echo $ans[$i];
    echo "</label>";
    if ($is_poll) {
     if ($total > 0)
      $rate = ((int)$tmp[$i] / $total) * 100;
     $bar = number_format($rate,1);
     echo "</td>";
     echo "<td width=200>";
     echo "<table width=100% height=10 cellspacing=0 cellpadding=0 border=0>";
     echo "<tr><td><div style='width:100%;height:10px;border:1px solid #8E959B;background-color:#ffffff'><img src='$board_skin_path/img/poll_bar.gif' width='{$bar}%' height='8' title='' border='0'></div></td></tr>";
     echo "</table>";
     echo "<td width=50 align=right>".number_format($tmp[$i])."명  </td>";
     echo "<td width=70 align=right>".number_format($rate,1)."%  </td>";
    }
    echo "</td></tr>";
   }
   if ($is_poll){
            echo "<tr>";
            echo "<td></td>";
            echo "<td align=right>설문참여자 총  </td>";
            echo "<td align=right>".$total."명  </td></tr>";
   }
   echo "</table>";
   ?>
   <input type=hidden name=max_ans value="<?=$i?>">
   <input type=hidden name=is_poll value="<?=$is_poll?>">  <!-- 투표를 했는지 안했는지 판단값 -->
   <input type=hidden name=poll_num value="<?=$poll_num?>"> <!-- 투표수 조정하기 위해 필요 -->
   <input type=hidden name=poll_id value="<?=$poll_id?>">  <!-- 투표수 조정하기 위해 필요 -->
   <?
   if ($is_poll){
    echo "<p><font color=gray>이미 설문에 참여하셨습니다.</font>";
   } else {
    echo "<p><input type=submit value=' 설문 참여 '>";
    echo "<p><font color=gray>투표하시면 결과가 보입니다.</font>";
   }
   ?>
   <? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
   </td>
  </tr>
  </form>
  </table>
 </td>
</tr>
<?}else if($bo_bbs == "shop") {
 if ($member[mb_level] >= '2') { // 회원만 열람가능
  $view[wr_email]; // 이메일
  $ex5_filed = explode("|",$view[wr_5]); //전화,핸드폰
  $view_TEL = $ex5_filed[0] ."-". $ex5_filed[1] ."-".$ex5_filed[2];
  $view_HP  = $ex5_filed[3] ."-". $ex5_filed[4] ."-".$ex5_filed[5];
 } else {  
  $view[wr_email] = "Member Only";
  $ex5_filed = explode("|",$view[wr_5]);
  $view_TEL = "Member Only";
  $view_HP  = "Member Only";
 }
 $ex2_filed = explode("|",$view[wr_2]); // 소비자가/판매가/가격절충여부
 $ext2_00  = $ex2_filed[0];
 $ext2_01  = $ex2_filed[1];
 $ext2_02  = $ex2_filed[2];
 $ex3_filed = explode("|",$view[wr_3]); // 물품배송/거래상태/판매수량
 $ext3_00  = $ex3_filed[0]; // 물품배송
 $ext3_01  = $ex3_filed[1]; // 거래상태
 $ext3_02  = $ex3_filed[2]; // 판매수량
?>
</table>
<table width="100%" cellspacing="0" cellpadding="0"style="border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-color:rgb(204,204,204); border-right-style:solid; border-bottom-style:solid; border-left-style:solid;">
<tr height="30">
    <td width="50%" align=center style='padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;'>
  <? for ($i=0; $i<=4; $i++) {$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];}?>
  <table width="220" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;" align=center>
  <tr>
   <td width="100%">
    <? if ($view[file][0][view])  {?>
    <img src="<?=$image[0]?>" name=gallery_img width="200" height="140" border=0 value=0>
    <? } else {?>
    <img src="<?=$board_skin_path?>/img/no_image.gif" border=0 value=0>
    <? } ?>
   </td>
  </tr>
  </table>
  <table width="100%">
  <tr>
   <td align="center">
    <? if ($view[file][0][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_1.gif" align="absmiddle" border="0"></a><? }?>
    <? if ($view[file][1][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_2.gif" align="absmiddle" border="0"></a><? }?>
    <? if ($view[file][2][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_3.gif" align="absmiddle" border="0"></a><? }?>
    <? if ($view[file][3][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_4.gif" align="absmiddle" border="0"></a><? }?>
    <? if ($view[file][4][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_5.gif" align="absmiddle" border="0"></a><? }?>
   </td>
  </tr>
  </table>
 </td>
    <td width="50%">
  <table width="90%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
  <tr height="30">
   <td width="100%">  <img src="<?=$board_skin_path?>/img/icon_nemo.gif" width="11" height="10"> <strong>상품명 : <?=$view[wr_6]?>
    <? // 아이콘출력
    if ($view[is_notice]) { echo "<img src=\"$board_skin_path/img/icon_level01.gif\" width=15 height=15 align='absmiddle'>"; }
    else if ($view[wr_1] == "1") { echo "<img src=\"$board_skin_path/img/icon_level02.gif\" width=15 height=15 align='absmiddle'>"; }
    else { echo ""; }
    ?>
    <!-- // 거래관련 아이콘 출력 --//-->
    <? if($ext3_01 == "on")  {echo "<img src='{$board_skin_path}/img/icon_on.gif' border='0' width='47' height='16' align='absmiddle'>"; } ?>
    <? if($ext3_01 == "off") {echo "<img src='{$board_skin_path}/img/icon_off.gif' border='0' width='47' height='16' align='absmiddle'>";} ?>
   </td>
  </tr>
  <tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
  <tr height="30"><td width="100%">  <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>물품수량 : </strong><?=$ext3_02?> 개</td></tr>
  <tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
  <tr height="30"><td width="100%">  <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>소비자가 : <?=number_format($ext2_00)?> 원</td></tr>
  <tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
  <tr height="30"><td width="100%">  <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>판매가 : </strong><?=number_format($ext2_01)?> 원</td></tr>
  <tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
  <tr height="30"><td width="100%">  <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>배송여부 : </strong><?=$ext3_00?></td></tr>
  <tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
  <tr height="30"><td width="100%">  <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>가격절충 : </strong><?=$ext2_02?></td></tr>
  <tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
  </table>
 </td>
</tr>
<tr><td height="5" colSpan=2></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif" colSpan=2></td></tr>
<tr><td height="5" colSpan=2></td></tr>
<tr>
    <td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=2>
  <div id="ContentsLayer">
  <span class="ct lh"><?=$view[content];?></span>
  <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
  </div>
 </td>
</tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b> 판매자정보</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
    <td width="50%">  <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
    <td width="50%"><strong>E-Mail : <a href=""><?=$view[wr_email]?>mailto:<?=$view[wr_email]?>"><?=$view[wr_email]?></a></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<tr height="30">
    <td width="50%">  
  <strong>전화번호 : <?=$view_TEL?>
 </td>
    <td width="50%"><strong>핸드폰 : </strong><?=$view_HP?></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b>상품 주문신청하기</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr><td width="100%" style='padding-left:10px; padding-right:10px;'>
<table width='100%'><tr><td height='5'></td></tr></table>
<?}else{?>
<tr>
    <td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
  <?
  $n = $view[wr_8];      // 한줄당 출력 이미지수
  
  if ($n > (count($view[file])-1)) {
   $i_count = (count($view[file])-1);  //원본이미지수가 적으면 적은갯수를..
  }
  else {
   $i_count = $n;      //원본이미지수가 많으면 설정갯수를..
  } 
  if ($i_count > 0) {
  $wid = (int)($board[bo_image_width]/$i_count); //게시판환경설정->'이미지폭크기'를 갖고 나눈다
  $board[bo_image_width] = $wid;     //자동이미지폭 조정을 위해 다시 넘겨준다..
  $wid = (int)(1/$n*100);
  }
  echo "<table width='100%' cellpadding=3 cellspacing=0 border=0>";
  echo "<tr>";
        for ($i=0; $i<=count($view[file]); $i++) {
   if (($view[file][$i][view]) && $i>0 && ($i%$n == 0)) {
    echo "</tr><tr>";
   }
            if ($view[file][$i][view]) {
    echo "<td align='center' valign='top' style='word-break:break-all'>";
    echo "<td align='center' valign='top' style='word-break:break-all'>";
    echo "<table cellpadding=10 cellspacing=0 border=0 style='border:1px solid #cccccc;'><tr><td>";
    echo "<table cellpadding=0 cellspacing=0 border=0 style='border:1px solid #888888;'><tr><td>";
    echo $view[file][$i][view];
    echo "</td></tr></table>";
    echo "</td></tr></table>";
    echo "<br><br>". $view[file][$i][content]; // 이미지 설명글 {게시판 환경설정에서 체크}
   }    
        }
  // 부족한 <td> 갯수 맞추는 작업
  if ((count($view[file])-1) % $n != 0) {
   $td_cnt = $n - ((count($view[file])-1)%$n);
   for ($t=0; $t<$td_cnt; $t++) {
    echo "<td> </td>";
   }
  }
  echo "</tr></table>";
  echo "<br>";
        ?>
 <div id="ContentsLayer">
    <span class="ct lh"><?=$view[content];?></span>
    <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
 </div>
 </td>
</tr>
<? if ($is_signature) { echo "<tr><td colSpan=3>$signature<br><br></td></tr>"; } // 서명 출력 ?>
<?}?>

<tr><td width="100%" colSpan=3 style='padding-left:10px; padding-right:10px;'>
<? include_once("./view_comment.php"); ?>
</td></tr>
<tr><td width="100%" colSpan=3 style='padding-left:10px; padding-right:10px;'>
 <table width='100%' cellpadding=0 cellspacing=0>
 <tr height=35>
  <td width=75%>
   <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/$bo_color/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
   <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/$bo_color/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
   <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/$bo_color/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/$bo_color/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if($poll_num == ""){
    if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/$bo_color/btn_update.gif' border='0' align='absmiddle'></a> "; }
   } // 설문참여자가 있으면 수정이 안되도록 처리 ?>
   <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/$bo_color/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_bad.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/$bo_color/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
  </td>
  <? if (($prev_href)or($next_href)) { ?>
  <td width=25% align=right>
   <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/$bo_color/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
   <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/$bo_color/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
  </td>
  <? } ?>
 </tr>
 </table>
</td></tr>
</table>
</td></tr></table>
<?if($bo_bbs == "poll") { // 설문조사이면 사용할 스크립트?>
<script language="JavaScript">
function fpollskin_check(f){
    var ans = document.getElementsByName('ans');
    var chk = false;
    for (i=0;i<ans.length;i++) {
        if (ans[i].checked) {
            chk = true;
            break;
        }
    }
    if (!chk) {
        alert("투표하실 항목을 선택하십시오.");
  &nbs

댓글 전체

<?               
        $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 "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>

이부분을

<?               
for ($n=0; $n<count($list[$i][file]); $n++) {
$image[$i] = urlencode($list[$i][file][$n][file]); // 첫번째 파일이 이미지라면
        if (preg_match("/\.(gif|jpg|png)$/i", $image[$i]) && file_exists("$g4[path]/data/file/$bo_table/$image[$i]")) {
  echo "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image[$i]' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image[$i]')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
}
        ?>

로 바꿔보세요...
그림출력도 리스트 전체에 있는게 다 나오고..
리스트가 깨져 버립니다 ㅠㅠ

명함아이///그거야 저도 그렇게 생각하는데 ...어떻게 해야 할지 ㅠㅠ
최근게시물출력시 이미지 뽑아올때 감안해야 할점들은
보통 업로드한 파일중 이미지가 있을때 뽑아오는것과
태그로 내용을 입력했을경우 본문에 들어간 이미지를 추출해서 뽑아오는것 이때는 로컬서버에 업로드되었는지 타서버의 이미지를 링크한것이지...
등이고 위 내용들 다 해결했다면 각각의 이미지들을 썸네일 생성해서 저장후 뽑아오는것이 되겠죠.
저는 소스를 길게 쓰는걸 싫어해서 for문 돌리는 위같이 알려드렸는데, 레이아웃이 망가진다면 뭐.;... 걍 밑에꺼로 해보세요..


<?               
        $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 "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>

위에 부분을 잘라내시고 아래부분을 그자리에 다 붙여넣기 하세요.

---------------------------------------------------------------



<?               
        $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 "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>

<?               
        $image1 = urlencode($list[$i][file][1][file]); // 두번째 파일이 이미지라면
        if (preg_match("/\.(gif|jpg|png)$/i", $image1) && file_exists("$g4[path]/data/file/$bo_table/$image1")) {
  echo "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image1' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image1')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>

<?               
        $image2 = urlencode($list[$i][file][2][file]); // 세번째 파일이 이미지라면
        if (preg_match("/\.(gif|jpg|png)$/i", $image2) && file_exists("$g4[path]/data/file/$bo_table/$image2")) {
  echo "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image2' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image2')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>

<?               
        $image3 = urlencode($list[$i][file][3][file]); // 네번째 파일이 이미지라면
        if (preg_match("/\.(gif|jpg|png)$/i", $image3) && file_exists("$g4[path]/data/file/$bo_table/$image3")) {
  echo "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image3' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image3')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>

<?               
        $image4 = urlencode($list[$i][file][4][file]); // 다섯번째 파일이 이미지라면
        if (preg_match("/\.(gif|jpg|png)$/i", $image4) && file_exists("$g4[path]/data/file/$bo_table/$image4")) {
  echo "<a href='javascript:;'>";
            echo "<img src='$g4[path]/data/file/$bo_table/$image4' width='$bo_img_width' height='$bo_img_height' border='0'onclick=\"view('$g4[path]/data/file/$bo_table/$image4')\" alt= 클릭하시면 큰이미지 align='absmiddle'>";
  echo "</a>";
  } else{
  echo "<a href='{$list[$i][href]}'>";
            echo "<img src='$board_skin_path/img/$bbs_img/no_image.gif' title='이미지 없음' width='$bo_width' height='$bo_height' border='0' align='absmiddle'>";
  echo "</a>";
  }
        ?>
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT