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

?>
<link rel="stylesheet" href="<?=$member_skin_path?>/zm.style.css" type="text/css">
<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" style="border-radius:3px;">
<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="35">
	<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" height="35">
	<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>

<?
if($member[mb_id])	$backurl	= $g4[bbs_path] . "/zm.userinfo.php?pcd=home";
else				$backurl	= $g4[bbs_path] . "/register.php";
?>
<div style="margin:10px; text-align:center;">
	<input type=button value="이전단계" class="btn_pre" onclick="zm_gourl('<?=$backurl?>');">
</div>