리스트 tr_bg 처리 코드 간소화

This commit is contained in:
chicpro
2013-11-07 10:43:46 +09:00
parent 19038f9878
commit 8cc75650ac
20 changed files with 40 additions and 41 deletions

View File

@ -74,10 +74,10 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
$bn_begin_time = substr($row['bn_begin_time'], 2, 14);
$bn_end_time = substr($row['bn_end_time'], 2, 14);
$tr_bg = $i%2 ? 'class="tr_bg1"' : 'class="tr_bg0"';
$tr_bg = 'tr_bg'.($i%2);
?>
<tr<?php echo ' '.$tr_bg; ?>>
<tr class="<?php echo $tr_bg; ?>">
<td headers="th_id" rowspan="2" class="td_num"><?php echo $row['bn_id']; ?></td>
<td headers="th_loc"><?php echo $row['bn_position']; ?></td>
<td headers="th_st" class="td_datetime"><?php echo $bn_begin_time; ?></td>