<%@ Page PathInChannel="add_lyric.aspx" RunAt="Execute" %>
<!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>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<ilghar:Get ID="Music" Object="Music" InnerID="Request.QueryString['ID']" />
<title>添加歌词 - <%=ChannelName%> - <%=SiteName%></title>
<ilghar:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript" src="/common/ajax.js"></script>
<script type="text/javascript">
function XmlHttpCallBack(xmlHttp)
{
	if (xmlHttp.responseText.indexOf("<error>") != 0)
	{
		alert("添加成功！谢谢合作！");
		window.close();
	}
	else
	{
		alert("添加失败！");
	}

	document.getElementById("Submit").disabled = false;
}

function OnSubmit(form)
{
	if (form.Content.value == "")
	{
		alert("内容不能空！");
		form.Content.select();
		return false;
	}
	
	var data = "IsDeleted=false&IsChecked=false";
	data += "&MusicID=<%=Music[ID]%>";
	data += "&Name=<%=Music[Name]%>";
	data += "&Content=" + form.Content.value;
	
	document.getElementById("Submit").disabled = true;
	_ajax.Post("/ws.aspx?Object=Lyric&Operation=Add", data, XmlHttpCallBack);

	return false;
}
</script>
</head>
<body class="Block29">
歌曲名：<%=Music[Name]%><br /><br />
<form onsubmit="return OnSubmit(this)">
	<textarea cols="50" rows="19" name="Content" class="<%=PageLang%>Font"></textarea><br />
	<input type="submit" id="Submit" value="提交" />
</form>

<%If Convert.ToString(PageLang) == "UYG"%>
	<script type="text/javascript" src="/common/IlgharIme.js"></script>
	<script type="text/javascript">SetupIme()</script>
<%EndIf%>
</body>
</html>
