• 2020 11 12


    员工培训系统:

    修改个人信息界面:

    <%@ page language="java" contentType="text/ html; charset=UTF-8"
        pageEncoding="UTF-8" import = "java.util.*"%>
         <%@page import="bean.student"%>
         <%@page import="bean.job"%>
         <%@page import="bean.section"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <%student Astudent=(student)request.getAttribute("Astudent");
    List<section> listsection=(List<section>)request.getAttribute("Asection");
    List<job> listjob=(List<job>)request.getAttribute("Ajob");
    session.setAttribute("ID", Astudent.getSID());
    %>
    <form action="sevelet?method=update2&user=student" method="post" onsubmit="return chech(this)">
    <table align="center" width="450" border="1">
        <tr>
            <td align="center" colspan="5">
                <h2>修改个人信息</h2>
                </td>
        </tr>
        <tr>
            <td align="right">学号:</td>
            <td><%=Astudent.getSID()%></td>
        </tr>
        <tr>
            <td align="right">姓名:</td>
            <td><input type="text" value=<%=Astudent.getSname()%> name="name"/></td>
        </tr>
        <tr>
            <td align="center">性别:</td>
            <td>
                <input align="center" type="radio" name="sex" value="男" checked="checked"><input align="center" type="radio" name="sex" value="女"></td>
        </tr>
        <tr>
            <td align="center">职称:</td>
            <td>
                <select id="job" name="job">
            <option value=<%=Astudent.getSjob() %>><%=Astudent.getSjob() %></option>
                <%
                    for(job a:listjob)
                    {
                        if(!a.getJname().equals(Astudent.getSjob()))
                        {
                %>
                <option value=<%=a.getJname() %>><%=a.getJname() %></option>
                <%
                        }
                    }
                %>
                </select>
            </td>
        </tr>
        <tr>
            <td align="center">部门:</td>
            <td>
                <select id="section" name="section">
                <option value=<%=Astudent.getSsection() %>><%=Astudent.getSsection() %></option>
                <%
                    for(section a:listsection)
                    {
                        if(!a.getSname2().equals(Astudent.getSsection())){
                %>
                <option value=<%=a.getSname2() %>><%=a.getSname2() %></option>
                <%
                        }
                    }
                %>
                </select>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <input type="submit" value="确认">
            </td>
        </tr>
            <td><a href="user.jsp">注销</a></td>
            <td><a href="setsection1.jsp">返回上一级</a></td>
        </table>
        </form>
    </body>
    </html>
  • 相关阅读:
    C#屏幕截图
    WPF转换器用法示例
    WPF自定义数字输入框控件
    LINQ 用法,返回结果不是在定义时取值,而是在调用时实时取值,有意思!
    类泛型--必须继承接口
    wpf在异步中给前台赋值
    VS Code中Matlab插件安装设置
    Python 自动给数字前面补0
    Tensorflow (1)
    解决Keras在IDE集成环境中找不到nvcc
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14220354.html
Copyright © 2020-2023  润新知