adminquetype.asp
来自「网络考试系统最终备份」· ASP 代码 · 共 90 行
ASP
90 行
<!--#include file="conn.inc"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>题型管理</title>
<script language="javascript">
function confirmit(myform,id)
{
if (confirm("将删除该该试题类型?"))
{
manangequetype.action="adminquetypedel.asp?v_id="+id;
manangequetype.submit();
return true;
}
else
{
return ;
}
}
</script>
<style type="text/css">
<!--
.STYLE5 {
font-family: "宋体";
font-size: 9pt;
}
-->
</style>
</head>
<body>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="25">
<tr>
<td width="100%"><table width="100%" border="0" bgcolor="#ecf4ff">
<tr>
<td><span class="style2 STYLE5"> 当前位置:<a href="news.asp">系统管理</a> > <a href="admindatabaseselect.asp">题库管理</a></span> <span class="STYLE5">> 题型管理</span></td>
</tr>
</table> <p> </p>
</td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#ecf4ff" width="100%" id="AutoNumber3" height="20">
<form method="POST" name="addform" action="addtypewind.asp">
<tr>
<td width="589" bgcolor="#ecf4ff">
<input type="submit" name="addquetype" value="题型添加"> </td>
</tr>
</form>
</table>
<p></p >
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#c0def3" width="100%" id="AutoNumber1">
<form name="manangequetype" method="post" >
<tr>
<td nowrap width="100%" height="16" align="left" bgcolor="#ecf4ff"> <b>题型名称</b></td>
</tr>
<%
sql = "select * from question_type"
set rs = server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
do while not rs.eof
if not rs.eof then
%>
<tr>
<td height="16" align="left" nowrap><span class="STYLE5"><%=rs("QueTypeName")%></span></td>
<td width="39%" height="16" align="left" nowrap>
<td width="9%" height="16" align="left" nowrap>
<a href="adminquetypeedit.asp?f_quetypeName=<%=rs("QueTypeName")%>&f_quetypeID=<%=rs("QueType")%>">编辑</a>/<a href="javascript:confirmit(manangequetype,<%=rs("QueType")%>)">删除</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 + -
显示快捷键?