Files
firstgarden-web-gnu/skin/connect/basic/current_connect.skin.php

36 lines
1.0 KiB
PHP

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $connect_skin_url ?>/style.css">
<table id="current_connect_tbl" class="basic_tbl">
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">이름</th>
<th scope="col">위치</th>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i<count($list); $i++) {
$location = conv_content($list[$i]['lo_location'], 0);
// 최고관리자에게만 허용
// 이 조건문은 가능한 변경하지 마십시오.
if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = '<a href="'.$list[$i]['lo_url'].'">'.$location.'</a>';
else $display_location = $location;
?>
<tr>
<td class="td_num"><?php echo $list[$i]['num'] ?></td>
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
<td><?php echo $display_location ?></td>
</tr>
<?php
}
if ($i == 0)
echo '<tr><td colspan="3" class="empty_table">현재 접속자가 없습니다.</td></tr>';
?>
</tbody>
</table>