基于javaweb+jsp的客户关系管理系统CRM
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
部分代码实现JSP
table>
<br>
<br>
<br>
<button type="submit" class="btn btn-grad btn-info btn-sm">提交button> <button type="button" class="btn btn-grad btn-danger btn-sm" onclick="javascript:history.back(-1);">取消button>
form>
div>
body>
<script type="text/javascript">
//提交之前进行检查,如果return false,则不允许提交
function check() {
//根据ID获取值
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
<div class="index-content">
<div class="index-content-operation">
<a class="info-detail">添加待办 a>
<br>
<br>
div>
<br>
<form action="daibanAdd" method="post" onsubmit="return check()">
<table class="index-content-table-add">
<tr>
<td width="12%">主题:td><td><input class="index-content-table-td-add" type="text" id="daibanName" name="daibanName" value=""/>td>
tr>
<tr>
<td width="12%">客户:td><td><input class="index-content-table-td-add" type="text" id="daibanClient" name="daibanClient" value=""/>td>
tr>
<tr>
<td width="12%">内容:td><td><textarea id="daibanText" name="daibanText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">textarea>td>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
}
script>
html>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>修改待办 title>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>添加待办 title>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
head>
<body>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
function searchList() {
window.location.href = "daibanList?searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
}
script>
- 1
- 2
- 3
- 4
<button class="btn btn-grad btn-danger btn-sm" style="padding: 0px 1px;" onclick="window.location.href='daibanGet?id=${vo.id}'">详情button>
<button class="btn btn-grad btn-danger btn-sm" style="padding: 0px 1px;"
if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"c:if>
οnclick="window.location.href='daibanEditPre?id=${vo.id}'">编辑button>
<button class="btn btn-grad btn-default btn-sm" style="padding: 0px 1px;" if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"c:if> οnclick="if(window.confirm('将要删除:${vo.daibanName}?'))window.location.href='daibanDelete?id=${vo.id}'">删除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
- 13
<thead>
<tr class="index-content-table-th">
<th>主题th>
<th>客户th>
<th>负责人th>
<th>时间th>
<th>操作th>
tr>
thead>
<tbody>
<c:forEach items="${list}" var="vo">
<tr class="index-content-table-td">
<td>${vo.daibanName}td>
<td>${vo.daibanClient}td>
<td>${vo.daibanRen}td>
<td>${vo.daibanShi}td>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
alert("主题不能为空!");
return false;
}
if (document.getElementById("daibanClient").value.trim().length == 0) {
alert("客户不能为空!");
return false;
}
if (document.getElementById("daibanRen").value.trim().length == 0) {
alert("负责人不能为空!");
return false;
}
if (document.getElementById("daibanShi").value.trim().length == 0) {
alert("时间不能为空!");
return false;
}
return true;
}
script>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
<body>
<jsp:include page="menu.jsp"/>
<div class="index-content">
<div class="index-content-operation">
<a class="info-detail">修改待办 a>
<br>
<br>
div>
<br>
<form action="daibanEdit" method="post" onsubmit="return check()">
<input type="hidden" id="id" name="id" value="${vo.id}"/>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
<br>
<form>
<table class="index-content-table-add" style="font-size: 18px;">
<tr>
<td>主题:<b>${vo.daibanName}b>td>
tr>
<tr>
<td>客户:<b>${vo.daibanClient}b>td>
tr>
<tr>
<td>内容:<b>${vo.daibanText}b>td>
tr>
<tr>
<td>负责人:<b>${vo.daibanRen}b>td>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
<tr>
<td width="12%">负责人:td><td><input class="index-content-table-td-add" type="text" id="daibanRen" name="daibanRen" value=""/>td>
tr>
<tr>
<td width="12%">时间:td><td><input class="index-content-table-td-add" type="text" id="daibanShi" name="daibanShi" value=""/>td>
tr>
table>
<br>
<br>
<br>
<button type="submit" class="btn btn-grad btn-info btn-sm">提交button> <button type="button" class="btn btn-grad btn-danger btn-sm" onclick="javascript:history.back(-1);">取消button>
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
<tr>
<td>时间:<b>${vo.daibanShi}b>td>
tr>
table>
<br>
<button type="button" class