소스 좀 봐주세요 정보
소스 좀 봐주세요본문
동영상 스킨을 다운 받아서 작업 중인데 이상하게 그림에서 나오는 것처럼 작대기 하나가 나타납니다. 아래 소스에서 찾아보았더니 빨간색으로 표시한 부분 같은데 작대기를 지우면 게시판이 오류가 나네요.
뭘 없애야 할까요? 도와주세요!~
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
//$thumb_path = $data_path.'/thumb';
//$thumb_path = $data_path.'/thumb';
$thumb_max = 110; // 생성되는 썸네일의 가로세로(긴쪽)의 최대치.
$thum_W = $thumb_max;
$thum_H = $thumb_max;
function ThumbMaker( $images, $thumb )
{
global $thumb_max, $thum_W, $thum_H ;
$ori_info = getimagesize($images);
$W = $ori_info[0];
$H = $ori_info[1];
if ( $W > $H ) { //가로형일 경우.
$thum_W = $thumb_max;
$thum_H = ceil( $H * ( $thumb_max / $W ) );
}
if ( $W < $H ) { //세로형일 경우.
$thum_H = $thumb_max ;
$thum_W = ceil( $W * ( $thumb_max / $H ) );
}
if ( $W == $H ) { //정사각형일 경우.
$thum_W = ceil( $thumb_max * 0.8 );
$thum_H = ceil( $thumb_max * 0.8 );
}
$thum_W = $thumb_max;
$thum_H = $thumb_max;
function ThumbMaker( $images, $thumb )
{
global $thumb_max, $thum_W, $thum_H ;
$ori_info = getimagesize($images);
$W = $ori_info[0];
$H = $ori_info[1];
if ( $W > $H ) { //가로형일 경우.
$thum_W = $thumb_max;
$thum_H = ceil( $H * ( $thumb_max / $W ) );
}
if ( $W < $H ) { //세로형일 경우.
$thum_H = $thumb_max ;
$thum_W = ceil( $W * ( $thumb_max / $H ) );
}
if ( $W == $H ) { //정사각형일 경우.
$thum_W = ceil( $thumb_max * 0.8 );
$thum_H = ceil( $thumb_max * 0.8 );
}
//$newImg = ImageCreate($thum_W,$thum_H); // GD라이브러리 2.0 (이하일 경우)
$newImg = ImageCreateTrueColor($thum_W, $thum_H); // GD라이브러리 2.0 전용함수
if($ori_info[2]=="1") $origImg=ImageCreateFromgif($images);
if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($images);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($images);
//ImageCopyResized($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
imageCopyResampled($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
Imagejpeg($newImg, $thumb, 80 );
@chmod($thumb, 0707);
ImageDestroy($newImg);
ImageDestroy($origImg);
$newImg = ImageCreateTrueColor($thum_W, $thum_H); // GD라이브러리 2.0 전용함수
if($ori_info[2]=="1") $origImg=ImageCreateFromgif($images);
if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($images);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($images);
//ImageCopyResized($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
imageCopyResampled($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
Imagejpeg($newImg, $thumb, 80 );
@chmod($thumb, 0707);
ImageDestroy($newImg);
ImageDestroy($origImg);
return $thumb;
}
?>
}
?>
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td colspan="2"> <!-- 상단 카테고리 시작 -->
<? if (!$wr_id) { ?>
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";
$row1 = sql_fetch($sql1);
$str .= "<img src='$board_skin_path/img/cata_ico.gif' align='absmiddle'> <a href='./board.php?bo_table=$bo_table&mode=$mode&sca=$arr[$i]' class='link_line'><b>$arr[$i]</b></a> <font color='#838383'>|</font> ";
if ($cnt == 5) { $cnt = 1; $str .= ""; }
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>
<table width="<?=$width?>" height="39" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="24"><img src="<?=$board_skin_path?>/img/cate_list.gif" width="24" height="39"></td>
<td background="<?=$board_skin_path?>/img/search_bg.gif" style="padding-left:13px;" align="center"><font color='#838383'>|</font> <?=$str?></td>
<td background="<?=$board_skin_path?>/img/search_bg.gif"><div align="right"><img src="<?=$board_skin_path?>/img/cate_right.gif" width="24" height="39" border=0 align=absmiddle></div></td>
</tr>
</table>
<? } ?>
<!-- 상단 카테고리 끝 --></td>
</tr>
<tr>
<td colspan="2" height=1></td>
</tr>
<tr>
<td colspan="2" height=2></td>
</tr>
<tr>
<td colspan="2"> <!-- 상단 카테고리 시작 -->
<? if (!$wr_id) { ?>
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";
$row1 = sql_fetch($sql1);
$str .= "<img src='$board_skin_path/img/cata_ico.gif' align='absmiddle'> <a href='./board.php?bo_table=$bo_table&mode=$mode&sca=$arr[$i]' class='link_line'><b>$arr[$i]</b></a> <font color='#838383'>|</font> ";
if ($cnt == 5) { $cnt = 1; $str .= ""; }
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>
<table width="<?=$width?>" height="39" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="24"><img src="<?=$board_skin_path?>/img/cate_list.gif" width="24" height="39"></td>
<td background="<?=$board_skin_path?>/img/search_bg.gif" style="padding-left:13px;" align="center"><font color='#838383'>|</font> <?=$str?></td>
<td background="<?=$board_skin_path?>/img/search_bg.gif"><div align="right"><img src="<?=$board_skin_path?>/img/cate_right.gif" width="24" height="39" border=0 align=absmiddle></div></td>
</tr>
</table>
<? } ?>
<!-- 상단 카테고리 끝 --></td>
</tr>
<tr>
<td colspan="2" height=1></td>
</tr>
<tr>
<td colspan="2" height=2></td>
</tr>
<tr>
<td height="25" align="center" valign="middle"> <form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<?
for ($i=0; $i<count($list); $i++)
{
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='$thumb_max' title='No Image'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
$images = "$data_path/$image";
$thumb = $data_path.'/'.$list[$i][wr_id].'.Thum';
if (!file_exists($thumb))
{
if (preg_match("/\.(jpg|gif|png)$/i", $image) && file_exists($images))
{
ThumbMaker( $images, $thumb );
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
?>
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td height="10" ><br />
<table width="100%" border="10" cellpadding="0" cellspacing="0" bordercolor="#F3F3F3">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="white" >
<tr>
<td width="147" align="center" valign="middle" style="padding-left:5px; padding-right:10px;"><!-- 이미지테이블 시작-->
<table width="137" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="137"><br />
<table width="137" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="center">
<? if ($list[$i][wr_link2]) { ?>
<a href='<?=$list[$i][href]?>'>
<? } else { ?>
<a href="javascript://" onclick="window.open('<?=$board_skin_path?>/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=741,height=472');" title='동영상보기'>
<? } ?>
<?=$img?>
</a>
<div align="center"></div></td>
</tr>
<tr>
<td height="5" colspan="3" align="center"><img src="<?=$board_skin_path?>/img/5px.gif" width="5" height="5" /></td>
</tr>
</table></td>
</tr>
<tr>
<!-- 권한 -->
<td align="center"><? if (($member[mb_id] && (($member[mb_id] == $write[mb_id])|| ($member[mb_id] == $list[$i][mb_id]))) || $is_admin) { ?>
<table width="109" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="20"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>" /></td>
<td width="12" valign="bottom"></td>
<td width="39"><div align="center"><a href="<?=$write_href?>&w=u&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>"><img src="<?=$board_skin_path?>/img/modify_btn.gif" alt="수정" width="39" height="12" vspace="5" border="0" align="absmiddle" title="수정하기" /></a></div></td>
<td width="38"><div align="center"><a href="javascript:del('./delete.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=');"><img src="<?=$board_skin_path?>/img/delete_btn.gif" alt="삭제" width="38" height="12" vspace="5" border="0" align="absmiddle" title="삭제하기" /></a></div></td>
</tr>
</table>
<? } ?>
<? if ($list[$i][wr_link1]) { ?>
<a href="javascript://" onclick="window.open('<?=$board_skin_path?>/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=741,height=472');" title='동영상보기'><img src="<?=$board_skin_path?>/img/gohome.gif" border="0" /></a>
<? } else { ?>
<? if ($list[$i][wr_link2]) { ?>
<a href='<?=$list[$i][href]?>'><img src="<?=$board_skin_path?>/img/gohome.gif" border='0'></a>
<? } ?>
<? }?></td>
</tr>
<tr>
<td height="5" align="center"><img src="<?=$board_skin_path?>/img/5px.gif" width="5" height="5" /></td>
</tr>
</table>
<!-- 이미지테이블 끝--> </td>
<td valign="top"><!-- 내용테이블 시작 -->
<br />
<table width="95%" cellspacing="0" cellpadding="0">
<tr>
<td width="94" height="23"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">제목</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table>
</td>
<td height="23" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href='<?=$list[$i][href]?>'>
<?=$list[$i][subject]?>
</a> <?=$list[$i][comment_cnt]?><?=$list[$i][icon_new]?><?=$list[$i][icon_hot]?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#E7E7E7"></td>
</tr>
<tr>
<td width="94" height="23">
<table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">이름</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table>
</td>
<td width="80"><?=$list[$i][name]?></td>
<td width="94">
<table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40" align="center"><div align="center">날짜</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table>
</td>
<td align="left"><span class="hit">
<?=$list[$i][datetime2]?></span></td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#E7E7E7"></td>
</tr>
<tr>
<td width="94" height="23"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">분류</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table></td>
<td width="80" height="23"><? if ($is_category) { ?>
<?=$list[$i][ca_name]?>
<? } ?> </td>
<td width="94" height="23"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40" align="center"><div align="center">히트</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table></td>
<td align="left"><span class="hit">
<?=$list[$i][wr_hit]?></span></td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#E7E7E7"></td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="94" rowspan="2" valign="top" style="padding-top:5px;"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">내용</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table></td>
<td colspan="3" valign="top" style="padding-top:5px;"><div align="justify">
<?=cut_str(strip_tags($list[$i][wr_content]),125,"...")?>
</div></td>
</tr>
<tr>
<td height="5" colspan="3" valign="top" style="padding-top:5px;"><img src="<?=$board_skin_path?>/img/5px.gif" width="5" height="5" /></td>
</tr>
</table>
<!-- 내용테이블 끝 --> </td>
</tr>
</table></td>
</tr>
</table></td >
</tr>
<tr >
<td>
<!-- 3번테이블 시작-->
<!-- 3번테이블 끝--></td>
</tr>
</table>
<!-- 2번테이블 끝-->
<? } ?>
<td height="25" align="center" valign="middle"> <form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<?
for ($i=0; $i<count($list); $i++)
{
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='$thumb_max' title='No Image'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
$images = "$data_path/$image";
$thumb = $data_path.'/'.$list[$i][wr_id].'.Thum';
if (!file_exists($thumb))
{
if (preg_match("/\.(jpg|gif|png)$/i", $image) && file_exists($images))
{
ThumbMaker( $images, $thumb );
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
?>
<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td height="10" ><br />
<table width="100%" border="10" cellpadding="0" cellspacing="0" bordercolor="#F3F3F3">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="white" >
<tr>
<td width="147" align="center" valign="middle" style="padding-left:5px; padding-right:10px;"><!-- 이미지테이블 시작-->
<table width="137" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="137"><br />
<table width="137" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="center">
<? if ($list[$i][wr_link2]) { ?>
<a href='<?=$list[$i][href]?>'>
<? } else { ?>
<a href="javascript://" onclick="window.open('<?=$board_skin_path?>/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=741,height=472');" title='동영상보기'>
<? } ?>
<?=$img?>
</a>
<div align="center"></div></td>
</tr>
<tr>
<td height="5" colspan="3" align="center"><img src="<?=$board_skin_path?>/img/5px.gif" width="5" height="5" /></td>
</tr>
</table></td>
</tr>
<tr>
<!-- 권한 -->
<td align="center"><? if (($member[mb_id] && (($member[mb_id] == $write[mb_id])|| ($member[mb_id] == $list[$i][mb_id]))) || $is_admin) { ?>
<table width="109" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="20"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>" /></td>
<td width="12" valign="bottom"></td>
<td width="39"><div align="center"><a href="<?=$write_href?>&w=u&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>"><img src="<?=$board_skin_path?>/img/modify_btn.gif" alt="수정" width="39" height="12" vspace="5" border="0" align="absmiddle" title="수정하기" /></a></div></td>
<td width="38"><div align="center"><a href="javascript:del('./delete.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=');"><img src="<?=$board_skin_path?>/img/delete_btn.gif" alt="삭제" width="38" height="12" vspace="5" border="0" align="absmiddle" title="삭제하기" /></a></div></td>
</tr>
</table>
<? } ?>
<? if ($list[$i][wr_link1]) { ?>
<a href="javascript://" onclick="window.open('<?=$board_skin_path?>/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=100,left=100,width=741,height=472');" title='동영상보기'><img src="<?=$board_skin_path?>/img/gohome.gif" border="0" /></a>
<? } else { ?>
<? if ($list[$i][wr_link2]) { ?>
<a href='<?=$list[$i][href]?>'><img src="<?=$board_skin_path?>/img/gohome.gif" border='0'></a>
<? } ?>
<? }?></td>
</tr>
<tr>
<td height="5" align="center"><img src="<?=$board_skin_path?>/img/5px.gif" width="5" height="5" /></td>
</tr>
</table>
<!-- 이미지테이블 끝--> </td>
<td valign="top"><!-- 내용테이블 시작 -->
<br />
<table width="95%" cellspacing="0" cellpadding="0">
<tr>
<td width="94" height="23"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">제목</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table>
</td>
<td height="23" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href='<?=$list[$i][href]?>'>
<?=$list[$i][subject]?>
</a> <?=$list[$i][comment_cnt]?><?=$list[$i][icon_new]?><?=$list[$i][icon_hot]?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#E7E7E7"></td>
</tr>
<tr>
<td width="94" height="23">
<table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">이름</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table>
</td>
<td width="80"><?=$list[$i][name]?></td>
<td width="94">
<table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40" align="center"><div align="center">날짜</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table>
</td>
<td align="left"><span class="hit">
<?=$list[$i][datetime2]?></span></td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#E7E7E7"></td>
</tr>
<tr>
<td width="94" height="23"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">분류</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table></td>
<td width="80" height="23"><? if ($is_category) { ?>
<?=$list[$i][ca_name]?>
<? } ?> </td>
<td width="94" height="23"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40" align="center"><div align="center">히트</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table></td>
<td align="left"><span class="hit">
<?=$list[$i][wr_hit]?></span></td>
</tr>
<tr>
<td height="1" colspan="4" bgcolor="#E7E7E7"></td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="94" rowspan="2" valign="top" style="padding-top:5px;"><table width="94" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" align="center"><img src="<?=$board_skin_path?>/img/arr_01.gif" width="3" height="5" /></td>
<td width="40"><div align="center">내용</div></td>
<td width="19"><img src="<?=$board_skin_path?>/img/arr_03.gif" width="15" height="11" /></td>
</tr>
</table></td>
<td colspan="3" valign="top" style="padding-top:5px;"><div align="justify">
<?=cut_str(strip_tags($list[$i][wr_content]),125,"...")?>
</div></td>
</tr>
<tr>
<td height="5" colspan="3" valign="top" style="padding-top:5px;"><img src="<?=$board_skin_path?>/img/5px.gif" width="5" height="5" /></td>
</tr>
</table>
<!-- 내용테이블 끝 --> </td>
</tr>
</table></td>
</tr>
</table></td >
</tr>
<tr >
<td>
<!-- 3번테이블 시작-->
<!-- 3번테이블 끝--></td>
</tr>
</table>
<!-- 2번테이블 끝-->
<? } ?>
<? if (count($list) == 0) { echo " <table width=100% border=0 cellpadding=0 cellspacing=0 ><tr><td height=100 align=center> 게시물이 없습니다.</td></tr></table>"; } ?>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; font-size:9pt; \">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#FF6600;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=10 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</form></td>
</tr>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; font-size:9pt; \">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#FF6600;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=10 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</form></td>
</tr>
<tr>
<td colspan="0" valign="top">
<!-- 페이지 -->
<table width="100%" height="3%" cellpadding="0" cellspacing="0">
<tr>
<td width="154" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<? if ($list_href) { ?>
<td valign="top"><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" vspace="0" border="0"></a></td>
<? } ?>
<td valign="top">
<? if ($is_checkbox) { ?><a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" hspace="0" vspace="0" border="0"></a></td>
<td valign="top"><a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" vspace="0" border="0"></a></td>
<td valign="top"><a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" hspace="0" vspace="0" border="0"></a><? } ?></td>
</tr>
</table></td>
<td width="174" height=35 align="left" valign="top"> </td>
<td height="35" align="right" valign="top"><? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" hspace="0" vspace="0" border="0" /></a><?}?><? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" vspace="0" border="0"></a> <? } ?> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top"><form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
</form></td>
</tr>
</table>
<td colspan="0" valign="top">
<!-- 페이지 -->
<table width="100%" height="3%" cellpadding="0" cellspacing="0">
<tr>
<td width="154" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<? if ($list_href) { ?>
<td valign="top"><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" vspace="0" border="0"></a></td>
<? } ?>
<td valign="top">
<? if ($is_checkbox) { ?><a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" hspace="0" vspace="0" border="0"></a></td>
<td valign="top"><a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" vspace="0" border="0"></a></td>
<td valign="top"><a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" hspace="0" vspace="0" border="0"></a><? } ?></td>
</tr>
</table></td>
<td width="174" height=35 align="left" valign="top"> </td>
<td height="35" align="right" valign="top"><? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" hspace="0" vspace="0" border="0" /></a><?}?><? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" vspace="0" border="0"></a> <? } ?> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top"><form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
</form></td>
</tr>
</table>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
return;
f.action = "./delete_all.php";
f.submit();
}
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<!-- 게시판 목록 끝 -->
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<!-- 게시판 목록 끝 -->
댓글 전체

$str .= "<img src='$board_skin_path/img/cata_ico.gif' align='absmiddle'> <a href='./board.php?bo_table=$bo_table&mode=$mode&sca=$arr[$i]' class='link_line'><b>$arr[$i]</b></a> <font color='#838383'>|</font> ";
의 막대기네요...^^
의 막대기네요...^^
거기였군요...^^
감사합니다!~
감사합니다!~

컨트롤 F 하고 막대기