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

global $is_admin;

$color_1 = '#E3E2E6'; //외부 테두리 색
$color_2 = '#FCFCFC'; //배경 색
$color_3 = '#E3E2E6'; //내부 테두리 색 

$width_1 = '171'; //전체 테이블 크기
$width_2 = '157'; //내부 테이블 크기
$height_1 = '66'; //내부 테이블 높이
?>

<style type="text/css">
<!--
.co  { font-family:돋움; font-size: 8pt; color: #777777;}
.box  { font-family:돋움; font-size:9pt; color:#777777;  line-height: 12pt; }
.box2  { scrollbar-face-color: #f7f7f7; scrollbar-shadow-color: #f7f7f7; scrollbar-highlight-color: #f7f7f7; scrollbar-3dlight-color: #f7f7f7; scrollbar-darkshadow-color: #cccccc; scrollbar-track-color: #ffffff; scrollbar-arrow-color: #cccccc}
-->
</style>

<table cellpadding=0 cellspacing=1 bgcolor=<?=$color_1?> border=0>
<tr>
<td bgcolor=<?=$color_2?>>
<table width='<?=$width_1?>' cellpadding=0 cellspacing=0 border=0>
<tr>
	<td width='50%' height=28 style='padding-left:5px;'><img src='<?=$connect_skin_path?>/img/con_ti.gif' width=72 height=16 border=0 align='absmiddle'></td>
	<td width='50%' align=center style='padding-top:3px;' class='box'>
	<? if ($is_admin == "super") { ?> 
       <a href='<?=$g4['bbs_path']?>/current_connect.php' onfocus='this.blur()' title='현재접속자'>on</a>
	<? } ?>
	</td>
</tr>
<tr>
	<td colspan=2 align=center>
	<table width='<?=$width_2?>' cellpadding=0 cellspacing=1 bgcolor=<?=$color_3?> border=0>
	<tr>
		<td height=<?=$height_1?> bgcolor=#FFFFFF class='box ' style='padding-top:3px; padding-left:3px;'>
        <div style="overflow-y:auto; width:100%;  height:<?=$height_1?>;" class='box2'>
<?
for ($i=0; $i<count($list); $i++) {
    echo <<<HEREDOC
        <div align=left style="padding-left:2;">{$list[$i][name]}</div>
HEREDOC;
}

if ($i == 0)
    echo "<div align=center height=100%>현재 접속자가 없습니다.</div>";
?>
</div></td>
	</tr>
	</table></td>
</tr>
<tr>
	<td colspan=2 height=22 align=right style='padding-top:4px; padding-right:10px;' class='box'>
	접속자 <?=$row2['total_cnt']?>명 <span class=co>(M:<?=$row2['mb_cnt']?> / G:<?=$row2['total_cnt'] - $row2['mb_cnt']?>)</span></td>
</tr>
</table></td>
</tr>
</table>
