<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<title>音乐排行榜</title>
<link href="/templets/skin/cm.css" rel="stylesheet" type="text/css" />
<link href="/templets/skin/home.css" rel="stylesheet" type="text/css" />

<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
<!--
	function CheckLogin(){
	  var taget_obj = document.getElementById('_userlogin');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/member/ajax_loginsta.php");
	  DedeXHTTP = null;
	}
-->
</script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
	$("div[class*='good'],div[class*='bad']").bind("click", function(){
		var type = $(this).attr('class'),aid = $(this).attr('id');
		var saveId = getCookie('diggid');
		if(saveId != null)
		{
			var saveIds = saveId.split(',');
			var hasId = false;
			j = 1;saveId = '';
			for(i=saveIds.length-1;i>=0;i--)
			{
				if(saveIds[i]==aid && hasId) continue;
				else
				{
					if(saveIds[i]==aid && !hasId) hasId = true;
					saveId += (saveId=='' ? saveIds[i] : ','+saveIds[i]);
					j++;
					if(j==20 && hasId) break;
					if(j==19 && !hasId) break;
				}
			}
			
			if(hasId) { alert("你已经顶过了吧..."); return false; }
			else saveId += ','+aid;
			setCookie('diggid',saveId,1);
		}
		else
		{
			setCookie('diggid',aid,1);
		}		
		$.ajax({type: 'POST',url: "../plus/feedback.php",
			data: "formurl=caicai&action="+type+"&aid="+aid,
			dataType: 'text',
			success: function(result){$("#"+type+aid).html(result);}
		});
		
	});
});

//读写cookie函数
function getCookie(c_name)
{
	if (document.cookie.length > 0)
	{
		c_start = document.cookie.indexOf(c_name + "=")
		if (c_start != -1)
		{
			c_start = c_start + c_name.length + 1;
			c_end   = document.cookie.indexOf(";",c_start);
			if (c_end == -1)
			{
				c_end = document.cookie.length;
			}
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}
	return null
}

function setCookie(c_name,value,expiredays)
{
	var exdate = new Date();
	exdate.setDate(exdate.getDate() + expiredays);
	document.cookie = c_name + "=" +escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); //使设置的有效时间正确。增加toGMTString()
}

function postBadGood(type,id){}
</script>
<script language="javascript" src="/play/public.js"></script>
</head>
<body>
<script src="/admin/img/frame.js" language="javascript" type="text/javascript"></script>
<div id="top_">
    <div class="top_ auto_">
	<div class="top_L">
          <script src='/plus/ad_js.php?aid=11' language='javascript'></script>
      </div>
      <div class="top_R"  id="_userlogin">
            <h5>欢迎你的到来！ 你可以 <a href="/member/index_do.php?fmdo=user&dopost=regnew">注册</a> 或 
<a class="gray_" href="/member/login.php" >登录</a> | 
<a class="gray_" onclick="javascript:window.external.AddFavorite('<?php echo $cfg_basehost?>', '<?php echo $cfg_webname; ?>');return false;" href="javascript:void(0);">收藏本站</a> | 
<a class="gray_" href="/purchase.html" >商业授权</a>

</h5>
      </div>
<script language="javascript" type="text/javascript">CheckLogin();</script>
        
    </div>
</div>
<div class="qucikmenu" id="qucikmenu">
	<ul>
		<li><a href='/member/archives_do.php?dopost=addArc&channelid=1'  class="gray_">发表音乐</a></li>
<li><a href='/member/archives_do.php?dopost=addArc&channelid=6'  class="gray_">创建专辑</a></li>
<li><a href='/member/archives_rizhi_add.php?channelid=7'  class="gray_">发布日志</a></li>
<li><a href='/member/buy.php'  class="gray_">兑换金币</a></li>
<li><a href='/member/edit_fullinfo.php'  class="gray_">个人资料</a></li>
	</ul>
</div>
<div id="logo_">
    <div class="logo_L"></div>
	<div id='nav'>
	<ul>
	<li id='navMusic'><a href='/music/' title="音乐"></a></li>
	<li id='navUsers'  class='current'><a href='/member/user.php' title="会员"></a></li>
	<li id='navRadio'><a href='/rizhi/' title="日志"></a></li>
	<li id='navGroups'><a href='/zhuanji/' title="专辑"></a></li>
	<li id='navCharts'><a href='/help/' title="帮助"></a></li>
	</ul>
	</div>
    <div class="logo_R">
	 <form action="/plus/search.php" name="formsearch" target="_blank">
	 
 <input id="txt_ser_cc" class="topser" type="text" name="keyword" value="搜索歌曲/歌手/专辑" onfocus="this.value=''" style="float:left"/>
 <input type="image" src="/templets/skin/Default_ser.jpg" style="float:left" />
      </form>
    </div>
</div>
<div class="ban_">
<ul id='subnav'>
<li><a href='/'><em>首页</em></a></li>
<li><a href='/member/top.php'><em>全部榜单</em></a></li>
<li><a href='top.php?tid={dede:global.tid/}&sort=goodpost'><em>音乐推荐榜</em></a></li>
<li><a href='top.php?tid={dede:global.tid/}&sort=badpost'><em>差评排行榜</em></a></li>
<li><a href='top.php?tid={dede:global.tid/}&sort=scores'><em>好评排行榜</em></a></li>
<li><a href='top.php?tid={dede:global.tid/}'><em>最新好评榜</em></a></li>
</ul>
</div>


<div class="bgcolor_w con_3">
    <div class="fL_">
	<form>
	<div class="list">

	  {dede:datalist}
	  <div class="list1">
	  <div class="list2"><input type=checkbox  name=id[] value="{dede:field.id/}" style="width:15px; height:15px; border:1px solid #FFFFFF">
	  </div>
	  <div class="list3"><a href="{dede:field.arcurl /}" target="play">{dede:field.title /}</a>
	  得分:{dede:field.scores/} 
</div>
	  <div class="list4"> <div class='good' title='好评' id="{dede:field.id/}"> <span id='good{dede:field.id/}'>{dede:field.goodpost/}</span> </div>
                  <div class='bad' title='差评' id="{dede:field.id/}"> <span id='bad{dede:field.id/}'>{dede:field.badpost/}</span> </div></div>
	  </div>
	  {/dede:datalist}
	  <div class="list5">
          {dede:pagelist listitem="end,pre,next,pageno" listsize="5"/}
		</div>
	  <div class="list6"><input type="button"  onclick="return FormWin(this.form,'kiss_box');" class="btna" value="播放" style="width:40px" />
<input type="button" onclick="return sal(this.form)" class="btna" value="全选" style="width:40px"/>
<input type="button" onclick="return opal(this.form)"  class="btna"  value="取消" style="width:40px"/></div>
      </div>
	  
	  </form>
    </div>
    <div class="fR_">
	<div class="bordercolor_g con_3R1 con_3R21" style="margin-top:0px;">
            <div class="cont_">
                <h4>活跃会员</h4>
            </div>
            <div class="clear_"></div>
            <div class="con_3R1n"></div>
            <div id="justList">                
			{dede:memberlist row=18 signlen=30}
			<div class="con_3R2c1">
                    <div class="bordercolor_b2 con_3R2cL1">
                        <a href="{dede:field name='spaceurl'/}"><img width="30" height="30" title="{dede:field.spacename/}" src="{dede:field.face/}" border="0" /></a>
                    </div>
                    <ul>
                        <li><a href=/member/index.php?uid={dede:field.userid/} target="_blank" style="color:#4BB130">{dede:field.userid/}</a>刚刚登陆了  <a href="index.php?action=guestbook&uid={dede:field.userid/}" style="color:#4BB130">留个脚印</a></li>
                        <li class="gray_">金币{dede:field.money/}个 积分{dede:field.scores/}</li>
                    </ul>
              </div>
				{/dede:memberlist}
      </div>
	</div>
	</div>
</div>

<div id="foot_"></div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
<div class="foot_bottom"></div> 
</body>
</html>
