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

global $is_admin;

?>

<!-- 접속자집계 시작 { -->
<div class="card border-primary mb-3">
  <div class="card-header bg-primary text-white text-center border-primary"><h6>접속자집계</h6></div>
  <div class="card-body text-success">
    <table class="w-100">
    <tr><td class="w-25">오늘</td><td class="w-auto text-right pr-2"><span class="badge badge-primary"><?php echo number_format($visit[1]) ?></span></td>
    <td class="w-25">어제</td><td class="w-auto text-right"><span class="badge badge-secondary"><?php echo number_format($visit[2]) ?></span></td></tr>
    <tr><td class="w-25">최대</td><td class="w-auto text-right pr-2"><span class="badge badge-success"><?php echo number_format($visit[3]) ?></span></td>
    <td class="w-25">전체</td><td class="w-auto text-right"><span class="badge badge-info"><?php echo number_format($visit[4]) ?></span></td></tr>
    </table>
  </div>
  <?php if ($is_admin == "super") {  ?>
  <div class="card-footer bg-transparent border-primary text-right"><a href="<?php echo G5_ADMIN_URL ?>/visit_list.php" class="btn btn-danger btn-sm">상세보기</a></div>
  <?php } ?>
</div>
<!-- } 접속자집계 끝 -->
