테스트 사이트 - 개발 중인 베타 버전입니다

갤러리 스킨 리스트 페이지 관련.. 알쏭달쏭 합니다.. 채택완료

PotatoChips 10년 전 조회 3,406

 

위 스샷과 반대로 큰이미지 밑에 작은이미지가 나열되게 하려고 하는데 

 

큰이미지

 

 작은이미지

 

작은이미지

 

 

작은이미지

 

 

작은이미지

 

 작은이미지

 

작은이미지

 

 

될듯말듯 하면서 안되고 있습니다. ㅜㅜ

무척이나 헤깔리네요;;

 

위의 소스는..

 

</p><p><!-- 게시판 목록 시작 --></p><p><table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td></p><p> </p><p><table width="100%" cellpadding="0" cellspacing="0"></p><p><tr></p><p><!-- 목록 --></p><p><? for ($i=0; $i<count($list); $i++) { </p><p> </p><p>if(!$member[mb_id]) {</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$list[$i][href] = "#";</p><p>}</p><p> </p><p>$list_file = sql_fetch("select bf_file from $g5[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");</p><p>if($list_file[bf_file]) {</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$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>";</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$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]}'\">";</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>//$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>";</p><p>}else {</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$list_file_view[$i] = "";</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>$list_lfile_view[$i] = "";</p><p>}</p><p>?></p><p><td width="14%"></p><p><table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_file_view[$i]?></td></tr></table></p><p></td></p><p> </p><p><?}?></p><p><? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?></p><p></tr></p><p></table></p><p> </p><p> </p><p><table width="100%" cellpadding="0" cellspacing="0"></p><p><tr><td height=10></td></tr></p><p><tr><td></p><p><span class="Apple-tab-span" style="white-space:pre">	</span><table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_lfile_view[0]?></td></tr></table></p><p></td></tr></p><p></table></p><p> </p><p> </p><p><!-- 페이지 --></p><p><table width="100%" cellspacing="0" cellpadding="0"></p><p><tr> </p><p>    <td width="100%" align="center" height=30 valign=bottom></p><p>        <? if ($prev_part_href) { echo "<a href='$prev_part_href'>이전검색</a>"; } ?></p><p>        <?</p><p>        // 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>// <img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></p><p>        //echo $write_pages;</p><p>        $write_pages = str_replace("처음", "처음", $write_pages);</p><p>        $write_pages = str_replace("이전", "이전", $write_pages);</p><p>        $write_pages = str_replace("다음", "다음", $write_pages);</p><p>        $write_pages = str_replace("맨끝", "맨끝", $write_pages);</p><p>        $write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font></b>", $write_pages);</p><p>        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);</p><p>        ?></p><p>        <?=$write_pages?></p><p>        <? if ($next_part_href) { echo "<a href='$next_part_href'>다음검색</a>"; } ?></p><p>    </td></p><p></tr></p><p></table> </p><p>

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

10년 전

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {&nbsp;
&nbsp;
if(!$member[mb_id]) {
    $list[$i][href] = "#";
}
&nbsp;
$list_file = sql_fetch("select bf_file from $g5[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_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>";
    $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] = "";
}
?>
<td width="14%">
<table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_file_view[$i]?></td></tr></table>
</td>
&nbsp;
<?}?>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>

 

 

 

 

요거를 잘라내서
맨밑부분에 박으세요!

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

P
PotatoChips
10년 전
답변 감사합니다.
질문 올리기 전에 알려주신 소스도 적용해 봤었는데 큰 이미지가 아예 안나오더라구요;;

댓글을 작성하려면 로그인이 필요합니다.

f
10년 전
&#039;14%&#039; 부분이 작은 이미지, &#039;100%&#039;가 큰 이미지인 듯...
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인