diff --git a/adm/point_clear.php b/adm/point_clear.php index 346f5839d..4ca0d47be 100644 --- a/adm/point_clear.php +++ b/adm/point_clear.php @@ -16,7 +16,7 @@ echo ''; include_once('./admin.tail.php'); flush(); -echo '\n'; +echo ''.PHP_EOL; flush(); $max_count = 50; @@ -26,33 +26,33 @@ $sql = " LOCK TABLES {$g4['member_table']} WRITE, {$g4['point_table']} WRITE "; sql_query($sql); $sql = " select mb_id, count(po_point) as cnt - from {$g4['point_table']} - group by mb_id - having cnt > {$max_count}+1 - order by cnt "; + from {$g4['point_table']} + group by mb_id + having cnt > {$max_count}+1 + order by cnt "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $count = 0; $total = 0; $sql2 = " select po_id, po_point - from {$g4['point_table']} - where mb_id = '{$row['mb_id']}' - order by po_id desc - limit $max_count, {$row['cnt']} "; + from {$g4['point_table']} + where mb_id = '{$row['mb_id']}' + order by po_id desc + limit {$max_count}, {$row[cnt]} "; $result2 = sql_query($sql2); for ($k=0; $row2=sql_fetch_array($result2); $k++) { $count++; - $total += $row2['po_point']; + $total += $row2[po_point]; - sql_query(" delete from {$g4['point_table']} where po_id = '{$row2['po_id']}' "); + sql_query(" delete from {$g4['point_table']} where po_id = '{$row2[po_id]}' "); } - insert_point($row['mb_id'], $total, "포인트 {$count}건 정리", "@clear", $row['mb_id'], $g4['time_ymd']."-".uniqid("")); + insert_point($row['mb_id'], $total, '포인트 {$count}건 정리', '@clear', $row['mb_id'], $g4['time_ymd']."-".uniqid("")); $str = $row['mb_id']."님 포인트 내역 ".number_format($count)."건 ".number_format($total)."점 정리
"; - echo "\n"; + echo ''.PHP_EOL; flush(); } @@ -60,5 +60,5 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $sql = " UNLOCK TABLES "; sql_query($sql); -echo "\n"; +echo ''.PHP_EOL; ?> diff --git a/adm/point_list.php b/adm/point_list.php index d4e0f7e72..fb7c437a7 100644 --- a/adm/point_list.php +++ b/adm/point_list.php @@ -12,11 +12,11 @@ $sql_search = " where (1) "; if ($stx) { $sql_search .= " and ( "; switch ($sfl) { - case "mb_id" : - $sql_search .= " ($sfl = '$stx') "; + case 'mb_id' : + $sql_search .= " ({$sfl} = '{$stx}') "; break; default : - $sql_search .= " ($sfl like '%$stx%') "; + $sql_search .= " ({$sfl} like '%{$stx}%') "; break; } $sql_search .= " ) "; @@ -26,25 +26,25 @@ if (!$sst) { $sst = "po_id"; $sod = "desc"; } -$sql_order = " order by $sst $sod "; +$sql_order = " order by {$sst} {$sod} "; $sql = " select count(*) as cnt - $sql_common - $sql_search - $sql_order "; + {$sql_common} + {$sql_search} + {$sql_order} "; $row = sql_fetch($sql); $total_count = $row['cnt']; -$rows = $config['cf_page_rows']; +$rows = $config[cf_page_rows]; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 -if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) +if ($page == '') $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 $sql = " select * - $sql_common - $sql_search - $sql_order - limit $from_record, $rows "; + {$sql_common} + {$sql_search} + {$sql_order} + limit {$from_record}, {$rows} "; $result = sql_query($sql); $listall = '처음'; @@ -58,27 +58,28 @@ include_once ('./admin.head.php'); $colspan = 8; ?> - - + - - - - - - - + + + + + -
- (건수 : ) + +
+ 포인트 내역 검색 +
+ + 건수 : -
- - - /img/btn_search.gif' align=absmiddle>
-
- - - - - - + + + + + + + - --------- - - - - - - - - - +
회원아이디이름별명일시포인트 내용포인트포인트합
+ + + + + + + + + + + - + +"; - $link2 = ""; + $link1 = ''; + $link2 = ''; } +?> - $list = $i%2; - echo " - - - - - - - - - - - - "; + + + + + + + + + + + +"; + echo ''; +?> + +
+ 포인트 내역 +
회원아이디이름별명일시포인트 내용포인트포인트합
{$row['mb_id']}{$row2['mb_name']}$mb_nick{$row['po_datetime']} {$link1}{$row['po_content']}{$link2}".number_format($row['po_point'])." ".number_format($row2['mb_point'])." 
+ + + +
자료가 없습니다.
자료가 없습니다.
-echo ""; -echo ""; +
+ +
-$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page="); -echo ""; -echo ""; -echo "
"; -echo ""; -echo "$pagelist
\n"; + +
+ +
+document.fsearch.sfl.value = '$sfl';\n"; + echo ''.PHP_EOL; if (strstr($sfl, 'mb_id')) $mb_id = $stx; @@ -186,44 +189,45 @@ else ?>
- - -

-

- - - - - - - ------ - - - - - - + + + + + + + + + +
회원아이디포인트 내용포인트관리자패스워드입력
+ + + + - - - - - - - + + - - + + + + + + +
특정 회원의 포인트 증감 설정
회원아이디 +
포인트 내용 +
포인트 +
관리자패스워드 +
-