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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 23966 | |
| 23963 | |
| 23953 | |
| 23949 | |
| 23938 | |
| 23935 | |
| 23933 | |
| 23928 | |
| 23919 | |
| 23918 | |
| 23917 | |
| 23910 | |
| 23902 | |
| 23901 | |
| 23897 | |
| 23894 | |
| 23893 | |
| 23891 | |
| 23885 | |
| 23872 | |
| 23870 | |
| 23862 | |
| 23859 | |
| 23853 | |
| 23845 | |
| 23838 | |
| 23827 | |
| 23819 | |
| 23805 | |
| 23801 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기