first commit 2
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($view['wr_is_reserved'] == 1) {
|
||||
$today = G5_TIME_YMDHIS;
|
||||
$status_text = '예약 대기';
|
||||
$status_class = 'reserved';
|
||||
|
||||
if ($today >= $view['wr_reserved_start'] && $today <= $view['wr_reserved_end']) {
|
||||
$status_text = '노출 중';
|
||||
$status_class = 'active';
|
||||
} elseif ($today > $view['wr_reserved_end']) {
|
||||
$status_text = '노출 종료';
|
||||
$status_class = 'expired';
|
||||
}
|
||||
?>
|
||||
<div class="view_reservation_info">
|
||||
<span class="status_badge <?php echo $status_class; ?>"><?php echo $status_text; ?></span>
|
||||
<span class="period"><?php echo $view['wr_reserved_start']; ?> ~ <?php echo $view['wr_reserved_end']; ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user