<style type="text/css">
<!--
.style1 {
	color: #FFFFFF;
	font-size: 14px;
	font-weight: bold;
}
.style2 {font-size: 12px}
-->
</style>
<div align="center">
  <table width="780" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <td width="780" height="30">&nbsp;</td>
    </tr>
  </table>
</div>
<div align="center">
  <table width="780" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <td width="515" height="180" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="515" height="25" align="left" valign="middle" background="ing/head.gif">&nbsp;&nbsp;&nbsp;<span class="style1">婚礼恋爱</span></td>
          </tr>
          <tr></tr>
          <tr>
            <td height="25" align="left" valign="top" background="ing/lb.png" class="style2"><?php 
			include("db.php"); 
$pagesize=30;
$url=$_SERVER["REQUEST_URI"];
$url=parse_url($url);
$url=$url[path];
$numq=mysql_query("SELECT * FROM `dj_music`");
$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?page=1>首页</a> <a href=$url?page=".($pageval-1).">上一页</a> <a href=$url?page=".($pageval+1).">下一页</a> <a href=$url?page=".($allpage).">末页</a> ";
}

$sql="SELECT * 
FROM `dj_music` 
WHERE `music_ishtml` LIKE '婚礼恋爱'
ORDER BY `id` DESC 
LIMIT $page $pagesize"; 
$rs=mysql_query($sql); 
while ($rw=mysql_fetch_assoc($rs)) 
echo "<p><div style='width:400px;height:12px;overflow:hidden;'>{$rw['id']} <a title='{$rw['music_name']}' href=paly.php?id={$rw['id']} target='_blank'>{$rw['music_name']}</a></div></p>";?></td>
          </tr>
          <tr>
            <td height="125">&nbsp;</td>
          </tr>
      </table></td>
      <td width="17">&nbsp;</td>
      <td width="248" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="248" height="25" align="left" valign="middle" background="ing/head.gif" class="style1">&nbsp;&nbsp;&nbsp;最新舞曲</td>
          </tr>
          <tr></tr>
          <tr>
            <td height="25" align="left" valign="middle" background="ing/gqlb.png" class="style2"><?php include("db.php"); $sql="SELECT * 
FROM `dj_music` 
ORDER BY `id` DESC 
LIMIT 0 , 10"; $rs=mysql_query($sql); while ($rw=mysql_fetch_assoc($rs)) echo "<div style='width:230px;height:12px;overflow:hidden;'>{$rw['id']} <a title='{$rw['music_name']}' href=paly.php?id={$rw['id']} target='_blank'>{$rw['music_name']}</a></div><br>";?></td>
          </tr>
		            <tr>
            <td height="6"></td>
          </tr>
          <tr>
            <td height="25" align="left" valign="middle" background="ing/head.gif" class="style1">&nbsp;&nbsp;&nbsp;推荐舞曲</td>
          </tr>
          <tr></tr>
          <tr>
            <td height="25" align="left" valign="middle" background="ing/gqlb.png" class="style2"><?php include("db.php"); $sql="SELECT * 
FROM `dj_music` 
WHERE `music_img` LIKE '推荐'
ORDER BY `id` DESC 
LIMIT 0 , 10"; $rs=mysql_query($sql); while ($rw=mysql_fetch_assoc($rs)) echo "<div style='width:230px;height:12px;overflow:hidden;'>{$rw['id']} <a title='{$rw['music_name']}' href=paly.php?id={$rw['id']} target='_blank'>{$rw['music_name']}</a></div><br>";?></td>
          </tr>
		            <tr>
            <td height="6"></td>
          </tr>
          <tr>
            <td height="25" align="left" valign="middle" background="ing/head.gif" class="style1">&nbsp;&nbsp;&nbsp;热门舞曲</td>
          </tr>
          <tr></tr>
          <tr>
            <td height="25" align="left" valign="middle" background="ing/gqlb.png" class="style2"><?php include("db.php"); $sql="SELECT * 
FROM `dj_music` 
ORDER BY `music_view` DESC
LIMIT 0 , 10"; $rs=mysql_query($sql); while ($rw=mysql_fetch_assoc($rs)) echo "<div style='width:230px;height:12px;overflow:hidden;'>{$rw['id']} <a title='{$rw['music_name']}' href=paly.php?id={$rw['id']} target='_blank'>{$rw['music_name']}</a></div><br>";?></td>
          </tr>
                        </table></td>
    </tr>
  </table>
</div>

