Skip to content

Instantly share code, notes, and snippets.

@tasaif
Created October 15, 2020 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tasaif/15c49b713c77a25334b1ed5ba00be211 to your computer and use it in GitHub Desktop.
Save tasaif/15c49b713c77a25334b1ed5ba00be211 to your computer and use it in GitHub Desktop.
<BESWebReport>
<Source>
<HTML>
<HEAD>
<style>
beswebreport br {
display: none;
}
table.redTable {
border: 2px solid #A40808;
background-color: #EEE7DB;
width: 100%;
text-align: center;
border-collapse: collapse;
}
table.redTable td, table.redTable th {
border: 1px solid #AAAAAA;
padding: 3px 2px;
}
table.redTable tbody td {
font-size: 13px;
}
table.redTable tr:nth-child(even) {
background: #F5C8BF;
}
table.redTable thead {
background: #A40808;
}
table.redTable thead th {
font-size: 19px;
font-weight: bold;
color: #FFFFFF;
text-align: center;
border-left: 2px solid #A40808;
}
table.redTable thead th:first-child {
border-left: none;
}
table.redTable tfoot {
font-size: 13px;
font-weight: bold;
color: #FFFFFF;
background: #A40808;
}
table.redTable tfoot td {
font-size: 13px;
}
table.redTable tfoot .links {
text-align: right;
}
table.redTable tfoot .links a{
display: inline-block;
background: #FFFFFF;
color: #A40808;
padding: 2px 8px;
border-radius: 5px;
}
</style>
</HEAD>
<BODY>
<TABLE border=1 class='redTable'>
<thead>
<tr><th>Computer Name</th><th>IP Addresses</th><th>Last Report Time</th></tr>
</thead>
<?relevance
(trs of html concatenations of tds of (concatenation ";" of values of results (item 0 of it, item 1 of it) ; concatenation ";" of values of results (item 0 of it, item 2 of it) ; concatenation ";" of values of results (item 0 of it, item 3 of it))) of (elements of item 0 of it /*expand the computer set - gets you one line per computer*/, item 1 of it,item 2 of it,item 3 of it) of (set of ((unique values of computers of ((results of bes actions whose (name of it starts with "MS20-OCT")) whose (status of it as string is "Failed")))) , (bes property "Computer Name") , (bes property "IP Address"), (bes property "Last Report Time"))
?>
</TABLE>
</BODY>
</HTML>
</source>
</BESWebReport>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment