����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/sm/template/common/ |
Upload File : |
<!--
Confirm page for AD actions: online/offline/prepare to remove. The associated web plugin is the ConfirmADActionWebPlugin.
-->
<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:template match="OMA">
<DataArea exportdata="false" email="false" printable="false">
<xsl:attribute name="validate">true</xsl:attribute>
<!-- We needed the ability to disable (hide) the bottom buttons when a user executes an action (DFCT117103) -->
<!-- but we currently only have the ability to hide the submit, cancel, and back buttons. Since this page only -->
<!-- uses the cancel and submit buttons, I have changed the <BottomCustomButton> for Blink to be a cancel -->
<!-- button as a way to hide it when the user selects submit. This will need to change when the framework allows -->
<!-- other buttons to be disabled. - Michael Regert, 06/15/04 -->
<xsl:variable name="CanBlink">
<xsl:call-template name="CanADBlink">
<xsl:with-param name="Mask"><xsl:value-of select="/OMA/ArrayDisks/DCStorageObject/CurrentMethodMask"/>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$CanBlink='1'">
<xsl:attribute name="cancel">true</xsl:attribute>
<xsl:attribute name="canceldisplay"><xsl:value-of select="$strBlink"/></xsl:attribute>
<xsl:attribute name="canceltarget">
<xsl:choose>
<xsl:when test="/OMA/VDMemberPage = 'true'">./DataArea?plugin=com.dell.sm.webplugins.ADBlinkBeforeActionWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ADiskOID=<xsl:value-of select="/OMA/ADiskOID"/>&Action=<xsl:value-of select="/OMA/Action"/>&VirtualDiskOID=<xsl:value-of select="/OMA/VirtualDiskOID"/>&VirtualDiskName=<xsl:value-of select="/OMA/VirtualDiskName"/>&BackTo=<xsl:value-of select="/OMA/BackTo"/>&VDMemberPage=<xsl:value-of select="/OMA/VDMemberPage"/>&RaidLayout=<xsl:value-of select="/OMA/RaidLayout"/>&Force=false&help=adprin&Refresh=true</xsl:when>
<xsl:otherwise>./DataArea?plugin=com.dell.sm.webplugins.ADBlinkBeforeActionWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChannelOID=<xsl:value-of select="/OMA/ChannelOID"/>&EnclosureOID=<xsl:value-of select="/OMA/EnclosureOID"/>&ADiskOID=<xsl:value-of select="/OMA/ADiskOID"/>&Action=<xsl:value-of select="/OMA/Action"/>&BackTo=<xsl:value-of select="/OMA/BackTo"/>&help=adprin&Refresh=true</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<!-- DFCT139174 - GUI: Incorrect Prepare to Remove page for Hard Disks connected to NRS channel -->
<!-- Indravijay J. Gohil Using conditionals on non raid drives to see which title/headers/button id's to use-->
<xsl:variable name="nonRaid">
<xsl:call-template name="IsObjectNonRaid">
<xsl:with-param name="Mask">
<xsl:value-of select="ArrayDisks/DCStorageObject/AttributesMask"/>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$nonRaid = '1' ">
<xsl:attribute name="backpagedisplay"><xsl:value-of select="$strCancel2"/></xsl:attribute>
<xsl:choose>
<xsl:when test="/OMA/VDMemberPage = 'true'">
<xsl:attribute name="backpagetarget">./DataArea?plugin=com.dell.sm.webplugins.ArrayWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&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</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="backpagetarget">./DataArea?plugin=com.dell.sm.webplugins.ADInfoWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&EnclosureOID=<xsl:value-of select="/OMA/EnclosureOID"/>&ChannelOID=<xsl:value-of select="/OMA/ChannelOID"/>&help=adprin</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="backpagedisplay"><xsl:value-of select="$strCancel"/></xsl:attribute>
<xsl:attribute name="backpagetarget"><xsl:call-template name="ReturnPage"><xsl:with-param name="BackTo" select="/OMA/BackTo"/></xsl:call-template></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- Setting strings on XML page that varies depending on what the action is -->
<xsl:variable name="warningtitle">
<xsl:choose>
<xsl:when test="/OMA/Action = 64">
<!-- online -->
<xsl:value-of select="$strOnlineWarningTitle"/>
</xsl:when>
<xsl:when test="/OMA/Action = 128">
<!-- offline -->
<xsl:value-of select="$strOfflineWarningTitle"/>
</xsl:when>
<xsl:when test="/OMA/Action = 256">
<!-- prepare to remove -->
<!-- DFCT139368 - GUI: Incomplete Warning and pop up when a disk is prepared for removal -->
<!-- Indravijay J. Gohil Adding in the word adisk/hdisk as part of the remove adisk message -->
<xsl:choose>
<xsl:when test="//BusProtocol = '9' ">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IsDeviceMounted and /OMA/ArrayDisks/DCStorageObject/IsDeviceMounted = '1')">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/FileHandleOpen and /OMA/ArrayDisks/DCStorageObject/FileHandleOpen = '0')">
<xsl:value-of select="$strPrepareToRemoveMessage1Part1"/>
<xsl:value-of select="/OMA/ArrayDisks/DCStorageObject/MountInfo"/>
<xsl:value-of select="$strPrepareToRemoveMessage1Part2"/>
</xsl:when>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/FileHandleOpen and /OMA/ArrayDisks/DCStorageObject/FileHandleOpen = '1')">
<xsl:value-of select="$strPrepareToRemoveMessage2"/>
</xsl:when>
<xsl:when test="not(/OMA/ArrayDisks/DCStorageObject/FileHandleOpen)">
<xsl:value-of select="$strPrepareToRemoveMessage1Part1Win"/>
<xsl:value-of select="/OMA/ArrayDisks/DCStorageObject/MountInfo"/>
<xsl:value-of select="$strPrepareToRemoveMessage1Part2Win"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strPrepareWarningTitlePCIeSSD"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IsDeviceMounted and /OMA/ArrayDisks/DCStorageObject/IsDeviceMounted = '0')">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IOInProgress and /OMA/ArrayDisks/DCStorageObject/IOInProgress = '0')">
<xsl:value-of select="$strPrepareToRemoveMessage3"/>
</xsl:when>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IOInProgress and /OMA/ArrayDisks/DCStorageObject/IOInProgress = '1')">
<xsl:value-of select="$strPrepareToRemoveMessage2"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strPrepareWarningTitlePCIeSSD"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strPrepareWarningTitlePCIeSSD"/>
</xsl:otherwise>
</xsl:choose>
<!--xsl:value-of select="$strPrepareWarningTitlePCIeSSD"/-->
</xsl:when>
<xsl:when test="$nonRaid = '1' ">
<xsl:value-of select="$strPrepareWarningTitleHard"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strPrepareWarningTitle"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="/OMA/Action = 65536">
<!-- clear -->
<xsl:value-of select="$strClearWarningTitle"/>
</xsl:when>
<xsl:when test="/OMA/Action = 131072">
<!-- cancel clear -->
<xsl:value-of select="$strCancelClearWarningTitle"/>
</xsl:when>
<xsl:when test="/OMA/Action = 16">
<!-- assign ghs -->
<xsl:value-of select="$strGHSWarningTitle"/>
</xsl:when>
<xsl:when test="/OMA/Action = 2097152">
<xsl:choose>
<xsl:when test="//BusProtocol = '9'">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IsDeviceNVME and /OMA/ArrayDisks/DCStorageObject/IsDeviceNVME = '1')">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IsDeviceMounted and /OMA/ArrayDisks/DCStorageObject/IsDeviceMounted = '1')">
<xsl:value-of select="$strEraseASecureDiskWarningMountTitlePart1"/>
<xsl:value-of select="/OMA/ArrayDisks/DCStorageObject/MountInfo"/>
<xsl:value-of select="$strEraseASecureDiskWarningMountTitlePart2"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IOInProgress and /OMA/ArrayDisks/DCStorageObject/IOInProgress = '1')">
<xsl:value-of select="$strCryptographicEraseASecureDiskWarningIOHandleTitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strCryptographicEraseASecureDiskWarningTitlePCIeSSD"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strEraseASecureDiskWarningTitlePCIeSSD"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strEraseASecureDiskWarningTitle"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="areyousure">
<xsl:choose>
<xsl:when test="/OMA/Action = 64">
<!-- online -->
<xsl:value-of select="$strRUSureOnline"/>
</xsl:when>
<xsl:when test="/OMA/Action = 128">
<!-- offline -->
<xsl:value-of select="$strRUSureOffline"/>
</xsl:when>
<xsl:when test="/OMA/Action = 16">
<!-- assign ghs -->
<xsl:value-of select="$strRUSureGHS"/>
</xsl:when>
<xsl:when test="/OMA/Action = 256">
<!-- prepare to remove -->
<!-- DFCT139368 - GUI: Incomplete Warning and pop up when a disk is prepared for removal -->
<!-- Indravijay J. Gohil Adding in the word adisk/hdisk as part of the remove adisk message -->
<xsl:choose>
<xsl:when test="//BusProtocol= '9' ">
<xsl:value-of select="$strRUSurePreparePCIeSSD"/>
</xsl:when>
<xsl:when test="$nonRaid = '1' ">
<xsl:value-of select="$strRUSurePrepareHard"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strRUSurePrepare"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="/OMA/Action = 65536">
<!-- clear -->
<xsl:value-of select="$strRUSureClear"/>
</xsl:when>
<xsl:when test="/OMA/Action = 131072">
<!-- cancel clear -->
<xsl:value-of select="$strRUSureCancelClear"/>
</xsl:when>
<xsl:when test="/OMA/Action = 2097152">
<xsl:choose>
<xsl:when test="//BusProtocol= '9' ">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IsDeviceNVME and /OMA/ArrayDisks/DCStorageObject/IsDeviceNVME = '1')">
<xsl:value-of select="$strRUSureCryptographicEraseASecureDiskPCIeSSD"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strRUSureEraseASecureDiskPCIeSSD"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strRUSureEraseASecureDisk"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="strAction">
<xsl:choose>
<xsl:when test="/OMA/Action = 64">
<!-- online -->
<xsl:value-of select="$strOnline"/>
</xsl:when>
<xsl:when test="/OMA/Action = 128">
<!-- offline -->
<xsl:value-of select="$strOffline"/>
</xsl:when>
<xsl:when test="/OMA/Action = 16">
<!-- assign ghs -->
<xsl:value-of select="$strGHS"/>
</xsl:when>
<xsl:when test="/OMA/Action = 256">
<!-- prepare to remove -->
<!-- DFCT139368 - GUI: Incomplete Warning and pop up when a disk is prepared for removal -->
<!-- Indravijay J. Gohil Adding in the word adisk/hdisk as part of the remove adisk message -->
<xsl:choose>
<xsl:when test="$nonRaid = '1' ">
<xsl:value-of select="$strPreparePCIeSSD"/>
</xsl:when>
<xsl:when test="$nonRaid = '1' ">
<xsl:value-of select="$strPrepareHard"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strPrepare"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="/OMA/Action = 65536">
<!-- clear -->
<xsl:value-of select="$strClear"/>
</xsl:when>
<xsl:when test="/OMA/Action = 131072">
<!-- cancel clear -->
<xsl:value-of select="$strCancelClear"/>
</xsl:when>
<xsl:when test="/OMA/Action = 2097152">
<xsl:choose>
<xsl:when test="//BusProtocol = '9'">
<xsl:choose>
<xsl:when test="(/OMA/ArrayDisks/DCStorageObject/IsDeviceNVME and /OMA/ArrayDisks/DCStorageObject/IsDeviceNVME = '1')">
<xsl:value-of select="$strCryptographicErase"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strFullInitialization"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$strEraseASecureDisk"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:variable>
<!-- End setting strings -->
<xsl:attribute name="submit">
<xsl:choose>
<xsl:when test="/OMA/VDMemberPage = 'true'">./SubmitForm?plugin=com.dell.sm.webplugins.ADExecuteActionWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&ADiskOID=<xsl:value-of select="/OMA/ADiskOID"/>&ADiskName=<xsl:value-of select="/OMA/ADiskName"/>&Action=<xsl:value-of select="/OMA/Action"/>&VirtualDiskOID=<xsl:value-of select="/OMA/VirtualDiskOID"/>&VirtualDiskName=<xsl:value-of select="/OMA/VirtualDiskName"/>&CurrentUrl=<xsl:value-of select="/OMA/BackTo"/>&BackTo=<xsl:value-of select="/OMA/BackTo"/>&VDMemberPage=<xsl:value-of select="/OMA/VDMemberPage"/>&Force=false&help=adprin</xsl:when>
<xsl:otherwise>./SubmitForm?plugin=com.dell.sm.webplugins.ADExecuteActionWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChannelOID=<xsl:value-of select="/OMA/ChannelOID"/>&EnclosureOID=<xsl:value-of select="/OMA/EnclosureOID"/>&ControllerName=<xsl:value-of select="/OMA/ControllerName"/>&ADiskOID=<xsl:value-of select="/OMA/ADiskOID"/>&ADiskName=<xsl:value-of select="/OMA/ADiskName"/>&Action=<xsl:value-of select="/OMA/Action"/>&Force=false&help=adprin&CurrentUrl=<xsl:value-of select="/OMA/BackTo"/>&BackTo=<xsl:value-of select="/OMA/BackTo"/></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="submitdisplay"><xsl:value-of select="$strAction"/></xsl:attribute>
<AlertMessage alert="true" status="3">
<xsl:attribute name="display"><xsl:value-of select="$strTitlePart1"/><!--xsl:value-of select="ArrayDisks/@VirtualDiskName"/--><xsl:value-of select="$warningtitle"/></xsl:attribute>
</AlertMessage>
<TableData name="Test1" display="Test2" columnspacing="true">
<xsl:variable name="showtasks">false</xsl:variable>
<!-- DFCT139174 - GUI: Incorrect Prepare to Remove page for Hard Disks connected to NRS channel -->
<!-- Indravijay J. Gohil Using conditionals on non raid drives to see which title/headers/button id's to use-->
<xsl:choose>
<xsl:when test="$nonRaid = '1' ">
<!--SubHeader display="{$strHardDisk}" /-->
<Header>
<xsl:call-template name="ArrayDiskTableHeader">
<xsl:with-param name="tasks">false</xsl:with-param>
<xsl:with-param name="expanded">true</xsl:with-param>
</xsl:call-template>
</Header>
<!-- should be only one array disk -->
<xsl:for-each select="ArrayDisks/DCStorageObject">
<xsl:call-template name="ArrayDiskTableRows">
<xsl:with-param name="tasks">false</xsl:with-param>
<xsl:with-param name="expanded">true</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<!--SubHeader display="{$strArrayDisk}" /-->
<Header>
<xsl:call-template name="ArrayDiskTableHeader">
<xsl:with-param name="tasks">false</xsl:with-param>
<xsl:with-param name="expanded">true</xsl:with-param>
</xsl:call-template>
</Header>
<!-- should be only one array disk -->
<xsl:for-each select="ArrayDisks/DCStorageObject">
<xsl:call-template name="ArrayDiskTableRows">
<xsl:with-param name="tasks">false</xsl:with-param>
<xsl:with-param name="expanded">true</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</TableData>
<!-- check if can blink first. -->
<!-- We needed the ability to disable (hide) the bottom buttons when a user executes an action (DFCT117103) -->
<!-- but we currently only have the ability to hide the submit, cancel, and back buttons. Since this page only -->
<!-- uses the cancel and submit buttons, I have changed the <BottomCustomButton> for Blink to be a cancel -->
<!-- button as a way to hide it when the user selects submit. This will need to change when the framework allows -->
<!-- other buttons to be disabled. - Michael Regert, 06/15/04 -->
<!--xsl:variable name="CanBlink">
<xsl:call-template name="CanADBlink">
<xsl:with-param name="Mask"><xsl:value-of select="/OMA/ArrayDisks/DCStorageObject/CurrentMethodMask"/>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$CanBlink='1'">
<BottomCustomButton>
<Data>
<xsl:attribute name="href">./DataArea?plugin=com.dell.sm.webplugins.ADBlinkBeforeActionWebPlugin&ControllerOID=<xsl:value-of select="/OMA/ControllerOID"/>&ChannelOID=<xsl:value-of select="/OMA/ChannelOID"/>&EnclosureOID=<xsl:value-of select="/OMA/EnclosureOID"/>&ADiskOID=<xsl:value-of select="/OMA/ADiskOID"/>&Action=<xsl:value-of select="/OMA/Action"/>&help=adprin";</xsl:attribute>
<xsl:attribute name="display"><xsl:value-of select="$strBlink"/></xsl:attribute>
</Data>
</BottomCustomButton>
</xsl:if-->
<script language="javascript">
function validate()
{
// Validate doesn't need to validate any data, but just needs to prompt the user
// to verify the want to continue with the delete. confirm( ) will return true when
// the user selects OK and false when the user selects CANCEL.
var warnmsg = "<xsl:value-of select="$areyousure"/>";
var canBlink = <xsl:value-of select="$CanBlink"/>;
var cfrm = confirm(warnmsg);
if(cfrm)
{
if (canBlink == 1)
{
disableButtons("submit","back" ,"cancel");
}
else
{
disableButtons("submit","back" ,"");
}
}
return (cfrm);
}
</script>
</DataArea>
</xsl:template>
</xsl:stylesheet>