리스트 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

@ -60,10 +60,10 @@ $result = sql_query($sql);
$num = $i + 1;
$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 class="td_num"><?php echo $num; ?></td>
<td><?php echo stripslashes($row['fa_subject']); ?></td>
<td class="td_num"><?php echo $row['fa_order']; ?></td>