Skip to content
Snippets Groups Projects
Commit f9892efd authored by Robert Anderson's avatar Robert Anderson
Browse files

Dont use timestamp search for now

parent 57d62693
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
function showWiSPUserLogsWindow(wispUserID) { function showWiSPUserLogsWindow(wispUserID) {
// Calculate dates we going to need // Calculate dates we going to need
/*
var today = new Date(); var today = new Date();
var firstOfMonth = today.getFirstDateOfMonth(); var firstOfMonth = today.getFirstDateOfMonth();
var firstOfNext = today.getLastDateOfMonth().add(Date.DAY, 1); var firstOfNext = today.getLastDateOfMonth().add(Date.DAY, 1);
*/
var wispUserLogsWindow = new Ext.ux.GenericGridWindow( var wispUserLogsWindow = new Ext.ux.GenericGridWindow(
// Window config // Window config
...@@ -35,20 +37,20 @@ function showWiSPUserLogsWindow(wispUserID) { ...@@ -35,20 +37,20 @@ function showWiSPUserLogsWindow(wispUserID) {
name: 'after', name: 'after',
width: 180, width: 180,
fieldLabel: 'From', fieldLabel: 'From',
vtype: 'daterange', // vtype: 'daterange',
format: 'Y-m-d', format: 'Y-m-d',
value: firstOfMonth, // value: firstOfMonth,
endDateField: 'before', // endDateField: 'before',
}, },
{ {
id: 'before', id: 'before',
name: 'before', name: 'before',
width: 180, width: 180,
fieldLabel: 'To', fieldLabel: 'To',
vtype: 'daterange', // vtype: 'daterange',
format: 'Y-m-d', format: 'Y-m-d',
value: firstOfNext, // value: firstOfNext,
startDateField: 'after' // startDateField: 'after'
} }
], ],
buttons: [ buttons: [
...@@ -84,6 +86,7 @@ function showWiSPUserLogsWindow(wispUserID) { ...@@ -84,6 +86,7 @@ function showWiSPUserLogsWindow(wispUserID) {
} }
], ],
buttonAlign: 'center' buttonAlign: 'center'
}, },
{ {
xtype: 'form', xtype: 'form',
...@@ -231,6 +234,7 @@ function showWiSPUserLogsWindow(wispUserID) { ...@@ -231,6 +234,7 @@ function showWiSPUserLogsWindow(wispUserID) {
{type: 'numeric', dataIndex: 'ID'}, {type: 'numeric', dataIndex: 'ID'},
{type: 'string', dataIndex: 'Username'}, {type: 'string', dataIndex: 'Username'},
{type: 'numeric', dataIndex: 'Status'}, {type: 'numeric', dataIndex: 'Status'},
/*
{ {
type: 'date', type: 'date',
dataIndex: 'Timestamp', dataIndex: 'Timestamp',
...@@ -239,7 +243,7 @@ function showWiSPUserLogsWindow(wispUserID) { ...@@ -239,7 +243,7 @@ function showWiSPUserLogsWindow(wispUserID) {
before: firstOfNext before: firstOfNext
} }
}, },
*/
{type: 'string', dataIndex: 'AcctSessionID'}, {type: 'string', dataIndex: 'AcctSessionID'},
{type: 'numeric', dataIndex: 'AcctSessionTime'}, {type: 'numeric', dataIndex: 'AcctSessionTime'},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment