⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_xy.asp

📁 用ASP写的学生管理系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<HEAD><TITLE>修改注册协议</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>

</HEAD>
<BODY  bgColor=#2f66bf >
<DIV align=center>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 
cellPadding=0 width=763 border=0>
  <TBODY>
  <TR>
    <TD width="100%"><!--#include file="head.asp"--></TD></TR></TBODY></TABLE>
	
<TABLE dir=ltr cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=top>
      <DIV align=center>
      <TABLE height=830 cellSpacing=0 cellPadding=0 width=763 border=0>
        <TBODY>
        <TR>
          <TD width=763 background=images/head_13.jpg height=15></TD></TR>
        <TR>
          <TD vAlign=top align=middle width=763 
          background=images/head_14.jpg height=49>
            <TABLE id=AutoNumber3 style="BORDER-COLLAPSE: collapse" 
            borderColor=#111111 cellSpacing=0 cellPadding=0 width=763 
              border=0><TBODY>
              <TR>
                <TD width=11 rowSpan=4> </TD>
                <TD width=741></TD>
                <TD width=11 rowSpan=4> </TD></TR>
              <TR>
                <TD width=741></TD></TR>
              <TR>
                <TD width=741> </TD></TR>
              <TR>
                <TD width=741></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD width=763 background=images/head_16.jpg height=11></TD></TR>
        <TR>
          <TD width=763 background=images/head_11.jpg height=726>
            <DIV align=center>
            <TABLE id=table8 height="101%" cellSpacing=0 cellPadding=0 
            width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top align=middle width=187>
                  <!-- #include file="left.asp" -->
			  </TD>
                <TD vAlign=top>
                  <TABLE id=table9 height=30 cellSpacing=0 cellPadding=0 
                  width=571 border=0>
                    <TBODY>
                    <TR>
                      <TD width=12 background=images/sousuo_1.jpg> </TD>
                      <TD width=115 background=images/sousuo_2.jpg>
                        <TABLE id=table12 height=18 cellSpacing=0 cellPadding=0 
                        width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD vAlign=top><FONT color=#ffffff><SPAN 
                              style="FONT-SIZE: 12px">&nbsp;学 生 搜 
                            索</SPAN></FONT></TD></TR></TBODY></TABLE></TD>
                      <TD background=images/sousuo_2.jpg>  </TD>
                      <TD vAlign=top width=133 
                      background=images/sousuo_2.jpg>
                        <FORM style="MARGIN: 0px" name="form1" action="search.asp"  method="post">
                        <TABLE cellSpacing=0 cellPadding=0 width=390 border=0>
                          <TBODY>
                          <TR>
                            <TD width=56></TD>
                            <TD vAlign=top width=144><SPAN lang=zh-cn>
							<SELECT class=smallSel size=1 name="searchid">
							 <OPTION  value="Userid" selected name="typeid">=按登陆学号=</OPTION> 
                             <OPTION value="UserName"  name="typeid">=按学生姓名=</OPTION>
							 <OPTION value="Sex"  name="typeid">=按学生性别=</OPTION>
							 <OPTION value="Birthday"  name="typeid">=按出生年月=</OPTION>
							 <OPTION value="Banji"  name="typeid">=按学生班级=</OPTION>
						    </SELECT></SPAN>
							 
						    </TD>
                            <TD vAlign=top width=113>
							<input name="searchkey" type="text" onfocus="this.value=''" size="10" maxlength="10" value=关键字>
							
						    </TD>
                           <TD width=77><DIV align=center>
							<INPUT type=image src="images/sousuo_4.jpg" border=0 name=Submit value="开始查找" onclick="return checkk();"></DIV></TD></TR></TBODY></TABLE></FORM></TD></TD>
                      <TD width=15 background=images/sousuo_5.jpg> </TD></TR></TBODY></TABLE>
                  <TABLE id=table15 height=131 cellSpacing=0 cellPadding=0 
                  width=568 border=0>
                    <TBODY>
                    <TR>
                      <TD width=146 background=images/bjbg_1.jpg height=35>
						<TABLE id=table16 height=20 cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle><FONT style="FONT-SIZE: 12px" 
                              color=#ff0000>修改注册协议</FONT></TD></TR></TBODY>
				        </TABLE></TD>
                         <TD width=422 height=35><IMG height=35 src="images/bjbg_2.jpg" width=422 border=0></TD></TR>
                    <TR><TD align=middle width=568 background=images/bjbg_3.jpg colSpan=2>
       <%if  session("usertype")="2" then%>
	 <%
       action=request("ok")
       if action="" then 
       Set rs = conn.Execute("select * from [config]") 
	%>
	<table width="95%" border="1"  style="border-collapse: collapse; border-style: dotted; border-width: 0px"  bordercolor="#333333" cellspacing="0" cellpadding="2">
	<form action=admin_xy.asp method=post name=setup>
	<tr class=backs><td colspan=2 class=td height=18><a href="admin_xy.asp" target="_self">学生注册协议</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="admin_user.asp" target="_self">注册学生管理</a></td></tr>
	<tr><td width=20% align=center>学生注册协议</td><td>
<%
if rs("reg_xieyi")="" or isnull(rs("reg_xieyi")) then
	response.write "<script language='javascript'>"
	response.write "alert('您还没有添加会员注册协议,请单击“确定”开始添加。!');"
	response.write "location.href='admin_xy.asp?ok=edit';"
	response.write "</script>"
	response.end
else
response.write rs("reg_xieyi")
end if
%>
	</td></tr>

<tr><td colspan=2><INPUT name="ok" TYPE="hidden" value="edit"><INPUT name=action TYPE="submit" value="修改内容"> &nbsp;</td></tr>
</form>
</table>
	<%
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
end if

if action="edit" then 
    Set rs = conn.Execute("select * from [config]") 
	%>
	<table width="95%" border="1"  style="border-collapse: collapse; border-style: dotted; border-width: 0px"  bordercolor="#333333" cellspacing="0" cellpadding="2">
	<form action=admin_xy.asp method=post name=setup>
	<tr class=backs><td colspan=2 class=td height=18>学生注册协议 &nbsp;</td></tr>
	<tr><td width=20% align=center>学生注册协议</td><td><TEXTAREA alt="请填写学生注册协议内容<br>支持html代码" NAME="reg_xieyi" ROWS="15" COLS="60" style="overflow:auto;"><%
if rs("reg_xieyi")="" or isnull(rs("reg_xieyi")) then
else
response.write replace(rs("reg_xieyi"),"<BR>",vbCRLF)
end if
%></TEXTAREA></td></tr>

<tr><td colspan=2><INPUT name="ok" TYPE="hidden" value="ok"><INPUT name=action TYPE="submit" value="保存设置"> &nbsp;</td></tr>
</form>
</table>
	<%
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
end if

if action="ok" then

	if request.form("reg_xieyi")="" then
	response.write "<script language='javascript'>"
	response.write "alert('出错了,没有填写学生注册协议的内容!');"
	response.write "location.href='javascript:history.go(-1)';"
	response.write "</script>"
	response.end
	end if


     Set rs=Server.CreateObject("ADODB.Recordset")
	 sql="select * from [config]"
	 rs.open sql,conn,1,3

 	 reg_xieyi=replace(request.form("reg_xieyi"),vbCRLF,"<BR>")
 	 reg_xieyi=replace(reg_xieyi," ","&nbsp;")
 	 rs("reg_xieyi")=reg_xieyi

	rs.update
	url="admin_xy.asp"
	rs.close	
	set rs=nothing
	conn.close
	set conn=nothing

	response.write "<script language='javascript'>"
	response.write "alert('操作成功,您设置的信息已保存!');"
	response.write "location.href='"&url&"';"			
	response.write "</script>"
end if%>
<%else response.Write"你不是管理员,还是早点离开吧!这里只有管理员才可以来的呢!小孩去别的地方玩!" end if%>
                </TD></TR>
				<TR><TD width=568 colSpan=2 height=16><IMG height=16 src="images/bjbg_6.jpg" width=568 border=0></TD>
				</TR>
				</TABLE>
			 </TABLE></TABLE>
<DIV align=center>
<CENTER>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=76 
cellSpacing=0 cellPadding=0 width=763 border=0>
  <TBODY>
  <TR>
    <TD width=763 background=images/xiabg_3.jpg height=76>
      <DIV align=center>
      <TABLE id=table34 cellSpacing=0 cellPadding=0 width="98%" border=0>
        <TBODY>
        <TR>
          <TD align=middle><FONT color=#051547><SPAN 
            style="FONT-SIZE: 12px">CopyRingt 2006&nbsp; 
        清水河源工作室</SPAN></FONT></TD>
        </TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></CENTER></DIV>
<DIV></DIV></BODY>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -