﻿document.write("<script language=\"javascript\" src=\"/ajax/Top100Web.PlayListAJAX,Top100Web.ashx\"></script>");
//加入未登陆灰框显示
document.write("<script language=\"javascript\" src=\"/css/greybox.js\"></script>");
document.write("<script language=\"javascript\" src=\"/css/AJS.js\"></script>");
var GB_IMG_DIR = "http://image.top100.cn/webImg/garybox/";
GreyBox.preloadGreyBoxImages();
var greybox_anim = new GreyBox();
greybox_anim.setCenterWindow(true);
greybox_anim.setDimension(640, 400);

var TEMP_OBJECT;
function GetSelectCheckBox(){
var i;
var array=new Array();
for(var j = 1;j<= boxNUM;j++)
				{
					box = document.getElementById("Song" + j);
					
					if(box.checked == true)
					{
					array.push( box.value);}
				}
if(array.length==0)array=null;
return array;
}
function GetSelectCheckBox1(){
var i;
var array=new Array();
for(var j = 1;j<= boxNUM;j++)
				{
					box = document.getElementById("Song" + j);
					
					if(box.checked == true)
					{
					array.push(box.getAttribute("tagMusicID"));}
				}
if(array.length==0)array=null;
return array;
}

function DeleteSelect(){
	var array=new Array();
	for(var j =1;j<= boxNUM;j++)
	{
						box = document.getElementById("Song" + j);
						//alert(box);
						if(box.checked == true)
						{
						
						array.push(j);
						//document.all["DgData"].deleteRow(j)}
						}
	}
	//alert(array.length+":"+array);
	for( var i=array.length-1;i>-1;i--)
				{
			document.all["DgData"].deleteRow(document.getElementById("Song" +array[i]).parentElement.parentElement.rowIndex)	
				}
}
function CheckException(response){
if(response.error!=null){
var s=response.error.toString();
var index=s.indexOf('__error__');
if(index!=-1){
s=s.substr(index+9,s.length-index);}
ShowDialog(s);
return false;}
return true;}
function ShowDialog(msg){
var dg=new dialog();
dg.init();
dg.set("src",5);
dg.set("title","系统提示信息");
dg.event(msg," ",""," ");}
function ShowMessageBox(msg){
var msgbox=new MessageBox();
msgbox.init();
msgbox.set("src",3);
msgbox.set("title","系统提示信息");
msgbox.event(msg," ",""," ");}
function ShowEditBox(msg){
var msgbox=new EditBox();
msgbox.init();
msgbox.set("src",3);
msgbox.set("title","系统提示信息");
msgbox.event(msg," ",""," ");}
function addCollection(productID){
var box=new EditBox();
box.init();
box.set("width",100);
box.set("height",200);
box.set("src",3);
box.set("title","添加歌曲所属播放列表");

box.html(MUSIC_ADD_HTML);
PlayListAJAX.GetTagListOfOwner(location.href,OnCallBack_Tag_List);

PlayListAJAX.GetSongInfoByProductID(productID,OnCallBack_SongInfo_Call);}
function EditTag(){
var name=document.all["txtName"].value;
var des=document.all["txtDes"].value;
var tagID=document.all["playlistID"].value;
if(name==""){
ShowDialog("请输入播放列表名称");
return;}
if(tagID!=""){
PlayListAJAX.UpdateTag(tagID,name,des,OnCallBack_Edit);}
else{
PlayListAJAX.AddTag(name,des,OnCallBack_Tag_Add);}}
function AddTag2(){
var name=document.all["txtName"].value;
var des=document.all["txtDes"].value;
var tagID=document.all["playlistID"].value;
if(name==""){
ShowDialog("请输入播放列表名称");
return;}
PlayListAJAX.AddTag(name,des,OnCallBack_Tag_Add2);}
function OnCallBack_Tag_Add2(response){
if(CheckException(response)){
PlayListAJAX.GetTagListOfOwner(location.href,OnCallBack_Tag_List);
ShowMessageBox("操作成功!");}}
function OnCallBack_Tag_Add(response){
if(CheckException(response)){
var newRow=document.all["DgData"].insertRow();
var newCell=newRow.insertCell();
newRow.className="dgItem";
newCell.innerHTML='<input id="cbxCheck" type="checkbox" name="cbxCheck" value="'+response.value.ID+'"/>';
newCell=newRow.insertCell();
newCell.innerHTML=document.all["DgData"].rows.length-1;
newCell=newRow.insertCell();
newCell.align="Left";
newCell.innerHTML='<a href=\'MusicList.aspx?TagID=' + response.value.ID + '\'> '+response.value.Name+'</a>';
newCell=newRow.insertCell();
var d=response.value.Create_On;
newCell.innerText=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
newCell=newRow.insertCell();
newCell.innerHTML='<IMG alt="修改" src="Image/editicon.gif"  class="ImageButton" onclick="GetTagByID('+response.value.ID+');">&nbsp;&nbsp;<IMG alt="删除" src="Image/delIcon.gif" class="ImageButton" onclick="DeleteTag('+response.value.ID+', this);">';
ShowEditBox("操作成功!");}}
function DeleteTag(tagID,obj){
TEMP_OBJECT=obj.parentElement.parentElement.rowIndex;
_confirm_msg_show("确定要删除吗?","PlayListAJAX.DeleteTag( "+tagID+", OnCallBack_Tag_Del )");}
function OnCallBack_Tag_Del(response){
if(CheckException(response)){
document.all["DgData"].deleteRow(TEMP_OBJECT);}}
function MutilDeleteTag(){
_confirm_msg_show("确定要删除吗?","PlayListAJAX.MutilDeleteTag( GetSelectCheckBox(), OnCallBack_Tag_MutilDel )");}
function OnCallBack_Tag_MutilDel(response){
if(CheckException(response)){
DeleteSelect();}}
function OnCallBack_Get_Tag(response){
if(response.value!=null){
document.all["txtName"].value=response.value.Name;
document.all["txtDes"].value=response.value.Description!=null?response.value.Description:"";
document.all["playlistID"].value=response.value.ID;}}
function UnionTag(){
var toTagID=document.all["selTag"].options[document.all["selTag"].selectedIndex].value;
var formTag=GetSelectCheckBox();
PlayListAJAX.UniteTag(formTag,toTagID,OnCallBack_Union_Tag);}
function OnCallBack_Union_Tag(resposne){
if(CheckException(resposne)){
ShowEditBox("播放列表合并成功!");
DeleteSelect();}}

function ShowTagEditBox2(){
var messageBox=new MessageBox();
messageBox.init();
messageBox.set("height",100);
messageBox.set("width",100);
messageBox.set("src",3);
messageBox.set("title","添加播放列表");
messageBox.html(TAG_EDIT_HTML2);}
function GetTagByID(tagID){
ShowTagEditBox();
PlayListAJAX.GetTagByID(tagID,OnCallBack_Get_Tag);}
function ShowTagUnionBox(){
var box=new EditBox();box.init();box.set("width",280);box.set("height",150);box.set("src",3);box.set("title","合并播放列表");
box.html(TAG_UNION_HTML);
PlayListAJAX.GetTagListOfOwner(location.href,OnCallBack_Show_Union_Tag);}
function AddMusic(){
var musicID=document.all["MID"].value;
var specialID=document.all["SPID"].value;
var NID=document.all["NID"].value;
var tagID=document.all["selTag"].options[document.all["selTag"].selectedIndex].value;
if(tagID==-1||tagID==""){
ShowDialog("请选择所属播放列表!");
return;}
if(specialID!=''){
PlayListAJAX.AddSpecial(tagID,specialID,OnCallBack_Edit);}
else if(NID!=''){
PlayListAJAX.AddSelectedSong(tagID,NID,OnCallBack_Edit);}
else{
PlayListAJAX.AddMusic(tagID,musicID,OnCallBack_Edit);}}
function OnCallBack_Music_Add(response){
if(CheckException(response)){
if(response.value!=null){
var newRow=document.all["DgData"].insertRow();
var newCell=newRow.insertCell();
if((document.all["DgData"].rows.length-1)%2==0){
newRow.style.backgroundcolor="#EAE8DB;";}
newRow.className="dgItem";
newCell.innerHTML='<input id="cbxCheck" type="checkbox" name="cbxCheck" value="'+response.value.ID+'"/>';
newCell=newRow.insertCell();
newCell.innerText=parseInt(document.all["lblIndex"].innerText-1)*20+document.all["DgData"].rows.length-1;
newCell=newRow.insertCell();
newCell.align="Left";
newCell.innerText=response.value.Name;
newCell=newRow.insertCell();
newCell.align="Left";
newCell.innerText=response.value.SingerName;
newCell=newRow.insertCell();
newCell.align="Left";
newCell.innerText=response.value.SpecialName;
newCell=newRow.insertCell();
newCell.innerHTML='<IMG alt="修改" src="Image/editicon.gif" class="ImageButton" onclick="ShowMusicEditBox('+response.value.TagMusicID+','+response.value.ID+');">&nbsp;&nbsp;<IMG alt="删除" class="ImageButton" src="Image/delIcon.gif" onclick="DeleteMusic('+response.value.TagMusicID+', this);">';
ShowEditBox("操作成功!");}}}
function AddMusicBySearcy(musicID){
var tagID=QueryString(window.location.href,"TagID");
PlayListAJAX.AddMusic(tagID,musicID,OnCallBack_Music_Add);}
function UpdateMusic(obj){
var tagMusicID=document.all["MID"].value;
var tagID=document.all["selTag"].options[document.all["selTag"].selectedIndex].value;
if(tagID!=QueryString(window.location.href,"TagID")){
TEMP_OBJECT=tagMusicID;}
else{
TEMP_OBJECT=null;}
if(tagID==-1||tagID==""){
ShowDialog("请选择所属播放列表!");
return;}
PlayListAJAX.UpdateMusic(tagMusicID,tagID,OnCallBack_Music_Update);}
function OnCallBack_Music_Update(response){
if(CheckException(response)){
if(TEMP_OBJECT!=null){
var items=document.getElementsByName("cbxCheck");
for(i=0;i<items.length;i++){
if(items[i].value==TEMP_OBJECT){
document.all["DgData"].deleteRow(i+1);
break;}}}
ShowEditBox("操作成功!");}}
function DeleteMusic(tagMusicID,obj){
TEMP_OBJECT=obj.parentNode.parentNode.rowIndex;
_confirm_msg_show("确定要删除吗?","PlayListAJAX.DeleteMusic( "+tagMusicID+", OnCallBack_Music_Del )");}
function OnCallBack_Music_Del(response){
if(CheckException(response)){
document.all["DgData"].deleteRow(TEMP_OBJECT);}}
// PlayListAJAX.MutilDeleteMusic( GetSelectCheckBox1(),OnCallBack_Music_MutilDel)
function MutilDeleteMusic(){
_confirm_msg_show("确定要删除吗?","PlayListAJAX.MutilDeleteMusic( GetSelectCheckBox1(),OnCallBack_Music_MutilDel)");}
function OnCallBack_Music_MutilDel(response){
if(CheckException(response)){
DeleteSelect();}}
function OnCallBack_Edit(response){
if(CheckException(response)){
ShowEditBox("操作成功!");}}
function OnCallBack_Tag_List(response){
if(CheckException(response)){
var i;
var objSelect=document.getElementById("selTag");
while(objSelect.options.length>0){
objSelect.options[0]=null;}
if(response.value.Tables[0]!=null){

for(i=0;i<response.value.Tables[0].Rows.length;i++){

var opt=new Option();
opt.value=response.value.Tables[0].Rows[i]["TAGID"];
opt.text=response.value.Tables[0].Rows[i]["NAME"];
document.getElementById("selTag").options.add(opt);}}}}
function OnCallBack_Show_Union_Tag(response){
if(CheckException(response)){
var i;
var selectItems=GetSelectCheckBox();
var isAdd;
var j;
if(response.value.Tables[0]!=null){
for(i=0;i<response.value.Tables[0].Rows.length;i++){
isAdd=true;
for(j=0;selectItems!=null&&j<selectItems.length;j++){
if(response.value.Tables[0].Rows[i]["TAGID"]==selectItems[j]){
isAdd=false;}}
if(isAdd){
var opt=new Option();
opt.value=response.value.Tables[0].Rows[i]["TAGID"];
opt.text=response.value.Tables[0].Rows[i]["NAME"];
document.all["selTag"].options.add(opt);}}}}}


function addCollection(productID){
if(!PlayListAJAX.IsLogin().value){
var tempUrl = "/UserManage/UserLogin_play.aspx?ReturnUrl=1";
greybox_anim.show('请登陆：',tempUrl,400,400);
//location.href="/UserManage/UserLogin.aspx?ReturnUrl="+location.href;
return false;}
var box=new EditBox();
box.init();
box.set("width",100);
box.set("height",200);
box.set("src",3);
box.set("title","添加歌曲");
box.html(MUSIC_ADD_HTML);
PlayListAJAX.GetTagListOfOwner(location.href,OnCallBack_Tag_List);
if(productID.substring(0,1)=='S'){
document.all["SongNameTable"].style.display='none';
document.all["singer"].innerText='数据加载中...';
PlayListAJAX.GetSpecialInfoByProductID(productID,OnCallBack_SpecialInfo_Call);}
else if(productID.substring(0,1)=='N'){
SetSelectInfo();}
else{
PlayListAJAX.GetSongInfoByProductID(productID,OnCallBack_SongInfo_Call);}}
function SetSelectInfo(){
document.getElementById("NID").value=GetSelectSong();
document.getElementById("Name").innerText=GetSongNameList();
document.getElementById("singer").innerText=GetSingerName();
document.getElementById("specialName").innerText=GetSpecialName();
ResetEditMusicPage();}
function OnCallBack_SongInfo_Call(response){
if(CheckException(response)){
if(response.value!=null){
document.getElementById("MID").value=response.value.ID;
document.getElementById("Name").innerHTML=response.value.Name;
document.getElementById("singer").innerHTML=response.value.SingerName;
document.getElementById("specialName").innerHTML=response.value.SpecialName;
ResetEditMusicPage();
}}}
function OnCallBack_SpecialInfo_Call(response){
if(CheckException(response)){
if(response.value!=null){
document.all["SPID"].value=response.value.ID;
document.all["singer"].innerText=response.value.SingerName;
document.all["specialName"].innerText=response.value.SpecialName;
ResetEditMusicPage();}}}
function ResetEditMusicPage(){
try{
var val=QueryString(window.location.href,"TagID");
SetSelectValue(document.getElementById("selTag"),val);}
catch(ex){}}
function ResetEditTagPage(){
var tagID=document.all["playlistID"].value;
if(tagID!=""){
PlayListAJAX.GetTagByID(tagID,OnCallBack_Get_Tag);}
else{
document.all["txtName"].value="";
document.all["txtDes"].value="";}}
function SearchSong(){
var songName=document.all["txtSongName"].value;

PlayListAJAX.SearchSongInfo(songName,OnCallBack_Music_Search);
document.all["lblInfo"].style.display='';}
function OnCallBack_Music_Search(response){
if(CheckException(response)){
var value=response.value;
if(value!=null){
var i;
DeleteAllTableRow(document.all["tblSearchValue"]);
for(i=0;i<response.value.Tables[0].Rows.length;i++){
var newRow=document.all["tblSearchValue"].insertRow(i+1);
newRow.height="40";
var newCell=newRow.insertCell(0);

newCell.innerHTML="<img src='image/musiclist_xgtj_d.jpg' width='11' height='11'>";
newCell.width=20;
newCell=newRow.insertCell(1);

newCell.innerHTML=value.Tables[0].Rows[i]["PRODUCTNAME"];
newCell=newRow.insertCell(2);
newCell.innerHTML=value.Tables[0].Rows[i]["SINGERNAMELIST"];
newCell=newRow.insertCell(3);
newCell.innerHTML=value.Tables[0].Rows[i]["SPECIALNAME"];
newCell=newRow.insertCell(4);
//alert(document.all["tblSearchValue"].rows.length)

newCell.innerHTML="<a href=\"JavaScript:AddMusicBySearcy(" + value.Tables[0].Rows[i]["SongID"] + ");\">[加入]</a>";
newCell.width="80";
}}
document.all["lblInfo"].style.display='none';}}
//var TAG_EDIT_HTML=;
function ShowTagEditBox(){
var box=new EditBox();
box.init();
box.set("height",100);
box.set("width",100);
box.set("src",3);
box.set("title","添加播放列表");
box.html('<INPUT id="playlistID" type="hidden" name="playlistID"><table width="350" border="0" height=180>\<tr height=50>\<td width="10%"><div align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></div></td>\<td width="15%">名称</td>\<td width="75%"><input name="txtName" type="text" size="28" maxlength="20" id="txtName"></td>\</tr>\<tr height=5>\<td width="10%"><div align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></div></td>\<td width="15%">描述</td>\<td width="75%"><input name="txtDes" type="text" size="28" maxlength="200" id="txtDes"></td>\</tr>\<tr height=5>\<td colspan="3"><div align="center"><a href="JavaScript:EditTag();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" height="21" border="0"></a> &nbsp;&nbsp;<a href="JavaScript:ResetEditTagPage();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_cz.gif" height="21" border="0"></a></div></td>\</tr>\</table>');}
var TAG_EDIT_HTML2='<INPUT id="playlistID" type="hidden" name="playlistID"><table width="350" border="0" height=180>\<tr height=50>\<td width="10%"><div align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></div></td>\<td width="15%">播放列表</td>\<td width="75%"><input name="txtName" type="text" size="28" maxlength="20" id="txtName"></td>\</tr>\<tr height=5>\<td width="10%"><div align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></div></td>\<td width="15%">描述</td>\<td width="75%"><input name="txtDes" type="text" size="28" maxlength="200" id="txtDes"></td>\</tr>\<tr height=5>\<td colspan="3"><div align="center"><a href="JavaScript:AddTag2();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" height="21" border="0"></a> &nbsp;&nbsp;<a href="JavaScript:ResetEditTagPage();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_cz.gif" height="21" border="0"></a></div></td>\</tr>\</table>';
var MUSIC_EDIT_HTML='';
function ShowMusicEditBox(tagMusicID,musicID){
var box=new EditBox();
box.init();
box.set("width",100);
box.set("height",200);
box.set("src",3);
box.set("title","修改歌曲所属播放列表");
box.html('<INPUT id="MID" type="hidden" name="MID"><table border="0" align="center" cellpadding="0" cellspacing="0" ID="Table1">\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_5.jpg" width="400" height="8"></td>\</tr>\<tr>\<td bgcolor="#efe8da"><table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table2">\<tr>\<td width="1"></td>\<td bgcolor="#f6f3ec"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table3">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">歌曲名称</span></td>\<TD><span id="Name"></span>&nbsp;</TD>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table4">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">歌&nbsp;&nbsp;&nbsp;&nbsp;手</span></td>\<TD><span id="singer"></span>&nbsp;</TD>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table5">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">所属专辑</span></td>\<TD><span id="specialName"></span>&nbsp;</TD>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table6">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">所属播放列表</span></td>\<td><SELECT id="selTag" name="selTag">\<OPTION selected>--请选择播放列表--</OPTION>\</SELECT>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="15" bgcolor="#f2ebe0"\
ID="Table7">\<tr>\<td width="14%">&nbsp;</td><td width="23%"></td>\<td width="16%"><a href="JavaScript:UpdateMusic(this);"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" width="47" height="21" border="0"></a></td>\<td width="16%"><a href="JavaScript:ResetEditMusicPage();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_cz.gif" width="47" height="21" border="0"></a></td>\<td width="31%"></td>\</tr>\</table>\</td>\<td width="1"></td>\</tr></table></td></tr>\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_6.jpg" width="400" height="8"></td>\</tr>\</table>');
//document.all["MID"].value=tagMusicID;

PlayListAJAX.GetTagListOfOwner(location.href,OnCallBack_Tag_List);

PlayListAJAX.GetSongInfo(musicID,OnCallBack_SongInfo_Call);}
var TAG_UNION_HTML='<table width="100%" border="0" cellspacing="0" height="100%" cellpadding="0" ID="Table2">\<tr>\<td width="1"></td>\<td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" \
ID="Table3">\<tr>\<td width="35%"><span class="yylb">合并到:</span></td>\<td width="65%">&nbsp;<SELECT id="selTag" name="selTag">\<OPTION selected value="-1">--请选择播放列表--</OPTION>\</SELECT>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="15" \
ID="Table7">\<tr>\<td width="14%">&nbsp;</td>\<td width="16%"><a href="JavaScript:UnionTag();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" width="47" height="21" border="0"></a></td>\<td width="16%"><a href="#"><img src="http://image.top100.cn/webimg/musiclist_xgtj_cz.gif" width="47" height="21" border="0"></a></td>\</tr>\</table>\</td>\<td width="1"></td>\</tr>\</table>';
var MUSIC_ADD_SEARCH_HTML='<table border="0" align="center" cellpadding="0" cellspacing="0" ID="Table1">\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_5.jpg" width="463" height="8"></td>\</tr>\<tr>\<td bgcolor="#efe8da"><table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table2">\<tr>\<td width="1"></td>\<td bgcolor="#f6f3ec"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table3">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="15%"><span class="yylb">歌曲名称</span></td>\<td width="75%"><input name="txtSongName" type="text" size="22" maxlength="20" ID="txtSongName"><FONT face="宋体">&nbsp;\</FONT><A href="JavaScript:SearchSong();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" width="47" height="21" border="0"></A>\</td>\</tr>\</table>\</td>\<td width="1"></td>\</tr>\</table>\</td>\</tr>\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_6.jpg" width="463" height="8"></td>\</tr>\</table>\<table border="0" align="center" cellpadding="0" cellspacing="0" ID="table5" height="100%">\<tr><td width="100%" align="center"><span id="lblInfo" style="display:none;color:#ff0000">数据加载中....</span></td></tr>\<tr>\<td bgcolor="#efe8da" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" ID="table12">\</table>\<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="tblSearchValue">\<tr><td width=20></td><td>歌曲名称</td><td>歌手</td><td>所属专辑</td><td>操作</td></tr>\</table>\</td>\<td width="1"></td>\</tr>\</table>\</td>\</tr>\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_6.gif" width="463" height="8"></td>\</tr>\</table>';
function ShowMusicAddBox(){
var box=new EditBox();
box.init();
box.set("width",450);
box.set("height",300);
box.set("src",3);
box.set("title","添加歌曲");
//box.html("asdf");
box.html('<table border="0" align="center" cellpadding="0" cellspacing="0" ID="Table1">\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_5.jpg" width="463" height="8"></td>\</tr>\<tr>\<td bgcolor="#efe8da"><table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table2">\<tr>\<td width="1"></td>\<td bgcolor="#f6f3ec"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table3">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="15%"><span class="yylb">歌曲名称</span></td>\<td width="75%"><input name="txtSongName" type="text" size="22" maxlength="20" ID="txtSongName"><FONT face="宋体">&nbsp;\</FONT><A href="JavaScript:SearchSong();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" width="47" height="21" border="0"></A>\</td>\</tr>\</table>\</td>\<td width="1"></td>\</tr>\</table>\</td>\</tr>\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_6.jpg" width="463" height="8"></td>\</tr>\</table>\<table border="0" align="center" cellpadding="0" cellspacing="0" ID="table5" height="100%">\<tr><td width="100%" align="center"><span id="lblInfo" style="display:none;color:#ff0000">数据加载中....</span></td></tr>\<tr>\<td bgcolor="#efe8da" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" ID="table12">\</table>\<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="tblSearchValue">\<tr><td width=20></td><td>歌曲名称</td><td>歌手</td><td>所属专辑</td><td>操作</td></tr>\</table>\</td>\<td width="1"></td>\</tr>\</table>\</td>\</tr>\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_6.gif" width="463" height="8"></td>\</tr>\</table>');

}
var MUSIC_ADD_HTML='<INPUT id="MID" type="hidden" name="MID"><INPUT id="NID" type="hidden" name="NID"><INPUT id="SPID" type="hidden" name="ID"><table border="0" align="center" cellpadding="0" cellspacing="0" ID="Table1">\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_5.jpg" width="400" height="8"></td>\</tr>\<tr>\<td bgcolor="#efe8da"><table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table2">\<tr>\<td width="1"></td>\<td bgcolor="#f6f3ec"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="SongNameTable">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">歌曲名称</span></td>\<TD><span id="Name">数据加载中...</span>&nbsp;</TD>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="table4">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">歌&nbsp;&nbsp;&nbsp;&nbsp;手</span></td>\<TD><span id="singer"></span>&nbsp;</TD>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table5">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">所属专辑</span></td>\<TD><span id="specialName"></span>&nbsp;</TD>\</td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2ebe0"\
ID="Table6">\<tr>\<td width="10%" height="40" align="center"><img src="http://image.top100.cn/webimg/musiclist_xgtj_d.jpg" width="11" height="11"></td>\<td width="20%"><span class="yylb">所属播放列表</span></td>\<td><SELECT id="selTag" name="selTag">\<OPTION selected>--请选择播放列表--</OPTION>\</SELECT>\</td>\<td><a href="javascript:ShowTagEditBox2();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tjlb.gif" border="0"></a></td>\</tr>\</table>\<table width="90%" border="0" align="center" cellpadding="0" cellspacing="15" bgcolor="#f2ebe0"\
ID="Table7">\<tr>\<td width="14%">&nbsp;</td><td width="23%"></td>\<td width="16%"><a href="JavaScript:AddMusic(this);"><img src="http://image.top100.cn/webimg/musiclist_xgtj_tj.gif" width="47" height="21" border="0"></a></td>\<td width="16%"><a href="JavaScript:ResetEditMusicPage();"><img src="http://image.top100.cn/webimg/musiclist_xgtj_cz.gif" width="47" height="21" border="0"></a></td>\<td width="31%"></td>\</tr>\</table>\</td>\<td width="1"></td>\</tr></table></td></tr>\<tr>\<td><img src="http://image.top100.cn/webimg/musiclist_xgtj_6.jpg" width="400" height="8"></td>\</tr>\</table>';
