addshool.asp

来自「网络考试系统最终备份」· ASP 代码 · 共 86 行

ASP
86
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.inc"-->
<link rel="stylesheet" type="text/css" href="css.css">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
function confirmit(myform,id)
{
 
  
  if (confirm("将删除该院校下的所有单位?"))
  {
      manangecollege.action="collegedel.asp?v_id="+id;
	  manangecollege.submit();
  return true;
  }
  else
  {
  return ;
  }

}
</script>

 

</head>


<body>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="25">
  <tr>
    <td width="100%"><p>&nbsp;</p>
    </td>
  </tr>
</table>
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber3" height="20">
  <form method="POST"   name="addform" action="addshoolwind.asp">
    <tr>
      <td width="589" bgcolor="#E1E1E1"> 
	  <input   type="submit"  name="addCollege"   value="院校添加">
      </td>
    </tr>
  </form>
</table>
<p></p >
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber1">
  <form name="manangecollege" method="post" >
    <tr>
      <td  nowrap width="52%" height="20" align="left" bgcolor="#E1E1E1">&nbsp;<b>院校名称</b></td>
      <td nowrap  height="20" colspan="2" align="left" bgcolor="#E1E1E1"><strong>院校描述</strong></td>
    </tr>
	<%
sql = "select * from college_info"
set rs = server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
do while not rs.eof
if not rs.eof then

%>
    <tr>
      <td nowrap align="left"><%=rs("CollegeName")%>          </td>
      <td  nowrap width="39%" align="left"><%=rs("CollegeDesc")%>
      <td  nowrap width="9%" align="left"><a href="collegeedit.asp?f_collegeName=<%=rs("CollegeName")%>&f_collegeDesc=<%=rs("CollegeDesc")%>&f_collegeID=<%=rs("CollegeID")%>">更改</a>/<a href="javascript:confirmit(manangecollege,<%=rs("CollegeID")%>)">   删除</a></td>
    </tr>
<%

rs.movenext
end if
loop
rs.close
set rs = nothing
conn.close
set conn = nothing
%>

  </form>

</table>

</body>
</html>

⌨️ 快捷键说明

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