<!--#include file="../inc/conn.asp"-->
<!--#include file="stAR.INC"-->
<!--#include file="functionuser.asp"-->
<%
founderr=false

id=request("id")
songwords=trim(request("songwords"))
membername=trim(request("username"))

set rs=server.createobject("adodb.recordset")
if id="" then
	errmsg=errmsg+"<br><li>请先选择歌曲！</li>"
	founderr=true
else

	sql="select * from MusicList where id="&id
	rs.open sql,conn,1,3
	if not rs.EOF then
		if rs("LockWords")=true then
			errmsg=errmsg+"<br><li>歌词已锁定，无法修改！</li>"
			founderr=true
		end if
		if trim(songwords)="" then
			rs("songwords")=null
		else
			rs("songwords")=htmlencode2(songwords)
		end if
		rs("AddWordsUser")=membername
		rs("LockWords")=true
		rs("shenhe")=true
		rs.update
	else
	errmsg=errmsg+"<br><li>选择歌曲错误！</li>"
	founderr=true
	end if
	rs.close
end if
set rs=nothing
conn.close
set conn=nothing
if founderr=true then
	call error()
else
	Response.Redirect "showgeci.asp?id="&id
end if
%>





