| 13 |
rsolanki |
1 |
<%
|
|
|
2 |
'===================================================================
|
|
|
3 |
' Release Tree Common
|
|
|
4 |
'===================================================================
|
|
|
5 |
%>
|
|
|
6 |
<!--#include file="../class/classSortHelper.asp"-->
|
|
|
7 |
<!--#include file="../class/classActionButtonControl.asp"-->
|
|
|
8 |
<%
|
|
|
9 |
'------------ VARIABLE DEFINITION -------------
|
|
|
10 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
11 |
Const LIMG_OPEN_MODE = "<img src='images/i_rtag_open_mode.gif' border='0' align='absmiddle' hspace='2'>"
|
|
|
12 |
Const LIMG_RESTRICTIVE_MODE = "<img src='images/i_rtag_restrictive_mode.gif' border='0' align='absmiddle' hspace='2'>"
|
|
|
13 |
Const LIMG_CLOSED_MODE = "<img src='images/i_rtag_closed_mode.gif' border='0' align='absmiddle' hspace='2'>"
|
|
|
14 |
'------------ VARIABLE INIT -------------------
|
|
|
15 |
'------------ CONDITIONS ----------------------
|
|
|
16 |
'----------------------------------------------
|
|
|
17 |
%>
|
|
|
18 |
<%
|
|
|
19 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
20 |
'----------------------------------------------
|
|
|
21 |
%>
|
|
|
22 |
<%
|
|
|
23 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
24 |
Function ReleaseIcon ( cOfficial )
|
|
|
25 |
|
|
|
26 |
If cOfficial = "N" Then
|
|
|
27 |
' Open Mode
|
|
|
28 |
ReleaseIcon = LIMG_OPEN_MODE
|
|
|
29 |
|
|
|
30 |
ElseIf cOfficial = "R" Then
|
|
|
31 |
' Restrictive Mode
|
|
|
32 |
ReleaseIcon = LIMG_RESTRICTIVE_MODE
|
|
|
33 |
|
|
|
34 |
ElseIf cOfficial = "C" Then
|
|
|
35 |
'CCB Mode
|
|
|
36 |
ReleaseIcon = LIMG_RESTRICTIVE_MODE
|
|
|
37 |
|
|
|
38 |
ElseIf cOfficial = "Y" Then
|
|
|
39 |
'Closed Mode
|
|
|
40 |
ReleaseIcon = LIMG_CLOSED_MODE
|
|
|
41 |
|
|
|
42 |
End If
|
|
|
43 |
|
|
|
44 |
End Function
|
|
|
45 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
46 |
%>
|