<?	
	include('check_admin.php');
	require_once('link.php');
	mysql_select_db($database,$connect);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理者-音樂檔案列表</title>

<style>
.style1 {font-size: 13px; color: #FFFFFF; }
BODY {
	SCROLLBAR-FACE-COLOR: #D4D0C8;
	SCROLLBAR-HIGHLIGHT-COLOR: #D4D0C8;
	SCROLLBAR-SHADOW-COLOR: #999999;
	SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
	SCROLLBAR-ARROW-COLOR:  #000000;
	SCROLLBAR-TRACK-COLOR: #E3E3E3;
	SCROLLBAR-DARKSHADOW-COLOR: #666666;
	background-color: #000000;
	background-image: url(img/bg6.png);
	background-attachment: fixed;
}
a:link {
	color: white;
	text-decoration: none;
}
a:visited {
	color: white;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	color: #FFFFFF;
}
.style5 {
	font-size: 16px;
	font-weight: bold;
}
</style>

</head>

<script  language="JavaScript">
function check()
{
	var r=confirm("是否刪除檔案?");
	if(r==true)
		return true;
	if(r==false)
		return false;
}
</script>

<body leftmargin=0 topmargin=0 bgproperties="fixed" rightmargin=0  bottommargin=0 marginwidth=0 marginheight=0>
<div align = "right"></div>
<center>
<form action = "delete_share.php" method = "post" onSubmit = "return check()">
  <p>&nbsp;</p>
  <p><a href="admin_link.htm" class="style5">管理者功能列表</a></p>
  <table width="395" height="70" border="0" align="center" cellpadding="1" cellspacing="0" class="style1">
    <?	
	mysql_select_db($database,$connect);
	$query = "SELECT * FROM `Share`";
	mysql_query('SET NAMES utf8');
	$result = mysql_query($query,$connect);
	$num = mysql_num_rows($result);?>
    <tr bgcolor="#14071B" >
      <td colspan = "13"><div align="center"><strong>音樂列表</strong>-<? echo "共".$num."首<br>";?></div></td>
    </tr>
    <tr bgcolor="#391B44">
      <td width="43" height="21"><div align="center">選擇</div></td>
      <td width="0"></td>
      <td width="48" height="21"><div align="center">帳號</div></td>
      <td width="0"></td>
      <td width="48" height="21"><div align="center">樂團</div></td>
      <td width="0"></td>
      <td width="48" height="21"><div align="center">曲名</div></td>
      <td width="0"></td>
      <td width="180" height="21"><div align="center">上傳時間</div></td>
    </tr>
    <?
		for($i = 1;$i<=$num;$i++)
		{
			$row1 = mysql_fetch_object($result);
	?>
    <tr bgcolor="#543B66">
      <td height="21"><div align="center">
          <input type = "checkbox" name = "choice[<? $i;?>]" value = "<? echo $row1->seq;?>">
      </div></td>
      <td></td>
      <td height="21"><div align="center"><? echo $row1->mId;?></div></td>
      <td></td>
      <td height="21"><div align="center"><? echo $row1->band;?></div></td>
      <td></td>
      <td height="21"><div align="center"><? echo $row1->song;?></div></td>
      <td></td>
      <td height="21"><div align="center"><? echo $row1->sDateTime;?></div>
    </tr>
    <tr>
      <td colspan = "13"></td>
    </tr>
    <?    }echo "<input type = 'submit' value = '刪除'>";?>
  </table>  
  <p>&nbsp;</p>
</form>
<br>
</center>
</body>
</html>
