前端框架easyui,在eclipse里后台无数据页面可以切换自如。直接上首页代码,复制粘贴就可以用。
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>客户关系管理系统主页</title>
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath}/jquery-easyui-1.3.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath}/jquery-easyui-1.3.3/themes/icon.css">
<script type="text/javascript"
src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/jquery.min.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
var url;
function openTab(text, url, iconCls) {
if ($("#tabs").tabs("exists", text)) {
$("#tabs").tabs("select", text);
} else {
var content = "<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath}/page/"
+ url + "'></iframe>";
$("#tabs").tabs("add", {
title : text,
iconCls : iconCls,
closable : true,
content : content
});
}
}
function openPasswordModifyDialog() {
$("#dlg").dialog("open").dialog("setTitle", "修改密码");
url = "${pageContext.request.contextPath}/user/modifyPassword.do?id=${currentUser.id}";
}
function closePasswordModifyDialog() {
$("#dlg").dialog("close");
$("#oldPassword").val("");
$("#newPassword").val("");
$("#newPassword2").val("");
}
function modifyPassword() {
$("#fm").form("submit", {
url : url,
onSubmit : function() {
var oldPassword = $("#oldPassword").val();
var newPassword = $("#newPassword").val();
var newPassword2 = $("