<!--#include file = "tuzh_pri.asp"-->
<!--#include file="../setup.asp" -->
<!--#include file="../connadmin.asp"-->
<!--#include file="../page.asp"-->
<HTML>
<HEAD>
<TITLE>系统用户管理——<%=site_name%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../img/css.css" type="text/css">
<script language="JavaScript">
function reok(){
if (confirm("你真的要恢复系统默认设置吗？")){
	document.location.href="admin_sysset.asp?action=reok";
	}
}
</script>
<style type=text/css>
body  {
SCROLLBAR-FACE-COLOR: #9CC5D7;
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; 
SCROLLBAR-SHADOW-COLOR: #006699; 
SCROLLBAR-3DLIGHT-COLOR: #006699; 
SCROLLBAR-ARROW-COLOR: #330000; 
SCROLLBAR-TRACK-COLOR: #E2F3F1; 
SCROLLBAR-DARKSHADOW-COLOR: #ffffff;}
</style></HEAD>

<BODY>
<table class="border" width="98%" border="0" align="center" cellpadding="1" cellspacing="0">
  <tr>
    <td height="565" align="center" valign="top" class="bg_low"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" valign="middle" class="bgtop"><font color="#FFFFFF"><b>报名管理</b></font> </td>
      </tr>
    </table>
 <%	
set rs=server.createobject("adodb.recordset") 
exec="select * from baoming order by id asc" 
rs.open exec,conn,1,1 
if rs.eof then
response.Write "&nbsp;暂无报名！"
else
rs.PageSize =10 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif  page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if	
%>
      <form method="post" name="baoming" id="baoming" >
	   <%For i=1 To x%>
<table width="100%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#ABCEDD">
    <tr>
      <td width="140" align="right">姓名：</td>
      <td width="334" ><%=rs("RegName")%>
        &nbsp;</td>
      <td width="140" >性别：        </td>
      <td width="377" ><%=rs("sex")%></td>
    </tr>
    <tr>
      <td align="right">出生日期：</td>
      <td><%=rs("Birth")%></td>
      <td>民族：        </td>
      <td><%=rs("National")%></td>
    </tr>
    <tr>
      <td align="right">学历：</td>
      <td><%=rs("Education")%></td>
      <td>学分：        </td>
      <td><%=rs("Credit")%></td>
    </tr>
    <tr>
      <td align="right">地址：</td>
      <td><%=rs("Addr")%></td>
      <td>电话：</td>
      <td><%=rs("Telephone")%></td>
    </tr>
    <tr>
      <td align="right">邮箱：</td>
      <td><%=rs("Email")%></td>
      <td>手机：</td>
      <td><%=rs("Mobile")%></td>
    </tr>
    
    <tr>
      <td colspan="4">个人简介：</td>
      </tr>
    <tr>
      <td colspan="4"><%=rs("Remark")%></td>
      </tr>
    <tr>
      <td colspan="4" align="right"><input name="delete" type="button" class="button" onclick="javascript:if(confirm('确定要删除吗？删除后不可恢复!')){window.location.href='baoming_manage.asp?act=del&amp;id=<%=rs("id")%>';}else{history.go(0);}" value="删除下载" /></td>
      </tr>
</table>
<br>
 <%rs.movenext
next
%>
                  <%
end if
%>  
 <%'以下显示分页
 call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
rs.close
set rs=nothing
%>
    </form>
    </td>
  </tr>
</table>
</BODY>
</HTML>
<%
if request("act")="del" then
set rs=server.createobject("adodb.recordset")
id=Request.QueryString("id")
sql="select * from baoming where id="&id
rs.open sql,conn,2,3
rs.delete
rs.update
Response.Write "<script>alert('刪除成功！');window.location.href='baoming_manage.asp';</script>" 
end if
%>