%if session("username")="" then%> <%end if%> <% if request("action")="del_one" then openconn set rs=server.CreateObject("adodb.recordset") sql="delete from tblanh Where idanh='"&replace(Request.QueryString("nid"),"'","''")&"'" Conn.execute (sql) Response.Redirect("?saoviet=11&Quan-ly-anh.html") end if%> <% if request("action")="submit" then title=replace(request("title"),"'","''") pathanh=replace(request("pathanh"),"'","''") iddichvu=replace(request("iddichvu"),"'","''") top1=replace(request("top1"),"'","''") openconn set rs=server.CreateObject("adodb.recordset") sql="insert into tblanh(title,iddichvu,image,top1) values(N'"&title&"','"&iddichvu&"','"&pathanh&"','"&top1&"')" conn.execute(sql) response.Redirect("?saoviet=11&Quan-ly-anh.html") %> <%end if%>