Rev 5945 | Blame | Last modification | View Log | RSS feed
<%'===================================================================' Release Tree Common'===================================================================%><!--#include file="../class/classSortHelper.asp"--><!--#include file="../class/classActionButtonControl.asp"--><%'------------ VARIABLE DEFINITION -------------'------------ CONSTANTS DECLARATION -----------Const LIMG_OPEN_MODE = "<img src='images/i_rtag_open_mode.gif' border='0' align='absmiddle' hspace='2' title='Open Mode'>"Const LIMG_RESTRICTIVE_MODE = "<img src='images/i_rtag_restrictive_mode.gif' border='0' align='absmiddle' hspace='2' title='Restrictive Mode'>"Const LIMG_CCB_MODE = "<img src='images/i_rtag_ccb_mode.gif' border='0' align='absmiddle' hspace='2' title='CCB Mode'>"Const LIMG_CLOSED_MODE = "<img src='images/i_rtag_closed_mode.gif' border='0' align='absmiddle' hspace='2' title='Closed Mode'>"Const LIMG_CLOSED_MODE_WARN = "<img src='images/i_rtag_closed_mode_warn.gif' border='0' align='absmiddle' hspace='2'>"Const LIMG_PRESERVE_MODE = "<img src='images/i_rtag_preserve_mode.gif' border='0' align='absmiddle' hspace='2' title='Preserved Mode'>"Const LIMG_ARCHIVE_MODE = "<img src='images/i_rtag_archive_mode.gif' border='0' align='absmiddle' hspace='2' title='Archived'>"'------------ VARIABLE INIT -------------------'------------ CONDITIONS ----------------------'----------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------'----------------------------------------------%><%'-----------------------------------------------------------------------------------------------------------------Function ReleaseIcon ( cOfficial )If cOfficial = "N" Then' Open ModeReleaseIcon = LIMG_OPEN_MODEElseIf cOfficial = "R" Then' Restrictive ModeReleaseIcon = LIMG_RESTRICTIVE_MODEElseIf cOfficial = "C" Then'CCB ModeReleaseIcon = LIMG_CCB_MODEElseIf cOfficial = "Y" Then'Closed ModeReleaseIcon = LIMG_CLOSED_MODEElseIf cOfficial = "O" Then'Closed Mode - With warning (aged)ReleaseIcon = LIMG_CLOSED_MODE_WARNElseIf cOfficial = "P" Then'Closed Mode - Archived, but don't purgeReleaseIcon = LIMG_PRESERVE_MODEElseIf cOfficial = "A" Then'Archive ModeReleaseIcon = LIMG_ARCHIVE_MODEEnd IfEnd Function'-----------------------------------------------------------------------------------------------------------------Function SdkIcon (cState)If cState = "R" Then' Released - available for useSdkIcon = LIMG_CLOSED_MODEElseIf cState = "D" Then' Deprecated - Cannot be added to a Release any moreSdkIcon = LIMG_ARCHIVE_MODEElseIf cState = "U" Then' Work in progress - Still being constructed. Cannot be added to a Release yetSdkIcon = LIMG_OPEN_MODEEnd IfEnd Function'-----------------------------------------------------------------------------------------------------------------%>