mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Finished Online ReportList in Reportadmin
This commit is contained in:
parent
89b277d3d4
commit
8268ec9719
@ -495,6 +495,44 @@ if ( isset($_GET['op']) )
|
||||
$j = 0; // Help counter!
|
||||
foreach ($content['ONLINEREPORTS'] as &$myOnlineReport )
|
||||
{
|
||||
// Split reportID
|
||||
preg_match("/report\.(.*?)\.(.*?)\.class$/", $myOnlineReport['reportid'], $out );
|
||||
$myOnlineReport['reportcat'] = $out[1];
|
||||
$myOnlineReport['reportid'] = $out[2];
|
||||
|
||||
// Set Installed Flag!
|
||||
$myOnlineReport['installed'] = false;
|
||||
foreach($content['REPORTS'] as $myReport)
|
||||
{
|
||||
// check if already installed!
|
||||
if ( $myOnlineReport['reportid'] == $myReport['ID'] )
|
||||
$myOnlineReport['installed'] = true;
|
||||
}
|
||||
|
||||
// --- Set Icon!
|
||||
if ( $myOnlineReport['installed'] )
|
||||
{
|
||||
$myOnlineReport['installed_icon'] = $content['MENU_CHECKED'];
|
||||
$myOnlineReport['installed_text'] = $content['LN_REPORTS_INSTALLED'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$myOnlineReport['installed_icon'] = $content['MENU_DELETE'];
|
||||
$myOnlineReport['installed_text'] = $content['LN_REPORTS_NOTINSTALLED'];
|
||||
}
|
||||
// ---
|
||||
|
||||
// --- Set Helper links
|
||||
if ( $myOnlineReport['reporthelparticle'] == "-" )
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// ---
|
||||
|
||||
// --- Set CSS Class
|
||||
if ( $j % 2 == 0 )
|
||||
$myOnlineReport['cssclass'] = "line1";
|
||||
|
@ -694,6 +694,7 @@ function InitFrontEndVariables()
|
||||
$content['MENU_NETDOWNLOAD'] = $content['BASEPATH'] . "images/icons/download.png";
|
||||
$content['MENU_DOCUMENTLIST'] = $content['BASEPATH'] . "images/icons/documents.png";
|
||||
$content['MENU_WINDOWLIST'] = $content['BASEPATH'] . "images/icons/windows.png";
|
||||
$content['MENU_CHECKED'] = $content['BASEPATH'] . "images/icons/check.png";
|
||||
|
||||
$content['MENU_PAGER_BEGIN'] = $content['BASEPATH'] . "images/icons/media_beginning.png";
|
||||
$content['MENU_PAGER_PREVIOUS'] = $content['BASEPATH'] . "images/icons/media_rewind.png";
|
||||
|
@ -440,11 +440,13 @@ $content['LN_REPORTS_CRONCMD'] = "Local Report command";
|
||||
$content['LN_REPORTMENU_LIST'] = "List installed Reports";
|
||||
$content['LN_REPORTMENU_ONLINELIST'] = "All Available Reports";
|
||||
$content['LN_REPORTS_LINKS'] = "Related Links";
|
||||
$content['LN_REPORTS_INSTALLED'] = "Installed";
|
||||
$content['LN_REPORTS_NOTINSTALLED'] = "Not installed";
|
||||
$content['LN_REPORTS_DOWNLOAD'] = "Download Link";
|
||||
$content['LN_REPORTS_SAMPLELINK'] = "Report Sample";
|
||||
$content['LN_REPORTS_'] = "";
|
||||
$content['LN_REPORTS_'] = "";
|
||||
$content['LN_REPORTS_'] = "";
|
||||
$content['LN_REPORTS_'] = "";
|
||||
|
||||
|
||||
|
||||
?>
|
@ -89,6 +89,7 @@
|
||||
<!-- IF LISTONLINEREPORTS="true" -->
|
||||
<table border="0" cellpadding="2" cellspacing="1" bgcolor="#DDDDDD" width="775" class="with_border_alternate">
|
||||
<tr>
|
||||
<td align="center" width="50" class="cellmenu1"><b>{LN_REPORTS_INSTALLED}</b></td>
|
||||
<td align="center" width="100" class="cellmenu1"><b>{LN_REPORTS_ID}</b></td>
|
||||
<td align="center" width="200" class="cellmenu1"><b>{LN_REPORTS_NAME}</b></td>
|
||||
<td align="center" width="300" class="cellmenu1"><b>{LN_REPORTS_DESCRIPTION}</b></td>
|
||||
@ -96,24 +97,27 @@
|
||||
</tr>
|
||||
<!-- BEGIN ONLINEREPORTS -->
|
||||
<tr>
|
||||
<td align="center" class="{cssclass}"><img src="{installed_icon}" width="16" title="{installed_text}"></td>
|
||||
<td align="left" class="{cssclass}" valign="top"><b>{reportid}</b></td>
|
||||
<td align="left" class="{cssclass}" valign="top"><a href="{BASEPATH}admin/reports.php?op=details&id={ID}">{reportname}</a></td>
|
||||
<td align="left" class="{cssclass}" valign="top">
|
||||
<!-- IF reportdownloadlink="-" -->
|
||||
<b>{reportname}</b>
|
||||
<!-- ENDIF reportdownloadlink="-" -->
|
||||
<!-- IF reportdownloadlink!="-" -->
|
||||
<a href="{reportdownloadlink}" target="_blank">{reportname}</a>
|
||||
<!-- ENDIF reportdownloadlink!="-" -->
|
||||
</td>
|
||||
<td align="left" class="{cssclass}" valign="top">{reportdescription}</td>
|
||||
<td align="center" class="{cssclass}">
|
||||
<a href="{BASEPATH}admin/reports.php?op=addsavedreport&id={ID}"><img src="{MENU_ADD}" width="16" title="{LN_REPORTS_ADDSAVEDREPORT}"></a>
|
||||
|
||||
<!-- IF ReportHelpEnabled="true" -->
|
||||
<a href="{ReportHelpArticle}" target="_blank"><img src="{MENU_HELP}" width="16" title="{LN_REPORTS_HELP}"></a>
|
||||
<!-- ENDIF ReportHelpEnabled="true" -->
|
||||
<a href="{BASEPATH}admin/reports.php?op=details&id={ID}"><img src="{MENU_INFORMATION}" width="16" title="{LN_REPORTS_INFO}"></a>
|
||||
<!-- IF EnableNeedsInit="true" -->
|
||||
<!-- IF InitEnabled="true" -->
|
||||
<a href="{BASEPATH}admin/reports.php?op=initreport&id={ID}"><img src="{MENU_PARSER_INIT}" width="16" title="{LN_REPORTS_INIT}"></a>
|
||||
<!-- ENDIF InitEnabled="true" -->
|
||||
<!-- IF DeleteEnabled="true" -->
|
||||
<a href="{BASEPATH}admin/reports.php?op=removereport&id={ID}"><img src="{MENU_PARSER_DELETE}" width="16" title="{LN_REPORTS_REMOVE}"></a>
|
||||
<!-- ENDIF DeleteEnabled="true" -->
|
||||
<!-- ENDIF EnableNeedsInit="true" -->
|
||||
<!-- IF reportdownloadlink!="-" -->
|
||||
<a href="{reportdownloadlink}" target="_blank"><img src="{MENU_NETDOWNLOAD}" width="16" title="{LN_REPORTS_DOWNLOAD}"></a>
|
||||
<!-- ENDIF reportdownloadlink!="-" -->
|
||||
<!-- IF reporthelparticle!="-" -->
|
||||
<a href="{reporthelparticle}" target="_blank"><img src="{MENU_HELP}" width="16" title="{LN_REPORTS_HELP}"></a>
|
||||
<!-- ENDIF reporthelparticle!="-" -->
|
||||
<!-- IF reportsamplelink!="-" -->
|
||||
<a href="{reportsamplelink}" target="_blank"><img src="{MENU_CHART_PREVIEW}" width="16" title="{LN_REPORTS_SAMPLELINK}"></a>
|
||||
<!-- ENDIF reportsamplelink!="-" -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END ONLINEREPORTS -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user