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

📄 add_jiangcheng.asp

📁 职业培训学校学生档案成绩费用管理系统V1.0免费版.rar
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
	response.write "您无此权限"
	response.end
end if

dim user_name,user_number
if request("key")=1 then 
	user_name=session("user_name")
	user_number=session("user_number")
end if

set rs=server.createobject("adodb.recordset")
sql="select * from jiangcheng"
rs.open sql,conn,1,1


NoncePage=0
NumRecord=0
NumPage=0
if Not(rs.bof and rs.eof) then'判别数据表中是否为空记录
	NumRecord=rs.recordcount
	rs.pagesize=10
	NumPage=rs.Pagecount
	if request("page")=empty then 
		NoncePage=1
	elseif Cint(request("page"))<1 then
		NoncePage=1
	else
		NoncePage=request("page")
		if Cint(request("page"))>Cint(NumPage) then 
			NoncePage=NumPage
		end if
	end if
end if
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>添加奖惩情况</title>
<link rel="stylesheet" href="style.css">
<script language=javascript>
function qurey(tar){
	document.frm.action=tar;
	document.frm.submit();
}
function aqurey(tar){
	document.frm1.action=tar;
	document.frm1.submit();
}
</script>
</head>


<body>
      
<!--#include file="top.asp"-->
<%if request("key")=1 then
	user_number=session("user_number")
%>
<div align="center">
<table  width="700">
<tr><td align="left"><a href="query.asp?id=2&user_number=<%=user_number%>">返回学生信息查询</a></td></tr>
</table>
</div>
<%end if%>
<form method="POST" action="add_jiangcheng1.asp" name="frm">
<div align="center">
<%if request("key")=1 then%>
<input type="hidden" name="key" value="1">
<%end if%>
  <table border="1" width="700" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
     <tr>
	  <td width="100" align="center">学号</td>
	  <td width="100" align="center">姓名</td>
      <td width="300" align="center">奖惩原因</td>
	  <td width="50" align="center">状况</td>
      <td width="50" align="center">学分</td>
      <td width="100" align="center">时间</td>
      <td width="50" align="center">修改</td>
	  <td width="50" align="center">删除</td>
    </tr>
  <%if not rs.eof then
	rs.move (Cint(NoncePage)-1)*10,1
	for i=1 to rs.pagesize
	%>
    
    <tr>
	  <td width="50" align="center"><%=rs("user_number")%></td>
	  <td width="50" align="center"><%=rs("user_name")%></td>
      <td width="300" align="center"><%=rs("yuanying")%></td>
	  <%if rs("zk")=1 then%>
	  <td width="50" align="center">奖励</td>

	  <%elseif rs("zk")=0 then%>
	  <td width="50" align="center">惩罚</td>
	  <%else%>
	  <td width="50" align="center"></td>
	  <%end if%>
	  <td width="100" align="center"><%=abs(rs("user_xuefen"))%></td>
	  <td width="100" align="center"><%=rs("time")%></td>
      <td width="50" align="center"><a href="mod_jiangcheng.asp?id=<%=rs("id")%>">修改</a></td>
      <td width="50" align="center"><a href=javascript:if(confirm('确实要删除吗?'))location='del_jiangcheng.asp?id=<%=rs("id")%>'>删除</a></td>
    </tr>
    <%	
	rs.movenext
	if rs.eof then 
		exit for
	end if
	next
	else
	%>
    <tr>
      <td colspan="8"><marquee>暂无奖惩情况添加</marquee></td>
    </tr>

  </table>
  <%
  end if
  rs.close
  set rs=nothing
  %>
<div align="center"> <table border="0">
<input type="hidden" name="page" value="<%=NoncePage%>">

<%
if NoncePage>1 then
	response.write "|<a href=add_jiangcheng.asp?page=1>首 页</a>| |<a href=add_jiangcheng.asp?page="&NoncePage-1&">上一页</a>|&nbsp"
else
	response.write "|首 页| |上一页|&nbsp"
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
	response.write "|<a href=add_jiangcheng.asp?page="&NoncePage+1&">下一页</a>| |<a href=add_jiangcheng.asp?page="&NumPage&">尾 页</a>|"
else
	response.write "|下一页| |尾 页|"
end if
%>
&nbsp;页次:<font color="#0033CC"><%=NoncePage%></font>/<font color="#0033CC"><%=NumPage%></font> 
共<font color="#0033CC"><%=NumRecord%></font>条记录&nbsp; </table>
</div> 
</div>

<div align="center"> 

  <table border="0" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
    <tr>
      <td width="100%">

 
			<table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
  <tr>
    <td colspan="3"><div align="center">添加奖惩情况<div></td>
  </tr>
  <tr>
    <td>学号:</td>
    <td colspan="2"><input type="text" name="user_number"  <%if request("key")=1 then%>value=<%=user_number%> <%end if%>></td>
  </tr>
  <tr>
    <td>姓名:</td>
    <td colspan="2"><input type="text" name="user_name" <%if request("key")=1 then%>value=<%=user_name%> <%end if%>>
	<input type="button" name="stQuery" value="查询" onclick=qurey("stuQuery2.asp")></td>
  </tr>
  <tr>
    <td>奖惩原因:</td>
    <td colspan="2"><input type="text" name="yuanying"></td>
  </tr>
  <tr>
    <td>奖惩状况:</td>
    <td><input type="radio" name="zk" value="1" checked>奖励</td>
	<td><input type="radio" name="zk" value="0">惩罚</td>
  </tr>
  <tr>
    <td>学分:</td>
    <td colspan="3"><input type="text" name="user_xuefen"></td>
  </tr>
  <tr>
    <td>时间:</td>
    <td colspan="2">
	<%
	dim i,num,y,d,m
	y=cint(year(date))
	d=cint(day(date))
	m=cint(month(date))
	%>
	<select name="year">
	<%
	for i=0 to 50
	num=2000+i
	if num=y then
	%>
	<option value="<%=num%>" selected><%=num%></option>
    <%
	else
	%>
	<option value="<%=num%>"><%=num%></option>
	<%
	end if
	next
	%>
    </select>
	<select name="month">
	<%
	for i=1 to 12
	num=i
	if num=m then
	%>
	<option value="<%=num%>" selected><%=num%></option>
    <%
	else
	%>
	<option value="<%=num%>"><%=num%></option>
	<%
	end if
	next
	%>
    </select>
	<select name="day">
	<%
	for i=1 to 31
	num=i
	if num=d then
	%>
	<option value="<%=num%>" selected><%=num%></option>
    <%
	else
	%>
	<option value="<%=num%>"><%=num%></option>
	<%
	end if
	next
	%>
    </select>
	  </td>
  </tr>
  <tr>
    <td colspan="3"><div align="center"><input type="submit" name="b1" value="提交"></div></td>
  </tr>
</table>

        </td>
      </tr>
    </table>
</div>  
        </form>
<div align="center">
        <form method="POST" action="" name="frm1">
          <table border="1" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
                <td width="33%"align="right">按姓名查询:</td>
				<td width="33%"><input type="text" name="user_name1" size="20"></td>
				<td width="34%"><input type="button" value="查询" name="s1" onclick=aqurey("jcQuery.asp?id=1")></td>
            </tr>
			<tr>
              <td width="33%" align="right">按学号查询:</td>
              <td width="33%"><input type="text" name="user_number1" size="20"></td>
              <td width="34%"><input type="button" value="查询" name="s2" onclick=aqurey("jcQuery.asp?id=2")></td>
            </tr>
           </table>
        </form>
</div>
<!--#include file="down.asp"-->
</body>
</html>















⌨️ 快捷键说明

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