ifishSystem/src/main/webapp/WEB-INF/view/roleAdmin/remindWaterList.jsp

159 lines
5.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<title>硬件信息</title>
<!-- css and js -->
<%@ include file="../htm/script.jsp" %>
<script type="text/javascript">
$(function(){
//分页
var dataTable = $('#sample-table-2').dataTable({
"sPaginationType": "bootstrap",
//"bProcessing": true,
"bLengthChange": true,
"bFilter": true,
"bServerSide": true,//指定从服务器端获取数据
"sAjaxSource": "<%=basePath%>page/admin/remindWaterListInf.do",
"fnServerData": function(sSource, aoData, fnCallback){
var sortMode = $("#sortMode").val();
var sortField = $("#sortField").val();
var searchField = $("#searchField").val();
var selectField = $("#selectField").val();
var selectField1 = $("#selectField1").val();
sortMode = sortMode==undefined?'':sortMode;
sortField = sortField==undefined?'':sortField;
searchField = searchField==undefined?'':searchField;
selectField = selectField==undefined?'':selectField;
selectField1 = selectField1==undefined?'':selectField1;
sSource=sSource+"?sortMode="+sortMode+"&sortField="+sortField+"&searchField="+searchField+"&selectField="+selectField+"&selectField1="+selectField1;
$.ajax({
"dataType": "json",
"type": "POST",
"url": sSource,
"data": aoData,
"cache": false,
"success": function(json){
fnCallback(json);
}
});
},
"aoColumns": [
{ "mData": "deviceId","bSortable": false },
{ "mData": "userId","bSortable": false },
{ "mData": "phoneNumber","bSortable": false },
{ "mData": "macAddress","bSortable": false },
{ "mData": "showName","bSortable": false },
{ "mData": "loginType","bSortable": false },
{ "mData": "remindDate","bSortable": false },
{ "mData": "remindCycle","bSortable": false },
{ "mData": function(tmpPushRemind){
return tmpPushRemind.isPush==1?'<p style="color:green">已推送</p>':'<p style="color:red">未推送</p>';
},
"bSortable": false
}
],
"oLanguage": {
"sLengthMenu": "每页显示 _MENU_条",
"sZeroRecords": "没有找到符合条件的数据",
"sInfo": "当前第 _START_ - _END_ 条 共计 _TOTAL_ 条",
"sProcessing": "<img src='<%=basePath%>static/css/images/loading.gif'>",
"sInfoEmpty": "木有记录",
"sInfoFiltered": "(从 _MAX_ 条记录中过滤)",
"sSearch": "<select id='searchField' style='height:25px'><option value='userId'>用户ID</option><option value='deviceId'>设备ID</option><option value='macAddress'>mac地址</option><option value='showName'>显示名称</option></select>",
"oPaginate": {
"sFirst": "首页",
"sPrevious": "前一页",
"sNext": "后一页",
"sLast": "尾页"
}
}
});
$(".page-content").on("change","#sortMode,#sortField,#selectField,#selectField1,#selectField2,#searchField",function(){
dataTable.fnDraw();
});
});
</script>
</head>
<body>
<!-- 头部 -->
<%@ include file="../htm/header.jsp" %>
<!-- 主体 -->
<div class="main-container" id="main-container">
<div class="main-container-inner">
<!-- 侧边栏 -->
<%@ include file="../htm/sidebar.jsp" %>
<!-- 主体内容 -->
<div class="main-content">
<div class="breadcrumbs" id="breadcrumbs">
<script type="text/javascript">
try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
</script>
<ul class="breadcrumb">
<li>
<i class="icon-home home-icon"></i>
<a href="<%=basePath%>page/public/index.do">首页</a>
</li>
<li class="active">硬件信息</li>
</ul>
</div>
<div class="page-content">
<div class="row">
<div class="col-xs-12">
<div style="background-color:#eff3f8;text-align:right">
<br>
是否推送:
<select id="selectField" style="height:25px">
<option value="">请选择</option>
<option value="1">已推送</option>
<option value="0">未推送</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
推送类型:
<select id="selectField1" style="height:25px">
<option value="">请选择</option>
<option value="android">android</option>
<option value="ios">ios</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
排序字段:
<select id="sortField" style="height:25px">
<option value="">请选择</option>
<option value="priId.userId">用户ID</option>
<option value="priId.deviceId">设备ID</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
排序方式:
<select id="sortMode" style="height:25px">
<option value="">请选择</option><option value="asc">升序↑</option><option value="desc">降序↓</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div class="table-responsive">
<table id="sample-table-2" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>设备ID</th>
<th>用户ID</th>
<th>手机号</th>
<th>mac地址</th>
<th>显示名称</th>
<th>推送类型</th>
<th>提醒日期</th>
<th>提醒周期</th>
<th>是否推送</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- 设置工具 -->
<%@ include file="../htm/setting.jsp" %>
</div>
</div>
</body>
</html>