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

📄 viewuser.asp

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

dim id
id=trim(request("id"))

set rs=server.createobject("adodb.recordset")
sql="select * from st_info where id="& id
rs.open sql,conn,1,1
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看学生详细信息</title>
<link rel="stylesheet" href="style.css">
</head>

<body topmargin="0">
<!--#include file="top.asp"-->
<SCRIPT language=javascript>
function fucCheckNUM(NUM)
{
	var i,j,strTemp;
	strTemp="0123456789.";
	if ( NUM.length== 0)
		return 0
	for (i=0;i<NUM.length;i++)
	{
		j=strTemp.indexOf(NUM.charAt(i));	
		if (j==-1)
		{
		//说明有字符不是数字
			return 0;
		}
	}
	//说明是数字
	return 1;
}

function checknum(theform) 
{

 	if ((fucCheckNUM(theform.value)==0) )
	{	
	   theform.value="";
		//theform.newprice.focus();
		return false;
	}
}
</SCRIPT>

<div align="center">
  <center>
    
 <table border="1" width="600" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
		<form method="POST" action="add_ach.asp">
          <tr> 
            <td width="486" colspan="6">添加学生成绩</td>
          </tr>
          <tr> 
            <td width="99" align="center">入学时间</td>
            <td width="99" align="center">学生姓名</td>
            <td width="100" align="center">考试场次</td>
            <td width="100" align="center">考试科目</td>
            <td width="100" align="center">考试成绩</td>
            <td width="100" align="center"> </td>
          </tr>
          <tr> 
            <td width="99" align="center"><%=rs("in_time")%></td>
            <input type="hidden" value="<%=rs("in_time")%>" name="user_testnumber">
            <input type="hidden" value="<%=rs("user_name")%>" name="user_name">
            <input type="hidden" value="<%=rs("user_class")%>" name="user_class">
            <td width="99" align="center"><%=rs("user_name")%></td>
            <td width="100" align="center"><select size="1" name="testno">
                <%
        set rs2=server.createobject("adodb.recordset")
        sql2="select * from testno"
        rs2.open sql2,conn,1,1
        %>
                <%do while not rs2.eof%>
                <option value="<%=rs2("testno")%>"><%=rs2("testno")%></option>
                <%rs2.movenext%>
                <%loop%>
                <%rs2.close
				set rs2=nothing
				%>
              </select></td>
            <td width="100" align="center"><select size="1" name="subject">
                <%
        set rs1=server.createobject("adodb.recordset")
        sql1="select * from subject"
        rs1.open sql1,conn,1,1
        %>
                <%do while not rs1.eof%>
                <option value="<%=rs1("subject")%>"><%=rs1("subject")%></option>
                <%rs1.movenext%>
                <%loop%>
                <%rs1.close
				set rs1=nothing
				%>
              </select></td>
            <td width="100" align="center"><input type="text" name="ach" size="10" onKeyUp="checknum(ach)"></td>
            <td width="100" align="center"><input type="submit" value="提交" name="B1"></td>
          </tr>
		 </form>
      </table>
       
        
   
  </center>
</div>
<div align="center">
  <center>
  <table border="0" width="500" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="3">
                <p align="center">查看学生详细信息</td>
            </tr>
            <tr>
              <td width="37%" align="right">学号:</td>
              <td width="38%" align="left"><%=rs("user_number")%></td>
              <td width="25%" align="left" rowspan="6">
                <p align="center"><%
                set rs8=server.createobject("adodb.recordset")
        sql8="select * from INFO where user_id="& id
        rs8.open sql8,conn,3,3

                %>
                <%if not rs8.eof then%>
				<img border="0" src="upload/<%=rs8("filepath")%>" width="85" height="113">
                <%else%>
                <a href="upload/index.asp?user_id=<%=id%>">暂无该生图片,点击这里添加</a>
                <%end if%>
                <%rs8.close%>
                <%set rs8=nothing%>
                </td>
            </tr>
            <tr>
              <td width="37%" align="right">姓名:</td>
              <td width="38%" align="left"><%=rs("user_name")%></td>
            </tr>
		   <tr>
              <td width="37%" align="right">状态:</td>
              <td width="38%" align="left"><%=rs("user_state")%>&nbsp;</td>
            </tr>
            <tr>
              <td width="37%" align="right">入学时间:</td>
              <td width="38%" align="left"><%=rs("in_time")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">身份证号:</td>
              <td width="38%" align="left"><%=rs("user_idnumber")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">性别:</td>
              <td width="38%" align="left"><%=rs("user_sex")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">出生年月:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_time")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">婚姻情况:</td>
              <td width="63%" align="left" colspan="2"><%=rs("marriage")%></td>
            </tr>
			<tr>
              <td width="37%" align="right">是否住宿:</td>
              <td width="63%" align="left" colspan="2"><%=rs("lodging")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">学历:</td>
              <td width="63%" align="left" colspan="2"><%=rs("u_diploma")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">专业:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_major")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">班级:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_class")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">省市:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_city")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">地县:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_area")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">地址:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_address")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">邮编:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_postcode")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">家庭电话:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_homephone")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">寝室电话:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_bedroomphone")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">移动电话:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_mobilephoe")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">电子邮箱:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_mail")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">QQ号码:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_qq")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">是否办证:</td>
              <td width="63%" align="left" colspan="2"><%=rs("certificate")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">是否就业:</td>
              <td width="63%" align="left" colspan="2"><%=rs("employment")%></td>
            </tr>
            <tr>
              <td width="37%" align="right" valign="top">高考成绩:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_collogetestach")%></td>
            </tr>
            <tr>
              <td width="37%" align="right" valign="top">奖惩情况:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_rp")%></td>
            </tr>
            <tr>
              <td width="37%" align="right" valign="top">备注信息:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_info")%></td>
            </tr>
            <tr>
              <td width="100%" align="right" valign="top" colspan="3">
                <p align="center"><a href="mod_info.asp?id=<%=rs("id")%>">编辑该学生信息</a></td>
            </tr>
          </table>
      </td>
    </tr>
  </table>
  </center>
</div>
<!--#include file="down.asp"-->
</body>

</html>

⌨️ 快捷键说明

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