基于javaweb+jsp的房产房屋交易管理系统
Posted qq_1742826239
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于javaweb+jsp的房产房屋交易管理系统相关的知识,希望对你有一定的参考价值。
基于javaweb+jsp的房产房屋交易管理系统
JavaWeb JavaBean JSP MVC mysql Tomcat javascript
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架…均可
开发工具:idea或eclipse或myeclipse
部分代码实现JSP
alert("房型不能为空!");
return false;
if (document.getElementById("fangLevel").value.trim().length == 0)
alert("楼层不能为空!");
return false;
if (document.getElementById("fangArea").value.trim().length == 0)
alert("面积不能为空!");
return false;
if (document.getElementById("fangPrice").value.trim().length == 0)
alert("挂牌价(万)不能为空!");
return false;
</tr>
</table>
<br>
<button type="button" class="btn btn-pill btn-grad btn-success btn-sm" onclick="javascript:history.back(-1);">返回</button>
</form>
</div>
</body>
</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"/>
</head>
<body>
<th>房型</th>
<th>楼层</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.fangName</td>
<td>$vo.fangXing</td>
<td>$vo.fangLevel</td>
<td>$vo.fangArea</td>
<td>$vo.fangPrice</td>
<td>$vo.fangAddress</td>
<td>$vo.fangType</td>
<tr>
<td width="12%">面积:</td><td><input class="index-content-table-td-add" type="text" id="fangArea" name="fangArea" value="$vo.fangArea"/></td>
</tr>
<tr>
<td width="12%">挂牌价(万):</td><td><input class="index-content-table-td-add" type="text" id="fangPrice" name="fangPrice" value="$vo.fangPrice"/></td>
</tr>
<tr>
<td width="12%">地址:</td><td><input class="index-content-table-td-add" type="text" id="fangAddress" name="fangAddress" value="$vo.fangAddress"/></td>
</tr>
<tr>
<td width="12%">类型:</td>
<td>
<input name="fangType" type="radio" value="新房" $vo.fangType=='新房'?'checked':''/> 新房
<input name="fangType" type="radio" value="二手房" $vo.fangType=='二手房'?'checked':''/> 二手房
</td>
</tr>
<tr>
<td width="12%">备注:</td><td><textarea id="fangText" name="fangText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">$vo.fangText</textarea></td>
</tr>
</table>
<div class="index-content-operation">
<a class="info-detail">添加房产</a>
<br>
<br>
</div>
<br>
<form action="fangAdd" 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="fangName" name="fangName" value=""/></td>
</tr>
<tr>
<td width="12%">房型:</td><td><input class="index-content-table-td-add" type="text" id="fangXing" name="fangXing" value=""/></td>
return false;
return true;
</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"/>
<tr>
<td width="12%">楼层:</td><td><input class="index-content-table-td-add" type="text" id="fangLevel" name="fangLevel" value=""/></td>
</tr>
<tr>
<td width="12%">面积:</td><td><input class="index-content-table-td-add" type="text" id="fangArea" name="fangArea" value=""/></td>
</tr>
<tr>
<td width="12%">挂牌价(万):</td><td><input class="index-content-table-td-add" type="text" id="fangPrice" name="fangPrice" value=""/></td>
</tr>
<tr>
<td width="12%">地址:</td><td><input class="index-content-table-td-add" type="text" id="fangAddress" name="fangAddress" value=""/></td>
</tr>
<tr>
<td width="12%">类型:</td>
<td>
<input name="fangType" type="radio" value="新房" checked="checked"/> 新房
<input name="fangType" type="radio" value="二手房"/> 二手房
<div class="index-content">
<div class="index-content-operation">
<a class="info-detail">房产管理</a>
<br>
<br>
</div>
<br>
<div class="index-content-operation">
<button class="btn btn-pill btn-grad btn-default btn-sm" <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if> οnclick="window.location.href='fang_add.jsp'">添加</button>
<div class="index-content-operation-search"><input id="search_keyword" placeholder="房产名" type="text" name="search_keyword"/><input type="hidden" id="searchColumn" name="searchColumn" value="fang_name"/><button class="btn btn-pill btn-grad btn-default btn-sm" onclick="searchList()">搜索</button></div>
</div>
<br>
<table class="table table-striped table-hover table-bordered">
<thead>
<tr class="index-content-table-th">
<button class="btn btn-pill btn-grad btn-success btn-sm" style="padding: 0px 1px;" onclick="window.location.href='fangGet?id=$vo.id'">详情</button>
<button class="btn btn-pill btn-grad btn-warning btn-sm" style="padding: 0px 1px;"
<c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if>
οnclick="window.location.href='fangEditPre?id=$vo.id'">编辑</button>
<button class="btn btn-pill btn-grad btn-danger btn-sm" style="padding: 0px 1px;" <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:$vo.fangName?'))window.location.href='fangDelete?id=$vo.id'">删除</button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<div style353JSP051房产房屋出售出租中介网站