리스트 tr_bg 클래스 처리 코드 간소화

This commit is contained in:
chicpro
2013-11-07 10:30:48 +09:00
parent 9e4b6c635a
commit fee3813b50
19 changed files with 39 additions and 39 deletions

View File

@ -151,10 +151,10 @@ function point_clear()
if($row['po_expired'] == 1)
$expr = ' txt_expired';
$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_chk">
<input type="hidden" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>" id="mb_id_<?php echo $i ?>">
<input type="hidden" name="po_id[<?php echo $i ?>]" value="<?php echo $row['po_id'] ?>" id="po_id_<?php echo $i ?>">