%@ LANGUAGE="VBScript" %> <% If Not IsEmpty(request.form("Close")) Then %> <% End If timedate=Request("timedate") Set Connection = Server.CreateObject("ADODB.Connection") Connection.Mode = adModeRead Connection.Open phdb_rd If timedate="" Or IsEmpty(request.form("Selected_Time")) Then SQLStmt = " select to_char(sysdate,'MM/DD/YYYY HH24:MI:SS') timedate from dual " Set RS = Connection.Execute(SQLStmt) timedate = CStr(RS("timedate")) Set RS=nothing End If If Not IsDate(timedate) Then message="Wrong Time/Date format " & timedate %> <% End If timedate_par=replace(timedate," ","%20") %>
| UPS | Last DB write | Output | Battery | Input | Status | |||
| Load | Status | Capacity | Run Time remaining |
Status | ||||
| <%=ups_long_name%> | <%=CStr(RS("ups_name"))%> | <%
If CDbl(RS("ddif")) |
<%=RS("output_load")%> | ><%=RS("output_status")%> | ><%=RS("battery_capacity")%> | ><%=RS("run_time_remaining")%> | <%=RS("battery_status")%> | <%=RS("status")%> |
| Trap Date | UPS | Trap Text | |
| <%=ldate%> | <%=ups_long_name%> | <%=ups%> | <%=trap_text%> |