mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Added new action buttons into sources admin, only avalable for DB sources
This commit is contained in:
parent
b3ebf0e05a
commit
a026804a36
@ -663,11 +663,17 @@ if ( !isset($_POST['op']) && !isset($_GET['op']) )
|
||||
{
|
||||
$mySource['SourcesTypeImage'] = $content["MENU_SOURCE_DB"];
|
||||
$mySource['SourcesTypeText'] = $content["LN_SOURCES_DB"];
|
||||
|
||||
// Enabled Database Maintenance functions
|
||||
$mySource['IsDatabaseSource'] = true;
|
||||
}
|
||||
else if ( $mySource['SourceType'] == SOURCE_PDO )
|
||||
{
|
||||
$mySource['SourcesTypeImage'] = $content["MENU_SOURCE_PDO"];
|
||||
$mySource['SourcesTypeText'] = $content["LN_SOURCES_PDO"];
|
||||
|
||||
// Enabled Database Maintenance functions
|
||||
$mySource['IsDatabaseSource'] = true;
|
||||
}
|
||||
// ---
|
||||
|
||||
|
@ -627,6 +627,8 @@ function InitFrontEndVariables()
|
||||
$content['MENU_INFORMATION'] = $content['BASEPATH'] . "images/icons/information2.png";
|
||||
$content['MENU_PARSER_DELETE'] = $content['BASEPATH'] . "images/icons/gear_delete.png";
|
||||
$content['MENU_PARSER_INIT'] = $content['BASEPATH'] . "images/icons/gear_new.png";
|
||||
$content['MENU_RECYCLE'] = $content['BASEPATH'] . "images/icons/recycle.png";
|
||||
$content['MENU_TRASH'] = $content['BASEPATH'] . "images/icons/garbage_empty.png";
|
||||
|
||||
$content['MENU_PAGER_BEGIN'] = $content['BASEPATH'] . "images/icons/media_beginning.png";
|
||||
$content['MENU_PAGER_PREVIOUS'] = $content['BASEPATH'] . "images/icons/media_rewind.png";
|
||||
|
@ -362,10 +362,35 @@ function HoverPopup( myObjRef, myPopupTitle, HoverContent, OptionalImage )
|
||||
obj.innerHTML = HoverContent;
|
||||
}
|
||||
|
||||
function HoverPopupHelp( myEvent, parentObj, myPopupTitle, HoverContent )
|
||||
{
|
||||
// Change CSS Class
|
||||
var objPopup = document.getElementById('popupdetails');
|
||||
objPopup.className='popupdetails_popup with_border';
|
||||
|
||||
// Set title
|
||||
var obj = document.getElementById("popuptitle");
|
||||
obj.innerHTML = myPopupTitle;
|
||||
|
||||
// Set Content
|
||||
obj = document.getElementById("popupcontent");
|
||||
obj.innerHTML = HoverContent;
|
||||
|
||||
// var PopupContentWidth = 0;
|
||||
/// var middle = PopupContentWidth / 2;
|
||||
var middle = -5;
|
||||
|
||||
if (myPopupHovering == false && parentObj != null)
|
||||
{
|
||||
// Different mouse position capturing in IE!
|
||||
objPopup.style.top = (event.y+document.body.scrollTop + 24) + 'px';
|
||||
objPopup.style.left = (myEvent.clientX - middle) + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
function HoverPopupMenuHelp( myEvent, parentObj, myPopupTitle, HoverContent )
|
||||
{
|
||||
if (szBrowserApp !== "IEXPLORER")
|
||||
if (szBrowserApp !== "IEXPLORER" )
|
||||
{
|
||||
// Don't need helper here!
|
||||
return;
|
||||
|
@ -51,7 +51,9 @@ $content['LN_GEN_GLOBAL'] = "Global";
|
||||
$content['LN_GEN_USERONLY_LONG'] = "For me only <br>(Only available to your user)";
|
||||
$content['LN_GEN_GROUPONLY_LONG'] = "For this group <br>(Only available to the selected group)";
|
||||
$content['LN_GEN_GROUPONLYNAME'] = "Group '%1'";
|
||||
|
||||
$content['LN_ADMIN_POPUPHELP'] = "Details on this function";
|
||||
$content['LN_ADMIN_DBSTATS'] = "Show database statistics.";
|
||||
$content['LN_ADMIN_CLEARDATA'] = "If you need to remove old data records, use this function.";
|
||||
|
||||
// General Options
|
||||
$content['LN_ADMIN_GLOBFRONTEND'] = "Global frontend options";
|
||||
|
@ -51,6 +51,9 @@ $content['LN_GEN_GLOBAL'] = "Global";
|
||||
$content['LN_GEN_USERONLY_LONG'] = "For me only <br>(Only available to your user)";
|
||||
$content['LN_GEN_GROUPONLY_LONG'] = "For this group <br>(Only available to the selected group)";
|
||||
$content['LN_GEN_GROUPONLYNAME'] = "Group '%1'";
|
||||
$content['LN_ADMIN_POPUPHELP'] = "Details on this function";
|
||||
$content['LN_ADMIN_DBSTATS'] = "Show database statistics.";
|
||||
$content['LN_ADMIN_CLEARDATA'] = "If you need to remove old data records, use this function.";
|
||||
|
||||
// General Options
|
||||
$content['LN_ADMIN_GLOBFRONTEND'] = "Global frontend options";
|
||||
|
@ -51,7 +51,9 @@ $content['LN_GEN_GLOBAL'] = "Global";
|
||||
$content['LN_GEN_USERONLY_LONG'] = "For me only <br>(Only available to your user)";
|
||||
$content['LN_GEN_GROUPONLY_LONG'] = "For this group <br>(Only available to the selected group)";
|
||||
$content['LN_GEN_GROUPONLYNAME'] = "Group '%1'";
|
||||
|
||||
$content['LN_ADMIN_POPUPHELP'] = "Details on this function";
|
||||
$content['LN_ADMIN_DBSTATS'] = "Show database statistics.";
|
||||
$content['LN_ADMIN_CLEARDATA'] = "If you need to remove old data records, use this function.";
|
||||
|
||||
// General Options
|
||||
$content['LN_ADMIN_GLOBFRONTEND'] = "Global frontend options";
|
||||
|
@ -58,8 +58,8 @@
|
||||
<td align="center" width="50" class="cellmenu1"><b>{LN_SOURCES_ID}</b></td>
|
||||
<td align="center" width="200" class="cellmenu1"><b>{LN_SOURCES_NAME}</b></td>
|
||||
<td align="center" width="150" class="cellmenu1"><b>{LN_SOURCES_TYPE}</b></td>
|
||||
<td align="center" width="200" class="cellmenu1"><b>{LN_SOURCES_ASSIGNTO}</b></td>
|
||||
<td align="center" width="150" class="cellmenu1"><b>{LN_GEN_ACTIONS}</b></td>
|
||||
<td align="center" width="175" class="cellmenu1"><b>{LN_SOURCES_ASSIGNTO}</b></td>
|
||||
<td align="center" width="175" class="cellmenu1" colspan="2"><b>{LN_GEN_ACTIONS}</b></td>
|
||||
</tr>
|
||||
<!-- BEGIN SOURCES -->
|
||||
<tr>
|
||||
@ -85,10 +85,17 @@
|
||||
<img src="{MENU_DELETE_DISABLED}" width="16" title="{LN_GEN_DISABLED}">
|
||||
<!-- ENDIF ActionsAllowed!="true" -->
|
||||
</td>
|
||||
|
||||
<td align="center" class="{cssclass}">
|
||||
<!-- IF IsDatabaseSource="true" -->
|
||||
<a href="{BASEPATH}admin/sources.php?op=dbstats&id={ID}"><img src="{MENU_CHARTS}" width="16" OnMouseOver="HoverPopupHelp(event, this, '{LN_ADMIN_POPUPHELP}', '{LN_ADMIN_DBSTATS}');" OnMouseOut="FinishPopupWindowMenu();"></a>
|
||||
<a href="{BASEPATH}admin/sources.php?op=cleardata&id={ID}"><img src="{MENU_TRASH}" width="16" OnMouseOver="HoverPopupHelp(event, this, '{LN_ADMIN_POPUPHELP}', '{LN_ADMIN_CLEARDATA}');" OnMouseOut="FinishPopupWindowMenu();"></a>
|
||||
<!-- ENDIF IsDatabaseSource="true" -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END SOURCES -->
|
||||
<tr>
|
||||
<td align="center" colspan="5" class="line0"><b><a href="{BASEPATH}admin/sources.php?op=add"><img src="{MENU_ADD}" title="{LN_SOURCES_ADD}"> {LN_SOURCES_ADD}</a></b></td>
|
||||
<td align="center" colspan="6" class="line0"><b><a href="{BASEPATH}admin/sources.php?op=add"><img src="{MENU_ADD}" title="{LN_SOURCES_ADD}"> {LN_SOURCES_ADD}</a></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- ENDIF LISTSOURCES="true" -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user