스킨 질문 드려요. 정보
스킨 질문 드려요.관련링크
본문
여기에 질문을 드려도 되는건지 모르겠네요...;;
링크 건 스킨을 보면
[] [] []
[] [] []
[] [] []
이런 식으로 리스트가 나오고,
하나를 누르면, 새로운 레이어에 이미지가 크게 뜨는데요.
그 부분에 해당 게시물 내용을 넣을 수 있는지요...
< > 내용 + X
이렇게 나오게요.
------------- 소스
<form name="fboardlist" method="post" style="margin:0px;">
<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="">
<table width=100%>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0)
echo "</tr><tr>";
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 title='이미지 없음'>";
$image = $list[$i][file][0][file];
//$thumb = $thumb_path.'/'.$list[$i][wr_id];
$thumb = $thumb_path.'/'.$list[$i][file][0][file];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = @getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
continue;
$rate = $thumb_width / $size[0];
$height = (int)($size[1] * $rate);
if ($height < $thumb_height)
$dst = imagecreatetruecolor($thumb_width, $height);
else
$dst = imagecreatetruecolor($thumb_width, $thumb_height);
/*imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][file][0][file], $thumb_quality);
chmod($thumb_path.'/'.$list[$i][file][0][file], 0606);*/
imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][file][0][file], $thumb_quality);
chmod($thumb_path.'/'.$list[$i][file][0][file], 0606);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $thumb_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb) && $list[$i][file][0][file]) {
$img = "<a href='$g4[path]/data/file/$bo_table/$image') class='highslide' onclick='return hs.expand(this)' ><img src='{$thumb}' width='{$thumb_width}' height='{$thumb_height}' border=0 style='border:0px solid #999999;'></a>";
} else {
preg_match("`<\s*img\s+src\s*=\s*['|\"]?([^'|\"\s]+://[^'|\"\s]+\.(gif|jpe?g|png))['|\"]?\s*[^>]+`i", $list[$i]['wr_content'], $images);
if (!empty($images[1])) {
$img_size = GetImageSize("$images[1]");
if($img_size[0] >= $img_size[1]) {
$imgper = $thumb_width/$img_size[0];
$thumb_height = $img_size[1]*$imgper;
}else{
$imgper = $thumb_height/$img_size[1];
$thumb_width = $img_size[0]*$imgper;
}
$img = "<a href='$g4[path]/data/file/$bo_table/$image') class='highslide' onclick='return hs.expand(this)' ><img src='{$images[1]}' width='{$thumb_width}' height='{$thumb_height}' align='absmiddle' border='0'></a>";
} else {
echo "";
}
}
$style = "";
if ($list[$i][icon_new])
$style = " style='font-weight:normal;' ";
$subject = "<a href='{$list[$i][href]}' onfocus='this.blur()'><span $style>".cut_str($list[$i][subject],77)."</span></a>";
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="thumb_1_2.gif";
else
$bg="thumb_1.gif";
echo "<td width='{$td_width}%' valign=top style='word-break:break-all;'>\n";
echo "<table>\n";
echo "<tr><td><div style='position:relative; width:$thumb_width; height:$thumb_height;'><div style='position:absolute; left:5; top:80; z-index:1000;'><table><tr><td style='padding:3px;' bgcolor='#000000;'>\n";
echo "<font style='font-size:8pt; font-family:돋움; color:#5c8b11; letter-spacing:-1;'></font>\n";
echo "</td></tr></table></div><div style='position:absolute; left:0; top:0; z-index:100;'>$img</div></div></td></tr>\n";
echo "<tr><td height=10></td></tr><tr><td style='padding:3;'><font style='font-size:8pt; font-family:돋움; color:#5c8b11; letter-spacing:-1;'>{$list[$i][wr_content]}</font></td></tr>\n";
if ($is_checkbox) echo "<tr><td height=10></td></tr><tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";
if ($is_checkbox) echo "<tr><td align='center'>{$list[$i][datetime2]}";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
echo "</td></tr><tr><td height=20></td></tr>\n";
echo "</table></td>\n";
}
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td></tr>";
?><div class='highslide-caption' id='the-caption'>
<a href="#" onClick="return hs.previous(this)" class="control" style="float:left; display: block"><img src="<?=$board_skin_path?>/img/hs_001.gif"/></a>
<a href="#" onClick="return hs.next(this)" class="control" style="float:left; display: block; text-align: right; margin-left: 4px"><img src="<?=$board_skin_path?>/img/hs_002.gif"/></a>
<font style='font-size:8pt; font-family:돋움; color:#000000; letter-spacing:-1;'><?=cut_str($list[$i][wr_content],250,"...");?></font>
<a href="#" onClick="return hs.close(this)" class="control"><img src="<?=$board_skin_path?>/img/hs_004.gif"/></a>
<nobr><a href="#" class="highslide-move control" onClick="return false"><img src="<?=$board_skin_path?>/img/hs_003.gif"/></a></nobr>
<div style="clear:both"></div>
</div>
</tr>
<tr><td colspan='<?=$mod?>' height=20></td></tr>
<!--<tr><td colspan=<?=$mod?> height=1 bgcolor=#E7E7E7></td></tr>-->
<? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<!--<tr><td colspan=<?=$mod?> bgcolor=#5C86AD height=1>-->
</table>
</form>
링크 건 스킨을 보면
[] [] []
[] [] []
[] [] []
이런 식으로 리스트가 나오고,
하나를 누르면, 새로운 레이어에 이미지가 크게 뜨는데요.
그 부분에 해당 게시물 내용을 넣을 수 있는지요...
< > 내용 + X
이렇게 나오게요.
------------- 소스
<form name="fboardlist" method="post" style="margin:0px;">
<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="">
<table width=100%>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0)
echo "</tr><tr>";
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 title='이미지 없음'>";
$image = $list[$i][file][0][file];
//$thumb = $thumb_path.'/'.$list[$i][wr_id];
$thumb = $thumb_path.'/'.$list[$i][file][0][file];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = @getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
continue;
$rate = $thumb_width / $size[0];
$height = (int)($size[1] * $rate);
if ($height < $thumb_height)
$dst = imagecreatetruecolor($thumb_width, $height);
else
$dst = imagecreatetruecolor($thumb_width, $thumb_height);
/*imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][file][0][file], $thumb_quality);
chmod($thumb_path.'/'.$list[$i][file][0][file], 0606);*/
imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][file][0][file], $thumb_quality);
chmod($thumb_path.'/'.$list[$i][file][0][file], 0606);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $thumb_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb) && $list[$i][file][0][file]) {
$img = "<a href='$g4[path]/data/file/$bo_table/$image') class='highslide' onclick='return hs.expand(this)' ><img src='{$thumb}' width='{$thumb_width}' height='{$thumb_height}' border=0 style='border:0px solid #999999;'></a>";
} else {
preg_match("`<\s*img\s+src\s*=\s*['|\"]?([^'|\"\s]+://[^'|\"\s]+\.(gif|jpe?g|png))['|\"]?\s*[^>]+`i", $list[$i]['wr_content'], $images);
if (!empty($images[1])) {
$img_size = GetImageSize("$images[1]");
if($img_size[0] >= $img_size[1]) {
$imgper = $thumb_width/$img_size[0];
$thumb_height = $img_size[1]*$imgper;
}else{
$imgper = $thumb_height/$img_size[1];
$thumb_width = $img_size[0]*$imgper;
}
$img = "<a href='$g4[path]/data/file/$bo_table/$image') class='highslide' onclick='return hs.expand(this)' ><img src='{$images[1]}' width='{$thumb_width}' height='{$thumb_height}' align='absmiddle' border='0'></a>";
} else {
echo "";
}
}
$style = "";
if ($list[$i][icon_new])
$style = " style='font-weight:normal;' ";
$subject = "<a href='{$list[$i][href]}' onfocus='this.blur()'><span $style>".cut_str($list[$i][subject],77)."</span></a>";
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="thumb_1_2.gif";
else
$bg="thumb_1.gif";
echo "<td width='{$td_width}%' valign=top style='word-break:break-all;'>\n";
echo "<table>\n";
echo "<tr><td><div style='position:relative; width:$thumb_width; height:$thumb_height;'><div style='position:absolute; left:5; top:80; z-index:1000;'><table><tr><td style='padding:3px;' bgcolor='#000000;'>\n";
echo "<font style='font-size:8pt; font-family:돋움; color:#5c8b11; letter-spacing:-1;'></font>\n";
echo "</td></tr></table></div><div style='position:absolute; left:0; top:0; z-index:100;'>$img</div></div></td></tr>\n";
echo "<tr><td height=10></td></tr><tr><td style='padding:3;'><font style='font-size:8pt; font-family:돋움; color:#5c8b11; letter-spacing:-1;'>{$list[$i][wr_content]}</font></td></tr>\n";
if ($is_checkbox) echo "<tr><td height=10></td></tr><tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";
if ($is_checkbox) echo "<tr><td align='center'>{$list[$i][datetime2]}";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
echo "</td></tr><tr><td height=20></td></tr>\n";
echo "</table></td>\n";
}
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td></tr>";
?><div class='highslide-caption' id='the-caption'>
<a href="#" onClick="return hs.previous(this)" class="control" style="float:left; display: block"><img src="<?=$board_skin_path?>/img/hs_001.gif"/></a>
<a href="#" onClick="return hs.next(this)" class="control" style="float:left; display: block; text-align: right; margin-left: 4px"><img src="<?=$board_skin_path?>/img/hs_002.gif"/></a>
<font style='font-size:8pt; font-family:돋움; color:#000000; letter-spacing:-1;'><?=cut_str($list[$i][wr_content],250,"...");?></font>
<a href="#" onClick="return hs.close(this)" class="control"><img src="<?=$board_skin_path?>/img/hs_004.gif"/></a>
<nobr><a href="#" class="highslide-move control" onClick="return false"><img src="<?=$board_skin_path?>/img/hs_003.gif"/></a></nobr>
<div style="clear:both"></div>
</div>
</tr>
<tr><td colspan='<?=$mod?>' height=20></td></tr>
<!--<tr><td colspan=<?=$mod?> height=1 bgcolor=#E7E7E7></td></tr>-->
<? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<!--<tr><td colspan=<?=$mod?> bgcolor=#5C86AD height=1>-->
</table>
</form>
댓글 전체