This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-oam/gloam/WebRoot/detection/detectionInfoNew-index.html
2018-09-27 16:28:35 +08:00

157 lines
4.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
#include("/common/header.html")
<style type="text/css">
table {
table-layout: fixed;
border-collapse: collapse;
width: 100%;
line-height: 35px;
}
.nopic {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
vertical-align: middle !important;
}
.pic {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle !important;
position: relative;
}
.pic-a {
position: absolute;
left: 80%;
margin-top: 9px;
}
.pic-s {
margin-left: 13px;
margin-top: 8px;
display: inline-block;
width: 75%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
th {
text-align: center;
}
a:hover {
color: #FC0
}
.information {
position:relative;
max-height:150px;
}
</style>
<script type="text/javascript">
$(function(){
$('.information').each(function(){
var ps = new PerfectScrollbar(this);
})
})
</script>
</head>
<body class="bcColor noScroll-y aC">
<!--中间部分右边开始-->
<div class="container-fluid-full">
<div class="row-fluid">
<noscript>
<div class="alert alert-block span10">
<h4 class="alert-heading">Warning!</h4>
<p>
You need to have <a href="http://en.wikipedia.org/wiki/JavaScript"
target="_blank">JavaScript</a> enabled to use this site.
</p>
</div>
</noscript>
<!-- start: Content -->
<div id="content" class="span10">
<div class="row-fluid" style="margin-top: 10px">
<div class="box span12">
<div class="box-header" data-original-title>
<h2>
<i class="halflings-icon align-justify"></i><span class="break"></span>
</h2>
</div>
<div class="box-content lianxiang">
<table class="table table-striped table-bordered" id="info">
<thead>
<tr>
<th width="13%">#(_res.get("monitor.card"))</th>
<th width="10%">#(_res.get("monitor.type"))</th>
<th width="10%">#(_res.get("monitor.setting"))</th>
<th width="5%">#(_res.get("monitor.status"))</th>
<th width="15%">#(_res.get("monitor.check"))</th>
<th width="25%">#(_res.get("monitor.information"))</th>
</tr>
</thead>
<tbody style="font-size: 14px;">
#set(i=0)
#if(nodeNum!=null&&nodeNum.size()!=0)
#for(s : nodeNum)
#if(monitor!=null&&monitor.size()!=0)
#for(x : monitor)
<tr class="odd gradeX">
#if(x.monitorCard == s.monitorCard)
#if(i == 0 )
<td class="logmessage nopic" rowspan="#(s.num)" title="#(s.monitorCard)"><span>#(s.monitorCard) </span></td>
#end
#set(i=i+1)
<td class="logmessage nopic" title="#(x.monitorType)">
<span><a href="/monitor/monitorTypeDetail?detectionSetInfoId=#(x.detectionSetInfoId)&seqId=#(x.seqId)&checkTypeId=#(x.checkTypeId)">#(x.monitorType)</a></span>
</td>
<td class="logmessage pic" title="#(x.monitorSetting)">
<span class="pic-s"><a href="/monitor/monitorSetDetail?detectionSetInfoId=#(x.detectionSetInfoId)&seqId=#(x.seqId)">#(x.monitorSetting)</a></span>
#if(x.monitorSetting != null && x.monitorSetting !='')
<a href="/monitor/chart?seqId=#(x.seqId)&detectionSetInfoId=#(x.detectionSetInfoId)&checkTypeId=#(x.checkTypeId)" class="pic-a">
<img src="/img/action.png" border="0"style="width: 17px; height: 20px">
</a>
#end
</td>
<td class="logmessage nopic">
#set(n = com.nis.gloam.util.DateUtil::formatStringToLong(x.now, "yyyy-MM-dd HH:mm:ss"))
#set(c = com.nis.gloam.util.DateUtil::formatStringToLong(x.checkTime, "yyyy-MM-dd HH:mm:ss"))
#if(x.monitorStatus == '1' && (n-c <= java.lang.Integer::parseInt(com.jfinal.kit.PropKit::get("monitor_interval"))*1000*2))
<img src="/img/yes.gif" border="0" align="middle" style="width: 18px; height: 18px;">
#else
<img src="/img/no.gif" border="0" align="middle" style="width: 18px; height: 18px;">
#end
</td>
<td class="logmessage nopic" title="#(x.checkTime)"><span>#(x.checkTime)</span></td>
<td class="logmessage">
<div class="information">
#if(x.monitorStatus == '1' && (n-c <= java.lang.Integer::parseInt(com.jfinal.kit.PropKit::get("monitor_interval"))*1000*2))
#(x.monitorInfo.replaceAll("\$@\$", "<br/>"))
#else
i18n_option_table.24.type_code_n81i
#end
</div>
</td>
#end
</tr>
#end
#set(i=0)
#end
#end
#end
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>