基于javaweb+jsp的客户关系管理系统CRM
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架…均可
开发工具:idea或eclipse或myeclipse
部分代码实现JSP
<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.daibanName}
div>
div>
<div class="form-group">
<label class="col-sm-3 control-label">客户:label>
<div class="col-sm-5" style="padding-top: 7px;">
${vo.daibanClient}
div>
div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:label>
<div class="col-sm-5" style="padding-top: 7px;">
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
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><a href="DaibanServlet?action=list">待办 列表a>li>
<li class="active"><a href="#">编辑a>li>
ul>
<br/>
<form class="form-horizontal" role="form" action="DaibanServlet?action=edit" method="post" onsubmit="return check()">
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
<c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"c:if> >
<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>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
<label class="col-sm-3 control-label">主题:label>
<div class="col-sm-5">
<input type="text" class="form-control" id="daibanName" name="daibanName">
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="daibanClient" name="daibanClient">
div>
div>
<div class="form-group">
<label class="col-sm-3 control-label">内容:label>
<div class="col-sm-5">
<textarea rows="3" class="form-control" id="daibanText" name="daibanText" placeholder="请输入内容......">textarea>
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="daibanRen" name="daibanRen">
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>主题th>
<th>客户th>
<th>负责人th>
<th>时间th>
<th>操作th>
tr>
thead>
<tbody>
<c:forEach items="${list}" var="vo">
<tr>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
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="daibanShi" name="daibanShi">
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,则不允许提交
function check() {
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
div>
div>
<div class="form-group">
<label class="col-sm-3 control-label">负责人:label>
<div class="col-sm-5" style="padding-top: 7px;">
${vo.daibanRen}
div>
div>
<div class="form-group">
<label class="col-sm-3 control-label">时间:label>
<div class="col-sm-5" style="padding-top: 7px;">
${vo.daibanShi}
div>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
<td>${vo.daibanClient}td>
<td>${vo.daibanRen}td>
<td>${vo.daibanShi}td>
<td>
<button onclick="window.location.href='DaibanServlet?action=editPre&id=${vo.id}'"
class="btn btn-rect btn-grad btn-warning btn-xs"
if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"c:if>
>
<span class="glyphicon glyphicon-pencil" aria-hidden="true">span>
编辑
button>