%@ LANGUAGE="VBScript" %> <% ' ' Check if people registered for shift/logbook writing ' registered=0 If Request.Cookies("PHOBOSPORTAL").HasKeys Then strCookie1=Request.Cookies("PHOBOSPORTAL")("OPERATOR1") If Not (IsNull(strCookie1) OR ( Len(strCookie1) = 0)) Then registered=1 End If End if Set Connection = Server.CreateObject("ADODB.Connection") Connection.Mode = adModeRead Connection.Open phdb_rd ' ' Get the complete list of configurations ' SQLStmt = " select config_id,to_char(crdate,'MM/DD/YYYY HH24:MI:SS') cd,to_char(crdate,'MMDDYYYYHH24MISS') ccrdate,valid,description" SQLStmt = SQLStmt & " from phoffline.trigger_config_log order by crdate desc " ' response.write(SQLStmt) Set RS = Connection.Execute(SQLStmt) %>
Configuration | Start Validity Date/Time | Description | Valid ? |
<%=config_id%> |
<%=crdate%> |
<%=descr%> | <% If CInt(RS("VALID"))=1 Then Response.Write("Yes") Else Response.Write("No") End If %> | <% RS.MoveNext Loop %>