����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.28 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 : /proc/3357889/root/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:template match="OMA">
<xsl:choose>
<xsl:when test="SMStatus != '0' or count(/OMA/BatteryObj) = 0">
<xsl:apply-templates select="failure"/>
</xsl:when>
<!--xsl:when test="BatteryObj/@instance >= '0'">
<xsl:apply-templates select="BatteryObjList"/>
</xsl:when-->
<xsl:otherwise>
<!--xsl:apply-templates select="BatteryObj"/-->
<xsl:call-template name="ListBatteries"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="failure">
<DataArea>
<PageTitle>
<xsl:attribute name="display"><xsl:value-of select="$strBatteries"/></xsl:attribute>
</PageTitle>
<TableData>
<Header>
<Data>
<xsl:attribute name="value"><xsl:value-of select="$strError"/></xsl:attribute>
<xsl:attribute name="display"><xsl:value-of select="$strError1"/></xsl:attribute>
</Data>
</Header>
<Row>
<Data>
<xsl:attribute name="value"><xsl:value-of select="$strNoBatterySensor"/></xsl:attribute>
</Data>
</Row>
</TableData>
</DataArea>
</xsl:template>
<!--xsl:template match="BatteryObj"-->
<xsl:template name="ListBatteries">
<DataArea>
<PageTitle>
<xsl:attribute name="display"><xsl:value-of select="$strBatteries"/></xsl:attribute>
<xsl:attribute name="status"><xsl:value-of select="/OMA/computedobjstatus"/></xsl:attribute>
</PageTitle>
<CustomButton>
<Data name="Refresh">
<xsl:attribute name="display"><xsl:value-of select="$strRefresh"/></xsl:attribute>
<xsl:attribute name="href">./DataArea?plugin=com.dell.hip.webplugins.ListBatteryWebPlugin&help=Batteries&poid=<xsl:value-of select="poid"/></xsl:attribute>
</Data>
</CustomButton>
<TableData columnspacing="true">
<xsl:choose>
<xsl:when test="/OMA/@cli = 'true'">
<Header>
<Data name="index">
<xsl:attribute name="ignoreonweb">true</xsl:attribute>
<xsl:attribute name="display"><xsl:value-of select="$strIndex"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strIndex1"/></xsl:attribute>
</Data>
<Data name="Status" align="center">
<xsl:attribute name="display"><xsl:value-of select="$strStatus"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strStatus1"/></xsl:attribute>
</Data>
<Data name="ProbeName">
<xsl:attribute name="display"><xsl:value-of select="$strProbeName"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strProbeName1"/></xsl:attribute>
</Data>
<Data name="Reading" align="center">
<xsl:attribute name="display"><xsl:value-of select="$strReading"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strReading1"/></xsl:attribute>
</Data>
</Header>
</xsl:when>
<xsl:otherwise>
<Header>
<Data name="index">
<xsl:attribute name="ignoreonweb">true</xsl:attribute>
<xsl:attribute name="display"><xsl:value-of select="$strIndex2"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strIndex3"/></xsl:attribute>
</Data>
<Data name="Status" align="center">
<xsl:attribute name="display"><xsl:value-of select="$strStatus2"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strStatus3"/></xsl:attribute>
</Data>
<Data name="ProbeName">
<xsl:attribute name="display"><xsl:value-of select="$strProbeName"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strProbeName"/></xsl:attribute>
</Data>
<Data name="Reading" align="center">
<xsl:attribute name="display"><xsl:value-of select="$strReading2"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$strReading3"/></xsl:attribute>
</Data>
</Header>
</xsl:otherwise>
</xsl:choose>
<SubHeader>
<xsl:attribute name="display"><xsl:value-of select="$strIndividualBattery"/></xsl:attribute>
</SubHeader>
<xsl:apply-templates select="/OMA/BatteryObj"/>
</TableData>
</DataArea>
</xsl:template>
<xsl:template match="BatteryObj">
<Row>
<Data ignoreonweb="true">
<xsl:attribute name="value">
<xsl:choose>
<xsl:when test="@instance"><xsl:value-of select="@instance"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</Data>
<xsl:choose>
<!--Absent status returned as 6 is referred as critical state-->
<xsl:when test="objstatus = '6'">
<Data align="center" type="status" value="4"/>
</xsl:when>
<xsl:otherwise>
<Data align="center" type="status" value="{objstatus}"/>
</xsl:otherwise>
</xsl:choose>
<Data value="{ProbeLocation}" display="{ProbeLocation}" type="ustring" editable="false"/>
<Data align="center">
<xsl:attribute name="value">
<xsl:choose>
<xsl:when test="probeReading='4'"><xsl:value-of select="$strGood"/></xsl:when>
<xsl:when test="probeReading='2'"><xsl:value-of select="$strFailed"/></xsl:when>
<xsl:when test="probeReading='1'"><xsl:value-of select="$strPredictiveFailure"/></xsl:when>
<xsl:when test="probeReading='0'"><xsl:value-of select="$strAbsent"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$strUnknownStatus"/></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</Data>
</Row>
</xsl:template>
</xsl:stylesheet>