基于javaweb+jsp的高校科研项目管理系统
Posted qq_1742826239
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于javaweb+jsp的高校科研项目管理系统相关的知识,希望对你有一定的参考价值。
基于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"/> 男
<input name="rySex" type="radio" value="女"/> 女
</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':''/> 男
<input name="rySex" type="radio" value="女" $vo.rySex=='女'?'checked':''/> 女 基于javaweb+jsp的药店医药信息管理系统