// structure that describes columns of the table and their type
var TABLE_CAPT = [
{
'name' : 'Program ID', // columns titles
'type' : STR // standard types (STR, NUM) or custom compare function
},
{
'name' : 'PI', // columns titles
'type' : STR // standard types (STR, NUM) or custom compare function
},
{
'name' : 'Instrument(s)', // columns titles
'type' : STR // standard types (STR, NUM) or custom compare function
},
{
'name' : 'Last Sync (UTC)', // columns titles
'type' : STR
},
{
'name' : '% Ph2', // columns titles
'type' : NUM, // standard types (STR, NUM) or custom compare function
'format' : function (n) {
return n > 0 ? 'tabBody0ColFlag' : null
}
},
{
'name' : '% For Rev', // columns titles
'type' : NUM, // standard types (STR, NUM) or custom compare function
'format' : function (n) {
return n > 0 ? 'tabBody0ColFlag' : null
}
},
{
'name' : '% For Activ', // columns titles
'type' : NUM, // standard types (STR, NUM) or custom compare function
'format' : function (n) {
return n > 0 ? 'tabBody0ColFlag' : null
}
},
{
'name' : '% On Hold', // columns titles
'type' : NUM // standard types (STR, NUM) or custom compare function
},
{
'name' : '% Inactive', // columns titles
'type' : NUM // standard types (STR, NUM) or custom compare function
},
{
'name' : '% Ready', // columns titles
'type' : NUM // standard types (STR, NUM) or custom compare function
},
{
'name' : '% Exec', // columns titles
'type' : NUM // standard types (STR, NUM) or custom compare function
},
{
'name' : 'NGO email', // columns titles
'type' : STR // standard types (STR, NUM) or custom compare function
},
{
'name' : 'Gemini CS', // columns titles
'type' : STR // standard types (STR, NUM) or custom compare function
},
{
'name' : 'Full NGO email', // columns titles
'type' : STR, // standard types (STR, NUM) or custom compare function
'hide' : true
}
];
// structure that describes visual aspects of the table
var TABLE_LOOK = {
// 0 - caption,
// 1 - header rows to be skipped at the top when applying effects,
// 2 - body,
// 3 - footer rows to be skipped at the bottom when applying effects,
// 4 - paging,
// 5 - filters
'onclick' : 0,
'key' : 0,
'structure' : [0, 1, 2, 3, 4, 5],
'params' : [3, 1], // [cellpadding,cellspacing]
'colors' : {
'even' : '#FFFFFF',
'odd' : '#CCCCCC',
'hovered' : '#AAFFAA',
'marked' : '#FFFF00'
},
'multy_mark' : true,
'freeze' : [0, 0], // how many rows to skip [at_the_top, at_the_bottom] when applying effects
'paging' : {
'by' : 25, // page size (0 - no paging)
'pp' : ' ', // previous page link
'pf' : '', // first page link
'pn' : ' ', // next page link
'pl' : '', // html for last page link
'tt' : ' Page %ind of %pgs ' /* in this line you can use the following variables 1-bazed:
%pgs total pages index
%ind current page index
%rcs total records found
*/
},
'sorting' : {
// HTML for ascending sorted state icon
'as' : '',
// HTML for descending sorted state icon
'ds' : '',
'cl' : null,
// Order of sorted: true - ascending sorted, false descending sorted
'or' : false
},
'filter' : {
// filter 0 - off, 1 - substring, 2 - match, 4 - regexp filter (e.g. 1 + 2 + 4 means all filters on)
'type' : 1,
'btn_ok' : ' ',
'btn_no' : ''
},
'css' : {
'main' : 'tabTable0',
'body' :['tabBody0Col0','tabBody0Col1','tabBody0Col2','tabBody0Col4', 'tabBody0Col4', 'tabBody0Colpc','tabBody0Colpc', 'tabBody0Colpc','tabBody0Colpc','tabBody0Colpc','tabBody0Colpc'],
'captCell' : 'tabCaptionCell0',
'captText' : 'tabCaptionLink0',
'head' : 'tabHeadCell0',
'foot' : 'tabFootCell0',
'pagnCell' : 'tabPaging0',
'pagnText' : 'tabPagingText0',
'pagnPict' : 'tabPagingArrowCell0',
'filtCell' : 'tabFilter0',
'filtPatt' : 'tabFilterPattern0',
'filtSelc' : 'tabFilterSelect0'
}
};
var ARR_STRINGS = {
'long_days' : ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
'short_days' : ['Sun', 'Mon', 'Tue', 'Wen', 'Thu', 'Fri', 'Sat'],
'long_month' : ['January','February','March','April','May','June','July','August','September','October','November','December'],
'short_month' : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
'bad_month' : 'Parsing error: unknown month "%month_name"',
'not_meet' : "Notice : Input date does not meet input date format."
};