회원들 출석부 > 그누보드&그샵

본문 바로가기
사이트 내 전체검색

그누보드&그샵

팁텍 회원들 출석부

페이지 정보

본문

최근로그인 정보를 가져와서 오늘 로그인한 기록이 있는 분들을 체크해 주는 것입니다.

오늘 로그인한 사람은 오늘 출석(?)한 사람이라 가정하구...ㅋㅋ

내용 중에 <?=dev_online($row[mb_id])?> 이것은 제가 전에 올렸던
온라인 사용자를 표기 하기 위한 함수입니다. 필요없으시면 삭제하셔도 되구요..^^
(http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&page=2&wr_id=3102)

=========================================================================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

define("_DOCTYPE_", "DESIGN");

$html_title = "해병685기 동기회 출석부 $today";

include "./bbs/gblayer.php";

// 총 출석자 확인
$sql = " select count(*) from $cfg[table_member] where mb_today_login like '$today%' order by mb_today_login";
$row = sql_fetch($sql);
$today_visit = $row[0];

$tbl_col =2 ;

$tbl_col_sep = (int)($today_visit / $tbl_col) + ($today_visit % $tbl_col) - 1;

?>


<table align=center cellpadding="7" cellspacing="1" width="95%" bgcolor="#F1F1F1">
<tr bgcolor=white height=50>
<td colspan=2 align=center valign=center><br><b>해병685기 동기회 출석부</b><br>
<div align=right>오늘(<?=$today?>) <?=$today_visit?> 분께서 출석하셨습니다..^^</div></td>
</tr>
<tr bgcolor=white>
<td width=50% valign=top>
<table cellpadding="5" cellspacing="1" width="100%" bgcolor="#F1F1F1">
<tr bgcolor=white height=25>
<td width=20 bgcolor=#FaFaFa>No</td>
<td  bgcolor=#FaFaFa>닉네임</td>
<td width=120 align=center  bgcolor=#FaFaFa>최근접속시간</td>
</tr>
<?
$sql = " select mb_id, mb_name, mb_icon,mb_email,mb_homepage,mb_open,mb_today_login from $cfg[table_member] where mb_today_login like '$today%' order by mb_today_login desc";
$result = sql_query($sql);

for ($i=0; $row=mysql_fetch_array($result); $i++) {
    if ($row[mb_id]) {
        $mb_name = gblayer($row[mb_id], $row[mb_name], $row[mb_email], $row[mb_homepage], $row[mb_open]);
    }
?>
<tr bgcolor=white height=30>
<td width=20><?=$i+1?></td>
<td width=><?=$mb_name?>  <?=dev_online($row[mb_id])?></td>
<td width=120 align=center><?=$row[mb_today_login];?></td>

<?
if ($i==$tbl_col_sep) {
?>
</tr>
</table>
</td>
<td width=50% valign=top>
<table cellpadding="5" cellspacing="1" width="100%" bgcolor="#F1F1F1">
<tr bgcolor=white height=3>
<td width=20 bgcolor=#FaFaFa>No</td>
<td  bgcolor=#FaFaFa>닉네임</td>
<td width=120 align=center  bgcolor=#FaFaFa>최근접속시간</td>
</tr>
<? }else { ?>
</tr>
<? }
} ?>
</table>
</td>
</tr>
</table>

=========================================================================================

관리자를 숨기는것은 아래 처럼 where 절에 mb_id != '$default[de_admin]' 를 추가 하시면 됩니다... ^^
// 총 출석자 확인
$sql = " select count(*) from $cfg[table_member] where mb_today_login like '$today%' and mb_id != '$default[de_admin]' order by mb_today_login";

<?
$sql = " select mb_id, mb_name, mb_icon,mb_email,mb_homepage,mb_open,mb_today_login from $cfg[table_member] where mb_today_login like '$today%'  and mb_id != '$default[de_admin]' order by mb_today_login desc";
$result = sql_query($sql);

//smc님

[이 게시물은 까만도둑님에 의해 2004-06-06 22:33:24 자료실(으)로 부터 이동됨]

댓글목록

등록된 댓글이 없습니다.

Total 167건 10 페이지
  • RSS
그누보드&그샵 목록
번호 제목 글쓴이 조회 날짜
32 스킨 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1508 02-04
열람중 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1936 02-01
30 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1577 02-01
29 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1967 01-10
28 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1542 01-03
27 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1547 12-10
26 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4939 12-10
25 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2403 12-09
24 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2896 12-08
23 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1563 11-28
22 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2216 11-21
21 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1533 11-18
20 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1992 11-18
19 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2913 11-18
18 팁텍 까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1753 11-18

검색

회원로그인

회원가입

사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

  • 게시물이 없습니다.

접속자집계

오늘
309
어제
375
최대
385
전체
37,773
Copyright © 소유하신 도메인. All rights reserved.