[제나플러스] 메뉴나 원하는 곳에서 new아이콘을 뽑아 보자..
본문
$sqlb = " select bo_subject, bo_table, bo_new ~~~
*****************
//new icon
$new_time = date("Y-m-d H:i:s", $g4['server_time'] - ($rowb[bo_new] * 3600));
$sqlc = " select count(*) as cnt from {$g4[write_prefix]}{$rowb[bo_table]} where wr_datetime >= '$new_time' ";
$row = sql_fetch($sqlc);
if ($row[cnt] > 0)
$new = " <img src='$submenu_skin_path/img/icon_new.gif' border='0' align='absmiddle'>";
else
$new = "";
***********************
출력방법 <?=$new?>
응용작
*****************
//new icon
$new_time = date("Y-m-d H:i:s", $g4['server_time'] - ($rowb[bo_new] * 3600));
$sqlc = " select count(*) as cnt from {$g4[write_prefix]}{$rowb[bo_table]} where wr_datetime >= '$new_time' ";
$row = sql_fetch($sqlc);
if ($row[cnt] > 0)
$new = " <img src='$submenu_skin_path/img/icon_new.gif' border='0' align='absmiddle'>";
else
$new = "";
***********************
출력방법 <?=$new?>
응용작
추천0
댓글목록 0
등록된 댓글이 없습니다.