%if session("username")="" then%> <%end if%> <% If Request.Form("btnUpdate")<>"" then arrBlockOrder = Split(Request.Form("cbBlockOrder"),",") intBlockID = Split(Request.Form("txtBlockID"),",") For i=0 to Ubound(intBlockID) openconn set rs=server.CreateObject("adodb.recordset") strSQL = "UPDATE tblnhansu SET thutu=" & CInt(arrBlockOrder(i)) & " WHERE idnhansu=" & CInt(intBlockID(i)) Conn.Execute(strSQL) Next %> <%end if%> <% if request("action")="del_one" then openconn set rs=server.CreateObject("adodb.recordset") sql="delete from tblnhansu Where idnhansu='"&replace(Request.QueryString("nid"),"'","''")&"'" Conn.execute (sql) Response.Redirect("?saoviet=5&Quan-ly-nhan-su.html") end if%>