쓰기 폼을 완성했으면 게시판 리스트에 해당 내용이 나오기를 바라겠죠?
역시 ctrl-c, ctrl-v.
html을 몰라도 php를 몰라도 문맹만 아니면 가능합니다.
1.
list_skin.php을 엽니다.
이 파일이 게시판 리스트를 보이게 해줍니다.
보면 69번째 줄에 다음과 같은 내용이 있습니다.
* 아래의 코드에 마우스를 올리면 복사하기 아이콘이 나옵니다.
[code]
<th scope="col">제목</th>
<th scope="col">글쓴이</th>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
[/code]
바로 이부분이 게시판 리스트 제목입니다.
쓰기에는 넣은 내용대로 제목을 추가해야지요.
[code]
<th scope="col">제목</th>
<th scope="col">상품</th>
<th scope="col">가격</th>
<th scope="col">수량</th>
<th scope="col">글쓴이</th>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
[/code]
입력 항목 만들기에도 말했듯이 한글은 아무렇게나 바꾸어도 됩니다.
심지어 공백으로 두어도 됩니다.
제 이렇게 3개이 제목을 넣었으면,
실제 주문 내용들이 출력이 되어야겠지요?
106번째 줄에
[code]
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
<?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
?>
</td>
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
<td class="td_num"><?php echo $list[$i]['wr_hit'] ?></td>
[/code]
이 있습니다. 이 부분이 실제 내용을 출력하는 곳입니다.
[code]
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
[/code]
이 부분은 글을 올렸을 때 나오는 아이콘을 표시하기 위한 것입니다.
자 이제 넣어봅시다.
[code]
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
[/code]
이라고 된 곳 위에 넣으시면 됩니다.
name은 말 그대로 이름부분이지요.
[code]
<td class="td_name sv_use"><?php echo $list[$i]['wr_1'] ?></td>
<td class="td_name sv_use"><?php echo $list[$i]['wr_2'] ?></td>
<td class="td_name sv_use"><?php echo $list[$i]['wr_3'] ?></td>
[/code]
간단하죠?
이 부분을 넣으면 됩니다.
여기서 칸의 크기를 조절해주어야할 필요가 있습니다.
긴 글인데 좁아서 글이 두줄로 나오는 경우가 있거든요.
style.css에 보면(이것도 skin 폴더 안에 있어요)
[code]
/* 게시판 목록 */
#bo_list .td_board {width:120px;text-align:center}
#bo_list .td_chk {width:30px;text-align:center}
#bo_list .td_date {width:60px;text-align:center}
#bo_list .td_datetime {width:110px;text-align:center}
#bo_list .td_group {width:100px;text-align:center}
#bo_list .td_mb_id {width:100px;text-align:center}
#bo_list .td_mng {width:80px;text-align:center}
#bo_list .td_name {width:100px;text-align:left}
#bo_list .td_nick {width:100px;text-align:center}
#bo_list .td_num {width:50px;text-align:center}
#bo_list .td_numbig {width:80px;text-align:center}
[/code]
이런 내용이 있는데 바로 class="td_name 을 이곳에 있는 것으로 바꾸면 크기가 변경이 됩니다.
예를 들면 class="td_board 로 바꾸면 120px 짜리로 늘어납니다.
자 이제 게시판 리스트를 보세요.
입력 항목의 내용이 모두 나오지요?
===========================================================================================
280원 무제한 도메인 등록 호스팅(http://hostingis.com), 무제한 용량/무제한 도메인 등록 호스팅(http://hostingis.com), 서버 호스팅(http://hostingis.com), 웹서버 관리툴 cpanel 보다 좋은 cypanel(http://cypanel.com)
역시 ctrl-c, ctrl-v.
html을 몰라도 php를 몰라도 문맹만 아니면 가능합니다.
1.
list_skin.php을 엽니다.
이 파일이 게시판 리스트를 보이게 해줍니다.
보면 69번째 줄에 다음과 같은 내용이 있습니다.
* 아래의 코드에 마우스를 올리면 복사하기 아이콘이 나옵니다.
[code]
<th scope="col">제목</th>
<th scope="col">글쓴이</th>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
[/code]
바로 이부분이 게시판 리스트 제목입니다.
쓰기에는 넣은 내용대로 제목을 추가해야지요.
[code]
<th scope="col">제목</th>
<th scope="col">상품</th>
<th scope="col">가격</th>
<th scope="col">수량</th>
<th scope="col">글쓴이</th>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
[/code]
입력 항목 만들기에도 말했듯이 한글은 아무렇게나 바꾸어도 됩니다.
심지어 공백으로 두어도 됩니다.
제 이렇게 3개이 제목을 넣었으면,
실제 주문 내용들이 출력이 되어야겠지요?
106번째 줄에
[code]
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
<?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
?>
</td>
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
<td class="td_num"><?php echo $list[$i]['wr_hit'] ?></td>
[/code]
이 있습니다. 이 부분이 실제 내용을 출력하는 곳입니다.
[code]
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
[/code]
이 부분은 글을 올렸을 때 나오는 아이콘을 표시하기 위한 것입니다.
자 이제 넣어봅시다.
[code]
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
[/code]
이라고 된 곳 위에 넣으시면 됩니다.
name은 말 그대로 이름부분이지요.
[code]
<td class="td_name sv_use"><?php echo $list[$i]['wr_1'] ?></td>
<td class="td_name sv_use"><?php echo $list[$i]['wr_2'] ?></td>
<td class="td_name sv_use"><?php echo $list[$i]['wr_3'] ?></td>
[/code]
간단하죠?
이 부분을 넣으면 됩니다.
여기서 칸의 크기를 조절해주어야할 필요가 있습니다.
긴 글인데 좁아서 글이 두줄로 나오는 경우가 있거든요.
style.css에 보면(이것도 skin 폴더 안에 있어요)
[code]
/* 게시판 목록 */
#bo_list .td_board {width:120px;text-align:center}
#bo_list .td_chk {width:30px;text-align:center}
#bo_list .td_date {width:60px;text-align:center}
#bo_list .td_datetime {width:110px;text-align:center}
#bo_list .td_group {width:100px;text-align:center}
#bo_list .td_mb_id {width:100px;text-align:center}
#bo_list .td_mng {width:80px;text-align:center}
#bo_list .td_name {width:100px;text-align:left}
#bo_list .td_nick {width:100px;text-align:center}
#bo_list .td_num {width:50px;text-align:center}
#bo_list .td_numbig {width:80px;text-align:center}
[/code]
이런 내용이 있는데 바로 class="td_name 을 이곳에 있는 것으로 바꾸면 크기가 변경이 됩니다.
예를 들면 class="td_board 로 바꾸면 120px 짜리로 늘어납니다.
자 이제 게시판 리스트를 보세요.
입력 항목의 내용이 모두 나오지요?
===========================================================================================
280원 무제한 도메인 등록 호스팅(http://hostingis.com), 무제한 용량/무제한 도메인 등록 호스팅(http://hostingis.com), 서버 호스팅(http://hostingis.com), 웹서버 관리툴 cpanel 보다 좋은 cypanel(http://cypanel.com)
게시글 목록
| 번호 | 제목 |
|---|---|
| 2410 | |
| 2401 | |
| 2395 | |
| 2387 | |
| 2385 | |
| 2377 | |
| 2374 | |
| 2372 | |
| 2368 | |
| 2367 | |
| 2366 | |
| 2364 | |
| 2354 | |
| 2353 | |
| 2352 | |
| 2349 | |
| 2333 | |
| 2329 | |
| 2327 | |
| 2304 | |
| 2298 | |
| 2297 | |
| 2295 | |
| 2288 | |
| 2282 | |
| 2279 | |
| 2278 | |
| 2276 | |
| 2273 | |
| 2268 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기