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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 772 | |
| 768 | |
| 765 | |
| 755 | |
| 748 | |
| 747 | |
| 744 | |
| 733 | |
| 732 | |
| 728 | |
| 725 | |
| 713 | |
| 708 | |
| 705 | |
| 704 | |
| 700 | |
| 697 |
자바스크립트
사이드뷰 웹 접근성 개선 내역
2
|
| 673 | |
| 671 | |
| 667 |
자바스크립트
게시판 글쓰기 시 파일첨부 수정 사항
3
|
| 657 | |
| 651 |
스크린리더
로그인 중일 경우 알림 기능
6
|
| 4 | |
| 3 | |
| 1 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기