文件操作 - chnlinfo.xsl
返回文件管理
返回主菜单
删除本文件
文件: /opt/dell/srvadmin/var/lib/openmanage/xslroot/sm/template/common/chnlinfo.xsl
编辑文件内容
<!-- This is the XSL to render the Controller Information page. The associated web plugin is the ControllerInfoWebPlugin. --> <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:import href="chnltbl.xsl"/> <xsl:import href="Utils.xsl"/> <xsl:import href="encltbl.xsl"/> <xsl:template match="OMA"> <xsl:variable name="checkAdmin"> <xsl:choose> <xsl:when test="OMAUserRights = '7'">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:variable> <DataArea> <xsl:call-template name="scripts"/> <script language="javascript"> function onExecute(oid, channame) { var action = document.getElementById('Chtasks').value; if (action == '-') { alert("<xsl:value-of select="$strError"/>" + "<xsl:value-of select="$strSelectValidTask"/>"); } else if (action == '1') { //rescan document.location.href = top.gnv.appendVID("./DataArea?plugin=com.dell.sm.webplugins.ConfirmChanRescanWebPlugin&ControllerOID=<xsl:value-of select="ID"/>&ChannelOID=<xsl:value-of select="CHID"/>&ChannelName=" + channame + "&Action=rescan&help=chprin"); } else { alert("<xsl:value-of select="$strError"/>" + "<xsl:value-of select="$strSelectValidTask"/>"); } } </script> <PageTitle> <xsl:choose> <xsl:when test="/*/Channels/DCStorageObject/BusProtocol = '9'"> <xsl:attribute name="display"><xsl:choose><xsl:when test="substring(/*/Channels/DCStorageObject/AttributesMask,26,1)='1'"><xsl:value-of select="$strTitleLogicalPart1"/></xsl:when><xsl:otherwise><xsl:value-of select="$strPCITitle1Part1"/></xsl:otherwise></xsl:choose><xsl:value-of select="/*/Channels/DCStorageObject/Channel"/><xsl:value-of select="$strPCITitle1Part2"/><xsl:value-of select="$strPCITitle1Part3"/><xsl:value-of select="/*/Channels/@ControllerName"/><xsl:value-of select="$strPCITitle1Part4"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="display"><xsl:choose><xsl:when test="substring(/*/Channels/DCStorageObject/AttributesMask,26,1)='1'"><xsl:value-of select="$strTitleLogicalPart1"/></xsl:when><xsl:otherwise><xsl:value-of select="$strTitle1Part1"/></xsl:otherwise></xsl:choose><xsl:value-of select="/*/Channels/DCStorageObject/Channel"/><xsl:value-of select="$strTitle1Part2"/><xsl:value-of select="$strTitle1Part3"/><xsl:value-of select="/*/Channels/@ControllerName"/><xsl:value-of select="$strTitle1Part4"/></xsl:attribute> </xsl:otherwise> </xsl:choose> </PageTitle> <CustomButton> <!-- The refresh button cannot use the below javascript to perform the refresh. The issue is the javascript calls the last webplug which was called to render this page. The problem is that the page can be rendered by two webplugins: the info webplugin and the action execute web plugin. If the action execute webplugin was the last webplugin to render the page, pressing refresh would cause that action to be re-executed. --> <!--Data name="Refresh"> <xsl:attribute name="display"><xsl:value-of select="$strRefresh"/></xsl:attribute> <xsl:attribute name="href">#</xsl:attribute> <xsl:attribute name="onclick">javascript:location.reload ()</xsl:attribute> </Data--> <Data name="Refresh"> <xsl:attribute name="display"><xsl:value-of select="$strRefresh"/></xsl:attribute> <xsl:attribute name="href">./DataArea?plugin=com.dell.sm.webplugins.ChannelInfoWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ID"/>&ChannelOID=<xsl:value-of select="/OMA/CHID"/>&Action=none&help=chprin</xsl:attribute> </Data> </CustomButton> <xsl:apply-templates select="Channels/DCStorageObject"> <xsl:with-param name="tasks"> <xsl:value-of select="$checkAdmin"/> </xsl:with-param> </xsl:apply-templates> </DataArea> </xsl:template> <xsl:template match="Channels/DCStorageObject"> <xsl:param name="tasks"/> <ComboData ignoreJumpBar="true"> <ListData> <xsl:variable name="showtasks"> <xsl:value-of select="$tasks"/> </xsl:variable> <SubHeader> <xsl:attribute name="display"><xsl:value-of select="$strSubHeader1"/></xsl:attribute> <xsl:attribute name="status"><xsl:value-of select="ObjStatus"/></xsl:attribute> </SubHeader> <xsl:call-template name="ChannelList"> <xsl:with-param name="tasks" select="$showtasks"/> </xsl:call-template> </ListData> <!-- Check if Path Health is applicable (is connector in multipath) --> <xsl:if test="substring(AttributesMask,26,1)='1'"> <TableData columnspacing="false"> <SubHeader> <xsl:attribute name="display"><xsl:value-of select="$strSubHeader5"/></xsl:attribute> </SubHeader> <xsl:call-template name="PathHealthTable"/> </TableData> </xsl:if> <xsl:if test="count(../../Enclosures)>0"> <TableData columnspacing="true"> <xsl:variable name="showtasks">false</xsl:variable> <SubHeader> <xsl:attribute name="display"><xsl:value-of select="$strSubHeader4"/></xsl:attribute> </SubHeader> <Header> <xsl:call-template name="EnclosureTableHeader"> <xsl:with-param name="tasks" select="$showtasks"/> </xsl:call-template> </Header> <xsl:for-each select="../../Enclosures/DCStorageObject"> <xsl:call-template name="EnclosureTableRows"> <xsl:with-param name="tasks" select="$showtasks"/> </xsl:call-template> </xsl:for-each> </TableData> </xsl:if> </ComboData> </xsl:template> </xsl:stylesheet>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件