해피정

[업데이트] 출석부 프리미엄 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'];
}

|

댓글 2개

아미나에서 sir에서나 해피정 님께 항상 감사드려요~! ^-^
해피정 님께서도 감기 조심하시고 좋은 오후 되세요 :)
감사합니다.
하시는 모든일에 행운과 기쁨이 가득하시길 기도합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

홍보게시판

게시물 규제정책(화면하단에서 설명)에 위배되지 않는 선에서 자유로운 홍보가 가능합니다.

+
제목 글쓴이 날짜 조회
7년 전 조회 1,264
7년 전 조회 1,338
7년 전 조회 1,268
7년 전 조회 977
7년 전 조회 908
7년 전 조회 807
7년 전 조회 1,165
7년 전 조회 968
7년 전 조회 1,023
7년 전 조회 1,996
7년 전 조회 1,451
7년 전 조회 1,507
7년 전 조회 1,120
7년 전 조회 1,708
7년 전 조회 1,273
7년 전 조회 1,082
7년 전 조회 970
7년 전 조회 1,141
7년 전 조회 1,479
7년 전 조회 1,000
7년 전 조회 1,075
7년 전 조회 1,049
7년 전 조회 1,001
7년 전 조회 1,557
7년 전 조회 1,157
7년 전 조회 1,339
7년 전 조회 1,290
7년 전 조회 1,104
7년 전 조회 1,286
7년 전 조회 1,976
🐛 버그신고