KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/junsu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/junsu/ranking.php
<?PHP
	include"inc_top.php";
	if($sessionLevel < 10){
		echo "<script>parent.location.href = './guide.html'</script>";
		exit;
	}

	require"inc_mypage_menu.php";  //마이페이지 메뉴

//리스트
//echo "<br><br><br><br><br><br>";
$total_count  = floor(($total_member * 4.5) /100)+1;
//if($total_count > 15) $pageCount = ($page-1)*(15/$total_count);

if(!$pageCount) $pageCount = $total_count;
$show_one_page      = $pageCount;
$show_view_page     = 7;
$page     = ( $page ) ? $page : 1;
$offset   = ($page-1)*$show_one_page;
// 상위 5% 만 리스트에 나옴.

$query_limit  = "limit $offset,$show_one_page";

//$QUERY_PAGE  = "SELECT DISTINCT t1.nickname, t1.m_point, count( t1.userid ) AS ranking,t1.id FROM user t1, user t2 WHERE t1.m_point < t2.m_point OR t1.userid = t2.userid and t1.auth_code=10 and t1.activated=1 GROUP BY t1.userid ORDER BY ranking $query_limit";
//$viewlist     = ( !$total_count ) ? "" : Get_viewpage($page,$total_count,$show_one_page,$show_view_page,$url_tail);
$QUERY_PAGE  = "SELECT * FROM user WHERE auth_code=10 AND activated=1 ORDER BY m_point desc $query_limit";
$result= mysql_query($QUERY_PAGE,$db_con);
$total = mysql_affected_rows();
if($total==0){
	$BRD_LIST = "
	<tr class='box_non_top bg_gray4'>
		<td class='ls' colspan=4>ランキング情報がありません。</td>
	</tr>";
}else{
	for($i=0; $i<$total; $i++)
	{
		$rowR = mysql_fetch_array($result);

		$tmp_img= get_imgColor($rowR[id]);
		if($tmp_img[0] =="<img src='../images/sub/icon_emoticon_bg.png' width='100%'>") $replyImg = "<img src='../images/sub/myp_profile_img.png' width='100%'>";
		else $replyImg =$tmp_img[0];
		$replyColor = $tmp_img[1];
		$rankNumber = Get_db("select count(*) as cnt from user where m_point > (SELECT m_point FROM user where id = '$rowR[id]') and auth_code=10 and activated=1")+1;
		if($i < 3 && $page == 1){
			if($tmp_img[0] =="<img src='../images/sub/icon_emoticon_bg.png' width='100%'>") $replyImg = "<img src='../images/sub/myp_profile_img.png' width='100%'>";
			else $replyImg =$tmp_img[0];
		 $BEST_123 .= "
			<div class='ranking_ls_area'>
				<dl>
				<dt><span class='font_blue'>$rankNumber 位</span> $rowR[nickname]</dt>
			 </dl>
			 <div class='man_area'><div class='man_box man_bg3_m' style='background-color:".$replyColor.";overflow: hidden; position: relative;'>$replyImg</div></div>
			 <div class='txt'>
				<img src='../images/sub/icon_ranking".$rankNumber.".gif' width='12' height='18' /> <span class='font_blue font_size_16'> RANK $rankNumber</span><br><br>
				".number_format($rowR[m_point])." FP <br>
				Ranking : <span class='font_blue'>$rankNumber 位</span><br> (上位0%)
			 </div>
			</div>
		 ";
		}else{
		if($tmp_img[0] =="<img src='../images/sub/icon_emoticon_bg.png' width='100%'>") $replyImg = "<img src='../images/sub/ranking_person.png' width='100%'>";
		else $replyImg =$tmp_img[0];

	 $BRD_LIST .="
	<tr class='box_non_top bg_gray4'>
		<td class='ls'>$rankNumber</td>
		<td class='ls2' style='padding-left:5%'><div class='man_s man_bg1_m' style='background-color:".$replyColor.";overflow: hidden; position: relative;'>$replyImg</div>$rowR[nickname]</td>
		<td class='ls font_green2'><img src='../images/sub/icon_ranking4.gif'/> Legend</td>
		<td class='ls'>".number_format($rowR[m_point])." FP</td>
	</tr>
	 ";
		}
	}
}
// 현재회차를 보여주고 셀렉트박스를 이용해 회차별 랭킹을 보여준다.
$QUERY_PAGE  = "SELECT * FROM user_ranking order by inning desc";
$results= mysql_query($QUERY_PAGE,$db_con);
$rows = mysql_fetch_array($results);
$startdateArr = explode("-",$rows[startdate]);
$startdate =$startdateArr[0].".".$startdateArr[1];
$enddateArr = explode("-",$rows[enddate]);
$enddate =$enddateArr[0].".".$enddateArr[1];
if($rows[inning] != 1){
		$before_level_view .= "<a href='javascript:openshow();'><img src='../images/sub/btn_go_ranking3.jpg' width='95' height='25' style='vertical-align:middle;'/></a>";
}

?>

<style>
	.color_rank_legend {	color:#3b9879; }
	.color_rank_gold {	color:#ff9506; }
	.color_rank_silver {	color:#9990c5; }
	.color_rank_bronze {	color:#dd1b4d; }

	.man_s 	{ display:inline-block;	width:27px; height:27px; margin-right:7px; vertical-align:middle; }
	.man_bg1_m 	{ background-color:#26D181; }
	.man_bg2_m 	{	background-color:#22936B; }
	.man_bg3_m 	{	background-color:#00B9DD; }
	.man_bg4_m 	{	background-color:#009FBC; }
	.man_bg5_m 	{	background-color:#00A0DC; }
	.man_bg6_m 	{	background-color:#0089BC; }
	.man_bg7_m 	{	background-color:#BC51EE; }
	.man_bg8_m 	{	background-color:#9337D7; }
	.man_bg9_m 	{	background-color:#E35D63; }
	.man_bg10_m {	background-color:#D6252E; }
	.man_bg11_m {	background-color:#FF3399; }
	.man_bg12_m {	background-color:#FFCD3F; }


	@media only screen and (min-width:1225px)
	{
			.ranking_area     				{ display:block; margin:0px auto; width:100%; max-width:1225px;  padding: 65px 0px 120px 0px; vertical-align:top;  }
			.ranking_left_area 			{	display:inline-block; width:340px; margin-right:35px; 		}
			.ranking_man_area					{	display:block; width:340px; vertical-align:top;	}
			.ranking_man_txt					{	display:block; width:340px; vertical-align:top;	}
			.ranking_man_box						{	display:inline-block; width:180px; height:180px; 	}
			.ranking_man_infor									{	display:inline-block; width:145px;	margin-left:11px; vertical-align:top;	}
			.ranking_man_infor dt						{	width:100%; padding:15px 0 10px 0; font-size:1em; font-weight:bold; border-style:solid; border-width:0 0 1px 0; border-color:#CCC;	}
			.ranking_man_infor dd 					{	width:100%; height:20px; }

			.ranking_man_tier_area					{	display:block; width:340px; vertical-align:top;	}
			.ranking_man_tier_area table  { width:340px; background-color:#f6f6f6; }
			.ranking_man_tier_area table td { width:48px; padding:0px; margin:0px; background-color:#f6f6f6; }

			.ranking_content_area     { display:inline-block; width:820px; vertical-align:top; }

			.ranking_ls_area   					 					{ margin:0 10px 0 10px; display:inline-block; max-width:280px; border-style:solid; border-width:5px; border-color:#50b5ef; padding:10px; }
			.ranking_ls_area dt											{ display:block; width:100%; height:35px; font-size:14px; font-weight:bold; }
			.ranking_ls_area .man_area				{ display:inline-block; width:110px; height:110px;   }
			.ranking_ls_area .man_box					{ display:table-cell; width:110px; height:110px; text-align:center; vertical-align:middle;}
			.ranking_ls_area .man_box img {	width:60%;	}
			.ranking_ls_area .txt									{ display:inline-block; width:110px; vertical-align:top; margin-left:8px; line-height:18px; }
			.ranking_ls_area .txt img     { margin-top:5px; }

			.ranking_ls_area:first-child { margin:0px; }
			.ranking_ls_area:last-child  { margin:0px; }

	}

	@media only screen and (max-width:1224px)
	{
			.ranking_area     				{ display:block; margin:0px auto; width:100%; max-width:820px;  padding: 65px 0px 120px 0px; vertical-align:top;  }
			.ranking_left_area 			{	display:inline-block; width:800px; margin-right:35px; 		}

			.ranking_man_area					{	display:inline-block; width:340px; vertical-align:top; 	}
			.ranking_man_txt					 {	display:inline-block; width:340px; vertical-align:top; padding-left:70px;}
			.ranking_man_box						{	display:inline-block; width:180px; height:180px; 	}
			.ranking_man_infor				{	display:inline-block; width:145px;	margin-left:11px; vertical-align:top;	}
			.ranking_man_infor dt	{	width:100%; padding:15px 0 10px 0; font-size:1em; font-weight:bold; border-style:solid; border-width:0 0 1px 0; border-color:#CCC;	}
			.ranking_man_infor dd {	width:100%; height:20px; }

			.ranking_man_fp_area							{	display:inline-block; width:385px; vertical-align:top; 	}
			.ranking_man_tier_area					{	display:inline-block; width:390px; vertical-align:top; margin-left:20px;	}
			.ranking_man_tier_area table  { background-color:#f6f6f6;}

			.ranking_content_area     { margin:30px auto; width:820px; vertical-align:top; }

			.ranking_ls_area   					 					{ margin:0 10px 0 10px; display:inline-block; max-width:280px; border-style:solid; border-width:5px; border-color:#50b5ef; padding:10px; }
			.ranking_ls_area dt											{ display:block; width:100%; height:35px; font-size:14px; font-weight:bold; }
			.ranking_ls_area .man_area				{ display:inline-block; width:110px; height:110px;   }
			.ranking_ls_area .man_box					{ display:table-cell; width:110px; height:110px; text-align:center; vertical-align:middle;}
			.ranking_ls_area .man_box img {	width:60%;	}
			.ranking_ls_area .txt									{ display:inline-block; width:110px; vertical-align:top; margin-left:8px; line-height:18px; }
			.ranking_ls_area .txt img     { margin-top:5px; }

			.ranking_ls_area:first-child { margin:0px; }
			.ranking_ls_area:last-child  { margin:0px; }
	}

	@media only screen and (max-width:799px)
	{
			.ranking_area     				{ display:block; margin:0px auto; max-width:340px;  padding: 65px 0px 120px 0px; vertical-align:top; }
			.ranking_left_area 			{	display:inline-block; width:340px; margin-right:35px; 		}
			.ranking_man_area					{	display:block; width:340px; vertical-align:top;	}
			.ranking_man_txt						{	display:block; width:340px; vertical-align:top; padding:0px;	}
			.ranking_man_box						{	display:inline-block; width:180px; height:180px; 	}
			.ranking_man_infor									{	display:inline-block; width:145px;	margin-left:11px; vertical-align:top;	}
			.ranking_man_infor dt						{	width:100%; padding:15px 0 10px 0; font-size:1em; font-weight:bold; border-style:solid; border-width:0 0 1px 0; border-color:#CCC;	}
			.ranking_man_infor dd 					{	width:100%; height:20px; }

			.ranking_man_fp_area							{	display:block; width:340px; vertical-align:top; 	}
			.ranking_man_tier_area					{	display:block; width:340px; vertical-align:top; margin:20px 0 0 0;	}
			.ranking_man_tier_area table  { width:340px; background-color:#f6f6f6; }
			.ranking_man_tier_area table td { width:48px; padding:0px; margin:0px; background-color:#f6f6f6; }

			.ranking_content_area 								{	display:block; width:340px; vertical-align:top;	}

			.ranking_ls_area   					 					{ margin:0px; display:block; max-width:340px; border-style:solid; border-width:5px; border-color:#50b5ef; padding:10px; }
			.ranking_ls_area dt											{ display:block; width:100%; height:35px; font-size:14px; font-weight:bold; }
			.ranking_ls_area .man_area				{ display:inline-block; width:110px; height:110px;   }
			.ranking_ls_area .man_box					{ display:table-cell; width:110px; height:110px; text-align:center; vertical-align:middle;}
			.ranking_ls_area .man_box img {	width:60%;	}
			.ranking_ls_area .txt									{ display:inline-block; width:110px; vertical-align:top; margin-left:8px; line-height:18px; }
			.ranking_ls_area .txt img     { margin-top:5px; }
			.ranking_ls_area:first-child { margin-bottom:10px; }
			.ranking_ls_area:last-child  { margin-top:10px; }
	}
/*tooltip css*/
a.tooltips {
	position: relative;
	display: inline;
}
.tooltips img {vertical-align:bottom;}
a.tooltips span {
	position: absolute;
	width: 300px;
	color: #FFFFFF;
	background: #000000;
	height: 240px;
	line-height: 18px;
	text-align: left;
	display: none;
	padding : 3% 3%;
	border-radius: 6px;
}
a.tooltips span:after {
	content: '';
	position: absolute;
	top: 100%;
	left: 11%;
	margin-left: -8px;
	width: 0;
	height: 0;
	border-top: 8px solid #000000;
	border-right: 8px solid transparent;
	border-left: 8px solid transparent;
}
a:hover.tooltips span {
	display: block;
	opacity: 0.8;
	bottom: 24px;
	left: 50%;
	margin-left: -30px;
	z-index: 999;
}


</style>
<script type="text/javascript" src="/plugin/smartPop/jquery.smartPop.js"></script>
<link rel="stylesheet" href="/plugin/smartPop/jquery.smartPop.css" />
<script type="text/javascript">
    function openshow(){
      $.smartPop.open({ background: "#000000", width: "100%",maxwidth: "650", height: "50%",borderColor:"#000000" , border: 0, url: 'ranking_view.php'});
    }
    function smartPopClose()
    {
        $.smartPop.close();
    }

    window.onresize = function(event) {
        if($("#smartPop").css("display") == "block") {
            var bWidth = $('#smartPop_frame').get(0).contentWindow.$('.gallviewBox').height();
            $.smartPop.resizeHeight(bWidth);
        }
    }
</script>
<SECTION>

	<article class="ranking_area">

	 <div class="con_tit" style="font-size:18px;">Ranking (シーズン<?=$rows[inning]?>:<?=$startdate?> ~ <?=$enddate?>)</div>

  <div class="ranking_left_area">
  	<div class="ranking_man_area">
   	<div class="ranking_man_box man_bg1_m" style="background-color: $m_color ;">
     <div style="display:table-cell; width:180px; height:180px; vertical-align:middle; text-align:center; "><?=$m_img_big?><!--<img src="../images/sub/myp_profile_img.png">--></div>
     <!--img src="../images/sub/im_pororo.jpg" width="180" height="180" -->
    </div>
    <div class="ranking_man_infor">
    	<dl>
     	<dt><?=$nickName?> </dt>
      <dd style="padding:15px 0 15px 0;"><?=$MY_LEVEL?></dd>
      <dd class="font_bold"><?=number_format($point_total)?> FP</dd>
      <dd>Ranking : <span class="font_blue1 font_bold"><?=$result_rank?>位</span></dd>
      <dd>(上位<?=$persent?>%)</dd>
      <!--<dd class="box txt_align_c" style=" background-color:#efefef; padding:5px 0 5px 0;"> <span style="cursor:pointer" onclick="javascript:location.reload();">ランキング更新</span> </dd>-->
						<!--dd class="box txt_align_c" style=" background-color:#efefef; padding:5px 0 5px 0;"></dd -->

     </dl>
    </div>
   </div>
   <div class="ranking_man_txt margin_t10 line_h23px">
   <a href="mypage_fp.php"><img src="../images/sub/btn_go_ranking1.jpg" width="95" height="25" style="vertical-align:middle;"/></a>&nbsp;&nbsp;
   <a href="javascript:location.reload();"><img src="../images/sub/btn_go_ranking2.jpg" width="95" height="25" style="vertical-align:middle;"/></a>&nbsp;&nbsp;
	 <?=$before_level_view?>
   <br><br>
	 ファンポイントはコメント作成やストアの利用など活動をするたびに得られるポイントで、下記の4つの項目の活動履歴を確認し、シーズン毎にポイントを多く獲得した上位1~3位の方にはアーティストが準備したプレゼントをお送りいたします。
    <!--ファンポイントはFC活動を活発にすると得られるポイントで、下記の4つの項目の活動履歴を確認し、ポイントが多く獲得した上位1,2,3位の方にはアーティストが準備した贈り物をお送りいたします。-->
   </div>
	 		<dl>
			<dt><a class="tooltips" style="text-decoration:none;cursor:pointer;"><img src='/images/sub/ranking_ex.png' id="if_Hint" width="18"><b>【注意事項】</b>
			<span>【注意事項】<br>
			※ポイント獲得のみの目的や不適切な内容のコメント登録や掲示板投稿は、運営局の判断により事前予告なく削除させていただく場合がございます。予めご了承くださいませ。<br>
※各シーズン終了後、ポイント上位獲得者様の発表は、当サイトのNEWSにて掲載させていただきます。また、ポイント上位獲得者様にはメールにて個別にご連絡させていただきます。<br>
※プレゼントの内容は、後日ご案内させていただきます。<br>
※上記内容は、事情によって変更となる場合がございます。
			</span>
			</a></dt>
		</dl>

			<div class="ranking_man_fp_area margin_t20 ">
   	<dl>
    	<dt class="box padding_10 font_bold">FP 獲得ポイント</dt>
     <dd class="box_non_top padding_10 line_h23px bg_gray4">
     	いいね : 10 FP <br>
      コメント登録 : 20 FP <br>
      掲示板投稿  : 50 FP <br>
      ストア利用  : 500 FP
     </dd>
    </dl>
   </div>

			<div class="ranking_man_tier_area margin_t20 ">
   	<dl>
    	<dt class="box padding_10 font_bold">レベル説明 </dt>
    </dl>
    <table width="100%" class="box_non_top">
     <colgroup>

      <col width="45px" />
      <col width="45px" />
      <col width="45px" />
      <col width="45px" />
      <col width="45px" />
      <col width="45px" />
      <col width="45px" />
      <col width="45px" />
     </colgroup>
     <tr>
      <td	style="width:45px; height:105px; text-align:center; vertical-align:middle; border-right:1px solid #CCC;"><img src="../images/sub/ranking_tier1.gif" width="39" height="70" /></td>
			<td	style="width:45px; height:105px; text-align:center; vertical-align:middle; border-right:1px solid #CCC;"><img src="../images/sub/ranking_tier2.gif" width="39" height="70" /></td>
      <td	style="width:45px; height:105px; text-align:center; vertical-align:middle; border-right:1px solid #CCC;"><img src="../images/sub/ranking_tier3.gif" width="39" height="70" /></td>
      <td	style="width:45px; height:105px; text-align:center; vertical-align:middle; border-right:1px solid #CCC;"><img src="../images/sub/ranking_tier4.gif" width="39" height="70" /></td>
			<td	style="width:45px; height:105px; text-align:center; vertical-align:middle; border-right:1px solid #CCC;"><img src="../images/sub/ranking_tier5.jpg" width="39" height="70" /></td>
      <td	style="width:45px; height:105px; text-align:center; vertical-align:middle; border-right:1px solid #CCC;"><img src="../images/sub/ranking_tier6.jpg" width="39" height="70" /></td>
			<td style="width:45px; height:105px; text-align:center; vertical-align:middle;"><img src="../images/sub/ranking_tier7.jpg" width="39" height="70" /></td>
     </tr>
    </table>

   </div>
	 <div class="ranking_man_tier_area margin_t20 ">
	 <img src="/images/sub/ranking_graph.gif">
	 </div>

  </div>

  <div class="ranking_content_area">
  	<div style="width:100%; display:block; ">
		<?=$BEST_123?>
   </div>


   <div style="width:100%; display:block;" class="margin_t20">
   	<p><strong>上位レジェンドランキング</strong> 順位はレジェンドレベルまで表示されます。</p>
    <br><br>

    <table width="100%" class="basic_table_rk">
    	<colgroup>
     	<col width="15%" />
     	<col width="45%" />
     	<col width="15%" />
     	<col width="25%" />
     </colgroup>
     <thead>
     	<tr class="box">
      	<th>Ranking</th>
       <th>ニックネーム</th>
       <th>レベル</th>
       <th>FP</th>
      </tr>
     </thead>
     <tbody>
			<?=$BRD_LIST?>
		 </tbody>
    </table>
   </div>


   <div class="pagination02">
    <ul class="paging">
		<?=$viewlist?>
    </ul>
   </div>


  </div>



 </article>

</SECTION>

<?PHP
 include "inc_bottom.php";
?>

Anon7 - 2021