포인트순위 특정아이디 제외 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

포인트순위 특정아이디 제외 정보

포인트순위 특정아이디 제외

본문

포인트순위에서 특정아이디 출력 안되게 설정하고싶은데 어찌 방법좀 알려주세욤 ...

<?
include_once("_common.php");
include_once("$g4[path]/lib/mw.builder.lib.php");

$g4[title] = "누적 포인트순위";
include_once("_head.php");

$rows = 100;

$sql = "select mb_id, sum(po_point) as point from $g4[point_table] where po_point > 0 group by mb_id order by point desc";
$qry = sql_query($sql);

$i = 0;
$list = array();
while ($row = sql_fetch_array($qry)) {
    $mb = get_member($row[mb_id]);
    if ($row[mb_id] == $config[cf_admin]) continue;
    if ($mb[mb_level] < 2) continue;
    if ($mb[mb_leave_datel] != "") continue;
    if ($mb[mb_intercept_datel] != "") continue;
    $list[$i][rank] = $i+1;
    $list[$i][name] = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email]. $mb[mb_homepage]);
    $list[$i][point] = number_format($row[point]);
    if (++$i >= $rows) break;
}

$list_count = sizeof($list);

//$paging = get_paging($rows, $page, $total_page, "?page=");

?>

<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>

<style type="text/css">
.info { height:25px; margin:0 0 0 10px; font-size:13px; }
.line { border-top:1px solid #ddd; margin:10px 0 10px 0; }
.point-ranking { }
.point-ranking .head { font-weight:bold; text-align:center; height:30px }
.point-ranking .body { height:30px; padding:0; }
.point-ranking .body .rank { width:50px; text-align:right; }
.point-ranking .body .name { width:150px; text-align:left; padding-left:5px; }
.point-ranking .body .point { width:100px; text-align:right; }
.paging { clear:both; height:50px; text-align:center; margin:30px 0 0 0; }
</style>

<strong><?=$g4[title]?></strong> : - 포인트를 제외한 + 포인트값 순위입니다.

<div class="line"></div>

<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" valign="top">
<table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
<? for ($i=0; $i<$rows/2 && $i<$list_count; $i++) { ?>
<tr>
    <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
    <td class="body"> <div class="name"><?=$list[$i][name]?></div> </td>
    <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
</tr>
<? } ?>
</table>
    </td>
    <td width="50%" valign="top">
<table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
<? for ($i=$rows/2; $i<$list_count; $i++) { ?>
<tr>
    <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
    <td class="body"> <div class="name"><?=$list[$i][name]?></div> </td>
    <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
</tr>
<? } ?>
</table>
    </td>
</tr>
</table>

<div class="line"></div>

<div class="paging"><?=$paging?></div>

<?
include_once("_tail.php");
?>


소스 입니다 ..
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로