해피정

[업데이트] 출석부 프리미엄 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,320
7년 전 조회 1,394
7년 전 조회 1,336
7년 전 조회 1,048
7년 전 조회 979
7년 전 조회 869
7년 전 조회 1,224
7년 전 조회 1,033
7년 전 조회 1,088
7년 전 조회 2,062
7년 전 조회 1,522
7년 전 조회 1,572
7년 전 조회 1,177
7년 전 조회 1,775
7년 전 조회 1,342
7년 전 조회 1,147
7년 전 조회 1,032
7년 전 조회 1,193
7년 전 조회 1,542
7년 전 조회 1,068
7년 전 조회 1,140
7년 전 조회 1,117
7년 전 조회 1,061
7년 전 조회 1,613
7년 전 조회 1,177
7년 전 조회 1,395
7년 전 조회 1,354
7년 전 조회 1,159
7년 전 조회 1,341
7년 전 조회 2,017