<!--#include file="inc/conn_user.asp"-->
<%
    action=request("action") 
	set rs=server.createobject("adodb.recordset")
	if action="del" then
	Conn_user.ExeCute("select * from [bgs] where id="&request("id")&"")
	response.redirect "admin_gadd.asp"
	else
	sql="select * from [bgs] order by id desc "
    rs.open sql,conn_user,1,3
   	rs.addnew
	rs("bgname")=request("bgname")
    rs("bgintor")=request("bgintor")
    rs("bgpath")=request("bgpath")
	rs("point")=request("point")
	rs.update
	rs.close
   	response.redirect "admin_gadd.asp"
	end if
%>
<%
myPagesize=10
set rs=server.createobject("adodb.recordset")
rs.open " ",conn_user,1,1
call myPages(rs,myPagesize)
%>