<?
if (!defined("_GNUBOARD_")) exit;
if(!$is_member) alert("회원만 접근 가능합니다.", "./login.php?url=zm.userinfo.php?pcd=log");

//-- 로그인 돼 있을 때 회원정보 관리 메뉴 포함
if($is_member) include_once($member_skin_path."/zm.userinfo_menu.skin.php");
?>
<style type="text/css">
table tr td		{ padding:5px; }
#board_page_box span	{ margin:3px; }
</style>

<div style="text-align:center;"><img src="<?=$member_skin_path?>/img/title_loginlog.gif"></div>
<div style="text-align:center;">(<?=$zm_config[loginlogterm]?>일간 로그인 결과)</div>
<table width="880" align="center" cellspacing="1" bgcolor="#E7E7E7">
<col width="18%" />
<col width="15%" />
<col width="10%" />
<col width="10%" />
<col width="47%" />
<tr bgcolor="#F3F3F3" style="font-weight:bold;" align="center" height="25">
	<td>일시</td>
	<td>인증형식</td>
	<td>결과</td>
	<td>아이피</td>
	<td>서비스</td>
</tr>
<? for($i = 0; $i < count($loglist); $i++) :
if($loglist[$i][db_result] == "실패") $loglist[$i][db_result] = "<span style='color:#f00'>{$loglist[$i][db_result]}</span>";
if($loglist[$i][db_result] == "성공") $loglist[$i][db_result] = "<span style='color:#008000'>{$loglist[$i][db_result]}</span>";
?>
<tr align="center" bgcolor="#ffffff">
	<td><?=$loglist[$i][db_date]?></td>
	<td><?=$loglist[$i][db_authtype]?></td>
	<td><?=$loglist[$i][db_result]?></td>
	<td><?=$loglist[$i][db_ip]?></td>
	<td align="left" style="word-break:break-all; table-layout:fixed;" ><?=$loglist[$i][db_service]?></td>
</tr>
<? endfor; ?>
</table>
<div style="text-align:center; margin:10px;"><?=$write_logpage?></div>