class 추가 코드 수정

This commit is contained in:
chicpro
2013-08-07 11:31:04 +09:00
parent 74429e382b
commit 4feb6c8a36

View File

@ -8,11 +8,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php <?php
for ($i=1; $row=sql_fetch_array($result); $i++) { for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
else if ($i%$this->list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째 else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
else $sct_last = ''; else $sct_last = '';
} else { // 1줄 이미지 : 1개 } else { // 1줄 이미지 : 1개
$sct_last = 'sct_clear'; $sct_last = ' sct_clear';
} }
if ($i == 1) { if ($i == 1) {
@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
} }
} }
echo "<li class=\"sct_li {$sct_last}\">\n"; echo "<li class=\"sct_li{$sct_last}\">\n";
if ($this->href) { if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n"; echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";