- 메인그룹 -

알지로넷 웹호스팅

위리넷 웹호스팅

유용한팁
메인그룹 > 유용한팁
  • 포인트별 회원리스트 - 마이페이지
  • iuman
  • 작성일 : 2009-08-20 10:56:52
  • Homepage : http://iuman.net
    • 저의 사이트 마이페이지에 적용해둔 포인트별 회원리스트 입니다.
      아직 테스트중인 사이트라 당근 회원도 없네요.


      그럼 소스 올라갑니다.

       
      <?
      include_once("../rg4_include/lib.php");
      include_once($_path['member'].'_header.php');
      
      ?>
      
      
      <style>
      .black  {font-family:tahoma,Verdana; color:000000; background:; font-size:11px; font-weight:;}
      .red    {font-family:tahoma,Verdana; color:EF5900; background:; font-size:11px; font-weight:;}
      .blue  {font-family:tahoma,Verdana; color:305CB4; background:; font-size:11px; font-weight:;}
      </style>
      
      <?
      //뽑고자하는 포인트 랭킹 순위 설정, 즉 20위까지 뽑아낸다.
      $ranking = 20;
      ?>
      
      <div style="float:left;width:100%">
      
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
      <tr>
      <td style="padding:4px;" align="center">
      
      <h3>포인트랭킹</h3>
      <?
      /***************************************/
      $rs->clear();
      $rs->set_table($_table['member']);
      $rs->add_where(" mb_id <> 'admin' ");
      $rs->add_order(" mb_point DESC LIMIT 0,$ranking");
      
      
      $cnt = 1;
      while( $R=$rs->fetch() ) {
      ?>
      <table width="100%" border="0" cellspacing="2" cellpadding="1" bgcolor="#FFFFFF">
      <tr>
      <td width="20" align="right" class="black" style="padding:8 4 0 0;">
      <b><?=$cnt?></b>
      </td>
      <td width="70" align="left" class="black" style="padding:8 0 0 4;">
      <span style='cursor:pointer;font-weight:bold;' onclick="JavaScript:window.open('view_profile.php?mb_id=<?=$R[mb_id]?>'
      ,'post_view','width=505,height=365,toolbar=no,location=top,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no');" onMouseOver="this.style.backgroundColor='#000000';this.style.color='#FFFFFF'" onMouseOut="this.style.backgroundColor='#FFFFFF';this.style.color='#000000'" title='회원상세정보'><?=$R[mb_id]?></a></span>
      </td>
      <td width="60" class="black" style="padding:8px 4px 0 0;">
      <?=$R[mb_nick]?>
      </td>
      <td width="90" align="right" class="red" style="padding:8 10 0 0;">
      <b><?=$R[mb_point]?></b> <font color="black">point</font>
      &nbsp;<span style="width:30px;text-align:left;"><font COLOR="000000"><b>L</b></font>(<?=$R[mb_level]?>)</span>
      </td>
      <td width="140" align="" style="padding:10px 4px 0 0;word-break:break-all;word-wrap:break-word;" nowrap>
      <span class="blue" style="font-weight:bold;"><?=$R[mb_email]?></span>
      </td>
      <td width="" align="" style="padding:10 4 0 0;word-break:break-all;word-wrap:break-word;letter-spacing:-1px;">
      <?=($R[mb_post])?"(".$R[mb_post].") ":"";?><?=($R[mb_address1])?$R[mb_address1]:"";?>
      </td>
      <td width="90" align="right"><a onclick="JavaScript:window.open('../ip_search.php?ip_num=<?=$R[login_ip]?>','new_ip_view','width=518,height=600,scrollbars=yes,resizable=no');" style='cursor:hand' title='[IP 정보를 보실수 있습니다.]' onMouseOver="this.style.backgroundColor='#000000';this.style.color='#FFFFFF'" onMouseOut="this.style.backgroundColor='#FFFFFF';this.style.color='#000000'"><?=$R[login_ip]?></td>
      <td width="90" align="right" class="black" style="padding:4px 4px 0 0;line-height:100%;">
      <?=date('Y-m-d H:i', $R[join_date])?><br>
      <span class="red"><b>Last</b></span>
      <? if (date('Ymd', $R[login_date]) > date("Ymd", strtotime("-7 Day"))) { ?><span class="black" style="color:red" title="7일이내 접속했을경우"><?=($R[login_date]==0)?'-':date('m-d H:i', $R[login_date])?></span><? } else { ?><span class="black"><?=($R[login_date]==0)?'-':date('m-d H:i', $R[login_date])?></span><? } ?>
      </td>
      </tr>
      <tr>
      <td colspan="8" bgcolor="e8e8e8" height="1">
      </td>
      </tr>
      </table>
      <?
      $cnt = $cnt + 1;
      }
      /***************************************/
      ?>
      </td></tr>
      </table>
      
      </div>
      
      
      <? include_once($_path['member'].'_footer.php'); ?>


      실제적용 이미지를 보시려면 아래 링크를 통해 원본글에서 확인하세요.
      http://iuman.net/v14/rg4_board/view.php?&bbs_code=rgboard&bd_num=42
    홈페이지다시만들어보자~
    http://iuman.net