<%if session("username")="" then%> <%end if%> <% if request("action")="del_one" then openconn set rs=server.CreateObject("adodb.recordset") sql="delete from tblAdmin Where idadmin='"&replace(Request.QueryString("nid"),"'","''")&"'" Conn.execute (sql) Response.Redirect("?saoviet=37&Quan-ly-nguoi-dung.html") end if%> <% if request("action")="submit" then username=replace(request("username"),"'","''") password=sha256(replace(request("password"),"'","''")) openconn set rs=server.CreateObject("adodb.recordset") sql="insert into tblAdmin(username,password) values('"&username&"','"&password&"')" 'response.Write(password) ' response.End() conn.execute(sql) response.Redirect("?saoviet=37&Quan-ly-nguoi-dung.html") %> <%end if%>
QUẢN LÝ NGƯỜI DÙNG
Tên truy cập
Mật khẩu
Nhập lại mật khẩu
<% openconn set rs=server.CreateObject("adodb.recordset") rs.open"Select * from tblAdmin where idadmin<>31 order by idadmin DESC",conn,3,1 If Request.QueryString("page") = "" Then intCurrentPage = 1 Else intCurrentPage = CInt(Request.QueryString("page")) End If RS.PageSize = 10 If rs.PageCount > 0 then rs.AbsolutePage = intCurrentPage Else intCurrentPage = 0 End If j=1 i=1 do while not rs.eof %> <% if j=RS.PageSize then exit do end if j=j+1 i = i + 1 RS.MoveNext loop %>
 USERNAME QUẢN LÝ
 <%= rs("username") %>
Xóa thông tin');">