리스트 페이지에 제목나오게 하는 방법? 정보
리스트 페이지에 제목나오게 하는 방법?본문
[list.php 소스]
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);
?>
<style type="text/css">
a.banner { width: <?=$board['bo_1']?>; margin: 10px auto; padding: 3px; border: 1px solid #e5e5e5; display: block; }
a.banner img { border: 1px solid #f5f5f5; }
.board_button { width: 100%; margin-top: 20px; padding-top: 5px; border-top: 1px solid #dedede; clear: both; text-align: right; }
.btn { padding: 5px 10px; border: 1px solid #ccc; cursor: pointer; }
.red { color: red; }
</style>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
<tr>
<td>
<div style="float:left;">
<form name="fcategory" method="get" style="margin:0px;">
<? if ($is_category) { ?>
<select name=sca onchange="location='<?=$category_location?>'+<?=strtolower($g4[charset])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
<option value=''>전체</option>
<?=$category_option?>
</select>
<? } ?>
</form>
</div>
</td>
</tr>
<tr>
<?
for ($i=0,$j=count($list); $i<$j; $i++)
{
if ($i && $i%$mod==0) echo "</tr><tr>";
echo "<td width='{$td_width}%' align='center' style='text-align:center; word-break:break-all;'>";
$link = ( $is_checkbox ) ? "<a href='".$list[$i][href]."' class='banner'>" : "<a href='".$list[$i][wr_link1]."' class='banner' target='_blank'>";
echo $link."<img src='{$list[$i][file][0][path]}/{$list[$i][file][0][file]}' width='{$board[bo_1]}' height='{$board['bo_2']}' alt='{$list[$i]['subject']}' /></a>";
echo "</td>\n";
} // end for
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
</table>
<? if ( $write_href || $admin_href ) { ?>
<div class="board_button">
<? if ($write_href) { ?><button onclick="location.href='<?=$write_href?>'" class="btn">글쓰기</button><? } ?>
<? if ($admin_href) { ?><button onclick="location.href='<?=$admin_href?>'" class="btn red">관리자</button><? } ?>
</div>
<? } ?>
</td></tr></table>
<!-- 게시판 목록 끝 -->
위 소스가 list.php소스인데요 이미지밑에 제목이 나오게끔 하고싶은데 어떻게 해야하나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);
?>
<style type="text/css">
a.banner { width: <?=$board['bo_1']?>; margin: 10px auto; padding: 3px; border: 1px solid #e5e5e5; display: block; }
a.banner img { border: 1px solid #f5f5f5; }
.board_button { width: 100%; margin-top: 20px; padding-top: 5px; border-top: 1px solid #dedede; clear: both; text-align: right; }
.btn { padding: 5px 10px; border: 1px solid #ccc; cursor: pointer; }
.red { color: red; }
</style>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
<tr>
<td>
<div style="float:left;">
<form name="fcategory" method="get" style="margin:0px;">
<? if ($is_category) { ?>
<select name=sca onchange="location='<?=$category_location?>'+<?=strtolower($g4[charset])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
<option value=''>전체</option>
<?=$category_option?>
</select>
<? } ?>
</form>
</div>
</td>
</tr>
<tr>
<?
for ($i=0,$j=count($list); $i<$j; $i++)
{
if ($i && $i%$mod==0) echo "</tr><tr>";
echo "<td width='{$td_width}%' align='center' style='text-align:center; word-break:break-all;'>";
$link = ( $is_checkbox ) ? "<a href='".$list[$i][href]."' class='banner'>" : "<a href='".$list[$i][wr_link1]."' class='banner' target='_blank'>";
echo $link."<img src='{$list[$i][file][0][path]}/{$list[$i][file][0][file]}' width='{$board[bo_1]}' height='{$board['bo_2']}' alt='{$list[$i]['subject']}' /></a>";
echo "</td>\n";
} // end for
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
</table>
<? if ( $write_href || $admin_href ) { ?>
<div class="board_button">
<? if ($write_href) { ?><button onclick="location.href='<?=$write_href?>'" class="btn">글쓰기</button><? } ?>
<? if ($admin_href) { ?><button onclick="location.href='<?=$admin_href?>'" class="btn red">관리자</button><? } ?>
</div>
<? } ?>
</td></tr></table>
<!-- 게시판 목록 끝 -->
위 소스가 list.php소스인데요 이미지밑에 제목이 나오게끔 하고싶은데 어떻게 해야하나요?
댓글 전체
<?= {$list[$i]['subject']} ?>
추가해보세용
추가해보세용
그렇게 했는데 아예 반응이 없어요..
제가 http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=95899&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%ED%98%91%EB%A0%A5%EC%97%85%EC%B2%B4
여기 있는 스킨을 사용하려고 하거든요
근데 list.php페이지에 제목이 나오게끔 하고싶어서요...
제가 http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=95899&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%ED%98%91%EB%A0%A5%EC%97%85%EC%B2%B4
여기 있는 스킨을 사용하려고 하거든요
근데 list.php페이지에 제목이 나오게끔 하고싶어서요...
echo $link."<img src='{$list[$i][file][0][path]}/{$list[$i][file][0][file]}' width='{$board[bo_1]}' height='{$board['bo_2']}' alt='{$list[$i]['subject']}' /></a> {$list[$i]['subject']}";
되요^^ 감사합니다.