Advertisement
stephanlinke

[PRTG] alert box

Dec 3rd, 2015
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.03 KB | None | 0 0
  1. <!--Status Icons: TrafficBox-->
  2.  
  3. <div class="map_object map_table map_icon_large" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  4.   <#mapobject type="objectgrip" mode="<@editmode>">
  5.   <#mapobject type="htmlbefore" subid="<@subid>">
  6.  
  7.   <#sensor type="colorclassofstate" id="<@objectid>" var="status">
  8.   <#objectproperty type="nodename" id="<@objectid>" var="nodename">
  9.   <#if value="@nodename" is="sensor" then="sensr" else="hasred" varexpand="value" var="containsred">
  10.   <#if value="@nodename" is="sensor" then="sensy" else="hasyellow hasnored" varexpand="value" var="containsyellow">
  11.   <#if value="@nodename" is="sensor" then="sensg" else="hasgreen hasnoyellow hasnored" varexpand="value" var="containsgreen">
  12.   <svg xmlns="http://www.w3.org/2000/svg"
  13.  xmlns:xlink="http://www.w3.org/1999/xlink"
  14.  version="1.0"
  15.  width="100%"
  16.  height="100%"
  17.  viewBox="0 0 100 280">
  18.     <defs>
  19.       <rect x="0" y="0" width="100px" height="100px" style=" <#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
  20.     </defs>
  21.     <use xlink:href="#a" />
  22.     <g class="trafficlight" transform="translate(0,0)">
  23.       <use xlink:href="#a" />
  24.       <rect r="40" fill="#DADADA" cx="50" cy="50" />
  25.       <rect width="100px" height="100px" style="<#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" fill="#E6005F" cx="50" cy="50" />
  26.       <rect width="100px" height="100px" style="<#if value="@status" contains="@containsyellow" then="" else="opacity:0" varexpand="value,contains">" fill="#F59C00" cx="50" cy="140" />
  27.       <rect width="100px" height="100px" style="<#if value="@status" contains="@containsgreen" then="" else="opacity:0" varexpand="value,contains">" fill="#C0CC19" cx="50" cy="230" />
  28.     </g>
  29.   </svg>
  30.   <div style="position:relative;margin-top:-20px">
  31.     <#mapobject type="htmlafter" subid="<@subid>">
  32.   </div>
  33. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement