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

@ -78,9 +78,9 @@ $result = sql_query($sql);
if ($brow == '기타') { $brow = '<span title="'.$row['vi_agent'].'">'.$brow.'</span>'; }
if ($os == '기타') { $os = '<span title="'.$row['vi_agent'].'">'.$os.'</span>'; }
$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_category"><?php echo $ip ?></td>
<td><?php echo $link ?><?php echo $title ?><?php echo $link2 ?></td>
<td class="td_category"><?php echo $brow ?></td>
@ -98,7 +98,7 @@ $result = sql_query($sql);
</div>
<?php
if (isset($domain))
if (isset($domain))
$qstr .= "&amp;domain=$domain";
$qstr .= "&amp;page=";