리스트에서 이미지 클릭시 내용보기로 넘길수 있나요?
본문
리스트인데요.
사진(포스터)과 제목(공연명) 이 있는데, 사진은 링크가 안되고 제목부분만 링크가 되는데, 사진도 내용보기로 링크를
걸 수 있을까요?
아래는 소스 입니다.
고수님들 도움 부탁 할께요... 부탁만 해서 죄송 합니다. ㅜㅜ;
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once "$board_skin_path/skin.lib.php";
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
$max = 180; // 이미지의 가로세로(긴쪽)의 최대치.
$resol = 100 ; // 생성되는 썸네일의 JPG압축률.(퍼센트%)
function smaller( $W, $H ) {
global $max, $thum_W, $thum_H ;
if ( $W > $H ) { //가로형일 경우.
$thum_W = $max ;
$thum_H = ceil( $H * ( $max / $W ) );
}
if ( $W < $H ) { //세로형일 경우.
$thum_H = $max ;
$thum_W = ceil( $W * ( $max / $H ) );
}
if ( $W == $H ) { //정사각형일 경우.
$thum_W = ceil( $max * 0.8 );
$thum_H = ceil( $max * 0.8 );
}
return $thum_W ;
return $thum_H ;
}
function maker( $thum_W, $thum_H ) {
global $thum, $resol, $ori, $ori_info ;
//$newImg = ImageCreate($thum_W,$thum_H); // GD라이브러리 2.0 (이하일 경우)
$newImg = ImageCreateTrueColor($thum_W,$thum_H); // GD라이브러리 2.0 전용함수
if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($ori);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($ori);
//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, $thum, $resol );
@chmod($thum,0707);
ImageDestroy($newImg);
ImageDestroy($origImg);
return $thum ;
}
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 9;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
if ($is_category) {
$nc_category_location = "./board.php?bo_table=$bo_table&sca=$sca&sfl=wr_10&stx=";
$nc_category_option = get_nc_category_option($bo_table, $sca);
}
?>
<? for ($i=0; $i<count($list); $i++) {
$ryear_all = substr($list[$i][wr_datetime],0,4);
$ryear = substr($list[$i][wr_datetime],2,2);
$rmonth = substr($list[$i][wr_datetime],5,2);
$rday = substr($list[$i][wr_datetime],8,2);
$rhour = substr($list[$i][wr_datetime],11,2);
$rmini = substr($list[$i][wr_datetime],14,5);
$rsec = substr($list[$i][wr_datetime],17,2);
$rdate = mktime($rhour,$rmini,$rsec,$rmonth,$rday,$ryear);
$rdate_all = mktime($rhour,$rmini,$rsec,$rmonth,$rday,$ryear_all);
?>
<style type="text/css">
<!--
.w_fixed { table-layout:fixed; }
.w_font { font-family:돋움; font-size:9pt; color:#BB4681; }
.w_title { font-family:굴림; font-size:9pt; color:#666666; }
.w_list { font-family:굴림; font-size:9pt; color:#ff0000; }
.w_notice { font-family:돋움; font-size:9pt; color:#2C88B9; }
.w_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-LEFT: 15px; PADDING-TOP: 5px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
-->
</style>
<?
// 게시판 관리의 상단 이미지 경로
//if ($board[bo_image_head])
// echo "<img src='$g4[path]/data/file/$bo_table/$board[bo_image_head]' border='0'>";
// 게시판 관리의 상단 내용
if ($board[bo_content_head])
echo stripslashes($board[bo_content_head]);
?>
<!--- 끝 --->
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="27">
<td>
<!-- 카테고리&관리버튼 -->
<? if ($is_category) { ?>
<? if (!$wr_id) { ?>
<?
$cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$b_s=""; $b_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = " <span style='font-size:11px; color:#D2D2D2;'>|</span> ";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>"; $b_e="</b>"; } else {$b_s=""; $b_e="";}
$str .= " <a href='./board.php?bo_table=$bo_table&sca=".urlencode($arr[$i])."'>$b_s$arr[$i]$b_e</a> <span style='font-size:11px; color:#D2D2D2;'>|</span> ";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?echo " ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>전체</a><?=$bb_e?> <span style="font-size:8pt; color=#AEAEAE;">(<?=number_format($total_count)?>)</span>
<?=$str?></td>
<? } ?>
<? } ?>
<td width="50%" align="right" valign="bottom"><font class=w_font>TOTAL <?=number_format($total_count)?>
</font>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" border="0" align="absmiddle"></a><? } ?></td>
</tr>
</table>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 끝 -->
<table><tr><td height="5"></td></tr></table>
<!-- 게시판 제목 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?
if ($stx && $nca) {
$stx = "";
$sfl = "";
$sop = "";
}
?>
<form name="fboardlist" method="post" action="">
<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="">
<tr>
<td height="1" bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
</tr>
<tr>
<td width="4" height="30"></td>
<? if ($is_checkbox) { ?><td width="40" align="center" valign="middle"><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><? } ?>
<td width="122" align="center" valign="middle"><font class=w_title><strong>포스터</strong></font></td>
<td align="left" valign="middle"><div align="center"><font class=w_title><strong>공연명</strong></font></div></td>
<td width="160" align="center" valign="middle"><strong>공연정보</strong></td>
<? if ($is_good) { ?><td width="40" align="center" valign="middle"><font style="font-family:돋움; font-size:9pt; color:#7993AF"><strong>추천</strong></font></td><? } ?>
<? if ($is_nogood) { ?><td width="40" align="center" valign="middle"><font style="font-family:돋움; font-size:9pt; color:#A07C7C"><strong>비추천</strong></font></td><? } ?>
<td width="4"></td>
</tr>
<tr>
<td height="1" bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
<td bgcolor="#EEEEEE"></td>
</tr>
</table>
<!-- 게시판 제목 끝 -->
<!-- 게시물 리스트 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top: 10; margin-bottom: 10; font-weight: bold;" class="w_fixed">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr <? if ($list[$i][is_notice]) { ?>bgcolor="#F9FBFB"<? } ?>>
<? if ($is_checkbox) { ?><td width="40" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
<td align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="1">
<tr>
<td><? // 이미지 처리부분
##################################################################################################
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if ($image) {
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
$ori = "$g4[path]/data/file/$bo_table/$image"; //[필수](URL) "./img/Test.gif"
}
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff")
$ori_info=getimagesize($ori);
else
$ori_info="";
//===== 원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) {
$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
}
else { // Thumbnail [X] 경우
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
}
//===== 원파일이 [ 1GIF,6BMP,7TIF ] 경우
else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) {
if ( smaller( $ori_info[0], $ori_info[1] ) ) { $thum = $ori ; }
}
##################################################################################################
?>
<img src='<?=$thum?>' alt='<?=$list[$i][wr_subject]?>' style='border:1px solid #ff0000' />
<? } elseif ($list[$i][wr_6])
{ echo "<img src='".$latest_skin_path."/img/noimg.gif' width='120' height='180' style='border:1px solid #ff0000'>"; }
else { ?>
<img src="<?=$board_skin_path?>/img/hn.gif" alt="이미지 없음" />
<? } ?> </td>
</tr>
</table></td>
<td width="100%" align="right" valign="middle"><table width="80%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<? 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 "<font class=w_list><b>{$list[$i][subject]}[자세히]</b></font>";
echo "</a>";
//if ($list[$i][comment_cnt])
// echo " <a href=\"javascript:{$list[$i][comment_href]}\"><span style=\"font-family:돋움; font-size:8pt; color:#9A9A9A\">{$list[$i][comment_cnt]}</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//echo " " . $list[$i][icon_new];
//echo " " . $list[$i][icon_file];
//echo " " . $list[$i][icon_link];
//echo " " . $list[$i][icon_hot];
//echo " " . $list[$i][icon_secret];
$nobr_end;
?>
</td>
</tr>
</table> </td>
<td width="250" align="center" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" align="center" valign="middle" colspan="3"></td>
</tr>
<tr>
<td height="25" width="55" valign="middle" align="center"><span style="font-size: 9pt; font-weight: bold;">공연일시</span></td>
<td width="15" valign="middle" align="center" height="25">:</td>
<td height="25">
<p style="margin-left:5;"><? echo substr($list[$i][wr_1],0,4)."년".substr($list[$i][wr_1],4,2)."월".substr($list[$i][wr_1],6,2)."일"; ?> </a>
<?=$list[$i][wr_8]?>분
</p>
</td>
</tr>
<tr>
<td height="1" colspan="3" align="center" valign="middle" bgcolor="#efefef">
<p style="margin-left:5;"></p> </td>
</tr>
<tr>
<td height="5" width="55" valign="middle" align="center"></td>
<td valign="middle" align="center" width="15"></td>
<td>
<p style="margin-left:5;"></p>
</td>
</tr>
<tr>
<td height="25" width="55" valign="middle" align="center"><span style="font-size: 9pt; font-weight: bold;">공연장소</span></td>
<td width="15" valign="middle" align="center" height="25">:</td>
<td height="25">
<p style="margin-left:5;"><?=$list[$i][wr_2]?></a></p>
</td>
</tr>
<tr>
<td height="1" colspan="3" align="center" valign="middle" bgcolor="#efefef">
<p style="margin-left:5;"></p> </td>
</tr>
<tr>
<td height="5" width="55" valign="middle" align="center"></td>
<td valign="middle" align="center" width="15"></td>
<td>
<p style="margin-left:5;"></p>
</td>
</tr>
<tr>
<td height="25" width="55" valign="middle" align="center"><span style="font-size: 9pt; font-weight: bold;">연 주</span></td>
<td valign="middle" align="center" width="15" height="25">:</td>
<td height="25">
<p style="margin-left:5;"><font class=w_font><?=$list[$i][wr_3]?></a></font></p>
</td>
</tr>
<tr>
<td height="1" colspan="3" align="center" valign="middle" bgcolor="#efefef">
<p style="margin-left:5;"></p> </td>
</tr>
<tr>
<td height="5" width="55" valign="middle" align="center"></td>
<td valign="middle" align="center" width="15"></td>
<td>
<p style="margin-left:5;"></p>
</td>
</tr>
<tr>
<td height="25" width="55" valign="middle" align="center"><span style="font-size: 9pt; font-weight: bold;">주 최</span></td>
<td valign="middle" align="center" width="15" height="25">:</td>
<td height="25">
<p style="margin-left:5;"><font class="w_font">
<?=$list[$i][wr_4]?>
</font></p>
</td>
</tr>
<tr>
<td height="1" colspan="3" align="center" valign="middle" bgcolor="#efefef">
<p style="margin-left:5;"></p> </td>
</tr>
<tr>
<td height="5" width="55" valign="middle" align="center"></td>
<td valign="middle" align="center" width="15"></td>
<td>
<p style="margin-left:5;"></p>
</td>
</tr>
<? if ($member[mb_level] >= 6) { ?>
<tr>
<td height="25" width="55" valign="middle" align="center"><span style="font-size: 9pt; font-weight: bold;">주 관</span></td>
<td valign="middle" align="center" width="15" height="25">:</td>
<td height="25">
<p style="margin-left:5;"><font class="w_font">
<?=$list[$i][wr_5]?></a></font></p>
</td>
</tr>
<? } ?>
<? if ($member[mb_level] >= 6) { ?>
<tr>
<td height="1" colspan="3" align="center" valign="middle" bgcolor="#efefef">
<p style="margin-left:5;"></p> </td>
</tr>
<? } ?>
<tr>
<td height="5" width="55" valign="middle" align="center"></td>
<td valign="middle" align="center" width="15"></td>
<td>
<p style="margin-left:5;"></p>
</td>
</tr>
<tr>
<td height="25" width="55" valign="top" align="center"><span style="font-size: 9pt; font-weight: bold;">협 연</span></td>
<td valign="top" align="center" width="15" height="25">:</td>
<td valign="top">
<p style="margin-bottom:5; margin-left:5;">
<?=$list[$i][wr_6]?></a></p>
</td>
</tr>
<tr>
<td height="1" colspan="3" align="center" valign="middle" bgcolor="#efefef">
<p style="margin-left:5;"></p> </td>
</tr>
<tr>
<td height="10" colspan="3" align="center" valign="middle"><p> </p></td>
</tr>
</table>
</td>
<? if ($is_good) { ?><td width="40" align="center" valign="middle"><font class=w_font><?=$list[$i][wr_good]?></font></td><? } ?>
<? if ($is_nogood) { ?><td width="40" align="center" valign="middle"><font class=w_font><?=$list[$i][wr_nogood]?></font></td><? } ?>
</tr>
<tr>
<td colspan="<?=$colspan?>" height="1" background="<?=$board_skin_path?>/img/dot_bg.gif"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 게시물 리스트 끝 -->
<!-- 페이지 표시 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line.gif">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<? 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>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong><?=$write_pages?></strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- 페이지 표시 끝 -->
<!-- 여백 --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height="10"></td></tr></table>
<!-- 글쓰기 및 검색폼 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0" align="absmiddle"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0" align="absmiddle"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align="absmiddle" border='0'></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<!-- DB에 상당한 부하가 걸리므로 사용을 추천하지 않음 <option value='wr_subject+wr_content+wc_content'>제목+내용+코멘트</option> -->
<option value='wr_subject'>제목</option>
<option value='wr_subject'+'wr_content'>제목+내용</option>
<option value='wr_content'>내용</option>
<!-- 코멘트도 같이 검색할 경우에 사용합니다. (속도가 느려짐)
<option value='b.wc_content'>코멘트</option>
<option value='a.mb_id+b.mb_id'>회원아이디2</option>
<option value='a.wr_name+b.wc_name'>이름2</option> -->
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>" style="ime-mode:active">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
</td>
<td width="10%" align="center"><INPUT type=image src="<?=$board_skin_path?>/img/btn_search.gif" border=0></td>
</form>
</tr>
</table>
<!-- 글쓰기 및 검색폼 끝-->
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$nca?>") document.fcategory.nca.value = "<?=$nca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
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;
}
}
function check_confirm(str)
{
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 (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
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>
<? } ?>
<!-- 게시판 목록 끝 -->
<br><br>
<? } ?>
!-->
답변 2
<a href='<?php echo $list[$i][href]?>'><img src=
'<?=$thum?>'
alt=
'<?=$list[$i][wr_subject]?>'
style=
'border:1px solid #ff0000'
/></a>
이미지 출력부분에 링크 걸어주시면 돼요
<a href='{$list[$i][href]}'><img src=
'<?=$thum?>'
alt=
'<?=$list[$i][wr_subject]?>'
style=
'border:1px solid #ff0000'
/></a>이렇게 해주시면 될것같네요
답변을 작성하시기 전에 로그인 해주세요.