当前位置:首页 » 《随便一记》 » 正文

基于javaweb+jsp的高校科研项目管理系统_Java源码社

24 人参与  2022年04月25日 18:14  分类 : 《随便一记》  评论

点击全文阅读


基于javaweb+jsp的高校科研项目管理系统

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …

部分代码实现JSP

            <label class="col-sm-3 control-label">科研方向:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                ${vo.ryTeam}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                <textarea rows="3" class="form-control" id="ryText" name="ryText" disabled="disabled">${vo.ryText}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-5" style="padding-top: 7px;">
                <input type="button" class="btn btn-rect btn-grad btn-info btn-sm" value="返回" onclick="javascript:history.back(-1);">
            </div>
        </div>
    </form>
            <div class="col-sm-5">
                <input name="rySex" type="radio" value="" checked="checked"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="rySex" type="radio" value=""/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">联系方式:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="ryPhone" name="ryPhone">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">科研方向:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="ryTeam" name="ryTeam">
            </div>
        </div>
        <div class="form-group">
</body>
</html>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>科研人员管理</title>
    <%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
    <ul class="nav nav-tabs">
        <li class="active"><a href="RenyuanServlet?action=list">科研人员列表</a></li>
        <c:if test="${loginUser.userType == '管理员'}"><li><a href="renyuan_add.jsp">添加</a></li></c:if>
    </ul>
    <br/>
    <form class="form-inline" id="searchForm" action="RenyuanServlet?action=list" method="post">
        <div class="form-group">
            <input type="text" class="form-control" name="keyword" id="keyword" placeholder="姓名">
            <input type="hidden" id="searchColumn" name="searchColumn" value="ry_name"/>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>科研人员添加</title>
    <%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
    <ul class="nav nav-tabs">
        <li><a href="RenyuanServlet?action=list">科研人员列表</a></li>
        <li class="active"><a href="#">添加</a></li>
    </ul>
    <br/>
    <form class="form-horizontal" role="form" action="RenyuanServlet?action=add" method="post" onsubmit="return check()">
            return false;
        }
        if (document.getElementById("ryTeam").value.trim().length == 0) {
            alert("科研方向不能为空!");
            return false;
        }
        return true;
    }
</script>
</html>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
                        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                        删除
                    </button>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/></div>
</div>
</body>
        //根据ID获取值
        if (document.getElementById("ryNo").value.trim().length == 0) {
            alert("人员编号不能为空!");
            return false;
        }
        if (document.getElementById("ryName").value.trim().length == 0) {
            alert("姓名不能为空!");
            return false;
        }
        if (document.getElementById("ryAge").value.trim().length == 0) {
            alert("年龄不能为空!");
            return false;
        }
        if (document.getElementById("ryPhone").value.trim().length == 0) {
            alert("联系方式不能为空!");
        
            <div class="form-group">
                <label class="col-sm-3 control-label">人员编号:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="ryNo" name="ryNo" value="${vo.ryNo}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="ryName" name="ryName" value="${vo.ryName}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">年龄:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="ryAge" name="ryAge" value="${vo.ryAge}">
                </div>
            </div>
</body>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
    function check() {
        //根据ID获取值
        if (document.getElementById("ryNo").value.trim().length == 0) {
            alert("人员编号不能为空!");
            return false;
        }
        if (document.getElementById("ryName").value.trim().length == 0) {
            alert("姓名不能为空!");
            return false;
        }
        if (document.getElementById("ryAge").value.trim().length == 0) {
            alert("年龄不能为空!");
            return false;
        }
        if (document.getElementById("ryPhone").value.trim().length == 0) {
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>科研人员编辑</title>
    <%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
    <ul class="nav nav-tabs">
        <li><a href="RenyuanServlet?action=list">科研人员列表</a></li>
        <li class="active"><a href="#">编辑</a></li>
    </ul>
    <br/>
    <form class="form-horizontal" role="form" action="RenyuanServlet?action=edit" method="post" onsubmit="return check()">
        <div class="form-group">
            <label class="col-sm-3 control-label">年龄:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                ${vo.ryAge}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">性别:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                ${vo.rySex}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">联系方式:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                ${vo.ryPhone}
            </div>
        </div>
            <label class="col-sm-3 control-label">性别:</label>
            <div class="col-sm-5">
                       <input name="rySex" type="radio" value="男" ${vo.rySex=='男'?'checked':''}/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <input name="rySex" type="radio" value="女" ${vo.rySex=='女'?'checked':''}/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
        </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">联系方式:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="ryPhone" name="ryPhone" value="${vo.ryPhone}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">科研方向:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="ryTeam" name="ryTeam" value="${vo.ryTeam}">
                </div>
            </div>
            <div class="col-sm-5">
                <textarea rows="3" class="form-control" id="ryText" name="ryText" placeholder="请输入内容......"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-5">
                <input type="submit" class="btn btn-rect btn-grad btn-warning btn-sm" value="保存">
                <input type="button" class="btn btn-rect btn-grad btn-info btn-sm" value="返回" onclick="javascript:history.back(-1);">
            </div>
        </div>
    </form>
            <label class="col-sm-3 control-label">人员编号:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="ryNo" name="ryNo">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="ryName" name="ryName">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">年龄:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="ryAge" name="ryAge">
            </div>
        </div>
        <div class="form-group">
        <button class="btn btn-rect btn-grad btn-success btn-sm"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询
        </button>
    </form>
    <br/>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>人员编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>联系方式</th>
            <th>科研方向</th>
            <th>操作</th>
        </tr>
        </thead>
            <label class="col-sm-3 control-label">备注:</label>
            <div class="col-sm-5">
                <textarea rows="3" class="form-control" id="ryText" name="ryText" placeholder="请输入内容......">${vo.ryText}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-5">
                <input type="submit" class="btn btn-rect btn-grad btn-warning btn-sm" value="保存">
                <input type="button" class="btn btn-rect btn-grad btn-info btn-sm" value="返回" onclick="javascript:history.back(-1);">
            </div>
        </div>
    </form>
</div>
</body>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
        }
        if (document.getElementById("ryTeam").value.trim().length == 0) {
            alert("科研方向不能为空!");
            return false;
        }
        return true;
    }
</script>
</html>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>科研人员详情</title>
    <%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">详情</a></li>
    </ul>
    <br/>
    <form class="form-horizontal" role="form" action="#" method="post">
        <input type="hidden" class="form-control" id="id" name="id" value="${vo.id}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label">人员编号:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                ${vo.ryNo}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                ${vo.ryName}
            </div>
        <c:forEach items="${list}" var="vo">
            <tr>
                <td>${vo.ryNo}</td>
                <td><a href="RenyuanServlet?action=get&id=${vo.id}">${vo.ryName}</a></td>
                <td>${vo.ryAge}</td>
                <td>${vo.rySex}</td>
                <td>${vo.ryPhone}</td>
                <td>${vo.ryTeam}</td>
                <td>
                    <button onclick="window.location.href='RenyuanServlet?action=editPre&id=${vo.id}'"
                            class="btn btn-rect btn-grad btn-success btn-xs"
                            <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
                             >
                        <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
                        编辑
                    </button>
                    <button οnclick="if(window.confirm('将要删除:${vo.ryName}?'))window.location.href='RenyuanServlet?action=delete&id=${vo.id}'"
                            class="btn btn-rect btn-grad btn-info btn-xs"

运行环境

Java≥6、Tomcat≥7.0、MySQL≥5.5

开发工具

idea/eclipse/MyEclipse

技术框架

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

登录、注册、退出、用户模块、公告模块、项目模块、科研人员模块的增删改查管理

v.mp4_20211009_182225.352

v.mp4_20211009_182234.608

v.mp4_20211009_182252.471

v.mp4_20211009_182256.567

v.mp4_20211009_182258.799

document


点击全文阅读


本文链接:http://m.zhangshiyu.com/post/38944.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

  • [糙汉嘴软心硬,娇妻日日晚起]小说精彩节选免费试读_「黎夏顾卫城」主线最终章倒计时
  • 我的亲妹妹我当做畜生,只有儿子来救我反转剧情试读片段_[***小宝李小翠]精彩章节免费试读
  • 往梦难复温,沈淮霆宋思予在线_往梦难复温,沈淮霆宋思予在线
  • 爱意清浅随风离(简凝夕陆靳燃),爱意清浅随风离
  • 「冲喜而已,侯爷别太爱」小说免费在线阅读_侯府侯爷乐瑶主线最终章倒计时
  • 好看的往梦难复温沈淮霆宋思予_往梦难复温沈淮霆宋思予
  • 天才京剧花旦被废嗓后成为芭蕾舞王+后续+结局(秦意宋笙)全书秦意宋笙结局_秦意宋笙+结局列表_笔趣阁(天才京剧花旦被废嗓后成为芭蕾舞王+后续+结局)
  • (番外)+(全书)往梦难复温(沈淮霆宋思予+番外+全书)_(往梦难复温+番外+全书)免费_笔趣阁(沈淮霆宋思予)
  • 江晚烟陆聿我终于失去了你结局+番外(江晚烟陆聿)列表_江晚烟陆聿我终于失去了你结局+番外(江晚烟陆聿)结局篇+番外在线
  • 池雾陆砚寒结局+番外(陆砚寒池雾)列表_池雾陆砚寒结局+番外(陆砚寒池雾)池雾陆砚寒结局+番外在线
  • 沈静怡傅励行+后续+结局(傅励行沈静怡)列表_沈静怡傅励行+后续+结局(傅励行沈静怡)沈静怡傅励行+后续+结局在线
  • 非典时,我被妻子的白月光误诊遗弃在病房节选角色羁绊特辑‌_田越苏雅白月光角色专属支线试读入口

    关于我们 | 我要投稿 | 免责申明

    Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1