<?php 
include("admin.php"); 
?>
<html>
<head>
<title>新艺点音乐工作室-舞曲管理</title>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<meta name="description" content="MYPIC">
<meta name="keywords" content="MYPIC">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/admin/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td height="30" background="../images/admin/Mypic_top15.gif"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td>&nbsp; 
            </td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr> 
          <td> <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#666666" bgcolor="#666666">
              <tr> 
                <td height="26" background="../images/admin/Mypic_top12.gif"> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        舞曲管理</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="4" cellpadding="0">
                    <tr> 
                      <td>
                      <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#EBEBEB" class="tableoutline">
                        <!--DWLayoutTable-->
                          <tr class="tbhead" align=center> 
                            <td width="60" height="24" bgcolor="#CCCCCC">编号</td>
                            <td width="91" valign="top" bgcolor="#CCCCCC">舞曲栏目</td>
                            <td width="275" valign="top" nowrap bgcolor="#CCCCCC">舞曲名称</td>
                            <td width="120" valign="top" nowrap bgcolor="#CCCCCC">上传时间</td>
                            <td width="190" nowrap bgcolor="#CCCCCC">编辑</td>
                          </tr><?php 
include("admin.php"); 
$id=$_GET['id'];
$pagesize=10;
$url=$_SERVER["REQUEST_URI"];
$url=parse_url($url);
$url=$url[path];
$numq=mysql_query("SELECT * 
FROM `dj_music` 
WHERE `music_ishtml` LIKE '{$id}'");
$num = mysql_num_rows($numq);
if($_GET[page]){
$pageval=$_GET[page];
$page=($pageval-1)*$pagesize;
$page.=',';
}
if($num > $pagesize){
 if($pageval<=1)$pageval=1;
 $allpage = @ceil($num / $pagesize);//总页数
echo "[共{$num}条]".  "[每页{$pagesize}条]".  " [当前第{$pageval}页]".
		" <a href=$url?id=$id&page=1>首页</a> <a href=$url?id=$id&page=".($pageval-1).">上一页</a> <a href=$url?id=$id&page=".($pageval+1).">下一页</a> <a href=$url?id=$id&page=".($allpage).">末页</a> ";
}
$sql="SELECT * 
FROM `dj_music` 
WHERE `music_ishtml` LIKE '{$id}'
ORDER BY `id` DESC
LIMIT $page $pagesize";
$rs=mysql_query($sql);
while ($rw=mysql_fetch_assoc($rs))
echo "<tr bgcolor='#FFFFFF' class=firstalt> 
                            <td height='28' align=left> {$rw['id']}</td>
                            <td align='center' valign='top'> {$rw['music_ishtml']}</td>
                            <td valign='top' nowrap> <a href=../paly.php?id={$rw['id']} target='_blank'>{$rw['music_name']}</a> </td>
                            <td align='center' valign='top' nowrap> {$rw['time']}</td>
                            <td align='center' nowrap><a href=''><img 

src='../images/admin/Mypic_top17.gif' width='80' height='20' border='0' 

align='absmiddle'></a>                              <img 

src='../images/admin/Mypic_top18.gif' width='80' height='20' border='0' align='absmiddle'>  

                          </td>
                          </tr>";?>
</table>
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table>
          </td>
        </tr>
        
      </table></td>
  </tr>
</table>
<br>
<center>Powered by: <a href="http://test.ewliao.cn/" target="_blank">newyidian.com</a> </body>
</html>