����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 : |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- including globals for CLI. GUI automatically loads globals.xsl --> <xsl:include href="../en/globals.xsl"/> <xsl:template name="formatWattValue"> <xsl:param name="value"/> <xsl:param name="unit" select="watt"/> <xsl:choose> <xsl:when test="$value = '-2147483648'"><xsl:value-of select="$gstrNA"/></xsl:when> <xsl:when test="$value = ''"><xsl:value-of select="$gstrNA"/></xsl:when> <xsl:otherwise> <xsl:choose> <!-- display both watt and btuphr. eg. "100 W ( 341 BTU/hr )" --> <xsl:when test="$unit = 'all'"> <xsl:value-of select="$value"/><xsl:value-of select="$gstrWattUnit"/> <xsl:value-of select="$gstrOpenBrace"/> <xsl:call-template name="convertWattToBTUhr"> <xsl:with-param name="value"><xsl:value-of select="$value"/></xsl:with-param> </xsl:call-template> <xsl:value-of select="$gstrCloseBrace"/> </xsl:when> <!-- for BTU/hr --> <xsl:when test="$unit = 'btuphr'"> <xsl:call-template name="convertWattToBTUhr"> <xsl:with-param name="value"><xsl:value-of select="$value"/></xsl:with-param> </xsl:call-template> </xsl:when> <!-- default to watt --> <xsl:otherwise> <xsl:value-of select="$value"/><xsl:value-of select="$gstrWattUnit"/> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="formatKiloWattValue"> <xsl:param name="value"/> <xsl:choose> <xsl:when test="$value = '-2147483648'"><xsl:value-of select="$gstrNA"/></xsl:when> <xsl:when test="$value = ''"><xsl:value-of select="$gstrNA"/></xsl:when> <xsl:otherwise> <xsl:variable name="formatval"><xsl:value-of select="format-number($value div 1000,'##0.0')"/></xsl:variable> <xsl:variable name="univdecsep"> <xsl:choose> <xsl:when test="substring(format-number(1.1,'##0.0'), 2, 1) = '.'">.</xsl:when> <xsl:when test="substring(format-number(1.1,'##0.0'), 2, 1) = ','">,</xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="localdecsep"><xsl:value-of select="$gstrDecimalFractionSeperator"/></xsl:variable> <xsl:value-of select="translate($formatval, $univdecsep,$localdecsep)"/><xsl:value-of select="$gstrKiloWattHrUnit"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="formatDeciAmpsValue"> <xsl:param name="value"/> <xsl:choose> <xsl:when test="$value = '-2147483648'"><xsl:value-of select="$gstrNA"/></xsl:when> <xsl:when test="$value = ''"><xsl:value-of select="$gstrNA"/></xsl:when> <xsl:otherwise> <xsl:variable name="formatval"><xsl:value-of select="format-number($value div 10,'##0.0')"/></xsl:variable> <xsl:variable name="univdecsep"> <xsl:choose> <xsl:when test="substring(format-number(1.1,'##0.0'), 2, 1) = '.'">.</xsl:when> <xsl:when test="substring(format-number(1.1,'##0.0'), 2, 1) = ','">,</xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="localdecsep"><xsl:value-of select="$gstrDecimalFractionSeperator"/></xsl:variable> <xsl:value-of select="translate($formatval, $univdecsep,$localdecsep)"/><xsl:value-of select="$gstrAmperageUnit"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="convertWattToBTUhr"> <xsl:param name="value"/> <xsl:choose> <xsl:when test="$value = '-2147483648'"></xsl:when> <xsl:when test="$value = ''"></xsl:when> <xsl:otherwise> <xsl:call-template name="calculateFromWattToBTUhr"> <xsl:with-param name="value"><xsl:value-of select="$value"/></xsl:with-param> </xsl:call-template> <xsl:value-of select="$gstrBTUhrUnit"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="calculateFromWattToBTUhr"> <xsl:param name="value"/> <xsl:value-of select="round($value * 3.413)"/> </xsl:template> <xsl:template name="calculateFromWattToPercentage"> <xsl:param name="wattValue"/> <xsl:param name="minPower"/> <xsl:param name="maxPower"/> <xsl:param name="iDRACType"/> <xsl:variable name="denoVal" select="$maxPower - $minPower" /> <xsl:variable name="percentVal" select="round( (($wattValue - $minPower) div $denoVal) * 100 )"/> <xsl:if test="$denoVal > '0' and $iDRACType < '15'"> <xsl:value-of select="round( (($wattValue - $minPower) div $denoVal) * 100 )"/> </xsl:if> <xsl:if test="$denoVal > '0' and $iDRACType > '15'"> <xsl:choose> <xsl:when test="$wattValue < $minPower"> <xsl:value-of select="0"/> </xsl:when> <xsl:when test="$percentVal > 100"> <xsl:value-of select="100"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$percentVal"/> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> </xsl:stylesheet>