|
|
| Line 1: | |||
| + | This template displays supplied data within a table in HTML format. All data passed to this template can be alphanumeric. This template is much cleaner than the standard template and colors things that it finds. So a field that contains "Success" will end up green. | ||
| + | ---- | ||
| + | ''Content Type:'' | ||
| + | <pre>text/html</pre> | ||
| + | ---- | ||
| + | ''Context Script:'' | ||
| + | N/A | ||
| + | ---- | ||
| + | ''Template Text:'' | ||
| + | <pre><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
| + | <html> | ||
| + | <head> | ||
| + | <title>Anthill3: $report.Name</title> | ||
| + | <link rel="StyleSheet" href="/css/anthill3.css" type="text/css"> | ||
| + | </head> | ||
| + | <body> | ||
| + | <div class="anthill-main-portlet"> | ||
| + | <div class="anthill-portlet-window"> | ||
| + | <div class="anthill-portlet-window-titlebar"><center> Report: $report.Name</center></div> | ||
| + | <p> | ||
| + | <div class="data-table-container"> | ||
| + | <table class="data-table" cellpadding="4" cellspacing="1" width="100%"> | ||
| + | <table-body> | ||
| + | <tr class="data-table-head"> | ||
| + | #foreach($column in $output.MetaData.ColumnArray) | ||
| + | <th scope="col" align="left" valign="middle"><strong>$column</strong></th> | ||
| + | #end | ||
| + | </tr> | ||
| + | #foreach($row in $output.RowArray) | ||
| + | <tr bgcolor="#ffffff"> | ||
| + | #foreach($columnValue in $row.ColumnValueArray) | ||
| + | #if($columnValue == "Success") | ||
| + | #set( $bgColor="lightgreen") | ||
| + | #elseif($columnValue == "Complete") | ||
| + | #set( $bgColor="lightgreen") | ||
| + | #elseif($columnValue == "Failed") | ||
| + | #set( $bgColor="red") | ||
| + | #elseif($columnValue == "Error") | ||
| + | #set( $bgColor="red") | ||
| + | #elseif($columnValue == "Running") | ||
| + | #set( $bgColor="lightblue") | ||
| + | #elseif($columnValue == "Queued") | ||
| + | #set( $bgColor="lightgray") | ||
| + | #elseif($columnValue == "Complete (Warning)") | ||
| + | #set( $bgColor="lightyellow") | ||
| + | #elseif($columnValue == "Aborted") | ||
| + | #set( $bgColor="lightgrey") | ||
| + | #elseif($columnValue == "Aborting") | ||
| + | #set( $bgColor="lightgrey") | ||
| + | #elseif($columnValue == "Suspended") | ||
| + | #set( $bgColor="lightgrey") | ||
| + | #elseif($columnValue == "Waiting on Agents") | ||
| + | #set( $bgColor="lightgrey") | ||
| + | #else | ||
| + | #set( $bgColor="white") | ||
| + | #end | ||
| + | <td bgcolor="$bgColor"> | ||
| + | $columnValue | ||
| + | </td> | ||
| + | #end | ||
| + | </tr> | ||
| + | #end | ||
| + | </table-body> | ||
| + | </table> | ||
| + | </div></div> | ||
| + | </body> | ||
| + | </html> | ||
| + | </pre> | ||
| + | '''Related Content''' | ||
| + | [[AnthillPro Template Reports]]<br/> | ||
| + | [[Report Templates]] | ||