[1원짜리 팁] g4 게시판의 필드별 리스트 정렬 방법 ②

basic 스킨 기준 (list.skin.php)
 
 
40<tr bgcolor=#F8F8F9 height=30 align=center>
41    <td width=50><?=subject_sort_link('wr_num', $qstr2, 1)?>번호</a></td>
42    <? if ($is_category) { ?><td width=70>분류</td><?}?>
43    <? if ($is_checkbox) { ?><td width=40><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><?}?>
44    <td><?=subject_sort_link('wr_subject', $qstr2, 1)?>제목</a></td>
45    <td width=110><?=subject_sort_link('wr_name', $qstr2, 1)?>글쓴이</a></td>
46    <td width=40><?=subject_sort_link('wr_hit', $qstr2, 1)?>조회</a></td>
47    <td width=40><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜</a></td>
48    <? if ($is_good) { ?><td width=40><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></td><?}?>
49    <? if ($is_nogood) { ?><td width=40><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></td><?}?>
50</tr>
|

댓글 6개

보너스 ㅡㅡㅋ
<?=subject_sort_link('ca_name', $qstr2, 1)?>분류</a>
echo 문 안에서는 어떻게 사용합니까? 기초가 없어서 적용해 보려 해도 잘 안되네요...
<?=subject_sort_link('wr_num', $qstr2, 1)?>
wr_num대신에 DB에서 빼오기거 말고
wr_num을 사용한 function에서 나온값으로 바꿀순 없나요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 4,731
19년 전 조회 6,133
19년 전 조회 3,294
19년 전 조회 3,394
19년 전 조회 4,481
19년 전 조회 5,045
19년 전 조회 5,748
19년 전 조회 5,239
19년 전 조회 5,642
19년 전 조회 4,179
19년 전 조회 4,020
19년 전 조회 3,731
22년 전 조회 9,962
19년 전 조회 6,008
19년 전 조회 8,941
19년 전 조회 3,286
19년 전 조회 3,180
19년 전 조회 4,136
19년 전 조회 4,865
19년 전 조회 3,247