Subversion Repositories DevTools

Rev

Rev 165 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 165 Rev 183
Line 5... Line 5...
5
%>
5
%>
6
<!--#include file="../class/classTemplateManager.asp"-->
6
<!--#include file="../class/classTemplateManager.asp"-->
7
<!--#include file="../class/classTabControl.asp"-->
7
<!--#include file="../class/classTabControl.asp"-->
8
<!--#include file="../class/classActionButtonControl.asp"-->
8
<!--#include file="../class/classActionButtonControl.asp"-->
9
<!--#include file="daemon_instructions.asp"-->
9
<!--#include file="daemon_instructions.asp"-->
-
 
10
<!--#include file="daemon_status.asp"-->
10
<%
11
<%
11
'------------ VARIABLE DEFINITION -------------
12
'------------ VARIABLE DEFINITION -------------
12
Dim parPv_id
13
Dim parPv_id
13
Dim nEnvTab         ' remember environment tab
14
Dim nEnvTab         ' remember environment tab
14
Dim objBtnControl
15
Dim objBtnControl
Line 56... Line 57...
56
 
57
 
57
'----------------------------------------------
58
'----------------------------------------------
58
%>
59
%>
59
<%
60
<%
60
'-----------------------------------------------------------------------------------------------------------------------------
61
'-----------------------------------------------------------------------------------------------------------------------------
61
Sub RenderPackageProperties ()
62
Sub RenderPackageProperties (irtag_id)
62
%>
63
%>
63
 
-
 
-
 
64
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
64
   <tr>
65
   <tr>
65
      <td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td>
-
 
66
 
66
     <td>
67
      <td valign="bottom" background="images/bg_lght_gray.gif" nowrap class="body_txt">
-
 
68
         <%
67
         <%
69
         If pkgInfoHash.Item ("is_patch") = "Y" Then
68
         If pkgInfoHash.Item ("is_patch") = "Y" Then
70
            '--- PATCH ---
69
            '--- PATCH ---
71
            Response.write "<br><a href='patches.asp?pv_id="& pkgInfoHash.Item ("patch_parent_id") &"&rtag_id="& Request("rtag_id") &"' class='txt_linked'><img src='icons/i_caretone.gif' hspace='2' border='0' align='absmiddle'>Back To "& pkgInfoHash.Item ("pkg_name") &"</a><br><br>"
70
            Response.write "<br><a href='patches.asp?pv_id="& pkgInfoHash.Item ("patch_parent_id") &"&rtag_id="& Request("rtag_id") &"' class='txt_linked'><img src='icons/i_caretone.gif' hspace='2' border='0' align='absmiddle'>Back To "& pkgInfoHash.Item ("pkg_name") &"</a><br><br>"
72
 
71
 
Line 95... Line 94...
95
            Else
94
            Else
96
               Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_version") &"</SPAN>"
95
               Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_version") &"</SPAN>"
97
            End If
96
            End If
98
         Else
97
         Else
99
            '--- PACKAGE ---
98
            '--- PACKAGE ---
-
 
99
            Response.write "<table cellspacing=1 cellpadding=0>"
-
 
100
            Response.write "<tr>"
-
 
101
            Response.write "<td>"
-
 
102
            Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &"&nbsp;"& pkgInfoHash.Item ("pkg_version") & "&nbsp;" & "&nbsp;" & "</SPAN>"
-
 
103
            Response.write "</td>"
-
 
104
 
-
 
105
            Response.write "<td>"
-
 
106
            ' dlocked: Y - release, N - unlocked, P - pending, A - approved, R - rejected
100
            If pkgInfoHash.Item ("dlocked") = "Y" Then
107
            If pkgInfoHash.Item ("dlocked") = "Y" Then
-
 
108
              Response.write "<img src='images/i_locked.gif' width='13' height='15' border='0' title='Released and locked'>"
101
               If pkgInfoHash.Item ("deprecated_state") = 6 Then
109
            ElseIf pkgInfoHash("is_released") Then
102
                  Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &"&nbsp;"& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'>"&enum_imgDeprecated&"</SPAN>"
110
              Response.write "<img src='images/i_unlocked.gif' width='16' height='15' border='0' title='Released and unlocked'>"
-
 
111
            ElseIf pkgInfoHash.Item ("dlocked") = "P" Then
-
 
112
              Response.write enum_imgPending
-
 
113
            ElseIf (pkgInfoHash.Item ("dlocked") = "N") OR (pkgInfoHash.Item ("dlocked") = "R") Then
-
 
114
              'ElseIf (irtag_id<>"") Then
-
 
115
              Response.write enum_imgBuilding
-
 
116
            End If
-
 
117
            Response.write "</td>"
-
 
118
            Response.write "<td>"
-
 
119
 
103
               ElseIf pkgInfoHash.Item ("product_state") = 4 Then
120
            If pkgInfoHash.Item ("product_state") = 4 Then
-
 
121
              Response.write enum_imgProductRejected
-
 
122
            End If
-
 
123
            Response.write "</td>"
-
 
124
            Response.write "<td>"
-
 
125
 
-
 
126
            Dim state_icon
-
 
127
 
-
 
128
            If Not IsNull(pkgInfoHash.Item ("deprecated_state")) Then
-
 
129
              Select Case CInt(pkgInfoHash.Item ("deprecated_state"))
-
 
130
                Case enumPKG_STATE_DEPRECATED
-
 
131
                  state_icon = enum_imgDeprecated
-
 
132
                Case enumPKG_STATE_DEPRECATED_DEPENDENT
104
                  Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &"&nbsp;"& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'>"&enum_imgProductRejected&"</SPAN>"
133
                  state_icon = enum_imgDeprecatedDependent
105
               Else
134
              End Select
-
 
135
              Response.write state_icon
-
 
136
            End If
-
 
137
            Response.write "</td>"
-
 
138
            Response.write "<td>"
-
 
139
 
106
                  Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &"&nbsp;"& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'></SPAN>"
140
            If Not (IsNull(pkgInfoHash.Item ("pkg_state")) or pkgInfoHash.Item ("pkg_state") = 0) Then
-
 
141
              Select Case CInt(pkgInfoHash.Item ("pkg_state"))
-
 
142
                Case enumPKG_STATE_MAJOR
-
 
143
                  state_icon = enum_imgCritical
-
 
144
                Case enumPKG_STATE_MINOR
-
 
145
                  state_icon = enum_imgWarning
-
 
146
                Case enumPKG_STATE_MAJOR_READY
-
 
147
                  state_icon = enum_imgCReady
-
 
148
                Case enumPKG_STATE_MINOR_READY
-
 
149
                  state_icon = enum_imgWReady
-
 
150
                Case enumPKG_NOT_FOUND
-
 
151
                  state_icon = enum_imgNotFound
-
 
152
                Case enumPKG_STATE_NEW_PATCH
-
 
153
                  state_icon = enum_imgPatchAvailable
-
 
154
                Case enumPKG_ADVISORY_RIPPLE
-
 
155
                  state_icon = enum_imgAR
-
 
156
                Case enumPKG_ADVISORY_RIPPLE_DEPENDENT
-
 
157
                  state_icon = enum_imgARD
-
 
158
                Case enumPKG_PEGGED_VERSION
-
 
159
                  state_icon = enum_imgGreenPin
-
 
160
              End Select
-
 
161
              Response.write state_icon
107
               End If
162
            End If
-
 
163
            Response.write "</td>"
-
 
164
            Response.write "<td>"
-
 
165
 
-
 
166
 
-
 
167
            'build_type', and a value of 'M' = manual and 'A' = auto
-
 
168
            If pkgInfoHash.Item("build_type") = "M" Then
-
 
169
              Response.write "<img src='icons/i_manual.gif' width='12' height='14' border='0' title='Manual package'>"
108
            Else
170
            End If
-
 
171
            Response.write "</td>"
-
 
172
            Response.write "<td>"
-
 
173
 
-
 
174
            ' check if a daemon instruction exists for this package
-
 
175
            Dim sDmInstr
-
 
176
            sDmInstr = GetOpCodeListForRtagIdAndPvId( "", Request("rtag_id"), pkgInfoHash.Item("pv_id"), "" )
-
 
177
            If sDmInstr <> "" Then
109
               Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &"&nbsp;"& pkgInfoHash.Item ("pkg_version") &"</SPAN>"
178
              Response.write "<img src='icons/i_daemon_instr.gif' width='19' height='17' border='0' title='Daemon instruction:" & "&#13;" & sDmInstr & "&#13;" & "Click to view details." & "' onClick=""location.href='build_status.asp?rtag_id=" & irtag_id & "';"" >"
110
            End If
179
            End If
-
 
180
            Response.write "</td>"
-
 
181
            Response.write "<td>"
-
 
182
 
-
 
183
            ' check if this package has a build failure file
-
 
184
            If pkgInfoHash("has_build_failure") Then
-
 
185
              Response.write "<img src='icons/i_build_failure.gif' width='19' height='17' border='0' title='Package build failure" & "&#13;" & "Click to view details." &"' onClick=""location.href='build_status.asp?rtag_id=" & irtag_id & "';"" >"
-
 
186
            ElseIf pkgInfoHash("is_excluded") Then
-
 
187
            ' check if this package has been excluded from the build
-
 
188
              Response.write "<img src='icons/i_build_exclusion.gif' width='19' height='17' border='0' title='Package excluded from build" & "&#13;" & "Click to view details." &"' onClick=""location.href='build_status.asp?rtag_id=" & irtag_id & "';"" >"
-
 
189
            End If
-
 
190
            Response.write "</td>"
-
 
191
            Response.write "<td>"
-
 
192
 
-
 
193
            Response.write "</td>"
-
 
194
 
-
 
195
            Response.write "</tr>"
-
 
196
            Response.write "</table>"
-
 
197
 
111
         End If
198
         End If
112
         %>
199
         %>
113
         <br><br>
-
 
114
      </td>
-
 
115
 
200
 
116
      <td background="images/bg_lght_gray.gif">&nbsp;</td>
201
      </td>
117
   </tr>
202
   </tr>
118
   <tr>
203
   <tr>
119
      <td background="images/bg_lght_gray.gif"></td>
-
 
120
      <td background="images/bg_lght_gray.gif" style=color:Red>
204
      <td style=color:Red>
121
         <%=GetOpCodeListForRtagIdAndPvId( "NOTE: '", Request("rtag_id"), pkgInfoHash.Item("pv_id"), "' has been requested" )%>
205
         <%'=GetOpCodeListForRtagIdAndPvId( "NOTE: '", Request("rtag_id"), pkgInfoHash.Item("pv_id"), "' has been requested" )%>
122
      <td>
206
      </td>
-
 
207
   </tr>
-
 
208
   </table>
-
 
209
<%
-
 
210
End Sub
-
 
211
 
-
 
212
'-----------------------------------------------------------------------------------------------------------------------------
-
 
213
Sub RenderStatus(irtag_id,ipv_id)
-
 
214
%>
-
 
215
   <table width="100%" border="0" cellspacing="10" cellpadding="0">
-
 
216
   <tr>
-
 
217
     <td width="50%">
-
 
218
       <!-- PACKAGE PROPERTIES ----------------------------  -->
-
 
219
       <%
-
 
220
         If ipv_id <> "" Then
-
 
221
           Call RenderPackageProperties (irtag_id)
-
 
222
         End If
-
 
223
       %>
-
 
224
     </td>
-
 
225
     <td width="12%" valign=bottom>
-
 
226
       <%
-
 
227
         If irtag_id<>"" Then
-
 
228
           Dim objDmSts: Set objDmSts = New DaemonStatus
-
 
229
       %>
-
 
230
           <fieldset class="form_field">
-
 
231
             <legend class=="form_field" style="color:black"><b>&nbsp;Daemon&nbsp;Status</b></legend>
-
 
232
             <div style="background-color:'#f5f5f5'">
-
 
233
               <%Call objDmSts.RenderDaemonStatusForRelease(irtag_id,16)%>
-
 
234
             </div>
-
 
235
           </fieldset>
-
 
236
       <%
-
 
237
           Set objDmSts = Nothing
-
 
238
         End If
-
 
239
       %>
-
 
240
     </td>
-
 
241
     <td width="38%">
-
 
242
     </td>
123
   </tr>
243
   </tr>
-
 
244
   </table>
124
<%
245
<%
125
End Sub
246
End Sub
126
 
247
 
127
'-----------------------------------------------------------------------------------------------------------------------------
248
'-----------------------------------------------------------------------------------------------------------------------------
128
%>
249
%>