����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 13.58.173.156 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/dell/srvadmin/var/lib/openmanage/xslroot/hip/template/common/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:output method="xml"/> <xsl:strip-space elements="*"/> <xsl:template match="/EventLog"> <xsl:variable name="varSortKey"><xsl:value-of select="/EventLog/SortKey"/></xsl:variable> <xsl:variable name="varOrder"><xsl:value-of select="/EventLog/Order"/></xsl:variable> <xsl:variable name="varDataType"><xsl:value-of select="/EventLog/DataType"/></xsl:variable> <DataArea onLoad="true"> <script language="javascript" src="/oma/js/IPSup.js"/> <script language="javascript"> function clearLog() { document.dataarea.action=top.gnv.appendVID('./SubmitForm?plugin=com.dell.hip.webplugins.ClearAlertLogWebPlugin'); //[pp 01/0804 - DFCT102605 Prompt user to confirm before deleting log if(confirm('<xsl:value-of select="$strAreYouSure"/>')) document.dataarea.submit(); } function initializationRoutine() { } function saveLog() { document.dataarea.action=top.gnv.appendVID('./SubmitForm?plugin=com.dell.oma.webplugins.SaveLogWebPlugin'); // DFCT93265, Clicking on the "Save As" button second time and performing either save or cancel, resulted an Abend on all flavous of Netware. // The following single line has been added for fixing the problem. document.getElementById("pageCode").value = ""; document.getElementById("pageCode").value = document.getElementsByTagName("HTML")[0].innerHTML; document.dataarea.submit(); } function showEventHint(eventHintFile,msgtype,msgid) { if (checkModal () == false) { var detailWin; var hostURL; var hosname; var hostport; hostname=location.hostname; hostport=location.port; var contextIndex=eventHintFile.indexOf("?context="); if(msgtype=="eemi") { eventHintFile="help/hip/en/EnhMsgGuide/index_main.htm?topic="+msgid; } if(IsIPv6(hostname)==true) eventHintFile = "https://[" + hostname + "]:"+hostport+"/" + eventHintFile; else eventHintFile = "https://" + location.host + "/" + eventHintFile; if(msgtype=="eemi") { detailWin = window.open(eventHintFile, 0, config='height=310,width=730,scrollbars=yes,toolbar=no,menubar=no,resizable=yes,location=no,directories=no,status=no'); // this brings the window to the front. detailWin.focus(); } else { top.gnv.help ('./HelpServlet?eventHintFile='+eventHintFile , 'null'); } } } function checkModal() { var modal = false; try { modal = window.top.body.frames["ct"].g_bModal; } catch(e) { try { modal = window.top.body.g_bModal; } catch(e) { } } return modal; } </script> <Header><xsl:value-of select="$strPageHeader"/></Header> <PageTitle> <xsl:attribute name="display"><xsl:value-of select="$strAlertLog"/></xsl:attribute> </PageTitle> <CustomButton> <xsl:if test="(/EventLog/OMAUserRights = '7')"> <Data name="Clear"><xsl:attribute name="display"><xsl:value-of select="$strClearLog"/></xsl:attribute> <xsl:attribute name="href">javascript:clearLog()</xsl:attribute> <xsl:attribute name="formSubmit">true</xsl:attribute> </Data> </xsl:if> <xsl:if test="(/EventLog/OMAUserRights = '7') or (/EventLog/OMAUserRights = '3')"> <Data name="Save"><xsl:attribute name="display"><xsl:value-of select="$strSaveAs"/></xsl:attribute> <xsl:attribute name="href">javascript:saveLog()</xsl:attribute> <xsl:attribute name="formSubmit">true</xsl:attribute> </Data> </xsl:if> <Data name="Refresh"><xsl:attribute name="display"><xsl:value-of select="$strRefresh"/></xsl:attribute> <xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&help=AlertLog&app=hip&refresh=true&newsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> </Data> </CustomButton> <TableData columnspacing="true" nouniqueids="true" sortable="true"> <Header> <Data align="center" name="Severity" width="80" link="true"><xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&newsortkey=Type&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="$strSeverity"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strSeverity1"/></xsl:attribute> <xsl:if test="(/EventLog/SortKey = 'Type')"> <xsl:choose> <xsl:when test="$varOrder='ascending'"> <xsl:attribute name="topsorted">true</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="descendsorted">true</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:if> </Data> <Data name="ID" link="true"><xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&newsortkey=ID&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="$strID"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strID1"/></xsl:attribute> <xsl:if test="(/EventLog/SortKey = 'ID')"> <xsl:choose> <xsl:when test="$varOrder='ascending'"> <xsl:attribute name="topsorted">true</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="descendsorted">true</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:if> </Data> <Data name="DateTime" width="155" link="true"><xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&newsortkey=TimeStamp&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="$strDateAmpTime"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strDateAmpTime1"/></xsl:attribute> <xsl:if test="(/EventLog/SortKey = 'TimeStamp')"> <xsl:choose> <xsl:when test="$varOrder='ascending'"> <xsl:attribute name="topsorted">true</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="descendsorted">true</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:if> </Data> <Data name="Category" link="true"><xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&newsortkey=Category&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="$strCategory"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strCategory1"/></xsl:attribute> <xsl:if test="(/EventLog/SortKey = 'Category')"> <xsl:choose> <xsl:when test="$varOrder='ascending'"> <xsl:attribute name="topsorted">true</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="descendsorted">true</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:if> </Data><!--Data name="Category" link="true"><xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&newsortkey=Category&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="$strCategory"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strCategory1"/></xsl:attribute> </Data--> <Data name="Description" link="true"> <xsl:attribute name="href"><xsl:text>./DataArea?plugin=com.dell.oma.webplugins.AlertLogWebPlugin&newsortkey=Description&oldsortkey=</xsl:text><xsl:value-of select="$varSortKey"/><xsl:text>&order=</xsl:text><xsl:value-of select="$varOrder"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="$strDescription"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strDescription1"/></xsl:attribute> <xsl:if test="(/EventLog/SortKey = 'Description')"> <xsl:choose> <xsl:when test="$varOrder='ascending'"> <xsl:attribute name="topsorted">true</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="descendsorted">true</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:if> </Data> </Header> <xsl:choose> <xsl:when test="$varSortKey='ID'"> <xsl:apply-templates select="LogEntry[not(EnhMsgID)]"> <xsl:sort select="*[name()=$varSortKey]" data-type="{$varDataType}" order="{$varOrder}"/> </xsl:apply-templates> <xsl:apply-templates select="LogEntry[EnhMsgID]"> <xsl:sort select="*[name()='EnhMsgID']" data-type="text" order="{$varOrder}"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="LogEntry"> <xsl:sort select="*[name()=$varSortKey]" data-type="{$varDataType}" order="{$varOrder}"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </TableData> </DataArea> </xsl:template> <xsl:template match="LogEntry"> <Row> <Data name="severity" type="status" align="center"> <xsl:attribute name="value"> <xsl:call-template name="alert-status2omsa"> <xsl:with-param name="Status"><xsl:value-of select="Type"/> </xsl:with-param> </xsl:call-template> </xsl:attribute> </Data> <xsl:choose> <xsl:when test="EnhMsgID"> <xsl:choose> <xsl:when test="Link !=''"> <Data name="ID" link="true"> <xsl:attribute name="href">javascript:showEventHint("","eemi","<xsl:value-of select="EnhMsgID"/>")</xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="EnhMsgID"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="EnhMsgID"/></xsl:attribute> </Data> </xsl:when> <xsl:otherwise> <Data name="ID"> <xsl:attribute name="display"><xsl:value-of select="EnhMsgID"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="EnhMsgID"/></xsl:attribute> </Data> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="Link !=''"> <Data name="ID" link="true"> <xsl:attribute name="href">javascript:showEventHint("<xsl:value-of select="Link"/>","legacy","")</xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="ID"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="ID"/></xsl:attribute> </Data> </xsl:when> <xsl:otherwise> <Data name="ID"> <xsl:attribute name="display"><xsl:value-of select="ID"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="ID"/></xsl:attribute> </Data> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> <Data name="DateTime"> <xsl:attribute name="display"><xsl:value-of select="TimeStamp"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="DateTime"/></xsl:attribute> </Data> <Data name="Category"> <xsl:attribute name="display"><xsl:value-of select="Category"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="Category"/></xsl:attribute> </Data><!--Data name="Category"> <xsl:attribute name="display"><xsl:value-of select="Category"></xsl:value-of></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="Category"></xsl:value-of></xsl:attribute> </Data--> <Data name="description"> <xsl:attribute name="display"><xsl:value-of select="Description"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="Description"/></xsl:attribute> </Data> </Row> </xsl:template> <xsl:template name="alert-status2omsa"> <xsl:param name="Status"/> <xsl:choose> <xsl:when test="$Status=0">0</xsl:when> <xsl:when test="$Status=1">4</xsl:when> <xsl:when test="$Status=2">3</xsl:when> <xsl:when test="$Status=4">2</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>