From 324ee36fe31763e507b422ab0a88e4230045e205 Mon Sep 17 00:00:00 2001 From: "Timoney, Daniel (dt5972)" Date: Wed, 15 Feb 2017 10:37:53 -0500 Subject: Initial commit for OpenECOMP SDN-C OA&M Change-Id: I7ab579fd0d206bf356f36d52dcdf4f71f1fa2680 Signed-off-by: Timoney, Daniel (dt5972) Former-commit-id: 2a9f0edd09581f907e62ec4689b5ac94dd5382ba --- admportal/views/logs/accesslog.ejs | 83 ++++++++++++++++++++++ admportal/views/logs/accesslog.ejs.0223 | 121 +++++++++++++++++++++++++++++++ admportal/views/logs/usertrace.ejs | 83 ++++++++++++++++++++++ admportal/views/logs/usertrace.ejs.0223 | 122 ++++++++++++++++++++++++++++++++ 4 files changed, 409 insertions(+) create mode 100644 admportal/views/logs/accesslog.ejs create mode 100644 admportal/views/logs/accesslog.ejs.0223 create mode 100644 admportal/views/logs/usertrace.ejs create mode 100644 admportal/views/logs/usertrace.ejs.0223 (limited to 'admportal/views/logs') diff --git a/admportal/views/logs/accesslog.ejs b/admportal/views/logs/accesslog.ejs new file mode 100644 index 00000000..0b4ea56f --- /dev/null +++ b/admportal/views/logs/accesslog.ejs @@ -0,0 +1,83 @@ + + + + + + <% include ../partials/head %> + <% include ../partials/header %> + + SDN-C AdminPortal + + + + + +
+

HTTP Server Access Log

+
+ +<% if ( typeof result != 'undefined' ) { + if (result.code.length > 0) { + if ( result.code == 'success' ) { %> + + <% } else { %> +
+ <% + for ( x in result.msg ){ %> +
<%= result.msg[x] %>
+ <% } %> +
+ <% } %> + <% } %> +<% } %> + +<% if( typeof privilege != 'undefined'){ + var priv = privilege.privilege; +} else { + var priv = 'A'; +} %> + + +
+ + + + + + + + + + + + <% for(var x=0; x < rows.length; x++) { %> + + + + + + + + <% } %> + +
Date (UTC)MethodVersionStatusURL
<%= rows[x].date %><%= rows[x].method %><%= rows[x].version %><%= rows[x].status %><%= rows[x].url %>
+
+ +
+ <% include ../partials/footer %> +
+ + + + diff --git a/admportal/views/logs/accesslog.ejs.0223 b/admportal/views/logs/accesslog.ejs.0223 new file mode 100644 index 00000000..77ece8f9 --- /dev/null +++ b/admportal/views/logs/accesslog.ejs.0223 @@ -0,0 +1,121 @@ + + + + + + <% include ../partials/head %> + <% include ../partials/header %> + + SDN-C AdminPortal + + + + + +
+

HTTP Server Access Log

+
+ +<% if ( typeof result != 'undefined' ) { + if (result.code.length > 0) { + if ( result.code == 'success' ) { %> + + <% } else { %> +
+ <% + for ( x in result.msg ){ %> +
<%= result.msg[x] %>
+ <% } %> +
+ <% } %> + <% } %> +<% } %> + +<% if( typeof privilege != 'undefined'){ + var priv = privilege.privilege; +} else { + var priv = 'A'; +} %> + + +
+ + + + + + + + + + + + <% for(var x=0; x + + + + + + + + <% } %> + +
Date (UTC)MethodVersionStatusURL
<%= pageInfo.rows[x].date %><%= pageInfo.rows[x].method %><%= pageInfo.rows[x].version %><%= pageInfo.rows[x].status %><%= pageInfo.rows[x].url %>
+
+ +
+
+
+

  Page <%= pageInfo.currentPage %> of <%= pageInfo.pageCount %>

+
+
+ <% if (pageInfo.pageCount > 1) { %> +
    + <% if (pageInfo.currentPage > 1) { %> +
  • «
  • + <% } %> + <% var i = 1; + if (pageInfo.currentPage > 10) { + i = +pageInfo.currentPage - 9; + } %> + <% if (i !== 1) { %> + + <% } %> + <% for (i; i<=pageInfo.pageCount; i++) { %> + <% if (pageInfo.currentPage == i) { %> +
  • <%= i %> (current)
  • + <% } else { %> +
  • <%= i %>
  • + <% } %> + <% if (i == (+pageInfo.currentPage + 9)) { %> + + <% break; } %> + <% } %> + <% if (pageInfo.currentPage != pageInfo.pageCount) { %> +
  • »
  • + <% } %> +
+ <% } %> +
+
+
+ + +
+ <% include ../partials/footer %> +
+ + + + diff --git a/admportal/views/logs/usertrace.ejs b/admportal/views/logs/usertrace.ejs new file mode 100644 index 00000000..cca003b0 --- /dev/null +++ b/admportal/views/logs/usertrace.ejs @@ -0,0 +1,83 @@ + + + + + + <% include ../partials/head %> + <% include ../partials/header %> + + SDN-C AdminPortal + + + + + +
+

User Trace

+
+ +<% if ( typeof result != 'undefined' ) { + if (result.code.length > 0) { + if ( result.code == 'success' ) { %> + + <% } else { %> +
+ <% + for ( x in result.msg ){ %> +
<%= result.msg[x] %>
+ <% } %> +
+ <% } %> + <% } %> +<% } %> + +<% if( typeof privilege != 'undefined'){ + var priv = privilege.privilege; +} else { + var priv = 'A'; +} %> + + +
+
+ + + + + + + + + + + <% for (var x=0; x < rows.length; x++) { %> + + + + + + + <% } %> + +
Date (UTC)ATTUIDActionDescription
<%= rows[x].date %><%= rows[x].attuid %><%= rows[x].action %><%= rows[x].desc %>
+
+
+ +
+ <% include ../partials/footer %> +
+ + + + diff --git a/admportal/views/logs/usertrace.ejs.0223 b/admportal/views/logs/usertrace.ejs.0223 new file mode 100644 index 00000000..8a099edd --- /dev/null +++ b/admportal/views/logs/usertrace.ejs.0223 @@ -0,0 +1,122 @@ + + + + + + <% include ../partials/head %> + <% include ../partials/header %> + + SDN-C AdminPortal + + + + + +
+

User Trace

+
+ +<% if ( typeof result != 'undefined' ) { + if (result.code.length > 0) { + if ( result.code == 'success' ) { %> + + <% } else { %> +
+ <% + for ( x in result.msg ){ %> +
<%= result.msg[x] %>
+ <% } %> +
+ <% } %> + <% } %> +<% } %> + +<% if( typeof privilege != 'undefined'){ + var priv = privilege.privilege; +} else { + var priv = 'A'; +} %> + + +
+
+ + + + + + + + + + + <% for (var x=0; x + + + + + + + <% } %> + +
Date (UTC)ATTUIDActionDescription
<%= pageInfo.rows[x].date %><%= pageInfo.rows[x].attuid %><%= pageInfo.rows[x].action %><%= pageInfo.rows[x].desc %>
+
+
+ + + +
+
+
+

  Page <%= pageInfo.currentPage %> of <%= pageInfo.pageCount %>

+
+
+ <% if (pageInfo.pageCount > 1) { %> +
    + <% if (pageInfo.currentPage > 1) { %> +
  • «
  • + <% } %> + <% var i = 1; + if (pageInfo.currentPage > 10) { + i = +pageInfo.currentPage - 9; + } %> + <% if (i !== 1) { %> + + <% } %> + <% for (i; i<=pageInfo.pageCount; i++) { %> + <% if (pageInfo.currentPage == i) { %> +
  • <%= i %> (current)
  • + <% } else { %> +
  • <%= i %>
  • + <% } %> + <% if (i == (+pageInfo.currentPage + 9)) { %> + + <% break; } %> + <% } %> + <% if (pageInfo.currentPage != pageInfo.pageCount) { %> +
  • »
  • + <% } %> +
+ <% } %> +
+
+
+ + + + + + -- cgit 1.2.3-korg