Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
3
'|                                                   |
121 hknight 4
'|                 RELEASE NOTES                     |
119 ghuddy 5
'|                                                   |
6
'=====================================================
7
%>
8
<%
9
'------------ Variable Definition -------------
10
Dim rsCQ
11
Dim rsDepIss
12
Dim SQLstr
13
Dim fixedIssDict
14
Dim notesIssDict
15
Dim issArr()
16
Dim depIssDict
17
Dim sDocTitle
18
Dim rsQry, rsTemp
19
Dim iss_db_id, G1_template, G1_style, currG1
20
Dim retVal
21
Dim baseURL
22
Dim rsProjId
23
Dim rsPkgMetrics
24
Dim rsCodeReviewURL
25
'------------ Constants Declaration -----------
26
Const enumLoc_iss_db = 0
27
Const enumLoc_iss_id = 1
28
Const enumLoc_iss_num = 2
29
Const enumLoc_summary = 3
30
Const enumLoc_status = 4
31
Const enumLoc_priority = 5
32
Const enumLoc_issue_type = 6
33
'------------ Variable Init -------------------
34
Set rsCQ = Server.CreateObject("ADODB.Recordset")
35
Set fixedIssDict = CreateObject("Scripting.Dictionary")
36
Set notesIssDict = CreateObject("Scripting.Dictionary")
37
Set depIssDict = CreateObject("Scripting.Dictionary")
38
'----------------------------------------------
39
%>
40
<%
41
'----------------------------------------------------------------------------------------------------------------------------------------
42
Function asDepIss ( SSiss_db_id, SScolumn )
121 hknight 43
   If NOT depIssDict.Exists (SSiss_db_id) Then Exit Function
119 ghuddy 44
 
121 hknight 45
   asDepIss = issArr ( SScolumn, CInt( depIssDict.Item (SSiss_db_id) ) )
119 ghuddy 46
End Function
47
'----------------------------------------------------------------------------------------------------------------------------------------
48
Function FixedIssues ( parPv_id )
121 hknight 49
   Dim sqlstr, rsTemp
50
   sqlstr = "SELECT pv_id FROM cq_issues WHERE pv_id = "& parPv_id &" AND iss_state = "& enumISSUES_STATE_FIXED
51
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 52
 
121 hknight 53
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
54
      FixedIssues = TRUE
55
   Else
56
      FixedIssues = FALSE
57
   End If
119 ghuddy 58
 
121 hknight 59
   rsTemp.Close()
60
   Set rsTemp = nothing
119 ghuddy 61
End Function
62
'----------------------------------------------------------------------------------------------------------------------------------------
63
Function SQL_Package_Information ( nPv_id )
121 hknight 64
   SQL_Package_Information = _
65
   " SELECT *"&_
66
   "   FROM PACKAGE_VERSIONS pv"&_
67
   "  WHERE pv.pv_id = "& nPv_id
119 ghuddy 68
End Function
69
'----------------------------------------------------------------------------------------------------------------------------------------
70
Function SQL_Dependency_Issues ( NNpv_id )
121 hknight 71
   SQL_Dependency_Issues = _
72
   " SELECT pkg.pkg_name, pv.pkg_version, pv.pv_id, cqi.iss_db, cqi.iss_id, cqi.iss_state, pv.comments AS reasons"&_
73
   "     FROM cq_issues cqi,"&_
74
   "          package_dependencies dep,"&_
75
   "          packages pkg,"&_
76
   "          package_versions pv"&_
77
   "    WHERE dep.pv_id = "& NNpv_id &_
78
   "      AND dep.dpv_id = cqi.pv_id(+)"&_
79
   "      AND dep.dpv_id = pv.pv_id(+)"&_
80
   "      AND pv.pkg_id = pkg.pkg_id"&_
81
   "   ORDER BY UPPER(pkg.pkg_name) ASC, cqi.iss_state DESC"
119 ghuddy 82
End Function
83
'----------------------------------------------------------------------------------------------------------------------------------------
84
Function SQL_Additional_Notes ( nPv_id )
121 hknight 85
   SQL_Additional_Notes = ReadFile( rootPath & "queries\additional_notes.sql" )
86
   SQL_Additional_Notes = Replace( SQL_Additional_Notes, ":PV_ID", nPv_id )
119 ghuddy 87
End Function
88
'----------------------------------------------------------------------------------------------------------------------------------------
89
Function SQL_Unit_Tests ( nPv_id )
121 hknight 90
   SQL_Unit_Tests = ReadFile( rootPath & "queries\unit_tests.sql" )
91
   SQL_Unit_Tests = Replace( SQL_Unit_Tests, ":PV_ID", nPv_id )
119 ghuddy 92
End Function
93
'----------------------------------------------------------------------------------------------------------------------------------------
121 hknight 94
' Function returns the number of imported clearquest issues
95
' and builds a string suitable for querying the clearquest issues database
96
Function Get_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
97
   Dim rsTemp, sqlstr, DEVIiss, TDSEiss, VT5DMiss, VTSUPiss, retVal
119 ghuddy 98
 
121 hknight 99
   If IsObject(DDfixedIss) Then
100
      ' Find this package issues
101
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& NNpv_id &"  AND iss_state = "& nIssState
102
   Else
103
      ' Find dependency issues
104
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE  pv_id IN ( "&_
105
               " SELECT dpv_id FROM package_dependencies WHERE pv_id = "& NNpv_id &_
106
               " )"
107
   End If
119 ghuddy 108
 
121 hknight 109
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
110
   retVal = rsTemp.RecordCount
119 ghuddy 111
 
121 hknight 112
   DEVIiss  = "-1"
113
   TDSEiss  = "-1"
114
   VT5DMiss = "-1"
115
   VTSUPiss = "-1"
119 ghuddy 116
 
121 hknight 117
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
118
      If CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
119
         DEVIiss = DEVIiss &","& rsTemp("iss_id")
119 ghuddy 120
 
121 hknight 121
      ElseIf CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_TDSE_ID) Then
122
         TDSEiss = TDSEiss &","& rsTemp("iss_id")
123
      ElseIf CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_VT5DM_ID) Then
124
         VT5DMiss = VT5DMiss &","& rsTemp("iss_id")
125
      ElseIf CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_VTSUP_ID) Then
126
         VTSUPiss = VTSUPiss &","& rsTemp("iss_id")
119 ghuddy 127
 
121 hknight 128
      End If
119 ghuddy 129
 
121 hknight 130
      If IsObject(DDfixedIss) Then
131
         ' Store only Fixed Issues
132
         If CInt(rsTemp("iss_state")) = CInt(enumISSUES_STATE_FIXED) Then DDfixedIss.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), ""
133
      End If
119 ghuddy 134
 
121 hknight 135
      If IsObject(DDnotesIssDict) Then
136
         ' Store Notes
137
         If Not IsNull(rsTemp("notes")) AND (rsTemp("notes") <> "")Then DDnotesIssDict.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), Cstr(rsTemp("notes"))
138
      End If
119 ghuddy 139
 
121 hknight 140
      rsTemp.MoveNext
141
   WEnd
119 ghuddy 142
 
121 hknight 143
   ' Construct SQL statement for CQ database
144
   SSsql = ReadFile( rootPath & "queries\cq_issues.sql" )
145
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
146
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_TDSE_ID*/", enumCLEARQUEST_TDSE_ID)
147
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_VT5DM_ID*/", enumCLEARQUEST_VT5DM_ID)
148
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_VTSUP_ID*/", enumCLEARQUEST_VTSUP_ID)
149
   SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
150
   SSsql = Replace( SSsql, "/*TDSEiss*/", TDSEiss)
151
   SSsql = Replace( SSsql, "/*VT5DMiss*/", VT5DMiss)
152
   SSsql = Replace( SSsql, "/*VTSUPiss*/", VTSUPiss)
119 ghuddy 153
 
121 hknight 154
   rsTemp.Close()
155
   Set rsTemp = nothing
119 ghuddy 156
 
121 hknight 157
   Get_Package_Issues = retVal
119 ghuddy 158
 
121 hknight 159
End Function
119 ghuddy 160
'----------------------------------------------------------------------------------------------------------------------------------------
121 hknight 161
' Function returns the number of imported jira issues
162
' and builds a string suitable for querying the jira issues database
163
Function Get_JIRA_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
164
   Dim rsTemp, sqlstr, JIRAIss, retVal
119 ghuddy 165
 
121 hknight 166
   JIRAIss = "'-1'"
167
   sqlstr = "SELECT iss_key FROM JIRA_ISSUES WHERE pv_id="& NNpv_id
119 ghuddy 168
 
121 hknight 169
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
170
   retVal = rsTemp.RecordCount
119 ghuddy 171
 
121 hknight 172
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
173
      JIRAIss = JIRAIss &",'"& rsTemp("iss_key")&"'"
174
      rsTemp.MoveNext
175
   WEnd
119 ghuddy 176
 
121 hknight 177
   SSsql = "SELECT I.pkey AS iss_num, I.summary, ISS.pname AS state,  IT.pname as IssueType, PR.pname as Priority, I.RESOLUTION "&_
178
           " FROM jiraissue I, issuestatus ISS, issuetype IT, priority PR "&_
179
           " WHERE I.pkey IN ("& JIRAIss &") "&_
180
           " AND I.issuestatus = ISS.ID "&_
181
           " AND IT.ID = I.issuetype "&_
182
           " AND PR.ID = I.PRIORITY "
119 ghuddy 183
 
121 hknight 184
   rsTemp.Close()
185
   Set rsTemp = nothing
119 ghuddy 186
 
121 hknight 187
   Get_JIRA_Package_Issues = retVal
119 ghuddy 188
 
121 hknight 189
End Function
119 ghuddy 190
'----------------------------------------------------------------------------------------------------------------------------------------
191
Sub LastPvId (PvId)
121 hknight 192
   Dim sqlstr
119 ghuddy 193
 
121 hknight 194
   sqlstr = "SELECT * FROM PACKAGE_VERSIONS WHERE PV_ID= "& PvId &_
195
            " UNION SELECT * FROM ARCHIVE_MANAGER.PACKAGE_VERSIONS WHERE PV_ID= "& PvId
119 ghuddy 196
 
121 hknight 197
   Set rsQry = OraDatabase.DbCreateDynaset( sqlstr, cint(0) )
119 ghuddy 198
 
199
End Sub
200
'----------------------------------------------------------------------------------------------------------------------------------------
201
Function  Get_JIRA_Issues ( SSsql, OOrsCQ )
121 hknight 202
   If OOrsCQ.State = 1 Then
203
      OOrsCQ.Close()
204
   End If
119 ghuddy 205
 
206
 
207
 
121 hknight 208
   On Error Resume Next
209
   OOrsCQ.ActiveConnection = JIRA_conn
210
   OOrsCQ.Source = SSsql
211
   OOrsCQ.CursorType = 0
212
   OOrsCQ.CursorLocation = 3
213
   OOrsCQ.LockType = 3
214
   OOrsCQ.Open()
119 ghuddy 215
 
216
 
121 hknight 217
   Get_JIRA_Issues = Err.Number
119 ghuddy 218
 
219
End Function
220
'----------------------------------------------------------------------------------------------------------------------------------------
221
Function  Get_CQ_Issues ( SSsql, OOrsCQ )
121 hknight 222
   If OOrsCQ.State = 1 Then
223
      OOrsCQ.Close()
224
   End If
119 ghuddy 225
 
121 hknight 226
   On Error Resume Next
227
   OOrsCQ.ActiveConnection = CQ_conn
228
   OOrsCQ.Source = SSsql
229
   OOrsCQ.CursorType = 0
230
   OOrsCQ.CursorLocation = 2
231
   OOrsCQ.LockType = 3
232
   OOrsCQ.Open()
119 ghuddy 233
 
121 hknight 234
   Get_CQ_Issues = Err.Number
119 ghuddy 235
 
236
End Function
237
'----------------------------------------------------------------------------------------------------------------------------------------
238
Function Get_Dependency_CQ_Issues ( SSsql, OOrsCQ, DDdepIss, AAiss )
121 hknight 239
   Dim recCnt
240
   If OOrsCQ.State = 1 Then
241
      OOrsCQ.Close()
242
   End If
119 ghuddy 243
 
121 hknight 244
   OOrsCQ.ActiveConnection = CQ_conn
245
   OOrsCQ.Source = SSsql
246
   OOrsCQ.CursorType = 0
247
   OOrsCQ.CursorLocation = 2
248
   OOrsCQ.LockType = 3
119 ghuddy 249
 
121 hknight 250
   On Error Resume Next
251
   OOrsCQ.Open()
119 ghuddy 252
 
121 hknight 253
   ' Exit with error if error occurs
254
   Get_Dependency_CQ_Issues = Err.Number
255
   If Err.Number <> 0 Then Exit Function
119 ghuddy 256
 
257
 
121 hknight 258
   recCnt = 1
119 ghuddy 259
 
121 hknight 260
   While ((NOT OOrsCQ.BOF) AND (NOT OOrsCQ.EOF))
261
      ReDim Preserve AAiss( 6, recCnt )
262
      'If NOT DDdepIss.Exists Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")) Then
263
         DDdepIss.Add Cstr(OOrsCQ("iss_db") &"."& OOrsCQ("iss_id")), Cstr(recCnt)
264
      'End If
265
      AAiss( enumLoc_iss_db, recCnt )    = OOrsCQ("iss_db")
266
      AAiss( enumLoc_iss_id, recCnt )    = OOrsCQ("iss_id")
267
      AAiss( enumLoc_iss_num, recCnt )   = OOrsCQ("iss_num")
268
      AAiss( enumLoc_summary, recCnt )   = OOrsCQ("summary")
269
      AAiss( enumLoc_status, recCnt )    = OOrsCQ("status")
270
      AAiss( enumLoc_priority, recCnt )    = OOrsCQ("priority")
271
      AAiss( enumLoc_issue_type, recCnt ) = OOrsCQ("issue_type")
119 ghuddy 272
 
121 hknight 273
      recCnt = recCnt + 1
274
      OOrsCQ.MoveNext
275
   WEnd
119 ghuddy 276
 
121 hknight 277
   OOrsCQ.Close()
119 ghuddy 278
End Function
279
'----------------------------------------------------------------------------------------------------------------------------------------
280
Function FormatPath ( SSpath )
281
 
121 hknight 282
   If (SSpath = "") Then
283
      FormatPath = ""
284
      Exit Function
285
   End If
119 ghuddy 286
 
121 hknight 287
   If (InStr(1, LCase(SSpath), "http") = 1) OR (InStr(1, LCase(SSpath), "www") = 1) Then
288
      ' Source path is URL
289
      FormatPath = "<a href='"& SSpath &"' class='txt_linked'>"& SSpath &"</a>"
290
   Else
291
      FormatPath = SSpath
292
   End If
119 ghuddy 293
 
294
End Function
295
'----------------------------------------------------------------------------------------------------------------------------------------
296
Sub Group_By ( rsG, styleG, currG )
121 hknight 297
   If rsG = currG Then Exit Sub
298
   Response.write styleG
299
   'currG = rsG
119 ghuddy 300
End Sub
301
'----------------------------------------------------------------------------------------------------------------------------------------
302
Sub CheckUnitTestsState ( nPv_id, outMSG, outMSG_ID, outNote, outTestsFound )
121 hknight 303
   Dim sqlstr, rsTemp
304
   sqlstr = ReadFile( rootPath & "queries\unit_test_entries_check.sql" )
305
   sqlstr = Replace( sqlstr, ":PV_ID", nPv_id)
306
   sqlstr = Replace( sqlstr, ":enumTEST_TYPE_NOT_DONE", enumTEST_TYPE_NOT_DONE)
119 ghuddy 307
 
121 hknight 308
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 309
 
121 hknight 310
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
311
      outMSG = rsTemp("msg")
312
      outMSG_ID = CInt(rsTemp("msg_id"))
313
      outNote = rsTemp("test_summary")
314
      outTestsFound = FALSE
119 ghuddy 315
 
121 hknight 316
      If IsNull(rsTemp("msg")) Then outTestsFound = TRUE
317
   End If
119 ghuddy 318
 
121 hknight 319
   rsTemp.Close()
320
   Set rsTemp = nothing
119 ghuddy 321
End Sub
322
'----------------------------------------------------------------------------------------------------------------------------------------
323
Function FormatAccepted ( sAccepted, nTest_id )
121 hknight 324
   Dim tempSTR
325
   If IsNull(nTest_id) Then Exit Function
119 ghuddy 326
 
121 hknight 327
   tempSTR = ""
119 ghuddy 328
 
121 hknight 329
   If pageIsEditable Then
330
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item'>"
331
   Else
332
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item' disabled>"
333
   End If
119 ghuddy 334
 
121 hknight 335
   If sAccepted = enumUNIT_TEST_ACCEPTED Then
336
      tempSTR = tempSTR  &"<option></option>"&_
337
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"' SELECTED>Yes</option>"&_
338
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 339
 
121 hknight 340
   ElseIf sAccepted = enumUNIT_TEST_NOTACCEPTED Then
341
      tempSTR = tempSTR  &"<option></option>"&_
342
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
343
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"' SELECTED>No</option>"
119 ghuddy 344
 
121 hknight 345
   Else
346
      tempSTR = tempSTR  &"<option SELECTED></option>"&_
347
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
348
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 349
 
121 hknight 350
   End If
119 ghuddy 351
 
121 hknight 352
   tempSTR = tempSTR & "</select>"
119 ghuddy 353
 
121 hknight 354
   FormatAccepted = tempSTR
119 ghuddy 355
 
356
End Function
357
'----------------------------------------------------------------------------------------------------------------------------------------
358
Function SQL_CodeReview ( nPv_id )
121 hknight 359
   SQL_CodeReview = _
360
   "   SELECT cr.date_of_review, cr.time_spent, cr.review_reason, cr.rteam_domain_expert,"&_
361
   "          cr.rteam_language_expert, cr.rteam_peer_developer, cr.rteam_author,"&_
362
   "          cr.files_reviewed, cr.review_results, cr.issues_raised,"&_
363
   "          cr.review_comments, cr.fnc_s_meets_functionality,"&_
364
   "          cr.fnc_c_meets_functionality"&_
365
   "     FROM code_reviews cr"&_
366
   "    WHERE cr.pv_id = "& nPv_id
119 ghuddy 367
End Function
368
'----------------------------------------------------------------------------------------------------------------------------------------
369
Function SQL_Build_Env ( nPv_id )
121 hknight 370
   SQL_Build_Env = _
371
   " SELECT pv.*, bm.BM_ID,"&_
372
   "         bm.BM_NAME,"&_
373
   "         pkgbinfo.BSA_ID"&_
374
   "     FROM PACKAGE_BUILD_INFO pkgbinfo,"&_
375
   "           BUILD_MACHINES bm,"&_
376
   "           PACKAGE_VERSIONS pv"&_
377
   "    WHERE pkgbinfo.BM_ID = bm.BM_ID"&_
378
   "    AND pv.PV_ID = pkgbinfo.PV_ID"&_
379
   "      AND pkgbinfo.PV_ID = "& nPv_id  &_
380
   "   ORDER BY UPPER(bm.BM_NAME) "
119 ghuddy 381
End Function
382
'----------------------------------------------------------------------------------------------------------------------------------------
383
Function DecodeOverallResult ( ByVal cCheck )
121 hknight 384
   If cCheck = "" OR IsNull(cCheck) Then cCheck = 0
119 ghuddy 385
 
121 hknight 386
   Select Case CInt( cCheck )
387
      Case enumCODE_REVIEW_ACCEPTED
388
         DecodeOverallResult = "Accepted"
389
      Case enumCODE_REVIEW_MINOR_UPDATES
390
         DecodeOverallResult = "Minor updates required"
391
      Case enumCODE_REVIEW_MAJOR_REWORK
392
         DecodeOverallResult = "Major rework required"
393
      Case Else
394
         DecodeOverallResult = ""
395
   End Select
119 ghuddy 396
 
397
End Function
398
'----------------------------------------------------------------------------------------------------------------------------------------
399
Function GetBuildType ( nBuildType )
400
 
121 hknight 401
   If (NOT IsNull(nBuildType)) OR (NOT nBuildType = "") Then
119 ghuddy 402
 
121 hknight 403
      If ( CInt(nBuildType) = enumDB_BUILD_TYPE_NONE ) Then
404
         GetBuildType = "Build type not specified!"
405
      Else
406
         GetBuildType = GetBuildTypeString( nBuildType )
407
      End If
119 ghuddy 408
 
121 hknight 409
   Else
410
      GetBuildType = GetBuildTypeString( nBuildType )
119 ghuddy 411
 
121 hknight 412
   End If
119 ghuddy 413
 
121 hknight 414
   '' Wrap around brackets
415
   GetBuildType = "("& GetBuildType &")"
119 ghuddy 416
 
417
End Function
418
'----------------------------------------------------------------------------------------------------------------------------------------
419
Sub GetPackageMetrics (NNpv_id, rsTemp)
420
 
121 hknight 421
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 422
 
121 hknight 423
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("PackageMetrics.sql"), cint(0))
119 ghuddy 424
 
121 hknight 425
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 426
 
427
End Sub
428
'----------------------------------------------------------------------------------------------------------------------------------------
429
Sub GetCodeReviewURLs (NNpv_id, rsTemp)
430
 
121 hknight 431
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 432
 
121 hknight 433
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("CodeReviewURLs.sql"), cint(0))
119 ghuddy 434
 
121 hknight 435
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 436
 
437
End Sub
438
'----------------------------------------------------------------------------------------------------------------------------------------
439
%>
440
<%
441
'------------------ MAIN LINE --------------------
442
'-------------------------------------------------
443
%>
444
<!-- PACKAGE INFORMATION --------------------------------------------------------------------------------------------------------------->
121 hknight 445
   <a name="PACKAGE_INFORMATION"></a>
446
   <table width="100%" border="0" cellspacing="1" cellpadding="2">
447
      <tr>
448
         <td class="body_colb"><img src="images/s_info.gif" width="22" height="22" hspace="4" border="0" align="absmiddle">Package Information</td>
449
         <td align="right" valign="bottom">
450
            <%If pageIsEditable Then%>
451
               <a href='javascript:;' onClick="MM_openBrWindow('_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','PackageInfo','resizable=yes,width=650,height=690')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
452
            <%End If%>
453
         </td>
454
      </tr>
455
   </table>
456
   <table width="100%" border="0" cellspacing="1" cellpadding="2">
457
      <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_Package_Information ( parPv_id ), cint(0))%>
458
      <tr>
459
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Deployable:</b></td>
460
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
461
            <%If IsNull( rsQry("is_deployable") ) Then%>No<%Else%>Yes<%End If%>
462
         </td>
463
      </tr>
464
      <tr>
465
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Label:</b></td>
466
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
467
            <%If IsNull( rsQry("pkg_label") ) Then%>
468
               <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
469
            <%End If%>
470
         </td>
471
      </tr>
472
      <tr>
473
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Source Path:</b> </td>
474
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
475
            <%If IsNull( rsQry("src_path") ) Then%>
476
               <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
477
            <%End If%>
478
         </td>
479
      </tr>
480
      <tr>
481
         <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Short Description:</b></td>
482
         <td witdh="100%" background="images/bg_form_lightgray.gif" class="sublbox_txt">
483
            <%If IsNull( rsQry("pv_description") ) Then%>
484
               <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pv_description") ) )%>
485
            <%End If%>
486
         </td>
487
      </tr>
488
      <tr>
489
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Package Overview:</b> </td>
490
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
491
            <%If IsNull( rsQry("pv_overview") ) Then%>
492
               <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pv_overview") ) )%>
493
            <%End If%>
494
         </td>
495
      </tr>
496
      <tr>
497
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Build Standard:</b>
498
            <%If pkgInfoHash.Item ("dlocked") <> "A" AND pkgInfoHash.Item ("dlocked") <> "Y" AND criticalSectionIsEditable Then%>
499
               <a href='javascript:;' onClick="MM_openBrWindow('_wform_build_standard.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','BuildStandard','resizable=yes,width=400,height=300')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
500
            <%Else%>
501
               <img src="images/i_edit_disable.gif" width="12" height="12" hspace="2" border="0" align="absmiddle">
502
            <%End If%>
503
         </td>
504
         <%
505
         If pkgInfoHash.Item ("bs_id") <> "" Then
506
            If pkgInfoHash.Item ("bs_id") = "1" Then
507
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>JATS<br></td>"
119 ghuddy 508
 
121 hknight 509
            ElseIf pkgInfoHash.Item ("bs_id") = "2" Then
510
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>ANT<br></td>"
119 ghuddy 511
 
121 hknight 512
            ElseIf pkgInfoHash.Item ("bs_id") = "3" Then
513
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>NONE<br></td>"
514
            End If
515
         Else
516
            Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'><span class='err_alert'>Required!</span><br></td>"
517
         End If
518
         %>
519
      </tr>
520
      <tr>
521
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Build Environment:</b> </td>
522
         <%
523
         '--- Get Build Env Details
524
         Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
525
         %>
119 ghuddy 526
 
121 hknight 527
         <%If rsTemp.RecordCount = 0 Then%>
528
            <%If rsQry("is_build_env_required") = enumDB_NO Then%>
529
               <td background="images/bg_form_lightgray.gif" class="sublbox_txt">Not Required.
530
            <%Else%>
531
               <td background="images/bg_form_lightgray.gif" class="sublbox_txt"><span class='err_alert'>Required!</span>
532
            <%End If%>
533
         <%Else%>
534
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
535
               <%If (IsNull( rsQry("is_build_env_required") ) AND (rsQry("comments") <> "Rippled Build.")) Then%>
536
                  <span class='err_alert'>Required!</span><%ElseIf rsQry("is_build_env_required") = enumDB_NO Then%>Not Required.
537
               <%End If%>
538
         <%End If%>
539
         <%If rsTemp.RecordCount > 0 Then%>
540
            <table width="40%"  border="0" cellspacing="3" cellpadding="2">
541
               <%
542
               currG1 = 0
543
               While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
544
                  'retVal = Lookup_Document ( rsQry("doc_num"), sDocTitle, NULL, NULL, NULL  )
545
               %>
546
                  <%If currG1 <> CInt(rsTemp("bm_id")) Then%>
547
                     <tr>
548
                        <td colspan="2" nowrap class="sublbox_txt" background="images/bg_form_lightbluedark.gif">
549
                           <%=rsTemp("bm_name")%>&nbsp;<%=GetBuildType( rsTemp("bsa_id") )%>
550
                        </td>
551
                     </tr>
552
                     <%currG1 = CInt(rsTemp("bm_id"))
553
                  End If
554
                  rsTemp.MoveNext
555
               WEnd
556
               %>
557
               <tr>
558
                   <td width="5%"></td>
559
                  <td width="95%"></td>
560
               </tr>
561
            </table>
562
         <%End If%>
563
         <!-- The following tag completes the scope of one of the 3 opening tags setup by vbscript code 30 or so lines earlier in this file -------->
564
         </td>
565
      </tr>
566
      <tr>
567
         <%
568
         ' Previous Label
569
         Dim rsQry2, rsQry3
570
         Set rsQry2 = OraDatabase.DbCreateDynaset( "SELECT * from package_versions where pv_id ="&parPv_id , cint(0))
571
         Set rsQry3 = OraDatabase.DbCreateDynaset( "SELECT pkg_label from package_versions where pv_id ="&rsQry2("last_pv_id") , cint(0))
572
         %>
573
         <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><strong>Previous Label:</strong><%=Quick_Help ( "PreviousLabel" )%></td>
574
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
575
            <%=NewLine_To_BR ( To_HTML( rsQry3("pkg_label") ) )%>
576
         </td>
577
      </tr>
119 ghuddy 578
 
121 hknight 579
      <%
580
      ' Codestriker and Beyond Compare differencing commands
581
      Dim oldLabel
582
      oldLabel = getOldLabel(pkgInfoHash.Item("pv_id"), pkgInfoHash.Item("last_pv_id"))
583
      %>
584
      <tr>
585
         <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
586
            <strong>Previous Significant Label:</strong><%=Quick_Help ( "PreviousSignificantLabel" )%>
587
         </td>
588
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
589
            <%=NewLine_To_BR ( To_HTML( oldLabel ) )%>
590
         </td>
591
      </tr>
592
      <tr>
593
         <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><strong>Codestriker command:
594
            </strong><%=Quick_Help ( "Codestriker" )%>
595
         </td>
596
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
597
            <%=NewLine_To_BR ( To_HTML( Codestriker_Command (oldLabel, pkgInfoHash.Item("pkg_label")) ) )%>
598
         </td>
599
      </tr>
600
      <tr>
601
         <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
602
            <strong>Beyond Compare command:</strong><%=Quick_Help ( "BeyondCompare" )%>
603
         </td>
604
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
605
            <%=NewLine_To_BR ( To_HTML( BeyondCompare_Command (oldLabel, pkgInfoHash.Item("pkg_label")) ) )%>
606
         </td>
607
      </tr>
119 ghuddy 608
 
121 hknight 609
      <%If pkgInfoHash.Item("is_deployable") = "Y" Then
610
         OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
611
         Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DeploymentManagerReference.sql"), cint(0))
612
         If rsTemp.RecordCount = 0 Then%>
613
            <tr>
614
               <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>SBOM Information:</b></td>
615
               <%If pkgInfoHash.Item("product_state") = 3 Then%>
616
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Deployment!</b></td>
617
               <%ElseIf pkgInfoHash.Item("product_state") = 2 Then%>
618
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Testing!</b></td>
619
               <%ElseIf pkgInfoHash.Item("product_state") = 1 Then%>
620
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Integration!</b></td>
621
               <%ElseIf pkgInfoHash.Item("product_state") = 5 Then%>
622
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Integration and Deployment!</b></td>
623
               <%ElseIf IsNull(pkgInfoHash.Item("product_state")) Then%>
624
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Information Unavailable!</b></td>
625
               <%End If%>
119 ghuddy 626
 
627
            </tr>
121 hknight 628
         <%Else%>
119 ghuddy 629
            <tr>
121 hknight 630
               <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>SBOM Added/Updated:</b></td>
631
               <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
632
                  <%=rsTemp("branch_name")%> - <%=rsTemp("bom_name")%><%=VBNewLine%><%=rsTemp("version")%>
633
               </td>
119 ghuddy 634
            </tr>
121 hknight 635
         <%End If
636
         rsTemp.Close()
637
         Set rsTemp = Nothing
638
         OraDatabase.Parameters.Remove "PV_ID"
639
      End If
640
      %>
641
   </table>
642
   <br>
643
<!-- PACKAGE METRICS -------------------------------------------------------------------------------------------------------------------->
644
   <%If Request("rtag_id") <> "" Then%>
645
      <%
646
      Call GetPackageMetrics( parPv_id, rsPkgMetrics )
647
      %>
648
      <fieldset class="fset"><a href="javascript:;" onclick="ToggleDisplay('divPkgMetrics','pkg_metrics_filler')" class="lbl_link">
649
         <legend class="body_colb">
650
            <img src="images/i_metrics.gif" width="20" height="24" hspace="4" border="0" align="absmiddle" alt="Click to display Package Metrics">Package Metrics...
651
         </legend></a>
652
         <div name="pkg_metrics_filler" id="pkg_metrics_filler" style="display:block;" class="div_filler">
653
            <a href="javascript:;" onclick="ToggleDisplay('divPkgMetrics','pkg_metrics_filler')" class="txt_linked">Show...</a>
654
         </div>
655
         <div name="divPkgMetrics" id="divPkgMetrics" style="display:none;">
656
            <a name="PACKAGE_METRICS"></a>
657
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
658
               <tr>
659
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" width="20%"><b>Autobuilt:</b></td>
660
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%If rsPkgMetrics("is_autobuildable") = "Y" Then%>Yes<%Else%>No<%End If%></td>
661
               </tr>
662
               <tr>
663
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Unit Tested:</b></td>
664
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%If rsPkgMetrics("unit_tested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
665
               </tr>
666
               <tr>
667
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Autotested:</b></td>
668
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%If rsPkgMetrics("autotested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
669
               </tr>
670
               <%If NOT IsNull(rsPkgMetrics("code_lines")) Then%>
671
               <tr>
672
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Code Lines:</b></td>
673
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("code_lines")%></td>
674
               </tr>
675
               <%End If%>
676
               <%If NOT IsNull(rsPkgMetrics("comment_lines")) Then%>
677
               <tr>
678
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Comment Lines:</b></td>
679
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("comment_lines")%></td>
680
               </tr>
681
               <%End If%>
682
               <%If NOT IsNull(rsPkgMetrics("blank_lines")) Then%>
683
               <tr>
684
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Blank Lines:</b></td>
685
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("blank_lines")%></td>
686
               </tr>
687
               <%End If%>
688
               <%If NOT IsNull(rsPkgMetrics("branches")) Then%>
689
               <tr>
690
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Number of Branches:</b></td>
691
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("branches")%></td>
692
               </tr>
693
               <%End If%>
694
               <%If NOT IsNull(rsPkgMetrics("branch_list")) Then%>
695
               <tr>
696
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Branch List:</b></td>
697
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("branch_list")%></td>
698
               </tr>
699
               <%End If%>
700
               <%If NOT IsNull(rsPkgMetrics("code_files")) Then%>
701
               <tr>
702
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Code Files:</b></td>
703
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("code_files")%></td>
704
               </tr>
705
               <%End If%>
706
               <%If NOT IsNull(rsPkgMetrics("ignored_files")) Then%>
707
               <tr>
708
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Ignored Files:</b></td>
709
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("ignored_files")%></td>
710
               </tr>
711
               <%End If%>
712
               <%If NOT IsNull(rsPkgMetrics("makefiles")) Then%>
713
               <tr>
714
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Makefiles:</b></td>
715
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("makefiles")%></td>
716
               </tr>
717
               <%End If%>
718
               <%If NOT IsNull(rsPkgMetrics("total_files")) Then%>
719
               <tr>
720
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Total Files:</b></td>
721
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("total_files")%></td>
722
               </tr>
723
               <%End If%>
724
               <%If NOT IsNull(rsPkgMetrics("directories")) Then%>
725
               <tr>
726
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Number of Directories:</b></td>
727
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("directories")%></td>
728
               </tr>
729
               <%End If%>
730
               <%If NOT IsNull(rsPkgMetrics("directory_depth")) Then%>
731
               <tr>
732
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Directory Depth:</b></td>
733
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("directory_depth")%></td>
734
               </tr>
735
               <%End If%>
736
               <%If NOT IsNull(rsPkgMetrics("created_stamp")) Then%>
737
               <tr>
738
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Metrics Collected:</b></td>
739
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("created_stamp")%></td>
740
               </tr>
741
               <%End If%>
742
            </table>
743
         </div>
744
      </fieldset>
745
      <br>
746
      <%
747
      rsPkgMetrics.Close()
748
      Set rsPkgMetrics = nothing
749
      %>
750
   <%End If%>
751
<!-- PRODUCTS AFFECTED BY CHANGE -------------------------------------------------------------------------------------------------------->
119 ghuddy 752
 
753
<!-- REASON FOR DEPRECATION/DEPENDANCY DEPRECATED ----------------------------------------------------------------------------------------------------------------->
121 hknight 754
   <%If pkgInfoHash.Item("deprecated_state") = 6 Then %>
119 ghuddy 755
 
121 hknight 756
      <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for deprecation</legend>
757
         <a name="REASON_FOR_DEPRECATION"></a>
758
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
759
            <tr>
760
               <td background="images/bg_form_lightgray.gif">
119 ghuddy 761
 
121 hknight 762
                  <%
763
                  Dim rsComment
764
                  Set rsComment = OraDatabase.DbCreateDynaset("SELECT * FROM DEPRECATED_PACKAGES WHERE RTAG_ID ="& Request("rtag_id") &" AND PKG_ID = "& pkgInfoHash.Item ("pkg_id") &"", cint(0))
765
                  If rsComment("comments") <> "" Then
766
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
767
                     Response.write "<tr>"
768
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR((  rsComment("comments") ) ) &"<br></td>"
769
                     Response.write "</tr>"
770
                     Response.write "</table>"
771
                  'Else
772
                  '   If FixedIssues ( parPv_id ) Then
773
                  '      Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
774
                  '   Else
775
                  '      Response.write "<span class='err_alert'>Required!</span><br>"
776
                  '   End If
777
                  End If
778
                  rsComment.Close()
779
                  Set rsComment = nothing
780
                  %>
781
               </td>
782
            </tr>
783
         </table>
784
      </fieldset>
785
      <br><br>
786
   <%End If%>
119 ghuddy 787
<!-- SBOM PRIORITY/CRITICALITY  --------------------------------------------------------------------------------------------------------->
121 hknight 788
   <%If NOT pageIsEditable AND pkgInfoHash.Item ("is_deployable") = "Y" Then%>
789
      <fieldset class="fset"><legend class="body_colb"><img src='icons/i_prod_sbom_priority.gif' hspace='4' border='0' align='absmiddle'>SBOM Priority</legend>
790
         <a name="SBOM_PRIORITY"></a>
791
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
792
            <tr>
793
               <td class="body_colb"></td>
794
               <td align="right" valign="bottom">
795
                  <%If (pkgInfoHash.Item ("dlocked") = "Y") Then%>
796
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_sbom_priority.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','SBOMPriority','resizable=yes,width=400,height=400')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
797
                  <%End If%>
798
               </td>
799
            </tr>
800
         </table>
801
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
802
            <tr>
803
               <td background="images/bg_form_lightgray.gif">
804
                  <%If pkgInfoHash.Item ("sbom_priority") <> "" Then%>
805
                     <table border='0' cellspacing='0' cellpadding='0'>
806
                        <tr>
807
                           <td class='sublbox_txt'>
808
                              <%
809
                              If pkgInfoHash.Item ("sbom_priority") = "C" Then
810
                                 Response.write "<b><font color='red'>Critical.</font></b>"
811
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "I" Then
812
                                 Response.write "<b>Important.</b>"
813
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "R" Then
814
                                 Response.write "Routine"
815
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "L" Then
816
                                 Response.write "Low"
817
                              End If
818
                              %>
819
                           </td>
820
                        </tr>
821
                     </table>
822
                  <%Else%>
823
                     <span class='err_alert'>Required!</span><br>
824
                  <%End If%>
825
               </td>
826
            </tr>
827
         </table>
828
      </fieldset>
829
      <br><br>
830
   <%End If%>
119 ghuddy 831
<!-- CHANGE TYPE  ----------------------------------------------------------------------------------------------------------------------->
121 hknight 832
   <%If pkgInfoHash.Item ("build_type") = "A" Then%>
833
      <fieldset class="fset"><legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Change Type</legend>
834
         <a name="CHANGE_TYPE"></a>
835
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
836
            <tr>
837
               <td class="body_colb"></td>
838
               <td align="right" valign="bottom">
839
                  <%If (pkgInfoHash.Item ("dlocked") <> "A")  AND (pkgInfoHash.Item ("dlocked") <> "Y") AND criticalSectionIsEditable Then%>
840
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_change_type.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','ChangeType','resizable=yes,width=530,height=290')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
841
                  <%End If%>
842
               </td>
843
            </tr>
844
         </table>
845
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
846
            <tr>
847
               <td background="images/bg_form_lightgray.gif">
848
                  <%
849
                  If pkgInfoHash.Item ("change_type") <> "" Then
850
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
851
                     Response.write "<tr>"
852
                     If pkgInfoHash.Item ("change_type") = "M" Then
853
                        Response.write "<td class='sublbox_txt'>Major Change.<br></td>"
854
                     ElseIf pkgInfoHash.Item ("change_type") = "N" Then
855
                        Response.write "<td class='sublbox_txt'>Minor Change.<br></td>"
856
                     ElseIf pkgInfoHash.Item ("change_type") = "P" Then
857
                        Response.write "<td class='sublbox_txt'>Patch Change.<br></td>"
858
                     End If
859
                     Response.write "</tr>"
860
                     Response.write "</table>"
861
                  Else
862
                     Response.write "<span class='err_alert'>Required!</span><br>"
863
                  End If
864
                  %>
865
               </td>
866
            </tr>
867
         </table>
868
      </fieldset>
869
      <br><br>
870
   <%End If%>
119 ghuddy 871
<!-- RIPPLE PROPERTIES  ----------------------------------------------------------------------------------------------------------------------->
121 hknight 872
   <%If IsNull(pkgInfoHash.Item ("is_patch"))  Then%>
873
      <fieldset class="fset"><legend class="body_colb"><img src='icons/i_pkg_ripple_type.gif' hspace='4' border='0' align='absmiddle' height='25' width='25'>Ripple Properties</legend>
874
         <a name="RIPPLE_PROPERTIES"></a>
875
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
876
            <tr>
877
               <td class="body_colb"></td>
878
               <td align="right" valign="bottom">
879
                  <%If (objAccessControl.IsVisible( "RipplePackage" ) AND pageIsEditable) OR criticalSectionIsEditable Then%>
880
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_ripple_properties.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','RippleType','resizable=yes,width=1000,height=230')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
881
                  <%End If%>
882
               </td>
883
            </tr>
884
         </table>
885
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
886
            <tr>
887
               <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
888
                  <strong>Build Inclusion</strong>
889
                  <%=Quick_Help ( "ripple_build" )%>
890
               </td>
891
               <%If Request("rtag_id") <> "" Then
892
                  Dim rsQryRipple
893
                  Set rsQryRipple = OraDatabase.DbCreateDynaset( "SELECT * FROM DO_NOT_RIPPLE WHERE RTAG_ID ="& Request("rtag_id") &"AND PV_ID ="&Request("pv_id"), cint(0))
894
                     If rsQryRipple.RecordCount = 0  Then %>
895
                     <td background="images/bg_form_lightgray.gif" class="sublbox_txt">Yes</td>
896
                  <%Else%>
897
                     <td background="images/bg_form_lightgray.gif" class="sublbox_txt">No</td>
898
                  <%End If%>
899
                  <%rsQryRipple.Close()
900
                  Set rsQryRipple = nothing
901
               End If%>
902
            </tr>
903
            <tr>
904
               <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
905
                  <strong>Ripple Type</strong>
906
                  <%=Quick_Help ( "ripple_type" )%>
907
               </td>
908
               <td width="80%" background="images/bg_form_lightgray.gif">
909
                  <p>
910
                     <%
911
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
912
                     Response.write "<tr>"
913
                     Response.write "<td class='sublbox_txt'>"
914
                     If pkgInfoHash.Item ("ripple_field") = "M" Then
915
                        Response.write "Major Number."
916
                     ElseIf pkgInfoHash.Item ("ripple_field") = "m" Then
917
                        Response.write "Minor Number."
918
                     ElseIf pkgInfoHash.Item ("ripple_field") = "p" Then
919
                        Response.write "Patch Number."
920
                     ElseIf pkgInfoHash.Item ("ripple_field") = "b" Then
921
                        Response.write "Build Number."
922
                     ElseIf pkgInfoHash.Item ("ripple_field") = "z" Then
923
                        Response.write "Do not ripple build"
924
                     Else
925
                        Response.write "<span class='err_alert'>Required!</span>"
926
                     End If
927
                     Response.Write "<br></td>"
928
                     Response.write "</tr>"
929
                     Response.write "</table>"
930
                     %>
931
                  </p>
932
               </td>
933
            </tr>
934
         </table>
935
      </fieldset>
936
      <br>
937
      <br>
938
   <%End If%>
119 ghuddy 939
<!-- REASON FOR RELEASE ----------------------------------------------------------------------------------------------------------------->
121 hknight 940
   <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for this version</legend>
941
      <a name="REASON_FOR_THIS_RELEASE"></a>
942
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
943
         <tr>
944
            <td align="right" valign="bottom">
945
               <%If pageIsEditable Then%>
946
                  <form name="updateversions" method="post" action="_update_versions.asp">
947
                     <input type="submit" name="btn" value="Update Dependencies" class="form_btn" onClick="return confirmAction('Current comments would be deleted. Do you wish to continue?')">
948
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_reason_for_version.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','ReasonForRelease','resizable=yes,width=500,height=270')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
949
                     <input name="pv_id" type="hidden" value="<%=parPv_id%>">
950
                     <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
951
                  </form>
952
               <%End If%>
953
            </td>
954
         </tr>
955
      </table>
119 ghuddy 956
 
121 hknight 957
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
958
         <tr>
959
            <td background="images/bg_form_lightgray.gif">
960
            <%If pkgInfoHash.Item ("comments") <> "" Then%>
961
               <table border='0' cellspacing='0' cellpadding='0'>
962
                  <tr>
963
                     <td class='sublbox_txt'> <%Response.Write( NewLine_To_BR(pkgInfoHash.Item("comments")) )%><br></td>
964
                  </tr>
965
               </table>
966
            <%ElseIf FixedIssues ( parPv_id ) Then%>
967
               <span class='sublbox_txt'>Not specified.</span><br>
968
            <%Else%>
969
               <span class='err_alert'>Required!</span><br>
970
            <%End If%>
971
            </td>
972
         </tr>
973
      </table>
974
   </fieldset>
975
   <br><br>
119 ghuddy 976
<!-- REASON FOR NON_RIPPLE RELEASE ----------------------------------------------------------------------------------------------------------------->
121 hknight 977
   <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then%>
119 ghuddy 978
 
121 hknight 979
      <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for last non-ripple build</legend>
119 ghuddy 980
 
121 hknight 981
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
982
            <tr>
983
               <td background="images/bg_form_lightgray.gif">
984
                  <%
985
                  'Dim rsQry
986
                  Call LastPvId(pkgInfoHash.Item ("pv_id"))
119 ghuddy 987
 
121 hknight 988
                  While rsQry("comments") = "Rippled Build."
989
                     Call LastPvId(rsQry("last_pv_id"))
990
                  Wend
119 ghuddy 991
 
121 hknight 992
                  If pkgInfoHash.Item ("comments") <> "" Then
993
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
994
                     Response.write "<tr>"
995
                     Response.write "<td class='sublbox_txt'><b>Package Version:</b> <b>"& NewLine_To_BR(( rsQry ("pkg_version") ) ) &"</b><br></td>"
996
                     Response.write "</tr>"
997
                     Response.write "<tr>"
998
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR(( rsQry ("comments") ) ) &"<br></td>"
999
                     Response.write "</tr>"
119 ghuddy 1000
 
121 hknight 1001
                     Response.write "</table>"%>
119 ghuddy 1002
 
121 hknight 1003
                     <table width="100%" border="0" cellspacing="1" cellpadding="2">
1004
                        <tr>
1005
                           <td valign="top" class="sublbox_txt"><b>Fixed Issues For Last Non-Ripple Build</b></td>
1006
                           <td align="right" valign="top">
1007
                              <%If pageIsEditable Then%>
1008
                                 <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">Import Fixed Issues from ClearQuest<img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1009
                              <%End If%>
1010
                           </td>
1011
                        </tr>
1012
                     </table>
1013
                     <%Call Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1014
                     If (retVal > 0) Then
1015
                        retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1016
                        If retVal = 0 Then%>
1017
                           <table width="100%" border="0" cellspacing="1" cellpadding="3">
1018
                              <tr>
1019
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field" align="center">Fixed</td>
1020
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Id&nbsp;</td>
1021
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;DB&nbsp;</td>
1022
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1023
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Type&nbsp;</td>
1024
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Priority</td>
1025
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Status</td>
1026
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Note</td>
1027
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">&nbsp;</td>
1028
                              </tr>
1029
                              <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1030
                                 <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1031
                                    <tr>
1032
                                       <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
1033
                                       <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked"><%=rsCQ("iss_num")%></a></td>
1034
                                       <td background="images/bg_form_lightgray.gif" class="form_item"><%If rsCQ("iss_db") = enumCLEARQUEST_DEVI_ID Then%>DEVI<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_TDSE_ID Then%>TDSE<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_VT5DM_ID Then%>VT5DM<%Else%>VTSUP<%End If%></td>
1035
                                       <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1036
                                       <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issue_type")%></td>
1037
                                       <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1038
                                       <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("Status")%></td>
1039
                                       <%If sectionIsEditable Then%>
1040
                                           <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1041
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></a></td>
1042
                                          <%Else%>
1043
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note"></a></td>
1044
                                          <%End If%>
1045
                                       <%Else%>
1046
                                          <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1047
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></td>
1048
                                          <%Else%>
1049
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_off.gif" width="11" height="12" border="0"></td>
1050
                                          <%End If%>
1051
                                       <%End If%>
1052
                                       <%If NOT pageIsEditable Then%>
1053
                                          <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
1054
                                       <%Else%>
1055
                                          <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list"></a></td>
1056
                                       <%End If%>
1057
                                    </tr>
1058
                                    <%rsCQ.MoveNext
1059
                                 WEnd
1060
                                 rsCQ.Close()%>
1061
                              <%Else%>
1062
                                 <tr>
1063
                                    <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1064
                                    <td background="images/bg_form_lightgray.gif" nowrap></td>
1065
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1066
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1067
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1068
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1069
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1070
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1071
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
1072
                                 </tr>
1073
                              <%End If%>
1074
                           </table>
1075
                        <%End If%>
1076
                        <%If retVal <> 0 Then Response.write enumMSSQL_ERROR
1077
                     End If
1078
                  Else
1079
                     If FixedIssues ( parPv_id ) Then
1080
                        Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
1081
                     Else
1082
                        Response.write "<span class='err_alert'>Required!</span><br>"
1083
                     End If
1084
                  End If
119 ghuddy 1085
 
121 hknight 1086
                  rsQry.Close()
1087
                  Set rsQry = nothing
1088
                  %>
1089
               </td>
1090
            </tr>
1091
         </table>
1092
      </fieldset>
1093
      <br><br>
1094
   <%End If%>
1095
<!-- FIXED ISSUES ----------------------------------------------------------------------------------------------------------------------->
1096
   <fieldset class="fset"><legend class="body_colb"><img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align="absmiddle">Issues</legend>
1097
      <p class="body_colb"><a name="ISSUES"></a></p>
1098
      <table width="100%" border="0" cellpadding="2" cellspacing="1">
1099
         <tr>
1100
            <td valign="top" class="body_colb">JIRA Issues</td>
1101
            <td align="right" valign="top">
1102
               <%If pageIsEditable Then%>
1103
                  <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_jira_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">Import JIRA issues <img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1104
               <%End If%>
1105
            </td>
119 ghuddy 1106
 
121 hknight 1107
            <%retVal = Get_JIRA_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1108
            If (retVal > 0) Then
1109
               retVal = Get_JIRA_Issues ( SQLstr, rsCQ )
1110
               If (retVal = 0 And rsCQ.RecordCount > 0) Then%>
1111
 
1112
                  <table width="100%" border="0" cellspacing="1" cellpadding="3">
1113
                     <tr>
1114
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field" align="center">Fixed</td>
1115
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Id&nbsp;</td>
1116
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;DB&nbsp;</td>
1117
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1118
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Type&nbsp;</td>
1119
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Priority</td>
1120
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Status</td>
1121
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Note</td>
1122
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">&nbsp;</td>
1123
                     </tr>
1124
                     <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1125
                        <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1126
                           <tr>
1127
                              <%If rsCQ("resolution") = 1 Then %>
1128
                                 <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
1129
                              <%Else%>
1130
                                 <td align="center" nowrap background="images/bg_form_lightbluedark.gif"></td>
1131
                              <%End If%>
1132
                              <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="http://auperajir01:8080/browse/<%=rsCQ("iss_num")%>" target="_blank" class="txt_linked"><%=rsCQ("iss_num")%></a></td>
1133
                              <td background="images/bg_form_lightgray.gif" class="form_item">JIRA</td>
1134
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1135
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issuetype")%></td>
1136
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1137
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("state")%></td>
1138
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"></td>
1139
                              <%If NOT pageIsEditable Then%>
1140
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
1141
                              <%Else%>
1142
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="_remove_jira_issue.asp?iss_link=<%=rsCQ("iss_num")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list"></a></td>
1143
                              <%End If%>
1144
                           </tr>
1145
                           <%rsCQ.MoveNext
1146
                        WEnd
1147
                        rsCQ.Close()%>
1148
                     <%Else%>
1149
                        <tr>
119 ghuddy 1150
                           <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1151
                           <td background="images/bg_form_lightgray.gif" nowrap></td>
1152
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1153
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1154
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1155
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1156
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1157
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
119 ghuddy 1158
                           <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1159
                        </tr>
1160
                     <%End If%>
119 ghuddy 1161
 
121 hknight 1162
                  </table>
1163
               <%End If%>
1164
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1165
            <%End If%>
119 ghuddy 1166
 
121 hknight 1167
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1168
               <tr>
1169
                  <td valign="top" class="body_colb">Fixed Issues</td>
1170
                  <td align="right" valign="top">
1171
                     <%If pageIsEditable Then%>
1172
                        <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">Import Fixed Issues from ClearQuest<img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1173
                     <%End If%>
1174
                  </td>
1175
               </tr>
1176
            </table>
119 ghuddy 1177
 
121 hknight 1178
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1179
            If (retVal > 0) Then
1180
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1181
               If retVal = 0 Then%>
1182
                  <table width="100%" border="0" cellspacing="1" cellpadding="3">
1183
                     <tr>
1184
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field" align="center">Fixed</td>
1185
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Id&nbsp;</td>
1186
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;DB&nbsp;</td>
1187
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1188
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Type&nbsp;</td>
1189
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Priority</td>
1190
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Status</td>
1191
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Note</td>
1192
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">&nbsp;</td>
1193
                     </tr>
1194
                     <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1195
                        <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1196
                           <tr>
1197
                              <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
1198
                              <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked"><%=rsCQ("iss_num")%></a></td>
1199
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%If rsCQ("iss_db") = enumCLEARQUEST_DEVI_ID Then%>DEVI<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_TDSE_ID Then%>TDSE<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_VT5DM_ID Then%>VT5DM<%Else%>VTSUP<%End If%></td>
1200
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1201
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issue_type")%></td>
1202
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1203
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("Status")%></td>
1204
                              <%If sectionIsEditable AND pageIsEditable Then%>
1205
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1206
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></a></td>
1207
                                 <%Else%>
1208
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note"></a></td>
1209
                                 <%End If%>
1210
                              <%Else%>
1211
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1212
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></td>
1213
                                 <%Else%>
1214
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_off.gif" width="11" height="12" border="0"></td>
1215
                                 <%End If%>
1216
                              <%End If%>
1217
                              <%If NOT pageIsEditable Then%>
1218
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
1219
                              <%Else%>
1220
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list"></a></td>
1221
                              <%End If%>
1222
                           </tr>
1223
                           <%rsCQ.MoveNext
1224
                        WEnd
1225
                        rsCQ.Close()%>
1226
                     <%Else%>
1227
                        <tr>
119 ghuddy 1228
                           <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1229
                           <td background="images/bg_form_lightgray.gif" nowrap></td>
1230
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1231
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1232
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1233
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1234
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1235
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
119 ghuddy 1236
                           <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1237
                        </tr>
1238
                     <%End If%>
119 ghuddy 1239
 
121 hknight 1240
                  </table>
1241
               <%End If%>
1242
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1243
            <%End If%>
119 ghuddy 1244
 
121 hknight 1245
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1246
               <tr>
1247
                  <td valign="top" class="body_colb">Outstanding Issues</td>
1248
                  <td align="right" valign="top">
1249
                     <%If pageIsEditable Then%>
1250
                        <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">Import Outstanding Issues from ClearQuest<img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1251
                     <%End If%>
1252
                  </td>
1253
               </tr>
1254
            </table>
119 ghuddy 1255
 
121 hknight 1256
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_IMPORTED )
1257
            If (retVal > 0) Then
1258
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1259
               If retVal = 0 Then%>
1260
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
1261
                     <form name="fixedissues" method="get" action="_update_issues_state.asp">
1262
                        <tr>
1263
                           <%If pageIsEditable Then%>
1264
                              <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field" align="center">Fixed</td>
1265
                           <%End If%>
119 ghuddy 1266
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue&nbsp;Id&nbsp;</td>
121 hknight 1267
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue DB&nbsp;</td>
119 ghuddy 1268
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
121 hknight 1269
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue&nbsp;Type&nbsp;</td>
119 ghuddy 1270
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Priority</td>
121 hknight 1271
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Status</td>
1272
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Note</td>
119 ghuddy 1273
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">&nbsp;</td>
121 hknight 1274
                        </tr>
1275
                        <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1276
                           <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1277
                              <tr>
1278
                                 <%If pageIsEditable Then%>
1279
                                    <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><input type="checkbox" name="FRfixed" value="<%=rsCQ("iss_db") &"."& rsCQ("iss_id")%>"></td>
1280
                                 <%End If%>
1281
                                 <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked"><%=rsCQ("iss_num")%></a></td>
1282
                                 <td background="images/bg_form_lightgray.gif" class="form_item"><%If rsCQ("iss_db") = enumCLEARQUEST_DEVI_ID Then%>DEVI<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_TDSE_ID Then%>TDSE<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_VT5DM_ID Then%>VT5DM<%Else%>VTSUP<%End If%></td>
1283
                                 <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1284
                                 <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issue_type")%></td>
1285
                                 <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1286
                                 <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("Status")%></td>
1287
                                 <%If sectionIsEditable AND pageIsEditable Then%>
1288
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1289
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></a></td>
1290
                                    <%Else%>
1291
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_off.gif" width="11" height="12" border="0" alt="Add Note"></a></td>
1292
                                    <%End If%>
1293
                                 <%Else%>
1294
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1295
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></td>
1296
                                    <%Else%>
1297
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_off.gif" width="11" height="12" border="0"></td>
1298
                                    <%End If%>
1299
                                 <%End If%>
1300
                                 <%If NOT pageIsEditable Then%>
1301
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
1302
                                 <%Else%>
1303
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list"></a></td>
1304
                                 <%End If%>
1305
                              </tr>
1306
                              <%rsCQ.MoveNext
1307
                           WEnd
1308
                           rsCQ.Close()%>
1309
                           <%If pageIsEditable Then%>
1310
                              <tr>
1311
                                 <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><input type="submit" name="Apply" value="Apply" class="form_btn"></td>
1312
                                 <td></td>
1313
                                 <td></td>
1314
                                 <td></td>
1315
                                 <td></td>
1316
                                 <td></td>
1317
                                 <td></td>
1318
                                 <td></td>
1319
                                 <td></td>
1320
                              </tr>
1321
                           <%End If%>
1322
                        <%Else%>
1323
                           <tr>
1324
                              <%If pageIsEditable Then%>
1325
                                 <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1326
                              <%End If%>
1327
                              <td background="images/bg_form_lightgray.gif" nowrap></td>
1328
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1329
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1330
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1331
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1332
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1333
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1334
                              <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
1335
                           </tr>
1336
                        <%End If%>
1337
                        <input name="pv_id" type="hidden" value="<%=parPv_id%>">
1338
                        <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
1339
                     </form>
1340
                  </table>
1341
               <%End If%>
1342
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1343
            <%End If%>
1344
         </tr>
1345
      </table>
1346
   </fieldset>
1347
   <br><br>
119 ghuddy 1348
<!-- DEPENDENCY ISSUES (NOT FOR PATCHES!) ------------------------------------------------------------------------------------------------------->
1349
 
121 hknight 1350
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
1351
      <fieldset class="fset"><legend class="body_colb"><img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align="absmiddle">Dependency Issues</legend>
1352
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
119 ghuddy 1353
 
121 hknight 1354
            <%Call Get_Package_Issues ( parPv_id, SQLstr, NULL, NULL, NULL )
1355
            If (retVal > 0) Then
1356
               retVal = Get_Dependency_CQ_Issues ( SQLstr, rsCQ, depIssDict, issArr )
1357
               If retVal = 0 Then%>
1358
                  <%
1359
                  currG1 = 0
1360
                  G1_template = _
1361
                  "<tr>"&_
1362
                  "  <td colspan='7'><img src='images/spacer.gif' width='2' height='2'></td>"&_
1363
                  "</tr>"&_
1364
                  "<tr>"&_
1365
                  "  <td colspan='7' background='images/bg_form_lightbluedark.gif' class='form_item'>/*DEP_NAME_VERSION*//*REASONS*/</td>"&_
1366
                  "</tr>"
1367
                  Set rsDepIss = OraDatabase.DbCreateDynaset( SQL_Dependency_Issues( parPv_id ), cint(0))
1368
                  %>
1369
                  <%If ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF)) Then%>
1370
                     <%While ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF))%>
1371
                        <%
1372
                        iss_db_id = Cstr(rsDepIss("iss_db") &"."& rsDepIss("iss_id"))
1373
                        G1_style = Replace(G1_template, "/*DEP_NAME_VERSION*/", "<SPAN class='envolPkg'><b>"& rsDepIss("pkg_name") &" "& rsDepIss("pkg_version") &"</b></SPAN>")
1374
                        If IsNull(rsDepIss("iss_id")) Then
1375
                           If IsNull(rsDepIss("reasons")) Then
1376
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>Reason for this version is not specified.")
1377
                           Else
1378
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
1379
                           End If
1380
                        Else
1381
                           If IsNull(rsDepIss("reasons")) Then
1382
                              G1_style = Replace(G1_style, "/*REASONS*/", "")
1383
                           Else
1384
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
1385
                           End If
1386
                        End If
119 ghuddy 1387
 
121 hknight 1388
                        Call Group_By ( rsDepIss("pv_id"), G1_style, currG1 )
1389
                        If NOT IsNull(rsDepIss("iss_id")) Then
1390
                           If rsDepIss("pv_id") <> currG1 Then
1391
                              currG1 = rsDepIss("pv_id")%>
1392
                              <tr>
1393
                                 <td background='images/bg_form_lightbluedark.gif' nowrap width='1%' class='form_field' align='center'></td>
1394
                                 <td background='images/bg_form_lightbluedark.gif' nowrap width='1%' class='form_field' align='center'>Fixed</td>
1395
                                 <td background='images/bg_form_lightbluedark.gif' nowrap width='1%' class='form_field'>Issue&nbsp;Id&nbsp;</td>
1396
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue DB&nbsp;</td>
1397
                                 <td background='images/bg_form_lightbluedark.gif' nowrap width='100%' class='form_field'>Summary</td>
1398
                                 <td background='images/bg_form_lightbluedark.gif' nowrap width='1%' class='form_field'>Issue&nbsp;Type&nbsp;</td>
1399
                                 <td background='images/bg_form_lightbluedark.gif' nowrap width='1%' class='form_field'>Priority</td>
1400
                              </tr>
1401
                           <%End If%>
1402
                           <tr>
1403
                              <td background="images/bg_form_lightbluedark.gif"></td>
1404
                              <td align="center" nowrap background="images/bg_form_lightgray.gif">
1405
                                 <%If CInt(rsDepIss("iss_state")) = enumISSUES_STATE_FIXED Then%>
1406
                                    <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
1407
                                 <%Else%>
1408
                                    <img src="images/spacer.gif" width="7" height="7" vspace="2">
1409
                                 <%End If%>
1410
                              </td>
1411
                              <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=asDepIss( iss_db_id, enumLoc_iss_db )%>&iss_id=<%=asDepIss( iss_db_id, enumLoc_iss_id )%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked"><%=asDepIss( iss_db_id, enumLoc_iss_num )%></a></td>
1412
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%If asDepIss( iss_db_id, enumLoc_iss_db ) = enumCLEARQUEST_DEVI_ID Then%>DEVI<%ElseIf asDepIss( iss_db_id, enumLoc_iss_db ) = enumCLEARQUEST_TDSE_ID Then%>TDSE<%ElseIf asDepIss( iss_db_id, enumLoc_iss_db ) = enumCLEARQUEST_VT5DM_ID Then%>VT5DM<%Else%>VTSUP<%End If%></td>
1413
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%=asDepIss( iss_db_id, enumLoc_summary)%></td>
1414
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=asDepIss( iss_db_id, enumLoc_issue_type)%></td>
1415
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=asDepIss( iss_db_id, enumLoc_priority)%></td>
1416
                           </tr>
1417
                        <%End If%>
1418
                        <%rsDepIss.MoveNext
1419
                     WEnd
1420
                     rsDepIss.Close()
1421
                     Set rsDepIss = nothing%>
1422
                  <%Else%>
1423
                     <tr>
1424
                        <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1425
                        <td background="images/bg_form_lightgray.gif"></td>
1426
                        <td background="images/bg_form_lightgray.gif"></td>
1427
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1428
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1429
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1430
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1431
                     </tr>
1432
                  <%End If%>
1433
               <%End If%>
1434
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1435
            <%End If%>
1436
         </table>
1437
      </fieldset>
1438
      <br><br>
1439
   <%End If%>
119 ghuddy 1440
<!-- UNIT TESTS --------------------------------------------------------------------------------------------------------------------->
121 hknight 1441
   <%
1442
   Dim testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound
1443
   Call CheckUnitTestsState ( parPv_id, testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound  )
1444
   Set rsQry = OraDatabase.DbCreateDynaset( SQL_Unit_Tests ( parPv_id ), cint(0))
1445
   %>
1446
   <fieldset class="fset"><legend class="body_colb"><img src="images/i_unit_test.gif" width="18" height="25" hspace="4" border="0" align="absmiddle" alt="">Unit Tests
1447
      <%If testCheckMSG_ID = 0 Then%>
1448
         &nbsp;&nbsp;<%=testCheckMSG%>
1449
      <%End If%></legend>
1450
      <a name="UNIT_TESTS"></a>
1451
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1452
         <tr>
1453
            <td align="right" valign="bottom">
1454
               <%If pageIsEditable Then%>
1455
                  <a href='javascript:;' onClick="MM_openBrWindow('_wform_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','UnitTest','resizable=yes,width=700,height=550')" class="txt_linked">New Test<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle" alt="Add new test."></a>
1456
                  <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = 0)  Then%>
1457
                     <a href='_not_done_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&notdone=Y' class='txt_linked'>Click here if Not Done!<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle" alt="Add new test."></a>
1458
                  <%End If%>
1459
               <%End If%>
1460
            </td>
1461
         </tr>
1462
      </table>
1463
      <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = -1) Then%>
1464
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1465
            <tr>
1466
               <td background="images/bg_form_lightgray.gif" class="form_item">
1467
                  <%Call DisplayInfo ( "UNIT_TEST_NOT_DONE", 300 )%>
1468
                  <span class="rep_small">Last Modified: <%=testCheckMSG%></span><br>
1469
                  <%=NewLine_To_BR( To_HTML ( testCheckNote ) )%>
1470
               </td>
1471
            </tr>
1472
         </table>
1473
      <%End If%>
119 ghuddy 1474
 
121 hknight 1475
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1476
         <form name="review" method="get" action="_update_unit_test_accepted_state.asp">
1477
            <tr>
1478
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" valign="middle">&nbsp;Test Type&nbsp;</td>
1479
               <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" valign="middle">&nbsp;Test Summary&nbsp;</td>
1480
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">Test<br>Completed</td>
1481
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">&nbsp;Passed<br># / Total&nbsp;</td>
1482
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">&nbsp;Results&nbsp;</td>
1483
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">&nbsp;Accepted&nbsp;</td>
1484
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">Review<br>Completed</td>
1485
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" valign="middle">Comments /<br>Issue#</td>
1486
               <td width="1%" background="images/bg_form_lightbluedark.gif"></td>
1487
            </tr>
1488
            <%While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) )%>
1489
               <tr>
1490
                  <%If NOT pageIsEditable Then%>
1491
                     <%If NOT IsNull(rsQry("test_id")) AND ( scriptName = "fixed_issues.asp") Then%>
1492
                        <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onClick="MM_openBrWindow('_wform_update_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','UpdateUT','resizable=yes,width=700,height=550')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align="absmiddle" border="0"><%=rsQry("test_type_name")%></a></td>
1493
                     <%Else%>
1494
                        <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><img src="images/i_test.gif" width="16" height="16" hspace="3" align="absmiddle"><%=rsQry("test_type_name")%></td>
1495
                     <%End If%>
1496
                  <%Else%>
1497
                     <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onClick="MM_openBrWindow('<%If Not IsNull(rsQry("test_id")) Then%>_wform_update_unit_test.asp<%Else%>_wform_unit_test.asp<%End If%>?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&test_type_id=<%=rsQry("test_type_id")%>','UpdateUT','resizable=yes,width=700,height=550')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align="absmiddle" border="0"><%=rsQry("test_type_name")%></a></td>
1498
                  <%End If%>
1499
                  <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=NewLine_To_BR( To_HTML( rsQry("test_summary") ))%></td>
1500
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%If ( NOT IsNull(rsQry("tester")) ) Then%><%=EuroDate ( rsQry("completion_date") )%><br>by <a href="mailto:<%=rsQry("tester_email")%>" class="txt_linked"><%=rsQry("tester")%></a><%End If%></td>
1501
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top" align="center"><%=rsQry("numof_test")%></td>
119 ghuddy 1502
 
121 hknight 1503
                  <%If CInt(rsQry("test_type_id")) = enumTEST_TYPE_AUTOMATIC Then%>
1504
                     <td background="images/bg_form_lightgray.gif" class="form_item" align="center" valign="top">
1505
                        <%If NOT IsNull( rsQry("results_url") ) Then%>
1506
                           <%If InStr( rsQry("results_url"), "http://" ) = 1 Then%>
1507
                              <a href="<%=rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1508
                           <%Else%>
1509
                              <%If pkgInfoHash.Item ("base_view_id") = CStr(enumBASE_VIEW_PRODUCTS) Then%>
1510
                                 <a href="<%=deploy_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") & rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1511
                              <%Else%>
1512
                                 <a href="<%=dpkg_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") & rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1513
                              <%End If%>
1514
                           <%End If%>
1515
                        <%End If%>
1516
                     </td>
1517
                  <%Else%>
1518
                     <td background="images/bg_form_lightgray.gif" class="form_item"  align="center" valign="top">
1519
                        <%If NOT IsNull( rsQry("results_attachment_name") ) Then%>
1520
                           <%If pkgInfoHash.Item ("dlocked") = "Y" Then%>
1521
                              <%If pkgInfoHash.Item ("base_view_id") = CStr(enumBASE_VIEW_PRODUCTS) Then%>
1522
                                 <a href="<%=deploy_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1523
                              <%Else%>
1524
                                 <a href="<%=dpkg_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1525
                              <%End If%>
119 ghuddy 1526
 
121 hknight 1527
                           <%Else%>
1528
                              <a href="<%=TEMP_FOLDER &"/"& pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1529
                           <%End If%>
1530
                        <%End If%>
1531
                     </td>
1532
                  <%End If%>
119 ghuddy 1533
 
121 hknight 1534
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top" align="center"><%=FormatAccepted( rsQry("test_accepted"), rsQry("test_id") )%></td>
1535
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%If NOT IsNull(rsQry("reviewee")) Then%><%=EuroDate ( rsQry("acceptance_date") )%><br>by <a href="mailto:<%=rsQry("reviewee_email")%>" class="txt_linked"><%=rsQry("reviewee")%></a><%End If%></td>
1536
                  <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=NewLine_To_BR( To_HTML( rsQry("review_comments") ))%></td>
119 ghuddy 1537
 
121 hknight 1538
                  <%If NOT pageIsEditable Then%>
1539
                     <td background="images/bg_form_lightgray.gif" valign="top"></td>
1540
                  <%Else%>
1541
                     <td background="images/bg_form_lightgray.gif" valign="top"><%If NOT IsNull(rsQry("test_id")) Then%><a href="_remove_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this unit test');"><img src="images/i_delete.gif" alt="Remove this test." width="13" height="12" hspace="3" border="0"></a><%End If%></td>
1542
                  <%End If%>
1543
               </tr>
1544
               <%rsQry.MoveNext
1545
            WEnd%>
1546
            <tr>
1547
               <td class="form_field"></td>
1548
               <td class="form_field"></td>
1549
               <td class="form_field"></td>
1550
               <td class="form_field"></td>
1551
               <td class="form_field"></td>
1552
               <td class="form_field" align="center"><%If (testCheckTestsFound) AND (testCheckMSG_ID = 0) AND ( scriptName = "fixed_issues.asp" ) AND pageIsEditable Then%><input type="submit" name="Apply" value="Apply" class="form_btn"><%End If%></td>
1553
               <td class="form_field"></td>
1554
               <td class="form_field"></td>
1555
               <td class="form_field"></td>
1556
            </tr>
1557
            <input name="pv_id" type="hidden" value="<%=parPv_id%>">
1558
            <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
1559
         </form>
1560
      </table>
1561
   </fieldset>
1562
    <br><br>
119 ghuddy 1563
<!-- CODE REVIEW ------------------------------------------------------------------------------------------------------------------->
121 hknight 1564
   <fieldset class="fset"><legend class="body_colb"><img src='images/s_code_review.gif' width='21' height='23' hspace='4' border='0' align='absmiddle'>Code Review</legend>
1565
      <a name="CODE_REVIEW" id="CODE_REVIEW"></a>
1566
      <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_CodeReview ( parPv_id ), cint(0))%>
1567
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1568
         <tr>
1569
            <td align="right" valign="bottom"><%If ( scriptName = "fixed_issues.asp" ) Then%>
1570
               <%If pageIsEditable Then%>
1571
                  <a href='javascript:;' onClick="MM_openBrWindow('_wform_update_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewEdit','scrollbars=yes,resizable=yes,width=950,height='+ ( screen.height - 100 ) +',top=0,left=0')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1572
               <%End If%>
1573
               <%If rsQry.RecordCount > 0 Then%>
1574
                  <%If NOT IsNull(rsQry("date_of_review")) Then%>
1575
                     &nbsp;
1576
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewView','scrollbars=yes,resizable=yes,width=950,height='+ ( screen.height - 100 ) +',top=0,left=0')" class="txt_linked">View<img src="images/i_open.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
119 ghuddy 1577
                  <%End If%>
121 hknight 1578
               <%End If%>
1579
               <%End If%>
1580
            </td>
1581
         </tr>
1582
      </table>
1583
      <%If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then%>
1584
         <%If NOT IsNull(rsQry("date_of_review")) Then%>
119 ghuddy 1585
            <table width="100%"  border="0" cellspacing="1" cellpadding="4">
121 hknight 1586
               <tr>
1587
                  <td width="1%" align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Date of Review</td>
1588
                  <td width="1%" nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=EuroDate ( rsQry("date_of_review") )%>&nbsp;&nbsp;&nbsp;</td>
1589
                  <td width="1%" align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">&nbsp;&nbsp;&nbsp;Time Spent:</td>
1590
                  <td width="100%" background="images/bg_form_lightgray.gif" class="form_item"><%=rsQry("time_spent")%> hrs </td>
1591
               </tr>
1592
               <tr>
1593
                  <td align="right" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Reason for Review</td>
1594
                  <td colspan="3" background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR( To_HTML( rsQry("review_reason") ))%></td>
1595
               </tr>
1596
               <tr>
1597
                  <td align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Review Results </td>
1598
                  <td colspan="3" background="images/bg_form_lightgray.gif" class="form_item">
1599
                  <%=DecodeOverallResult( rsQry("review_results") )%>
1600
                  </td>
1601
               </tr>
1602
               <tr>
1603
                  <td align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Issues Raised </td>
1604
                  <td colspan="3" background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR( To_HTML( rsQry("issues_raised") ))%></td>
1605
               </tr>
119 ghuddy 1606
            </table>
121 hknight 1607
         <%Else%>
119 ghuddy 1608
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
121 hknight 1609
               <tr>
1610
                  <td background="images/bg_form_lightgray.gif"><span class='sublbox_txt'>No details found.</span></td>
1611
               </tr>
119 ghuddy 1612
            </table>
121 hknight 1613
         <%End If%>
1614
      <%Else%>
1615
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1616
            <tr>
1617
               <td background="images/bg_form_lightgray.gif"><span class='sublbox_txt'>No details found.</span></td>
1618
            </tr>
1619
         </table>
1620
      <%End If%>
119 ghuddy 1621
 
121 hknight 1622
      <!-- Code Review URL section for this version -->
1623
      <%Call GetCodeReviewURLs( parPv_id, rsCodeReviewURL )%>
1624
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1625
         <tr>
1626
            <td align="left" valign="top" class="body_colb">Code Review URL for this version</td>
1627
            <td align="right" valign="top" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='5'")%>>
1628
               <%If pageIsEditable Then%>
1629
                  <a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewURLEdit','scrollbars=no,resizable=yes,width=930,height=185,top=0,left=0')" class="txt_linked">New<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle"></a>
1630
               <%End If%>
1631
            </td>
1632
         </tr>
1633
         <%If IsNull(rsCodeReviewURL("full_url")) Then %>
1634
            <tr>
1635
               <td background="images/bg_form_lightgray.gif" width="100%" class="form_item" colspan="2">
1636
                  <span class='sublbox_txt'>No details found.</span>
1637
               </td>
1638
            </tr>
1639
         <%Else%>
1640
            <tr>
1641
               <td background="images/bg_form_lightbluedark.gif" class="form_field">URL</td>
1642
               <td background="images/bg_form_lightbluedark.gif" width="25%" class="form_field">Reason for Review</td>
1643
               <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Date of Review</td>
1644
               <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Last Modified</td>
1645
               <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
1646
               <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
1647
            </tr>
1648
            <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
1649
               While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
1650
                  <tr>
1651
                     <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
1652
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
1653
                     <%Else%>
1654
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
1655
                     <%End If%>
1656
                     <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("reason")%></td>
1657
                     <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("date_of_review")%></td>
1658
                     <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("last_modified")%></td>
1659
                     <%If pageIsEditable Then%>
1660
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','CodeReviewURLEdit','scrollbars=no,resizable=yes,width=930,height=185')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle" alt="Edit this code review URL"></a></td>
1661
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onclick="return confirmDelete('this code review URL from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this code review URL"></a></td>
1662
                     <%Else%>
1663
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1664
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1665
                     <%End If%>
1666
                  </tr>
1667
                  <%rsCodeReviewURL.MoveNext
1668
               WEnd
1669
            Else%>
1670
               <tr>
119 ghuddy 1671
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1672
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1673
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1674
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1675
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1676
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1677
               </tr>
1678
            <%End If
1679
         End If%>
1680
      </table>
119 ghuddy 1681
 
121 hknight 1682
      <!-- Code Review URL section for last non-ripple build -->
1683
      <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then
1684
         Call LastPvId(pkgInfoHash.Item ("pv_id"))
1685
         While rsQry("comments") = "Rippled Build."
119 ghuddy 1686
            Call LastPvId(rsQry("last_pv_id"))
121 hknight 1687
         Wend
1688
         Dim sOldPkgVersion
1689
         Call Get_Pkg_Short_Info ( rsQry("pv_id"), NULL, NULL, sOldPkgVersion, NULL, NULL, NULL )
1690
         Call GetCodeReviewURLs( rsQry("pv_id"), rsCodeReviewURL )
1691
         %>
1692
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1693
            <tr>
1694
               <td align="left" valign="top" class="body_colb" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='6'")%>>Code Review URL for last non-ripple build (<a class="lbl_link" href="fixed_issues.asp?pv_id=<%=rsQry("pv_id")%>"><%=sOldPkgVersion%></a>)</td>
1695
            </tr>
1696
            <%If IsNull(rsCodeReviewURL("url")) Then%>
1697
               <tr>
119 ghuddy 1698
                  <td background="images/bg_form_lightgray.gif" width="100%" class="form_item" colspan="2">
121 hknight 1699
                     <span class='sublbox_txt'>No details found.</span>
119 ghuddy 1700
                  </td>
121 hknight 1701
               </tr>
1702
            <%Else%>
1703
               <tr>
119 ghuddy 1704
                  <td background="images/bg_form_lightbluedark.gif" class="form_field">URL</td>
1705
                  <td background="images/bg_form_lightbluedark.gif" width="30%" class="form_field">Reason for Review</td>
1706
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Date of Review</td>
1707
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Last Modified</td>
1708
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
1709
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
121 hknight 1710
               </tr>
1711
               <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
119 ghuddy 1712
                  While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
121 hknight 1713
                     <tr>
1714
                        <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
1715
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
1716
                        <%Else%>
1717
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
1718
                        <%End If%>
1719
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("reason")%></td>
1720
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("date_of_review")%></td>
1721
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("last_modified")%></td>
1722
                        <%If pageIsEditable Then%>
1723
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_code_review_url.asp?pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','CodeReviewURLEdit','scrollbars=no,resizable=yes,width=930,height=185')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle" alt="Edit this code review URL"></a></td>
1724
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>" onclick="return confirmDelete('this code review URL from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this code review URL"></a></td>
1725
                        <%Else%>
1726
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1727
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1728
                        <%End If%>
1729
                     </tr>
1730
                     <%rsCodeReviewURL.MoveNext
119 ghuddy 1731
                  WEnd
121 hknight 1732
               Else%>
119 ghuddy 1733
                  <tr>
121 hknight 1734
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1735
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1736
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1737
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1738
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1739
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
119 ghuddy 1740
                  </tr>
121 hknight 1741
               <%End If
1742
            End If%>
1743
         </table>
1744
      <%End If%>
119 ghuddy 1745
 
121 hknight 1746
   </fieldset>
1747
   <br>
1748
   <br>
119 ghuddy 1749
<!-- ADDITIONAL NOTES ------------------------------------------------------------------------------------------------------------------->
121 hknight 1750
   <fieldset class="fset"><legend class="body_colb"><img src="images/i_additional_notes.gif" width="26" height="20" hspace="4" border="0" align="absmiddle" alt="">Additional Notes</legend>
1751
      <a name="ADDITIONAL_NOTES"></a>
1752
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1753
         <tr>
1754
            <td align="right" valign="bottom">
1755
               <%If pageIsEditable Then%>
1756
                  <a href='javascript:;' onClick="MM_openBrWindow('_wform_additional_note.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','AdditionalNotes','resizable=yes,width=600,height=400')" class="txt_linked">New Note<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle" alt="Add new note."></a>
1757
               <%End If%>
1758
            </td>
1759
         </tr>
1760
      </table>
1761
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1762
         <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_Additional_Notes ( parPv_id ), cint(0))%>
1763
         <%If rsQry.RecordCount < 1 Then%>
1764
            <tr>
1765
               <td class="form_field" width="100%" background="images/bg_form_lightgray.gif">&nbsp;</td>
1766
            </tr>
1767
         <%End If%>
1768
         <%While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
1769
            <tr>
1770
               <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="body_col">
1771
                  <%If pageIsEditable Then%>
1772
                     <a href="javascript:;" onClick="MM_openBrWindow('_wform_update_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','UpdateAN','resizable=yes,width=600,height=400')" class="body_col"><img src="images/i_edit.gif" alt="Edit" width="12" height="12" hspace="3" vspace="3" border="0" align="absmiddle"><%=To_HTML (rsQry("note_title"))%></a>
1773
                  <%Else%>
1774
                     <%=To_HTML (rsQry("note_title"))%>
1775
                  <%End If%>
1776
               </td>
1777
               <td width="1" background="images/bg_form_lightbluedark.gif">
1778
                  <%If pageIsEditable Then%>
1779
                     <a href="_remove_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this note');"><img src="images/i_delete.gif" alt="Remove this note." width="13" height="12" hspace="3" border="0"></a>
1780
                  <%End If%>
1781
               </td>
1782
            </tr>
1783
            <tr>
1784
               <td colspan="2" background="images/bg_form_lightgray.gif" class="sublbox_txt">
1785
                  <%=NewLine_To_BR( To_HTML ( rsQry("note_body") ) )%><br><br>
1786
                  <span class="rep_small">Last Modified: <%=rsQry("lastmod")%></span>
1787
               </td>
1788
            </tr>
1789
            <tr>
1790
               <td colspan="2"><img src='images/spacer.gif' width='2' height='2'></td>
1791
            </tr>
1792
            <%rsQry.MoveNext
1793
         WEnd%>
1794
      </table>
1795
   </fieldset>
1796
   <br><br>