Here's my version.

This is not a scrolling menu.  It is a separate page made up of two frames.
You'll need to rename the files from .txt to .asp.

I put down8.asp in my mainpage prefix, it links to the downdev and downsrvc pages.

You do need rev 8 or later of WUG to get the services portion working.

I've include my mainpage prefix so you can see that.

I also put links to the other maps on this page, that comes from the maplinks page.
If you don't want that (and if you have a lot of maps, you may not) edit the down8 file pull the link to the page and change the frame setting to 50%.

Jay


At 11:47 AM 9/22/2003 -0500, you wrote:
Did not see this in the archives....
 
We are using WUG 8.01 and it works great for scrolling device changes. I would like to also have services scroll in there as well.
 
Any code ideas?
 
Thanks!
 
Scott
<!--  Original file by Dave Habben.   Additional hacks to add service by Jay Drew  
Down8.asp, Downdev.asp and Downsrvc.asp  are used together to create a framed page and 
require rev 8 or later of WUG-->


<table cellSpacing=0 cellPadding=3 width="98%" bgColor="linen" border=2>
   <tr>
    <td align=left colSpan=2>

     <table width="100%" border=0>
      <tr>
        <td><STRONG><FONT SIZE=5>Down <EM><FONT 
COLOR="BLUE">Services</FONT></EM></FONT></STRONG></td>       
      </tr>
     </table>
    </td>
   </tr>
   <tr>
    <td vAlign=top width="98%">
     <table cellspacing="2" cellpadding="0" width="100%" bgcolor="linen" border="0">
      <tbody>
       <tr>
        <td width="15%"></td>
        <td width="15%"></td>
        <td width="10%"></td>
        <td width="25%"></td>
        <td width="30%"></td>
       </tr>

       <tr>
        <th align="left">Device</th>
        <th align="left">Service</th>
        <th align="left">Down Time</th>
        <th align="left">Coverage</th>
        <th align="left">Notes</th>
       </tr>

<%START_LOADED_MAP_LIST%>
<%START_DEVICE_LIST%>
                <%IF% IS_MONITORING_ENABLED>
                <%IF% IS_DEVICE_UP>
<%START_SERVICE_STATISTICS_LIST%>
<%IF% (%GREATERTHAN% (%SERVICE_STATISTICS% CURRENT_DOWN_COUNT,0))>

        <%IF% HAS_DEVICE_STATE_CHANGED>
                        <TR BGCOLOR="#FF77FF">
                        <%ELSE%>
                        <TR BGCOLOR="linen">
                        <%ENDIF%>                       

          <TD>
                <%IF% (%LESSTHAN% (%SERVICE_STATISTICS% CURRENT_DOWN_COUNT, 2))>
                <a href="device.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
                UNIQUE_ID>"target="_top"><FONT COLOR=GREEN><%DEVICE% 
DISPLAY_NAME></FONT></a>
        
                <%ELSEIF% (%LESSTHAN% (%SERVICE_STATISTICS% CURRENT_DOWN_COUNT, 4))>
                <a href="device.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
                UNIQUE_ID>"target="_top"><FONT COLOR=YELLOW><%DEVICE% 
DISPLAY_NAME></FONT></a>

                <%ELSE%>
                <a href="device.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
                UNIQUE_ID>"target="_top"><FONT COLOR=RED><%DEVICE% 
DISPLAY_NAME></FONT></a>

                <%ENDIF%>
          </TD>

<TD><%SERVICE_STATISTICS% FULLNAME></TD>        

<TD>
                                <SCRIPT LANGUAGE="JavaScript">
                                var sdowntime = "<%DEVICE% 
POLL_FREQUENCY>"*"<%SERVICE_STATISTICS% CURRENT_DOWN_COUNT>"*"<%MAP% POLL_INTERVAL>"
                                if (sdowntime > 3599) {
                                        var sdowntemp = sdowntime/3600;
                                        var sdownhours = Math.floor(sdowntemp);
                                        var sdowntemp = sdownhours*3600;
                                        var sdownminutes = sdowntime-sdowntemp;
                                        var sdownminutes = Math.floor(sdownminutes/60);
                                }
                                else {
                                        var sdownhours = 0;
                                        var sdownminutes = Math.floor(sdowntime/60);
                                }
                                if (sdownhours == 0)
                                        document.write(sdownminutes + " min")

                                else
                                        document.write(sdownhours + " hr : " + 
sdownminutes + " min")

                                </SCRIPT>
</TD>




        <TD><%DEVICE% INFO_LINE_2></TD>
        <TD><%DEVICE% NOTES></TD>
</tr>                   
<%ENDIF%>

<%END_SERVICE_STATISTICS_LIST%>
<%ENDIF%>
<%ENDIF%>
<%END_DEVICE_LIST%>
<%END_LOADED_MAP_LIST%>

</tbody>
</table>
</td>
</tr>
</TABLE>


<!--  Original file by Dave Habben.   Additional hacks to add service by Jay Drew  
Down8.asp, Downdev.asp and Downsrvc.asp  are used together to create a framed page and 
require rev 8 or later of WUG-->
<HTML>
<HEAD>
        <TITLE>MrPing - Down Page</TITLE>
        <META http-equiv=REFRESH content="<%APPLICATION_SETTINGS% WEB_REFRESH_RATE>">
        
</HEAD>

<table cellSpacing=0 cellPadding=3 width="98%" bgColor="linen" border=2>
   <tr>
    <td align=left colSpan=2>

     <table width="100%" border=0>
      <tr>
       <td><STRONG><FONT SIZE=5>Down <EM><FONT 
COLOR="RED">Devices</FONT></EM></FONT></STRONG></td>
      </tr>
     </table>
    </td>
   </tr>
   <tr>
    <td vAlign=top width="98%">
     <table cellspacing="2" cellpadding="0" width="100%" bgcolor="linen" border="0">
      <tbody>
       <tr>
        <td width="12%"></td>
        <td width="23%"></td>
        <td width="15%"></td>
        <td width="25%"></td>
        <td width="25%"></td>
       </tr>

       <tr>
        <th align="left">Map</th>
        <th align="left">Device</th>
        <th align="left">Down Time</th>
        <th align="left">Coverage</th>
        <th align="left">Notes</th>

       </tr>
  <%START_LOADED_MAP_LIST%>
        <%START_DEVICE_LIST%>
                <%IF% IS_MONITORING_ENABLED>
                <%IFNOT% IS_DEVICE_UP>
                        <%IF% HAS_DEVICE_STATE_CHANGED>
                        <TR BGCOLOR="#1e90ff">
                        <%ELSE%>
                        <TR BGCOLOR="linen">
                        <%ENDIF%>                       

                        <TD><a href="map.asp?map=<%URL_ENCODE% (%MAP% 
FILENAME)>"target="_top"> <%MAP% NAME> </A></TD>
                        <TD>
                                <%IF% (%LESSTHAN% (%DEVICE% CURRENT_DOWN_COUNT, 2))>
                                        <a href="device.asp?map=<%MAP% 
FILENAME>&device=<%DEVICE%
                                        UNIQUE_ID>"target="_top"><FONT 
COLOR=GREEN><%DEVICE% DISPLAY_NAME></FONT></a>
                                <%ELSEIF% (%LESSTHAN% (%DEVICE% CURRENT_DOWN_COUNT, 
4))>
                                        <a href="device.asp?map=<%MAP% 
FILENAME>&device=<%DEVICE%
                                        UNIQUE_ID>"target="_top"><FONT 
COLOR=YELLOW><%DEVICE% DISPLAY_NAME></FONT></a>
                                <%ELSE%>
                                        <a href="device.asp?map=<%MAP% 
FILENAME>&device=<%DEVICE%
                                        UNIQUE_ID>"target="_top"><FONT 
COLOR=RED><%DEVICE% DISPLAY_NAME></FONT></a>
                                <%ENDIF%>
                        </TD>
                        <TD>
                                <SCRIPT LANGUAGE="JavaScript">
                                var downtime = "<%DEVICE% POLL_FREQUENCY>"*"<%DEVICE% 
CURRENT_DOWN_COUNT>"*"<%MAP% POLL_INTERVAL>"
                                if (downtime > 3599) {
                                        var downtemp = downtime/3600;
                                        var downhours = Math.floor(downtemp);
                                        var downtemp = downhours*3600;
                                        var downminutes = downtime-downtemp;
                                        var downminutes = Math.floor(downminutes/60);
                                }
                                else {
                                        var downhours = 0;
                                        var downminutes = Math.floor(downtime/60);
                                }
                                if (downhours == 0)
                                        document.write(downminutes + " min")

                                else
                                        document.write(downhours + " hr : " + 
downminutes + " min")

                                </SCRIPT>
                        </TD>
                        <TD><%DEVICE% INFO_LINE_2></TD>
                        <TD><%DEVICE% NOTES></TD>
                        </TR>
                
                
                <%ENDIF%>
                <%ENDIF%>
                                
        <%END_DEVICE_LIST%>
  <%END_LOADED_MAP_LIST%>

      </tbody>
     </table>
</td>
</tr>
</table>
<br><br>

<!-- Down8.asp, Downdev.asp and Downsrvc.asp  are used together to create a framed 
page and require rev 8 or later of WUG-->
<html>
<HEAD>
        <TITLE>MrPing - Down Page</TITLE>
        <META http-equiv=REFRESH content="<%APPLICATION_SETTINGS% WEB_REFRESH_RATE>">
        
</HEAD>
<frameset rows="8%,46%,46%">
<frame src="maplinks.asp" NAME="maplinks">
<frame src="downdev.asp" NAME="downdev">
<frame src="downsrvc.asp" NAME="downsrvc">
</frameset>
</html> 
<!--
        Whatsup Gold 7 
        
        Main Page Prefix
        ----------------
        You can insert HTML in this file and it will appear as a prefix on your main 
page.
-->

<TABLE cellSpacing=6 cellPadding=0 border=0>
        <TR>
                <TD>
                        <%IF% IS_USER_ACCESS_LOG>
                        <FORM action="shortlogview.asp" method=get>
                        <INPUT type=submit value="Short Log view" name=action></FORM>
                        <%ENDIF%>
                </TD>
                <TD>
                        <%IF% IS_USER_ACCESS_LOG>
                        <FORM action="logview.asp" method=get>
                        <INPUT type=submit value="Full Log view" name=action></FORM>
                        <%ENDIF%>
                </TD>
                <TD>
                        <%IF% IS_USER_ACCESS_LOG>
                        <FORM action="down8.asp" method=get>
                        <INPUT type=submit value="What's Down?" name=action></FORM>
                        <%ENDIF%>
                </TD>
                <TD>
                        <%IF% IS_USER_CONFIGURE_REPORTS>
                        <FORM action="AckAllMaps.asp" method=get>
                        <INPUT type=submit value="Acknowledge All Alarms" 
name=action></FORM>
                        <%ENDIF%>
                </TD>           <TD>
                        <%IF% IS_USER_ACCESS_LOG>
                        <FORM action="findip.asp" method=get>
                        <INPUT type=submit value="Find a Monitored Device" 
name=action></FORM>
                        <%ENDIF%>
                </TD>
                <TD>
                        <%IF% IS_USER_CONFIGURE_REPORTS>
                        <FORM action="NotMonitored.asp" method=get>
                        <INPUT type=submit value="What's Not Monitored" 
name=action></FORM>
                        <%ENDIF%>
                </TD>
        </TR>
</TABLE>

<table border>
        <tr >
        <td bgcolor="#c0c0c0" bordercolor="#c0c0c0"> <a href="default.asp" 
TARGET="_top">Top View </td></a>
        <%START_LOADED_MAP_LIST%>
                <%IF% HAS_MAP_STATE_CHANGED>
                        <td bgcolor="#ffff00" bordercolor="#ff0000"> <a 
href="map.asp?map=<%MAP% FILENAME>"TARGET="_top"> <%MAP% NAME> </A></td>
                <%ELSE%>
                        <td bgcolor="#c0c0c0" bordercolor="#c0c0c0"> <a 
href="map.asp?map=<%MAP% FILENAME>"TARGET="_top"> <%MAP% NAME> </A></td>
                <%ENDIF%>               
        <%END_LOADED_MAP_LIST%>
        </tr>
        </table>

Reply via email to