张家口产业监测
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
hb-cyjc-zhangjiakou/WebRoot/hbcyjc/indexhotelgood/indexhotelgood_analysis_lis...

272 lines
10 KiB

<!DOCTYPE html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/ctx.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
<title>酒店网评分析列表</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
<meta name="author" content="Coderthemes">
<script type="text/javascript" src="${ctx }/hbcyjc/resource/js/jquery.min.js"></script>
<script type="text/javascript" src="${ctx}/js/layer/layer.js"></script>
<!-- 字体图标 -->
<link href="${ctx}/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
<link href="${ctx}/assets/ionicon/css/ionicons.min.css" rel="stylesheet"/>
<link href="${ctx}/css/material-design-iconic-font.min.css" rel="stylesheet">
<!-- select2 带搜索的下拉 -->
<link href="${ctx}/assets/select2/select2.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/assets/jquery-multi-select/multi-select.css" rel="stylesheet" type="text/css"/>
<!--样式 -->
<%@ include file="/common/theme_css.jsp" %>
<script type="text/javascript">
//搜索
function mySearch() {
document.mainForm.submit();
}
//重置
function myReset() {
$("#province").val("");
$("#city").val("");
$("#county").val("");
$("#star_hotel").val("");
$("#hotelName").val("");
}
function gotoDetil(hotelcode) {
layer.open({
type : 2,
title : "",
anim : 2,
shade: [0.7, '#333'],
area : [ '1100px', '637px' ],
content : "${ctx}/indexhotelgood/gotoDetailIFrame.do?hotelcode="+hotelcode,
});
}
$(document).ready(function() {
if('${isDept}'=='city'){
$("#county").val('${county}');
chooseCounty();
}else if('${isDept}'=='province'){
$("#city").val('${city}');
chooseCity();
$("#county").val('${county}');
chooseCounty();
}
});
//选择市
function chooseCity(){
var deptid = $("#province").val();
if(deptid){
$.ajax({
url : "${ctx}/sysdept/selectBydpid.do",
data : {"deptid" : deptid},
type : "post",
dataType : "json",
async : false,
success : function(data) {
document.getElementById("city").options.length=0;//删除所有option
$("#city").append("<option value=''>-请选择-</option>");
if(data!=null && data.length>0){
for(var i=0;i<data.length;i++){
$("#city").append("<option value='"+data[i].dremark+"'>"+data[i].dname+"</option>");
}
$("#city option[value='${city}']").attr("selected",true);
}
}
});
}else{
document.getElementById("city").options.length=0;//删除所有option
$("#city").append("<option value=''>-请选择-</option>");
}
}
//选择区/县
function chooseCounty(){
var deptid = $("#city").val();
if(deptid){
$.ajax({
url : "${ctx}/sysdept/selectBydpid.do",
data : {"deptid" : deptid},
type : "post",
dataType : "json",
async : false,
success : function(data) {
document.getElementById("county").options.length=0;//删除所有option
$("#county").append("<option value=''>-请选择-</option>");
if(data!=null && data.length>0){
for(var i=0;i<data.length;i++){
$("#county").append("<option value='"+data[i].dremark+"'>"+data[i].dname+"</option>");
}
$("#county option[value='${county}']").attr("selected",true);
}
}
});
}else{
document.getElementById("county").options.length=0;//删除所有option
$("#county").append("<option value=''>-请选择-</option>");
}
}
</script>
<script type="text/javascript">
$(document).ready(function() {
var sysName = "网络评价分析系统";
$("#sysName").html(sysName);
var pageName = "酒店评论列表";
$("#pageName").html(pageName);
var my_menu_html =
'<a href="${ctx}/network/index.do" class="caid_xiang">网评综合分析</a>' +
'<a href="${ctx}/indexscenicgood/scenicReport.do" class="caid_xiang">景区网评报告</a>' +
'<a href="${ctx}/indexscenicgood/scenicanalysis.do" class="caid_xiang">景区网评分析</a>' +
'<a href="${ctx}/indexhotelgood/hotelReport.do" class="caid_xiang">酒店网评报告</a>' +
'<a href="${ctx}/indexhotelgood/hotelanalysis.do" class="caid_xiang active">酒店网评分析</a>'+
'<a href="${ctx}/network/gotolist.do" class="caid_xiang">综合评价查询</a>';
$("#menuList").html(my_menu_html);
});
</script>
</head>
<body>
<div class="xingk_nr"></div>
<%@include file="/common/menu.jsp" %>
<form action="${ctx}/indexhotelgood/hotelanalysis.do" id="mainForm" method="post" name="mainForm" enctype="multipart/form-data">
<div class="table_sck">
<div class="tsble_form">
<div class="form_hpzs">
<label class="form_label">行政区划:</label>
<div class="form_select" style="width: 110px;">
<select class="form-control" id="province" name="province" onchange="chooseCity()">
<c:forEach items="${provinceList}" var="dept">
<c:choose>
<c:when test="${dept.dremark == province}">
<option value="${dept.dremark}" selected="selected">${dept.dname}</option>
</c:when>
<c:otherwise>
<option value="${dept.dremark}">${dept.dname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
<div class="form_select" style="width: 110px;">
<select class="form-control" id="city" name="city" onchange="chooseCounty()">
<c:forEach items="${cityList}" var="dept">
<c:choose>
<c:when test="${dept.dremark == city}">
<option value="${dept.dremark}" selected="selected">${dept.dname}</option>
</c:when>
<c:otherwise>
<option value="${dept.dremark}">${dept.dname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
<div class="form_select" style="width: 110px;">
<select class="form-control" id="county" name="county">
<c:forEach items="${countyList}" var="dept">
<c:choose>
<c:when test="${dept.dremark == county}">
<option value="${dept.dremark}" selected="selected">${dept.dname}</option>
</c:when>
<c:otherwise>
<option value="${dept.dremark}">${dept.dname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">评论对象类型:</label>
<div class="form_select" style="width: 110px;">
<select id="star_hotel" name="star_hotel">
<option value="">全部</option>
<option value="5" <c:if test="${star_hotel =='5'}">selected</c:if> >5星</option>
<option value="4" <c:if test="${star_hotel =='4'}">selected</c:if> >4星</option>
<option value="3" <c:if test="${star_hotel =='3'}">selected</c:if> >3星</option>
<option value="2" <c:if test="${star_hotel =='2'}">selected</c:if> >2星</option>
<option value="1" <c:if test="${star_hotel =='1'}">selected</c:if> >1星</option>
<option value="0" <c:if test="${star_hotel =='0'}">selected</c:if> >未评定</option>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">酒店名称:</label>
<div class="form_input">
<input id="hotelName" name="hotelName" value="${hotelName}" placeholder="" aria-controls="datatable-editable">
</div>
</div>
<div class="">
<button type="button" onclick="mySearch()" class="bttn bttn_ss" title="搜索"><i class="fa fa-search"></i>搜索</button>
<button class="bttn" title="重置" onclick="myReset()"><i class="fa fa-rotate-left "></i>重置</button>
</div>
<div class="clear"></div>
</div>
</div>
<div class="lst_table_box">
<div class="t_r_t" id="t_r_t">
<div class="t_r_title pp-list">
<table class="pp-list">
<tr>
<th style="text-align:center;" width="5%">序号</th>
<th style="text-align:center;" width="35%">名称</th>
<th style="text-align:center;" width="10%">总评论数</th>
<th style="text-align:center;" width="10%">好评数</th>
<th style="text-align:center;" width="10%">好评率</th>
<th style="text-align:center;" width="10%">差评数</th>
<th style="text-align:center;" width="10%">差评率</th>
<th style="text-align:center;" width="10%">满意度评分</th>
</tr>
</table>
</div>
</div>
<div class="t_r_content t_table" id="t_r_content" onscroll="aa()" style="max-height:360px">
<table class="pp-list">
<c:forEach items="${list}" var="lis" varStatus="vst">
<tr class="active">
<td align="center" width="5%">${(vst.index)+1}</td>
<td title="" width="35%"><a href="javascript:gotoDetil('${lis.hotelcode}')" class="mc">${lis.cname}</a></td>
<td title="" width="10%">${lis.total}</td>
<td title="" width="10%" style="color: #09dc21">${lis.good}</td>
<td title="" width="10%" style="color: #09dc21">${lis.goodrate}%</td>
<td title="" width="10%" style="color: #ff4040">${lis.bad}</td>
<td title="" width="10%" style="color: #ff4040">${lis.badrate}%</td>
<td title="" width="10%" style="color: #f0d532">${lis.grade}</td>
</tr>
</c:forEach>
</table>
</div>
<%@include file="/common/page.jsp"%>
</div>
</form>
<!--左侧滑动菜单-->
<script src="${ctx}/hbcyjc/resourceNew/js/classie.js"></script>
<script>
var menuLeft = document.getElementById('cbp-spmenu-s1'),
showLeft = document.getElementById('showLeft'),
body = document.body;
showLeft.onclick = function() {
classie.toggle(this, 'active');
classie.toggle(menuLeft, 'cbp-spmenu-open');
disableOther('showLeft');
};
function disableOther(button) {
if (button !== 'showLeft') {
classie.toggle(showLeft, 'disabled');
}
}
</script>
</body>
</html>