文件操作 - tempinfo.xsl
返回文件管理
返回主菜单
删除本文件
文件: /opt/dell/srvadmin/var/lib/openmanage/xslroot/sm/template/common/tempinfo.xsl
编辑文件内容
<?xml version="1.0" encoding="UTF-8"?> <!-- This is the XSL to render the Enclosure Information page. The associated web plugin is the EnclosureInfoWebPlugin. --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- Include some common templates created by SS --> <xsl:include href="temptbl.xsl"/> <xsl:include href="Utils.xsl"/> <xsl:template match="OMA"> <script language="javascript"> function getThisURL() { document.location.href = top.gnv.appendVID("./DataArea?plugin=com.dell.sm.webplugins.SetTempProbeWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&Name=<xsl:value-of select="/OMA/Name"/>&EnclosureOID=<xsl:value-of select="/OMA/EnclosureOID"/>" + "&ChannelOID=<xsl:value-of select="/OMA/ChannelOID"/>&Action=tempinfo&help=entktmp"); } </script> <xsl:variable name="checkAdmin"> <xsl:choose> <xsl:when test="OMAUserRights = '7'">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:variable> <DataArea backpagetarget="./DataArea?plugin=com.dell.sm.webplugins.ControllerInfoWebPlugin"> <PageTitle> <xsl:attribute name="status"><xsl:value-of select="/OMA/Health/Component/@status"/></xsl:attribute> <xsl:attribute name="display"><xsl:value-of select="$strTitle1Part1"/><xsl:value-of select="Name"/> <xsl:value-of select="$strTitle1Part2"/></xsl:attribute> </PageTitle> <CustomButton> <Data> <xsl:attribute name="display"><xsl:value-of select="$strRefresh"/></xsl:attribute> <xsl:attribute name="href">./DataArea?plugin=com.dell.sm.webplugins.TempInfoWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&Name=<xsl:value-of select="Name"/>&EnclosureOID=<xsl:value-of select="/OMA/EnclosureOID"/>&ChannelOID=<xsl:value-of select="/OMA/ChannelOID"/>&help=tpprin</xsl:attribute> </Data> </CustomButton> <xsl:if test="$checkAdmin='true'"> <!--check to see if user had admin rights--> <!-- If Enclosure is not supporting Set Temperature Probe, then following condition will fail --> <xsl:if test="TemperatureProbes/DCStorageObject/MasterMethodMask and (substring(TemperatureProbes/DCStorageObject/MasterMethodMask,29,1)='1')"> <CustomButton align="left"> <Data formSubmit="true"> <xsl:attribute name="display"><xsl:value-of select="$strSetTemp"/></xsl:attribute> <xsl:attribute name="href">javascript:getThisURL()</xsl:attribute> </Data> </CustomButton> </xsl:if> </xsl:if> <xsl:call-template name="TempTable"/> </DataArea> </xsl:template> <xsl:template name="TempTable"> <!-- DISPLAY THE TEMPERATURE INFORMATION IN A TABLE FORMAT--> <TableData columnspacing="true"> <SubHeader> <xsl:attribute name="display"><xsl:value-of select="$strTitle2"/></xsl:attribute> </SubHeader> <xsl:choose> <xsl:when test="count(TemperatureProbes/DCStorageObject)>0"> <xsl:call-template name="TempTableHeader"/> <xsl:for-each select="TemperatureProbes/DCStorageObject"> <xsl:sort select="Index" data-type="number" order="ascending"/> <xsl:call-template name="TempTableRows"/> </xsl:for-each> </xsl:when> </xsl:choose> </TableData> </xsl:template> </xsl:stylesheet>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件