<%@ page import="wangzhan.Thesql" %>
<%@ page import="wangzhan.Pd_tea" %>
<%@ page import="wangzhan.Pd_stu" %>
<%@ page import="get.Get" %><%--
Created by IntelliJ IDEA.
User: 绿波亭
Date: 2023/4/17
Time: 16:49
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>教学信息管理系统</title>
</head>
<style>
.ok{
font-size: 20px;
}
</style>
<%
String id_=request.getParameter("id_");
id_="20210002";
Thesql thesql=new Thesql();
Pd_tea pd_tea=thesql.tea_query(id_);
Pd_stu pd_stu=thesql.stu_query(id_);
Get get=new Get();
get.write_file(pd_stu.getAva());
String img="C:\\Users\\绿波亭\\Desktop\\file\\user_long.png";
%>
<body>
<%if(id_.length()==8){%>//写表
<table align="center" border="1" width="800" cellspacing="0" style="margin-top: 60px" class="ok">
<tr align="center" height="20" >
<th >姓名</th>
<td ><input type="text" name="id_" placeholder=<%=pd_stu.getName()%> value= class="ok"></td>
<th>性别</th>
<td ><%=pd_stu.getSex()%></td>
<td rowspan="3" cellpadding="0" width="25%"
><img src= "user_long.png" width="100%"></td>
</tr>
<tr align="center" height="20">
<th>学号</th>
<td ><%=id_%></td>
<th>班级</th>
<td ><%=pd_stu.getClasss()%></td>
</tr>
<tr align="center" height="20">
<th>手机号</th>
<td ><%=pd_stu.getPhone()%></td>
<th>风格</th>
<td >拍二矿,憋大和</td>
</tr>
<tr align="center" height="60">
<th>专业</th>
<td ><%=pd_stu.getMajor()%></td>
<th>学院</th>
<td colspan="2"><%=pd_stu.getFaculty()%></td>
<tr height="60">
<th >个性签名</th>
<td colspan="4"><%=pd_stu.getSignature()%></td>
</tr>
</table>
<%}
else if(id_.length()==6){%>
<%}%>//将图片以二进制形式输出出来
</body>
</html>