포인트랭킹 제나빌더 홈처럼 > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

포인트랭킹 제나빌더 홈처럼

페이지 정보

본문

포인트 랭킹 제나빌더 홈처럼 아이콘표시와 가로로 3개 나열하고싶은데..

어떻게 해야하는지요?

제소스는 ?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("./_common.php");

define("_CO_POINT_RANK_", TRUE);

$html_title = "포인트순위";
$g4[title] = "" . $html_title;

echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
?>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
    <? if ($is_category) { ?><form name="fcategory" method="get"><td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td></form><? } ?>
    <td align="right" style="font:normal 11px tahoma; color:#BABABA;">
       
        <? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
        <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a><?}?></td>
</tr>
<tr><td height=5></td></tr>
</table>

<table width=100% align=center>
<tr><td valign=top colspan=2 class=lh>
<?
if ($member[mb_id])
{
    $sql = " select count(mb_id) as cnt from $g4[member_table]
              where mb_point >= '$member[mb_point]' order by mb_point desc ";
    $row = sql_fetch($sql);
    echo "<br>&middot; 현재 회원님의 포인트는 <b>".number_format($member[mb_point])."점</b> 이며 순위는 <B>".number_format($row[cnt])."등</B> 입니다.";
}

$sql = " select sum(mb_point) as sum_point from $g4[member_table]";
$row = sql_fetch($sql);
$sum_point = $row[sum_point];
echo "<br>&middot; 전체 포인트 : <B>".number_format($sum_point) . "점</b><br><br>";
echo "<table width=100%><tr><td height=2 bgcolor=#0A7299></td></td></tr></table>";
echo "</td></tr><tr><td valign=top width=50%>";

$sql = " select count(*) as cnt from $g4[member_table]";
$row = sql_fetch($sql);
$total_count = $row[cnt];

$rows = 50;
$total_page  = ceil($total_count / $rows);  // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함

$mod = 25;

$sql = " select * from $g4[member_table]
          order by mb_point desc, mb_today_login desc
          limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
    if ($i && $i%$mod==0)
        echo "</td><td valign=top>";

    $rank = (($page - 1) * $rows) + $i + 1;

    $name = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
    $point = number_format($row[mb_point]);

    echo "<table width=90% cellpadding=0 border=0><tr>";
    //echo "<td width=20 height=30>$rank.</td>";
    echo "<td height=20>$rank." . level_icon($row[mb_id]) . "$name</td>";
    echo "<td align=right><font color=777777>{$point}점</font></td>";
    echo "</tr></table>";
    //echo "<table width=90%><tr><td></td></tr></table>";
}
?>
</td></tr>
</table>

이렇습니다,
추천0

댓글목록

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

$rows = 50;총나열갯수
$mod = 25; 한줄나열갯수

수정해 보세요..

colspan=2 테이블 정의도 수정해 주시구요.

profile_image

흐르는강님의 댓글

흐르는강쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

좋은 정보군요. 한번 해봐야겠네요.
넘 감사합니다.

Total 1,641건 15 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
1291 백작쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13541 0 05-19
1290 플라니티스쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13540 0 05-07
1289 quarterback쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13540 0 03-01
1288 디란도쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13538 0 10-16
1287 포인트쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13510 0 05-11
1286 선도각쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13498 0 10-19
1285 dool쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13497 0 04-21
1284 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13480 0 05-22
1283 박푸푸쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13469 1 12-20
1282 힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13453 0 10-27
1281 미누리쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13447 0 06-13
1280 사이몽쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13445 0 12-30
1279 구공탄쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13441 0 10-12
1278 용맨쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13437 1 12-22
1277 쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13430 0 12-06
1276 바라짱쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13411 0 06-13
1275 구리구리쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13397 0 03-27
1274 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13396 0 10-23
1273 도우너쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13394 0 06-05
1272 첫만남의감격쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13390 0 08-05
1271 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13386 0 08-24
1270 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13380 0 07-21
1269 오타짱쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13374 0 03-22
1268 성이아빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13364 0 07-29
1267 독신쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13334 0 03-07

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
1,454
어제
3,801
최대
9,645
전체
2,372,770
Copyright (c) 株式会社YHPLUS. All rights reserved.