%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 tbldichvu SET thutu=" & CInt(arrBlockOrder(i)) & " WHERE iddichvu=" & 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 tbldichvu Where iddichvu='"&replace(Request.QueryString("nid"),"'","''")&"'" Conn.execute (sql) Response.Redirect("?saoviet=2&Quan-ly-dich-vu.html") end if%>