리스트 페이지에 제목나오게 하는 방법?

· 2013-09-13 (금) 10:28:46 · 1181 · 4
[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소스인데요 이미지밑에 제목이 나오게끔 하고싶은데 어떻게 해야하나요?
|

댓글 4개

2013-09-13 (금) 10:41:57
<?= {$list[$i]['subject']} ?>

추가해보세용
2013-09-13 (금) 10:47:16
그렇게 했는데 아예 반응이 없어요..
제가 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페이지에 제목이 나오게끔 하고싶어서요...
2013-09-13 (금) 10:51:21
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']}";
2013-09-13 (금) 10:55:44
되요^^ 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-09-13 조회 1,641
13-09-13 조회 1,760
13-09-13 조회 882
13-09-13 조회 1,092
13-09-13 조회 1,428
13-09-13 조회 5,026
13-09-13 조회 957
13-09-13 조회 894
13-09-13 조회 928
13-09-13 조회 1,182
13-09-13 조회 1,069
13-09-13 조회 1,071
13-09-13 조회 1,363
13-09-13 조회 876
13-09-13 조회 4,080
13-09-12 조회 1,697
13-09-12 조회 1,151
13-09-12 조회 1,629
13-09-12 조회 1,307
13-09-12 조회 1,648