[업데이트] 출석부 프리미엄 V26 (2018-12-05 13:31) 정보
[업데이트] 출석부 프리미엄 V26 (2018-12-05 13:31)관련링크
본문
2018-12-05 13:31 V26
1. plugin / attendance / index.php 408줄
$qry = sql_query(" select * from {$g5['attendance_table']} where {$sql_common} order by datetime desc ");
를 아래와 같이 변경
$qry = sql_query(" select * from {$g5['attendance_table']} where {$sql_common} order by datetime, rank asc ");
2. plugin / attendance / index.php 445줄
<td align="center" class="bgcolor<?php echo $list;?> list"><?php echo $data['rank'];?> 등</td>
를 아래와 같이 변경
<td width="50" align="center" class="bgcolor<?php echo $list;?> list"><?php echo $rank;?> 등</td>
3. plugin / attendance / update.php 76~85줄
if (!$first['cnt'] && $first['rank'] != 1) { // 1등 포인트
$sql_point = $sql_point + $att_first_point;
$rank = 1;
} elseif ($first['cnt'] == 1 && $first['rank'] != 2) { // 2등 포인트
$sql_point = $sql_point + $att_second_point;
$rank = 2;
} elseif ($first['cnt'] == 2 && $first['rank'] != 3) { // 3등 포인트
$sql_point = $sql_point + $att_third_point;
$rank = 3;
}
를 아래와 같이 변경합니다.
if (!$first['cnt'] && $first['rank'] != 1) { // 1등 포인트
$sql_point = $sql_point + $att_first_point;
$rank = 1;
} elseif ($first['cnt'] == 1 && $first['rank'] != 2) { // 2등 포인트
$sql_point = $sql_point + $att_second_point;
$rank = 2;
} elseif ($first['cnt'] == 2 && $first['rank'] != 3) { // 3등 포인트
$sql_point = $sql_point + $att_third_point;
$rank = 3;
} else {
$rank = $first['cnt'];
}
댓글 전체
해피정 님께서도 감기 조심하시고 좋은 오후 되세요 :)
하시는 모든일에 행운과 기쁨이 가득하시길 기도합니다.