하

다시질문) 아그나블레이드님의 미리보기 갤러리 스킨

· 2008-05-27 (화) 13:38:02 · 865 · 4
앵무나라님이 답변 주셔서 이렇게 고쳤는데 큰 그림이 나오지 않네요.
작은 리스트 그림들은 나오는데...
작은 그림에 마우스 올라가면 나타나는 큰 그림이 나타나지 않습니다.
어디가 잘 못 되는지 답변좀 부탁드립니다.

21697번을 참고해 주세요!

<td>sssssssssssssssssssssssssssssssssssssssssssssssssssssss</td>
이 부분에 <td><?=$list_lfile_view[0]?></td> 이렇게 수정했는데 안됩니다.

list.skin 파일 올립니다. 확인좀 부탁드립니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//작은 이미지 사이즈
$small_width = "88";
$small_height = "63";
//큰이미지
$large_width = "590";
$large_height = "470";

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;

// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>

<!-- 게시판 목록 시작 -->

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td valign="top">

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><table cellpadding="0" cellspacing="0" border="0" bordercolor="#E1E1E2">
<tr>
<td width="5"></td>
<td>sssssssssssssssssssssssssssssssssssssssssssssssssssssss</td>
</tr>
</table></td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td rowspan="2">

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="14%">
<table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2">
<tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
echo "<td width='93' height='90' align='center' valign='middle'>";
if(!$member[mb_id]) {
$list[$i][href] = "#";
}

$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}

$latest_subject = cut_str($list[$i][subject], 12, '...'); // 제목

echo $list_file_view[$i];
echo "<br>";
echo $latest_subject;
echo "</td>";

if($i%2) {
echo "</tr><tr>";
}

} ?>
</td>
</tr>
</table>
</td>

<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>

</table>

</td>
</tr>
</table>

</td></tr>
<tr><td>

<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30><? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' 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; color:#797979\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>

</td></tr>
</table>


<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=<?=$width?> cellpadding=0 cellspacing=0 align=center>
<tr>
<td width="50%" height="40"><? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a>
<? } ?>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a> <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a> <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right"></td>
</tr>
</table>
</form>
</td>

</tr>

</table>
|

댓글 4개

2008-05-27 (화) 16:57:24
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
2008-05-27 (화) 17:44:34
엑스엠엘님!
오류가 아니고요. 21697번 질문을 참고해 주시면 알 수 있을 것 같네요.
아그나블레이드님의 미리보기 갤러리 스킨을 약간 수정해서 쓰고 싶은데 안되네요.
http://www.sir.co.kr/bbs/tb.php/g4_qa/94685/c3215596ce00dca6f74c74f986114aaa
그림에서 처럼 왼쪽에 나타나는 리스트 그림을 오른쪽에서 나타나게 하려고
아래쪽에 있는 이 부분을 위쪽으로 이동했습니다.
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><table cellpadding="0" cellspacing="0" border="0" bordercolor="#E1E1E2">
<tr>
<td width="5"></td>
<td>><?=$list_lfile_view[0]?></td>
</tr>
</table>

큰그림이 나오는 이부분이 왜 적용이 안될까요?
<?=$list_lfile_view[0]?> 이렇게 적용했는데....
아래쪽에서는 적용되는데 위쪽으로 올리면 안되네요.

다시 말씀드리면, 작게 나오는 리스트 그림을 왼쪽에서 오른쪽으로만 이동하고 싶은데 이부분이 쉽게 적용이 안되네요.
다시한번 살펴봐 주시고 꼭좀 답변좀 부탁드릴께요.
감사드립니다.
2008-05-28 (수) 06:39:15
답변이 늦어 죄송합니다. list_file_view 가 정의가 안되있기 때문에 출력이 안되는 겁니다.
위에서 다시한번 정의해주면 됩니다. 밑에 다시 소스 올립니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//작은 이미지 사이즈
$small_width = "88";
$small_height = "63";
//큰이미지
$large_width = "590";
$large_height = "470";

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;

// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>

<!-- 게시판 목록 시작 -->
<?
for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}

$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
}
?>

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td valign="top">

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><table cellpadding="0" cellspacing="0" border="0" bordercolor="#E1E1E2">
<tr>
<td width="5"></td>
<td><?=$list_lfile_view[0]?></td>
</tr>
</table></td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td rowspan="2">

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="14%">
<table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2">
<tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
echo "<td width='93' height='90' align='center' valign='middle'>";
if(!$member[mb_id]) {
$list[$i][href] = "#";
}

$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}

$latest_subject = cut_str($list[$i][subject], 12, '...'); // 제목

echo $list_file_view[$i];
echo "<br>";
echo $latest_subject;
echo "</td>";

if($i%2) {
echo "</tr><tr>";
}

} ?>
</td>
</tr>
</table>
</td>

<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>

</table>

</td>
</tr>
</table>

</td></tr>
<tr><td>

<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30><? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' 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; color:#797979\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>

</td></tr>
</table>


<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=<?=$width?> cellpadding=0 cellspacing=0 align=center>
<tr>
<td width="50%" height="40"><? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a>
<? } ?>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a> <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a> <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right"></td>
</tr>
</table>
</form>
</td>

</tr>

</table>
2008-05-28 (수) 09:26:08
앵무나라님께 감사~~ 감사~~
어제는 이 문제 때문에 여러가지로 고민이 많이 되었는데...
이렇게 도움 주셔서 문제를 해결 했네요.
정말 감사드립니다.
행복하세요!!!
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
08-05-27 조회 1,041
08-05-27 조회 801
08-05-27 조회 1,023
08-05-27 조회 922
08-05-27 조회 835
08-05-27 조회 856
08-05-27 조회 848
08-05-27 조회 1,272
08-05-27 조회 1,018
08-05-27 조회 819
08-05-27 조회 888
08-05-27 조회 910
08-05-27 조회 1,021
08-05-27 조회 852
08-05-27 조회 861
08-05-27 조회 1,026
08-05-27 조회 866
08-05-27 조회 1,047
08-05-27 조회 1,610
08-05-27 조회 900