function tto_new_icon($bo_table) {
global $g5;
$temp = sql_fetch("select bo_new from {$g5['board_table']} where bo_table = '$bo_table'");
$time_set = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
$row = sql_fetch("select wr_id as cnt from {$g5['write_prefix']}$bo_table where wr_is_comment = '0' and wr_datetime > '$time_set'");
if($row[cnt])
echo " <img src='$g5[path]/img/icon_new.gif' alt='' />"; // 사용 이미지에 맞게 경로.파일 수정
}
lib/new.icon.lib.php 파일 생성 후 위 내용 추가.저장
(파일명 다르게 하는 경우 아래 include 부분 변경)
head.php 상단
include_once(G5_LIB_PATH.'/new.icon.lib.php'); // 추가
head.php 게시판명 출력 부분에 아이콘 출력 함수 추가
<?php echo $row2['bo_subject'] ?> <?php echo tto_new_icon($row2['bo_table']) ?>
global $g5;
$temp = sql_fetch("select bo_new from {$g5['board_table']} where bo_table = '$bo_table'");
$time_set = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
$row = sql_fetch("select wr_id as cnt from {$g5['write_prefix']}$bo_table where wr_is_comment = '0' and wr_datetime > '$time_set'");
if($row[cnt])
echo " <img src='$g5[path]/img/icon_new.gif' alt='' />"; // 사용 이미지에 맞게 경로.파일 수정
}
lib/new.icon.lib.php 파일 생성 후 위 내용 추가.저장
(파일명 다르게 하는 경우 아래 include 부분 변경)
head.php 상단
include_once(G5_LIB_PATH.'/new.icon.lib.php'); // 추가
head.php 게시판명 출력 부분에 아이콘 출력 함수 추가
<?php echo $row2['bo_subject'] ?> <?php echo tto_new_icon($row2['bo_table']) ?>
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1084 | |
| 1083 | |
| 1080 | |
| 1074 | |
| 1068 | |
| 1064 | |
| 1056 | |
| 1048 | |
| 1037 | |
| 1029 | |
| 1025 | |
| 1022 | |
| 1019 | |
| 1014 | |
| 1013 | |
| 1012 | |
| 1003 | |
| 1002 | |
| 997 | |
| 992 | |
| 986 | |
| 982 | |
| 973 | |
| 962 | |
| 952 | |
| 950 | |
| 947 | |
| 945 | |
| 942 | |
| 938 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기