Subversion Repositories DevTools

Rev

Rev 7537 | Details | Compare with Previous | 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
%>
4254 dpurdie 8
<!-- Required to support jiraIssues.vbs -->
9
<SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="class/classaspJSON.vbs"></SCRIPT> 
10
<SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="common/base64encode.vbs"></SCRIPT> 
11
<SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="common/jiraIssues.vbs"></SCRIPT> 
119 ghuddy 12
<%
13
'------------ Variable Definition -------------
14
Dim rsCQ
15
Dim rsDepIss
16
Dim SQLstr
17
Dim fixedIssDict
18
Dim notesIssDict
19
Dim issArr()
20
Dim depIssDict
21
Dim sDocTitle
22
Dim rsQry, rsTemp
23
Dim iss_db_id, G1_template, G1_style, currG1
24
Dim retVal
25
Dim baseURL
26
Dim rsProjId
27
Dim rsPkgMetrics
28
Dim rsCodeReviewURL
129 ghuddy 29
Dim vcsInfoCollector
7536 dpurdie 30
Dim bHasaLicense
119 ghuddy 31
'------------ Constants Declaration -----------
32
Const enumLoc_iss_db = 0
33
Const enumLoc_iss_id = 1
34
Const enumLoc_iss_num = 2
35
Const enumLoc_summary = 3
36
Const enumLoc_status = 4
37
Const enumLoc_priority = 5
38
Const enumLoc_issue_type = 6
39
'------------ Variable Init -------------------
40
Set fixedIssDict = CreateObject("Scripting.Dictionary")
41
Set notesIssDict = CreateObject("Scripting.Dictionary")
42
Set depIssDict = CreateObject("Scripting.Dictionary")
129 ghuddy 43
Set vcsInfoCollector = CreateObject("Scripting.Dictionary")
119 ghuddy 44
'----------------------------------------------
45
%>
5266 dpurdie 46
<!-- Local Java Script -->
47
<script language="JavaScript">
48
//  Local Tips
49
formTips.tips.following       = stdTip(200, 'Following', 'The user may \'follow\' a package in one or more Projects.<p>When the package is released the user will be notified by email.' );
7349 dpurdie 50
formTips.tips.baseView       = stdTip(200, 'Base View', 'The group to which that package has been logically assigned to within this release.'+
51
                                                        '<p>If a WIP or PENDING Version will replace a package already in this release then it will take on the base view of the existing package when it is released.'+
52
                                                        '<p>If the released package is in a different Base View, then it will be displayed in [square brackets]' );
6440 dpurdie 53
formTips.tips.ripple_stop     = stdTip(200, 'Ripple Stop', 'When set, will prevent the package being rippled. May be cleared to allow the ripple to continue.<p>If marked as \'Persistent\', then each new version will be marked to prevent rippling.' );
6480 dpurdie 54
formTips.tips.PreviousVcsTag  = newTip(-150, 20, 200, 10, 'PREVIOUS VCS TAG','This is the vcs tag of the immediate ancestor version to the current package version.'+
55
                                       '<br><br>NOTE:<br>Derivation of this has no sensitivity to the selected release.');
56
formTips.tips.PreviousSignificantVcsTag= newTip(-150, 20, 200, 10, 'PREVIOUS SIGNIFICANT VCS TAG',
57
                                                       'This is the vcs tag of the ancestor version immediately preceding a significant (non-ripple) change that led to the current package version.'+
58
                                                       '<br><br>NOTE:<br>Derivation of this has no sensitivity to the selected release.');
59
 
60
formTips.tips.PreviousNonRippleVcsTag= newTip(-150, 20, 200, 10, 'PREVIOUS NON RIPPLE VCS TAG',
61
                                                       'This is the vcs tag of the preceding significant (non-ripple) change that led to the current package version.'+
62
                                                       '<br><br>NOTE:<br>Derivation of this has no sensitivity to the selected release.');
6497 dpurdie 63
formTips.tips.CreationHints= newTip(-150, 20, 200, 10, 'HINTS FOR PACKAGE CREATION',
64
                                                       'These are not correct commands. They are command hints to assist in creating a new package.');
7536 dpurdie 65
formTips.tips.ExternalRef= newTip(-150, 20, 200, 10, 'External Package Reference',
66
                                                       'A reference to the original source of 3rd party and licenced packages.' +
67
                                                        '<p>This field may be used by tools that automatically detect new versions of these external packages.');
6642 dpurdie 68
formTips.tips.BuildOwner= newTip(-150, 20, 200, 10, 'BUILD OWNER',
69
                                                       'The Build Owner will be notified of Build Failures when a new package-version fails to build.' +
70
                                                        '<p>The Build Owner is set to the person who created the new version or who released the version to the build system by setting its state to Pending.');
7379 dpurdie 71
formTips.tips.JatsExtraction_SVN  = stdTip(250,'Subversion', 'Various extraction commands.<br>Choose a command that suits the current requirements.' +
72
                                                     '<p>Default - suits most requirements' +
73
                                                     '<br>Tag - Trace Tag back to development branch' +
74
                                                     '<br>Tip - Tip of the development branch' +
75
                                                     '<br>Work - Default' +
76
                                                     '<br>Exact - Extract the tagged instance' );
77
formTips.tips.JatsExtraction_GIT  = stdTip(200,'Git', 'Various extraction commands.<br>Choose a command that suits the current requirements.' );
78
 
79
formTips.tips.JatsExtraction_CC   = stdTip(200, 'ClearCase', 'Various extraction commands.<br>Choose a command that suits the current requirements.' +
80
                                                     '<p>A Project Branch will be displayed if configured, but it may not be suitable for all packages.');
81
 
82
formTips.tips.JatsExtraction_CVS  = stdTip(200,'CVS','Various extraction commands.<br>Choose a command that suits the current requirements.' );
83
formTips.tips.JatsExtraction_     = stdTip(200,'Unknown Version Control System','Various extraction commands.<br>Choose a command that suits the current requirements.' );
6480 dpurdie 84
 
7468 dpurdie 85
formTips.tips.inManifest  = stdTip(200, 'Include in Manifest','When enabled and the Release is also configured to support S3 Manifests then this package-version will be available in the manifest');
7395 dpurdie 86
 
87
 
5266 dpurdie 88
</script>
119 ghuddy 89
<%
90
'----------------------------------------------------------------------------------------------------------------------------------------
91
Function asDepIss ( SSiss_db_id, SScolumn )
121 hknight 92
   If NOT depIssDict.Exists (SSiss_db_id) Then Exit Function
119 ghuddy 93
 
121 hknight 94
   asDepIss = issArr ( SScolumn, CInt( depIssDict.Item (SSiss_db_id) ) )
119 ghuddy 95
End Function
96
'----------------------------------------------------------------------------------------------------------------------------------------
97
Function FixedIssues ( parPv_id )
121 hknight 98
   Dim sqlstr, rsTemp
99
   sqlstr = "SELECT pv_id FROM cq_issues WHERE pv_id = "& parPv_id &" AND iss_state = "& enumISSUES_STATE_FIXED
100
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 101
 
121 hknight 102
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
103
      FixedIssues = TRUE
104
   Else
105
      FixedIssues = FALSE
106
   End If
119 ghuddy 107
 
121 hknight 108
   rsTemp.Close()
109
   Set rsTemp = nothing
119 ghuddy 110
End Function
111
'----------------------------------------------------------------------------------------------------------------------------------------
112
Function SQL_Package_Information ( nPv_id )
121 hknight 113
   SQL_Package_Information = _
114
   " SELECT *"&_
115
   "   FROM PACKAGE_VERSIONS pv"&_
116
   "  WHERE pv.pv_id = "& nPv_id
119 ghuddy 117
End Function
118
'----------------------------------------------------------------------------------------------------------------------------------------
119
Function SQL_Dependency_Issues ( NNpv_id )
121 hknight 120
   SQL_Dependency_Issues = _
121
   " SELECT pkg.pkg_name, pv.pkg_version, pv.pv_id, cqi.iss_db, cqi.iss_id, cqi.iss_state, pv.comments AS reasons"&_
122
   "     FROM cq_issues cqi,"&_
123
   "          package_dependencies dep,"&_
124
   "          packages pkg,"&_
125
   "          package_versions pv"&_
126
   "    WHERE dep.pv_id = "& NNpv_id &_
127
   "      AND dep.dpv_id = cqi.pv_id(+)"&_
128
   "      AND dep.dpv_id = pv.pv_id(+)"&_
129
   "      AND pv.pkg_id = pkg.pkg_id"&_
130
   "   ORDER BY UPPER(pkg.pkg_name) ASC, cqi.iss_state DESC"
119 ghuddy 131
End Function
132
'----------------------------------------------------------------------------------------------------------------------------------------
133
Function SQL_Additional_Notes ( nPv_id )
121 hknight 134
   SQL_Additional_Notes = ReadFile( rootPath & "queries\additional_notes.sql" )
135
   SQL_Additional_Notes = Replace( SQL_Additional_Notes, ":PV_ID", nPv_id )
119 ghuddy 136
End Function
137
'----------------------------------------------------------------------------------------------------------------------------------------
138
Function SQL_Unit_Tests ( nPv_id )
121 hknight 139
   SQL_Unit_Tests = ReadFile( rootPath & "queries\unit_tests.sql" )
140
   SQL_Unit_Tests = Replace( SQL_Unit_Tests, ":PV_ID", nPv_id )
119 ghuddy 141
End Function
142
'----------------------------------------------------------------------------------------------------------------------------------------
121 hknight 143
' Function returns the number of imported clearquest issues
144
' and builds a string suitable for querying the clearquest issues database
145
Function Get_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
3975 dpurdie 146
   Dim rsTemp, sqlstr, DEVIiss, retVal
119 ghuddy 147
 
121 hknight 148
   If IsObject(DDfixedIss) Then
149
      ' Find this package issues
150
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& NNpv_id &"  AND iss_state = "& nIssState
151
   Else
152
      ' Find dependency issues
153
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE  pv_id IN ( "&_
154
               " SELECT dpv_id FROM package_dependencies WHERE pv_id = "& NNpv_id &_
155
               " )"
156
   End If
119 ghuddy 157
 
121 hknight 158
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
159
   retVal = rsTemp.RecordCount
119 ghuddy 160
 
121 hknight 161
   DEVIiss  = "-1"
119 ghuddy 162
 
121 hknight 163
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
164
      If CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
165
         DEVIiss = DEVIiss &","& rsTemp("iss_id")
166
      End If
119 ghuddy 167
 
121 hknight 168
      If IsObject(DDfixedIss) Then
169
         ' Store only Fixed Issues
159 ghuddy 170
         If CInt(rsTemp("iss_state")) = CInt(enumISSUES_STATE_FIXED) AND _
171
           DDfixedIss.Exists(Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id"))) = false Then DDfixedIss.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), ""
121 hknight 172
      End If
119 ghuddy 173
 
121 hknight 174
      If IsObject(DDnotesIssDict) Then
175
         ' Store Notes
159 ghuddy 176
         If Not IsNull(rsTemp("notes")) AND (rsTemp("notes") <> "") AND _
177
           DDnotesIssDict.Exists(Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id"))) = false Then DDnotesIssDict.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), Cstr(rsTemp("notes"))
121 hknight 178
      End If
119 ghuddy 179
 
121 hknight 180
      rsTemp.MoveNext
181
   WEnd
119 ghuddy 182
 
121 hknight 183
   ' Construct SQL statement for CQ database
184
   SSsql = ReadFile( rootPath & "queries\cq_issues.sql" )
185
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
186
   SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
119 ghuddy 187
 
121 hknight 188
   rsTemp.Close()
189
   Set rsTemp = nothing
119 ghuddy 190
 
121 hknight 191
   Get_Package_Issues = retVal
119 ghuddy 192
 
121 hknight 193
End Function
119 ghuddy 194
'----------------------------------------------------------------------------------------------------------------------------------------
195
Sub LastPvId (PvId)
121 hknight 196
   Dim sqlstr
119 ghuddy 197
 
131 ghuddy 198
   sqlstr = "SELECT pv_id, pkg_version, comments, last_pv_id FROM PACKAGE_VERSIONS WHERE PV_ID= "& PvId
119 ghuddy 199
 
121 hknight 200
   Set rsQry = OraDatabase.DbCreateDynaset( sqlstr, cint(0) )
119 ghuddy 201
 
202
End Sub
203
'----------------------------------------------------------------------------------------------------------------------------------------
204
Function  Get_CQ_Issues ( SSsql, OOrsCQ )
205
 
121 hknight 206
   On Error Resume Next
4553 dpurdie 207
   Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
121 hknight 208
   Get_CQ_Issues = Err.Number
119 ghuddy 209
 
210
End Function
211
'----------------------------------------------------------------------------------------------------------------------------------------
212
Function Get_Dependency_CQ_Issues ( SSsql, OOrsCQ, DDdepIss, AAiss )
121 hknight 213
   Dim recCnt
119 ghuddy 214
 
121 hknight 215
   On Error Resume Next
4553 dpurdie 216
   Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
119 ghuddy 217
 
121 hknight 218
   ' Exit with error if error occurs
219
   Get_Dependency_CQ_Issues = Err.Number
220
   If Err.Number <> 0 Then Exit Function
119 ghuddy 221
 
121 hknight 222
   recCnt = 1
119 ghuddy 223
 
121 hknight 224
   While ((NOT OOrsCQ.BOF) AND (NOT OOrsCQ.EOF))
225
      ReDim Preserve AAiss( 6, recCnt )
226
      'If NOT DDdepIss.Exists Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")) Then
227
         DDdepIss.Add Cstr(OOrsCQ("iss_db") &"."& OOrsCQ("iss_id")), Cstr(recCnt)
228
      'End If
229
      AAiss( enumLoc_iss_db, recCnt )    = OOrsCQ("iss_db")
230
      AAiss( enumLoc_iss_id, recCnt )    = OOrsCQ("iss_id")
231
      AAiss( enumLoc_iss_num, recCnt )   = OOrsCQ("iss_num")
232
      AAiss( enumLoc_summary, recCnt )   = OOrsCQ("summary")
233
      AAiss( enumLoc_status, recCnt )    = OOrsCQ("status")
234
      AAiss( enumLoc_priority, recCnt )    = OOrsCQ("priority")
235
      AAiss( enumLoc_issue_type, recCnt ) = OOrsCQ("issue_type")
119 ghuddy 236
 
121 hknight 237
      recCnt = recCnt + 1
238
      OOrsCQ.MoveNext
239
   WEnd
119 ghuddy 240
 
121 hknight 241
   OOrsCQ.Close()
119 ghuddy 242
End Function
243
'----------------------------------------------------------------------------------------------------------------------------------------
244
Sub Group_By ( rsG, styleG, currG )
121 hknight 245
   If rsG = currG Then Exit Sub
246
   Response.write styleG
247
   'currG = rsG
119 ghuddy 248
End Sub
249
'----------------------------------------------------------------------------------------------------------------------------------------
250
Sub CheckUnitTestsState ( nPv_id, outMSG, outMSG_ID, outNote, outTestsFound )
121 hknight 251
   Dim sqlstr, rsTemp
252
   sqlstr = ReadFile( rootPath & "queries\unit_test_entries_check.sql" )
253
   sqlstr = Replace( sqlstr, ":PV_ID", nPv_id)
254
   sqlstr = Replace( sqlstr, ":enumTEST_TYPE_NOT_DONE", enumTEST_TYPE_NOT_DONE)
119 ghuddy 255
 
121 hknight 256
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 257
 
121 hknight 258
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
259
      outMSG = rsTemp("msg")
260
      outMSG_ID = CInt(rsTemp("msg_id"))
261
      outNote = rsTemp("test_summary")
262
      outTestsFound = FALSE
119 ghuddy 263
 
121 hknight 264
      If IsNull(rsTemp("msg")) Then outTestsFound = TRUE
265
   End If
119 ghuddy 266
 
121 hknight 267
   rsTemp.Close()
268
   Set rsTemp = nothing
119 ghuddy 269
End Sub
270
'----------------------------------------------------------------------------------------------------------------------------------------
271
Function FormatAccepted ( sAccepted, nTest_id )
121 hknight 272
   Dim tempSTR
273
   If IsNull(nTest_id) Then Exit Function
119 ghuddy 274
 
121 hknight 275
   tempSTR = ""
119 ghuddy 276
 
121 hknight 277
   If pageIsEditable Then
278
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item'>"
279
   Else
280
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item' disabled>"
281
   End If
119 ghuddy 282
 
121 hknight 283
   If sAccepted = enumUNIT_TEST_ACCEPTED Then
284
      tempSTR = tempSTR  &"<option></option>"&_
285
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"' SELECTED>Yes</option>"&_
286
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 287
 
121 hknight 288
   ElseIf sAccepted = enumUNIT_TEST_NOTACCEPTED Then
289
      tempSTR = tempSTR  &"<option></option>"&_
290
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
291
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"' SELECTED>No</option>"
119 ghuddy 292
 
121 hknight 293
   Else
294
      tempSTR = tempSTR  &"<option SELECTED></option>"&_
295
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
296
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 297
 
121 hknight 298
   End If
119 ghuddy 299
 
121 hknight 300
   tempSTR = tempSTR & "</select>"
119 ghuddy 301
 
121 hknight 302
   FormatAccepted = tempSTR
119 ghuddy 303
 
304
End Function
305
'----------------------------------------------------------------------------------------------------------------------------------------
306
Function SQL_CodeReview ( nPv_id )
121 hknight 307
   SQL_CodeReview = _
308
   "   SELECT cr.date_of_review, cr.time_spent, cr.review_reason, cr.rteam_domain_expert,"&_
309
   "          cr.rteam_language_expert, cr.rteam_peer_developer, cr.rteam_author,"&_
310
   "          cr.files_reviewed, cr.review_results, cr.issues_raised,"&_
311
   "          cr.review_comments, cr.fnc_s_meets_functionality,"&_
312
   "          cr.fnc_c_meets_functionality"&_
313
   "     FROM code_reviews cr"&_
314
   "    WHERE cr.pv_id = "& nPv_id
119 ghuddy 315
End Function
316
'----------------------------------------------------------------------------------------------------------------------------------------
317
Function SQL_Build_Env ( nPv_id )
121 hknight 318
   SQL_Build_Env = _
319
   " SELECT pv.*, bm.BM_ID,"&_
320
   "         bm.BM_NAME,"&_
4134 dpurdie 321
   "         pkgbinfo.BSA_ID,"&_
322
   "         bsa.BSA_NAME"&_
121 hknight 323
   "     FROM PACKAGE_BUILD_INFO pkgbinfo,"&_
324
   "           BUILD_MACHINES bm,"&_
4134 dpurdie 325
   "           PACKAGE_VERSIONS pv,"&_
326
   "           BUILD_STANDARDS_ADDENDUM bsa"&_
121 hknight 327
   "    WHERE pkgbinfo.BM_ID = bm.BM_ID"&_
328
   "    AND pv.PV_ID = pkgbinfo.PV_ID"&_
329
   "      AND pkgbinfo.PV_ID = "& nPv_id  &_
4134 dpurdie 330
   "      AND pkgbinfo.BSA_ID = bsa.BSA_ID"&_
121 hknight 331
   "   ORDER BY UPPER(bm.BM_NAME) "
119 ghuddy 332
End Function
333
'----------------------------------------------------------------------------------------------------------------------------------------
334
Function DecodeOverallResult ( ByVal cCheck )
121 hknight 335
   If cCheck = "" OR IsNull(cCheck) Then cCheck = 0
119 ghuddy 336
 
121 hknight 337
   Select Case CInt( cCheck )
338
      Case enumCODE_REVIEW_ACCEPTED
339
         DecodeOverallResult = "Accepted"
340
      Case enumCODE_REVIEW_MINOR_UPDATES
341
         DecodeOverallResult = "Minor updates required"
342
      Case enumCODE_REVIEW_MAJOR_REWORK
343
         DecodeOverallResult = "Major rework required"
344
      Case Else
345
         DecodeOverallResult = ""
346
   End Select
119 ghuddy 347
 
348
End Function
349
'----------------------------------------------------------------------------------------------------------------------------------------
4134 dpurdie 350
Function GetBuildType ( nBuildType, nBuildName )
119 ghuddy 351
 
4134 dpurdie 352
   if (IsNull(nBuildType) OR (nBuildType = "")) Then
353
       GetBuildType = "Build type not defined"
354
   ElseIf (IsNull(nBuildName) OR (nBuildName = "") ) Then
355
       GetBuildType = "Build Name not defined"
121 hknight 356
   Else
4134 dpurdie 357
        GetBuildType = nBuildName    
121 hknight 358
   End If
119 ghuddy 359
 
4134 dpurdie 360
  '' Wrap around brackets
121 hknight 361
   GetBuildType = "("& GetBuildType &")"
119 ghuddy 362
 
363
End Function
364
'----------------------------------------------------------------------------------------------------------------------------------------
365
Sub GetPackageMetrics (NNpv_id, rsTemp)
366
 
121 hknight 367
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 368
 
121 hknight 369
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("PackageMetrics.sql"), cint(0))
119 ghuddy 370
 
121 hknight 371
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 372
 
373
End Sub
374
'----------------------------------------------------------------------------------------------------------------------------------------
375
Sub GetCodeReviewURLs (NNpv_id, rsTemp)
376
 
121 hknight 377
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 378
 
121 hknight 379
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("CodeReviewURLs.sql"), cint(0))
119 ghuddy 380
 
121 hknight 381
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 382
 
383
End Sub
161 iaugusti 384
 
385
 
386
'---------------------------------------------------------------
387
Sub Query_Config_Spec (NNRtag_id, NNPv_id)
388
   OraDatabase.Parameters.Add "RTAG_ID", NNRtag_id,   ORAPARM_INPUT, ORATYPE_NUMBER
389
   OraDatabase.Parameters.Add "PV_ID", NNPv_id,   ORAPARM_INPUT, ORATYPE_NUMBER
390
   If NNRtag_id <> "" Then
391
      If pkgInfoHash.Item ("dlocked") <> "Y" Then
392
         Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("config_spec.sql"), cint(0))
393
      Else
394
         Set rsQry = OraDatabase.DbCreateDynaset( Replace(GetQuery("config_spec.sql"), "PV.LAST_PV_ID", "PV.PV_ID"), cint(0))
395
      End If
396
   Else
397
      If pkgInfoHash.Item ("dlocked") <> "Y" Then
398
         Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("config_spec_nortag.sql"), cint(0))
399
      Else
400
         Set rsQry = OraDatabase.DbCreateDynaset( Replace(GetQuery("config_spec_nortag.sql"), "PV.LAST_PV_ID", "PV.PV_ID"), cint(0))
401
      End If
402
   End If
403
   OraDatabase.Parameters.Remove "RTAG_ID"
404
   OraDatabase.Parameters.Remove "PV_ID"
405
End Sub
406
 
407
'---------------------------------------------------------------
167 brianf 408
' Returns the jats extraction commands
2735 dpurdie 409
Sub Jats_Extract_Command (ByRef sjats_cmds(), ByRef ajats_cmd_test, ByRef sjats_cmds_qh, ByRef sjats_extractable)
161 iaugusti 410
   Dim dlocked: dlocked = pkgInfoHash.Item("dlocked")
169 brianf 411
   Dim pkg_vcs_tag: pkg_vcs_tag = Get_Pkg_Vcs_Tag(Request("pv_id"))
1376 dpurdie 412
   Dim ii: ii = -1
413
   Dim baseCmd
2735 dpurdie 414
   sjats_extractable = false
161 iaugusti 415
 
6497 dpurdie 416
   sjats_cmds_qh = vcsInfoCollector.Item("vcs_tag")
417
   If ( sjats_cmds_qh = "CC" OR sjats_cmds_qh = "SVN" ) Then
418
      sjats_extractable = true
419
   End If
420
 
167 brianf 421
   ' if not released then use last package version vcs tag and branch else use current vcs tag
422
   If dlocked <> "Y" Then
423
     ' not released, so get last package version id
1376 dpurdie 424
 
6497 dpurdie 425
     Dim last_version_valid
167 brianf 426
     Dim last_pv_id: last_pv_id = pkgInfoHash.Item("last_pv_id")
6497 dpurdie 427
     Dim last_pkg_vcs_tag
1376 dpurdie 428
     Dim VcsType
161 iaugusti 429
 
6497 dpurdie 430
     last_version_valid = TRUE
431
     If IsNull(pkgInfoHash.Item ("previous_version")) Then
432
         last_version_valid = FALSE
433
     ElseIf last_pv_id = pkgInfoHash.Item ("pv_id") Then
434
         last_version_valid = FALSE
435
     ElseIf pkgInfoHash.Item ("pkg_count") = 1 Then 
436
         last_version_valid = FALSE
437
     End If
438
 
439
     If last_version_valid Then
440
         last_pkg_vcs_tag = Get_Pkg_Vcs_Tag(last_pv_id)
441
     End If
442
 
2365 dpurdie 443
     If (last_version_valid AND last_pkg_vcs_tag <> "") Then
444
        VcsType = Mid(last_pkg_vcs_tag, 1, InStr(1, last_pkg_vcs_tag, "::") - 1 )
445
        sjats_cmds_qh = VcsType
446
        baseCmd =  "jats vcsrelease -extract -label """ & last_pkg_vcs_tag & """"
447
        ii = ii+1 : sjats_cmds(ii) = baseCmd
1376 dpurdie 448
 
449
         ' ClearCase extraction may get a project specific branch appended
450
         ' This will be used to automatically branch the files in the package
451
         '
452
         If (VcsType = "CC") Then
453
             Call Query_Config_Spec (Request("rtag_id"), last_pv_id)
454
             Dim config_branch: config_branch = rsQry("config_spec_branch")
455
             If NOT IsNull(config_branch) AND (config_branch <> "") Then
456
                 ii = ii+1 : sjats_cmds(ii) = baseCmd & " -branch " & config_branch
457
             End If
458
         End If
459
 
460
         If (VcsType = "SVN") Then
461
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Tag"
462
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Tip"
463
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Work"
464
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Exact"
465
         End If
167 brianf 466
     Else
6497 dpurdie 467
         'ii = ii+1 : sjats_cmds(ii) = "No Previous version to extract"
167 brianf 468
     End If
1376 dpurdie 469
 
470
     baseCmd =  "jats vcsrelease -extract -label """ & pkg_vcs_tag & """"
471
     ii = ii+1 : sjats_cmds(ii) = baseCmd
472
 
161 iaugusti 473
   Else
2735 dpurdie 474
    ' released
6497 dpurdie 475
    if sjats_extractable Then
2735 dpurdie 476
        baseCmd =  "jats vcsrelease -extract -label """ & pkg_vcs_tag & """"
477
        ii = ii+1 : sjats_cmds(ii) = baseCmd
478
    Else
479
        baseCmd =  "Cannot be extracted with JATS"
480
        ii = ii+1 : sjats_cmds(ii) = baseCmd
481
    End If
482
 
161 iaugusti 483
   End If
167 brianf 484
 
1376 dpurdie 485
   ' Test Command
2735 dpurdie 486
   if sjats_extractable Then
487
        ajats_cmd_test = "jats vcsrelease -test -label """ & pkg_vcs_tag & """"
488
   Else
489
        ajats_cmd_test = "Cannot be extracted with JATS"
490
   End If
161 iaugusti 491
 
1376 dpurdie 492
   ReDim Preserve sjats_cmds(ii)
161 iaugusti 493
   rsQry.Close()
494
   Set rsQry = nothing
495
 
496
End Sub
497
 
167 brianf 498
'---------------------------------------------------------------
499
' Returns the VCS tag for the specified package version
2365 dpurdie 500
' Note: ORAPARM_OUTPUT default size is 127 bytes. This is too short for some
501
'
169 brianf 502
Function Get_Pkg_Vcs_Tag(apv_id)
167 brianf 503
   OraDatabase.Parameters.Add "PV_ID", apv_id, ORAPARM_INPUT, ORATYPE_NUMBER
2365 dpurdie 504
   OraDatabase.Parameters.Add "RETURN_CODE","xxxx", ORAPARM_OUTPUT, ORATYPE_VARCHAR2
2735 dpurdie 505
   OraDatabase.Parameters("RETURN_CODE").MinimumSize = 200
1376 dpurdie 506
   On Error Resume Next
507
        OraDatabase.ExecuteSQL ("BEGIN   :RETURN_CODE := PK_RMAPI.RETURN_VCS_TAG( :PV_ID );   END;")
508
        Get_Pkg_Vcs_Tag = OraDatabase.Parameters("RETURN_CODE").Value
509
   On Error Goto 0
167 brianf 510
   OraDatabase.Parameters.Remove "PV_ID"
511
   OraDatabase.Parameters.Remove "RETURN_CODE"
512
End Function
5266 dpurdie 513
'-------------------------------------------------
514
' Description:  Return a string displaying if the user is following this package in theis Release
119 ghuddy 515
'----------------------------------------------------------------------------------------------------------------------------------------
5266 dpurdie 516
Function GetFollowing ()
517
   Dim rsQry
5269 dpurdie 518
   Dim thisProject, otherProjects, someProjects
5266 dpurdie 519
 
520
   GetFollowing = "Not logged in"
521
 
522
   If objAccessControl.UserLogedIn() Then
523
       OraDatabase.Parameters.Add "PKG_ID",  pkgInfoHash.Item ("pkg_id"), ORAPARM_INPUT, ORATYPE_NUMBER
524
       OraDatabase.Parameters.Add "PROJ_ID", pkgInfoHash.Item ("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
525
       OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId(), ORAPARM_INPUT, ORATYPE_NUMBER
526
 
5269 dpurdie 527
       If pkgInfoHash.Item ("proj_id") <> "" Then
528
           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_INTEREST WHERE PKG_ID = :PKG_ID AND PROJ_ID = :PROJ_ID AND USER_ID = :USER_ID", cint(0))
529
           thisProject = rsQry.RecordCount > 0
5266 dpurdie 530
 
5269 dpurdie 531
           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_INTEREST WHERE PKG_ID = :PKG_ID AND PROJ_ID != :PROJ_ID AND USER_ID = :USER_ID", cint(0))
532
           otherProjects = rsQry.RecordCount > 0
5266 dpurdie 533
 
5269 dpurdie 534
           If thisProject Then
535
               If otherProjects Then
536
                    GetFollowing = "Yes. In this and " & rsQry.RecordCount & " other projects"
537
                   Else
538
                    GetFollowing = "Yes. Only this project"
539
               End If
540
           Else
541
               If otherProjects Then
542
                    GetFollowing = "Yes. In " & rsQry.RecordCount & " other projects"
543
                   Else
544
                    GetFollowing = "No"
545
               End If
5266 dpurdie 546
           End If
5269 dpurdie 547
 
5266 dpurdie 548
       Else
5269 dpurdie 549
           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_INTEREST WHERE PKG_ID = :PKG_ID AND USER_ID = :USER_ID", cint(0))
550
           someProjects = rsQry.RecordCount > 0
551
 
552
           If rsQry.RecordCount > 0 Then
553
                GetFollowing = "Yes. In " & rsQry.RecordCount & " Projects"
5266 dpurdie 554
               Else
555
                GetFollowing = "No"
556
           End If
5269 dpurdie 557
 
5266 dpurdie 558
       End If
559
 
5269 dpurdie 560
 
5266 dpurdie 561
       OraDatabase.Parameters.Remove "USER_ID"
562
       OraDatabase.Parameters.Remove "PROJ_ID"
563
       OraDatabase.Parameters.Remove "PKG_ID"
564
       rsQry.Close()
565
       Set rsQry = nothing
566
 
5270 dpurdie 567
       If pageIsEditable Then
568
           GetFollowing = GetFollowing &  "<img class='image12 vixIframeDialog' href='_iframe_pkgs_followed.asp?proj_id=" & pkgInfoHash.Item ("proj_id") & "&pkg_id=" & pkgInfoHash.Item ("pkg_id") & "' title='Follow: " & pkgInfoHash.Item ("pkg_name") &"' src='images/i_follow.gif'>"
569
       End If
5266 dpurdie 570
 
571
    End If
572
End Function
5980 dpurdie 573
'---------------------------------------------------------------
5338 dpurdie 574
' Description:  Return a string displaying licence information
5980 dpurdie 575
'---------------------------------------------------------------
5338 dpurdie 576
Function getLicence
577
   Dim rsQry, rsSql, lName
578
   Dim licenceList
579
   Dim joiner : joiner = ""
580
   Dim otherVersions : otherVersions = ""
581
 
582
   Set licenceList=Server.CreateObject("Scripting.Dictionary")
583
   getLicence = ""
7536 dpurdie 584
   bHasaLicense = FALSE
5338 dpurdie 585
 
586
   ' Determine license for this package-version
587
	OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
588
 
589
    Set rsQry = OraDatabase.DbCreateDynaset( _
590
		"SELECT l.NAME FROM LICENCES l, LICENCING ld" &_
591
		" WHERE l.LICENCE = ld.LICENCE " &_
592
		" and ld.PV_ID = :PV_ID" &_
593
		" ORDER by l.NAME" _
594
		, cint(0))
595
 
596
	While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
597
       lName = rsQry("name")
598
	   getLicence = getLicence & joiner & lName 
599
	   licenceList.Add lName, "Y"
600
	   joiner = ", "
601
	   rsQry.MoveNext
7536 dpurdie 602
       bHasaLicense = TRUE
5338 dpurdie 603
	WEnd
604
    rsQry.Close()
605
    Set rsQry = nothing
606
 
607
	'
608
	' Indicate if other versions have licences - ignore those we already know about
609
	' The data is stored on a package-version basis
610
	'
611
    Set rsQry = OraDatabase.DbCreateDynaset( _
612
		"SELECT UNIQUE ld.NAME" &_
613
		" FROM licencing l,LICENCES ld" &_
614
		" WHERE l.pv_id IN" &_
615
		"  (SELECT pv_id" &_
616
		"  FROM package_versions" &_
617
		"  WHERE pkg_id IN" &_
618
		"    (SELECT pkg_id FROM package_versions WHERE pv_id=:PV_ID)" &_
619
		"    AND pv_id != :PV_ID" &_
620
		"  )" &_
621
		"  AND l.LICENCE = ld.LICENCE" &_
622
		"  ORDER by ld.NAME" _
623
		, cint(0))
624
 
625
	joiner = ""
626
	While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
627
       lName = rsQry("name")
628
       If NOT licenceList.Exists(lName) Then
629
           otherVersions = otherVersions & joiner & rsQry("name")
630
	       joiner = ", "
631
       End If
632
	   rsQry.MoveNext
633
	WEnd
5952 dpurdie 634
 
5338 dpurdie 635
    OraDatabase.Parameters.Remove "PV_ID"
636
    rsQry.Close()
637
    Set rsQry = nothing
638
 
639
	If otherVersions <> "" Then
640
		getLicence = getLicence & ". Other Versions: " & otherVersions
641
	End If
642
End Function
5472 dpurdie 643
'-------------------------------------------------
644
Function getLinkUrl(pvid)
645
     Dim joiner : joiner = "?"
646
 
647
     getLinkUrl = scriptName
648
 
649
     If parRtag_id <> "" Then
650
        getLinkUrl = getLinkUrl + joiner + "rtag_id=" + parRtag_id
651
        joiner = "&"
652
     End If
653
 
654
     getLinkUrl = getLinkUrl + joiner + "pv_id=" + pvid
655
End Function
6480 dpurdie 656
'-------------------------------------------------
657
'   DisplayVersionRow   - Display a row of vesrion information
6497 dpurdie 658
'       pvid    - pvid to process. Null -> "Initial Version"
6480 dpurdie 659
'       title   - row title
660
'       helpTag - Tag for help
661
'
662
Sub DisplayVersionRow( pvid, title, helpTag )
663
      Dim   versionText
664
      Dim   tagText
665
      Dim   showLink
666
      Dim   clipClass
667
      Dim   ExtractText
668
      Dim   queryResult
669
 
6497 dpurdie 670
      If IsNull(pvid) Then
671
          versionText = "Initial Version"
672
          tagText = NULL
673
          showLink = FALSE
6480 dpurdie 674
      Else
6497 dpurdie 675
          Set   queryResult = OraDatabase.DbCreateDynaset( "SELECT pkg_version from package_versions where pv_id =" & pvid , cint(0))
6480 dpurdie 676
 
6497 dpurdie 677
          If (NOT queryResult.BOF ) AND (NOT queryResult.EOF) Then
678
            versionText = queryResult("pkg_version")
679
            tagText = Get_Pkg_Vcs_Tag(pvid)
680
            showLink = isDefined("showPrevVerLinks") 
681
          Else
682
            versionText = "Unknown"
683
            tagText = NULL
684
            showLink = FALSE
685
          End If
686
 
687
          queryResult.Close()
688
          Set queryResult = nothing
689
 
690
     End If
691
 
6480 dpurdie 692
      If sjats_extractable Then
693
        clipClass = "clip"
694
        ExtractText = NewLine_To_BR ( To_HTML(tagText) ) 
695
      Else
696
        clipClass = ""
697
        ExtractText = "Cannot be extracted with JATS"
698
      End If
699
      %>
700
         <tr>
6873 dpurdie 701
            <td width="20%" ><%=title%><%=Quick_Help(helpTag)%></td>
702
            <td>
6480 dpurdie 703
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
6873 dpurdie 704
                <tr>
705
                  <td width=15% colspan=2 nowrap>
6480 dpurdie 706
                    <%=versionText%>
707
                    <%If showLink Then %>
708
                        <a href=<%=getLinkUrl(pvid)%>>
6827 dpurdie 709
                        <img src="images/i_link.gif" hspace="2" border="0" align='absmiddle' title="Show this version">
6480 dpurdie 710
                        </a>
711
                    <%End If%>
712
                  </td>
713
                  <%If NOT IsNull(tagText) Then %>
6873 dpurdie 714
                  <td colspan=2 nowrap class="<%=clipClass%>">
6480 dpurdie 715
                    <%=ExtractText%>
716
                  </td>
717
                  <%End If%>
718
                </tr>
719
              </table>
720
            </td>
721
         </tr>
722
      <%
723
End Sub
6497 dpurdie 724
 
725
'-------------------------------------------------
726
'   DisplayCreationCommands
727
'   Display commands that may be useful in the creation of the package
728
'
729
Sub DisplayCreationCommands
6508 dpurdie 730
    Dim VcsType: VcsType = vcsInfoCollector.Item("vcs_tag")
6497 dpurdie 731
    Dim title: title = "Package Creation Hints"
732
    Dim SvnUrl
733
    Dim SvnLabel
734
 
735
    If VcsType = "SVN" Then
736
        If pkgInfoHash.Item("src_path") <> "" Then
737
            SvnUrl = pkgInfoHash.Item("src_path")
738
            Dim lastBit: lastBit = InStrRev(SvnUrl, "/" )
739
            If lastBit > 1 Then
740
                SvnUrl = Left(SvnUrl, lastBit-1) 
741
            End If
742
        Else
743
            SvnUrl = "AUPERASVN0X/RepoName/" & pkgInfoHash.Item ("pkg_name")
744
        End If
745
        If pkgInfoHash.Item("pkg_label") <> "" Then
746
            SvnLabel = pkgInfoHash.Item("pkg_label") 
747
        Else
748
            SvnLabel = "SomeLabel.WIP"
749
        End If
750
 
751
      %>
752
         <tr>
6873 dpurdie 753
            <td><%=title%><%=Quick_Help("CreationHints")%></td>
754
            <td>
6497 dpurdie 755
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
6873 dpurdie 756
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> </td></tr>
757
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> -import=&lt;PkgDir&gt; </td></tr>
758
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> -label=<%=SvnLabel%> -import=&lt;PkgDir&gt; </td></tr>
759
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> -label=<%=SvnLabel%> -import=<%=pkgInfoHash.Item ("pkg_name")%> </td></tr>
6497 dpurdie 760
              </table>
761
            </td>
762
         </tr>
763
      <%
6508 dpurdie 764
    Else
765
    %>
766
         <tr>
6873 dpurdie 767
            <td><%=title%></td>
768
            <td>Not supported under this version control system.</td>
6508 dpurdie 769
         </tr>
770
     <%
6497 dpurdie 771
    End If
772
End Sub
119 ghuddy 773
%>
774
<%
775
'------------------ MAIN LINE --------------------
776
'-------------------------------------------------
5932 dpurdie 777
If pkgInfoHash.Exists("pv_id") Then
119 ghuddy 778
%>
779
<!-- PACKAGE INFORMATION --------------------------------------------------------------------------------------------------------------->
7457 dpurdie 780
   <a name="PACKAGE_INFORMATION"></a>
6324 dpurdie 781
   <fieldset class="fset">
782
   <legend class="body_colb"><img src='images/s_info.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Package Information</legend>
783
   <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
784
   <%If pageIsEditable Then%>
6827 dpurdie 785
           <span onClick="MM_openVixIFrame('_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Package Info')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 786
   <%End If%>
787
   </div>
6873 dpurdie 788
   <table width="100%" border="0" cellspacing="1" cellpadding="2" class='lhsGrey'>
129 ghuddy 789
      <%
7457 dpurdie 790
        Set rsQry = OraDatabase.DbCreateDynaset( SQL_Package_Information ( parPv_id ), cint(0))
791
        Call get_vcs_info_for_package( rsQry("pkg_label"), rsQry("build_type"), rsQry("vcs_type_id"), rsQry("dlocked"), vcsInfoCollector )
5293 dpurdie 792
        ' Status:
161 iaugusti 793
        Dim sstate
171 brianf 794
        Dim bcan_unlock
161 iaugusti 795
        Dim stitle
171 brianf 796
        Dim bis_patch
5293 dpurdie 797
        Dim spkgType
6610 dpurdie 798
        Dim shref
161 iaugusti 799
 
171 brianf 800
        bis_patch = not IsNull(pkgInfoHash.Item ("is_patch")) 
3616 dpurdie 801
        If bis_patch Then
802
          ' the user can unlock a patch if they have permission
803
          ' packages can be unlocked by the btnUnlockRelease button
5061 dpurdie 804
          bcan_unlock = canActionControlInProject("UnlockPatch")
5293 dpurdie 805
          spkgType = "Patch"
3616 dpurdie 806
        Else
5061 dpurdie 807
          bcan_unlock = canActionControlInProject("EditCriticalInfoForLockedPackage")
5293 dpurdie 808
          spkgType = "Package"
3616 dpurdie 809
        End If
171 brianf 810
 
5086 dpurdie 811
        If pkgInfoHash.Item("is_sdkpkg") Then bcan_unlock = FALSE
812
 
3959 dpurdie 813
        Select Case pkgInfoHash.Item ("dlocked")
814
            Case "Y"  sstate = "Released"
815
            Case "N"  sstate = "Not Released"
816
            Case "P"  sstate = "Not Released. Pending approval"
6181 dpurdie 817
            Case "A"  sstate = "Not Released. Approved for build"
3959 dpurdie 818
            Case "R"  sstate = "Not Released. Rejected"
819
            Case Else sstate = "Not Released. Invalid State"
820
        End Select
821
 
171 brianf 822
        If bcan_unlock  Then
161 iaugusti 823
          If (pkgInfoHash.Item ("dlocked") = "Y") Then
5293 dpurdie 824
            ' Unlock patch/package.
825
            stitle="Unlock the " & spkgType
161 iaugusti 826
            shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
5293 dpurdie 827
 
161 iaugusti 828
          ElseIf (pkgInfoHash.Item ("dlocked") = "N") Then
5293 dpurdie 829
            ' lock patch/package.
830
            stitle="Lock the "& spkgType &". Release requirements are not applied."
161 iaugusti 831
            shref="_s_lock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
5293 dpurdie 832
 
3616 dpurdie 833
          Else
5293 dpurdie 834
            ' unlock patch/package.
835
            stitle="Unlock the " & spkgType
3616 dpurdie 836
            shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
837
            bcan_unlock = FALSE
161 iaugusti 838
          End If
839
        End if
129 ghuddy 840
      %>
161 iaugusti 841
 
121 hknight 842
      <tr>
6873 dpurdie 843
         <td>
6579 dpurdie 844
         <% If bcan_unlock Then %>
6873 dpurdie 845
              <span title='<%=stitle%>' class='pointer' onClick="window.location='<%=shref%>'">Status:&nbsp;<img src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'></span>
171 brianf 846
         <% Else %>
6873 dpurdie 847
              Status:<img src='images/i_edit_disable.gif' width='12' height='12' border='0' title='Cannot change status' align='absmiddle'>
171 brianf 848
         <% End If %>
161 iaugusti 849
         </td>
6873 dpurdie 850
         <td><%=sstate%></td>
161 iaugusti 851
      </tr>
852
 
853
      <tr>
6873 dpurdie 854
         <td>Deployable:</td>
855
         <td><%=iif(IsNull( rsQry("is_deployable") ), "No","Yes")%></td>
121 hknight 856
      </tr>
129 ghuddy 857
 
7395 dpurdie 858
<%If parRtag_id <> "" Then
859
    Dim s3Text
7468 dpurdie 860
    If pkgInfoHash("inManifest") <> "Y" Then
7395 dpurdie 861
        s3Text = "No"
862
    Else
7468 dpurdie 863
        If pkgInfoHash("s3ManifestEnabled") <> "Y" Then
864
            s3Text = "Yes. Ignored as the Release does not support S3 Manifest generation"
7395 dpurdie 865
        Else
866
            s3Text = "Yes"
867
        End If            
868
    End If
869
%>
161 iaugusti 870
      <tr>
7568 dpurdie 871
         <td>
872
            <%BuildEditButtonRaw pkgInfoHash.Item ("is_released") AND ( canActionControlInProject("ConfigureRelease") OR canActionControlInProject("EditNonCriticalInfoForLockedPackage") OR canActionControlInProject ("EditInManifest") OR canActionControl("MSMaintainer")), _
873
                "Include in Manifest:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
874
                "MM_openVixIFrame('_wform_change_in_manifest.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change In Manifest')" %>
875
            <%=Quick_Help("inManifest")%>
876
         </td>
7468 dpurdie 877
         <td><%=s3Text%>
7395 dpurdie 878
      </tr>
879
<%End If%>
880
 
881
      <tr>
6873 dpurdie 882
         <td>Short Description:</td>
883
         <td class="clip">
161 iaugusti 884
            <%If IsNull( rsQry("pv_description") ) Then%>
5596 dpurdie 885
               <span class='err_alert'>Required!</span>
886
            <%Else%>
887
              <%=NewLine_To_BR ( To_HTML( rsQry("pv_description") ) )%>
161 iaugusti 888
            <%End If%>
889
         </td>
890
      </tr>
891
      <tr>
6873 dpurdie 892
         <td>Package Overview:</td>
893
         <td class="clip">
161 iaugusti 894
            <%If IsNull( rsQry("pv_overview") ) Then%>
5596 dpurdie 895
               <span class='err_alert'>Required!</span>
896
            <%Else%>
897
               <%=NewLine_To_BR ( To_HTML( rsQry("pv_overview") ) )%>
161 iaugusti 898
            <%End If%>
899
         </td>
900
      </tr>
5338 dpurdie 901
	  <!-- Package Licence information -->
5980 dpurdie 902
      <%
903
        Dim sonclick
6642 dpurdie 904
        Dim imgClass
905
        Dim sClass
5980 dpurdie 906
      %>
5338 dpurdie 907
      <tr>
6873 dpurdie 908
         <td>
6827 dpurdie 909
            <%BuildEditButtonRaw canActionControlInProject ("EditPackageLicence") OR canActionControl("MSMaintainer"), _
910
                "Package Licence:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
911
                "MM_openVixIFrame('_wform_change_licence.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change License')" %>
5980 dpurdie 912
         </td>
6873 dpurdie 913
         <td>
5338 dpurdie 914
            <%=getLicence()%>
915
         </td>
916
      </tr>
7536 dpurdie 917
       <!-- Package 3rd Party External Reference -->
918
      <tr>
919
      <%
920
      ' Display only if the package is a COTS ( or TOOL ) package
7537 dpurdie 921
      ' Display if this package has associated licencing
922
      ' Display if this is the first version of the package 
923
      If pkgInfoHash.Item("is_cots") = "Y" OR (CINT(pkgInfoHash.Item("pkgVerCount")) = 1 AND pkgInfoHash.Item("dlocked") = "N" ) OR bHasaLicense OR pkgInfoHash.Item("pkg_eref") <> ""  Then
7536 dpurdie 924
       %>
925
         <td>
926
            <%BuildEditButtonRaw canActionControlInProject ("EditPackageLicence") OR canActionControl("MSMaintainer"), _
927
                "External Reference:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
928
                "MM_openVixIFrame('_wform_change_eref.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change External Reference')" %>
929
                <%=Quick_Help("ExternalRef")%>
930
         </td>
931
         <td>
7537 dpurdie 932
            <%=pkgInfoHash.Item("pkg_eref")%>
7536 dpurdie 933
         </td>
934
      </tr>
935
       <%End If%>
6827 dpurdie 936
	  <!-- Build Owner -->
6873 dpurdie 937
      <tr>
938
        <td>
6827 dpurdie 939
         <%BuildEditButtonRaw objAccessControl.UserLogedIn() AND NOT pkgInfoHash.Item("is_sdkpkg"),_
940
             "Build Owner:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
941
             "MM_openVixIFrame('_wform_change_owner.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change Owner')" %>
6642 dpurdie 942
          <%=Quick_Help("BuildOwner")%>
161 iaugusti 943
        </td>         
6873 dpurdie 944
        <td><%=emailField(pkgInfoHash.Item ("owner"),pkgInfoHash.Item ("owner_email"))%></td>         
161 iaugusti 945
      </tr>
946
 
947
      <tr>
6873 dpurdie 948
         <td>Created:</td>
949
         <td>
6999 dpurdie 950
            <%=DisplayDateTimeSecs(pkgInfoHash.Item ("created_stamp"))&" by "& emailField(pkgInfoHash.Item ("creator"),pkgInfoHash.Item ("creator_email"))%>
161 iaugusti 951
         </td>
952
      </tr>
953
 
954
      <%
955
        ' Last Modified:
956
      %>
957
      <tr>
6873 dpurdie 958
         <td>Last Modified:</td>
959
         <td>
6610 dpurdie 960
            <%=DisplayDateTimeSecs(pkgInfoHash.Item ("modified_stamp"))&" by "& emailField(pkgInfoHash.Item ("modifier"),pkgInfoHash.Item ("modifier_email"))%>
161 iaugusti 961
         </td>
962
      </tr>
963
 
964
      <%
965
        ' Added to Release
966
        If IsNull(pkgInfoHash.Item ("is_patch"))  AND  (Request("rtag_id") <> "") AND (pkgInfoHash.Item ("insertor") <> "") Then
967
      %>
968
      <tr>
6873 dpurdie 969
         <td>Added to Release:</td>
970
         <td>
6999 dpurdie 971
            <%=DisplayDateTimeSecs(pkgInfoHash.Item ("insert_stamp")) &" by "& emailField(pkgInfoHash.Item ("insertor"),pkgInfoHash.Item ("insertor_email"))%>
161 iaugusti 972
         </td>
973
      </tr>
974
      <%End If%>
975
 
139 ghuddy 976
      <%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) OR (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
129 ghuddy 977
         <tr>
6873 dpurdie 978
            <td>Version Control System:</td>
979
            <td>
129 ghuddy 980
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
5596 dpurdie 981
             <%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) AND pkgInfoHash.Item ("build_type") = "A" Then%>
982
             <span class='err_alert'>[Requires Manual Build]</span>
983
             <%End If%>
984
             <td>
129 ghuddy 985
         </tr>
1376 dpurdie 986
 
129 ghuddy 987
         <tr>
6873 dpurdie 988
            <td>Source Path:</td>
989
            <td>
1376 dpurdie 990
               <%If IsNull( rsQry("src_path") ) Then%>
991
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
129 ghuddy 992
               <%End If%>
993
            </td>
994
         </tr>
1376 dpurdie 995
 
129 ghuddy 996
         <tr>
6873 dpurdie 997
            <td>Label:</td>
998
            <td>
1376 dpurdie 999
               <%If IsNull( rsQry("pkg_label") ) Then%>
1000
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
129 ghuddy 1001
               <%End If%>
1002
            </td>
1003
         </tr>
7379 dpurdie 1004
      <%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG OR vcsInfoCollector.Item("vcs_tag") = enum_VCS_GIT_TAG Then%>
129 ghuddy 1005
         <tr>
6873 dpurdie 1006
            <td>Version Control System:</td>
1007
            <td>
129 ghuddy 1008
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
1009
            </td>
1010
         </tr>
1376 dpurdie 1011
 
129 ghuddy 1012
         <tr>
6873 dpurdie 1013
            <td>Source Path:</td>
1014
            <td class="clip">
129 ghuddy 1015
               <%If IsNull( rsQry("src_path") ) Then%>
1016
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
1017
               <%End If%>
1018
            </td>
1019
         </tr>
1376 dpurdie 1020
 
183 brianf 1021
         <tr>
6873 dpurdie 1022
            <td>Tag:</td>
1023
            <td class="clip">
191 brianf 1024
               <%If IsNull( rsQry("pkg_label") ) Then%>
1025
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
1026
               <%End If%>
183 brianf 1027
            </td>
1028
         </tr>
1376 dpurdie 1029
 
129 ghuddy 1030
      <%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG Then%>
1031
         <tr>
6873 dpurdie 1032
            <td>Version Control System:</td>
1033
            <td>
129 ghuddy 1034
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
1035
            </td>
1036
         </tr>
1037
      <%Else%>
1038
         <tr>
6873 dpurdie 1039
            <td>Version Control System:</td>
1040
            <td>
129 ghuddy 1041
               <span class='err_alert'>Required!</span>
1042
            </td>
1043
         </tr>
1044
      <%End If%>
1045
 
121 hknight 1046
      <tr>
6873 dpurdie 1047
         <td>
6827 dpurdie 1048
         <%BuildEditButtonRaw (pkgInfoHash.Item("can_edit_in_project") = "1") AND (objAccessControl.UserLogedIn) AND (canActionInProject()) AND pkgInfoHash.Item("base_view_id") <> "",_
1049
             "Base View:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
7349 dpurdie 1050
             "MM_openVixIFrame('_wform_change_group.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Set Package Base View')" %><%=Quick_Help("baseView")%>
6579 dpurdie 1051
         </td>
6873 dpurdie 1052
         <td class="clip">
6642 dpurdie 1053
         <% Dim CleanView : CleanView = pkgInfoHash.Item("view_name")
1054
            If CleanView = "" Then CleanView = "N/A"
7349 dpurdie 1055
            If pkgInfoHash.Item("release_view_name") <> ""  AND pkgInfoHash.Item("view_name") <> pkgInfoHash.Item("release_view_name") Then 
1056
                Response.Write "[" & pkgInfoHash.Item("release_view_name") & "]&nbsp;"
1057
            End If
6642 dpurdie 1058
            Response.Write CleanView
1059
          %>
121 hknight 1060
         </td>
1061
      </tr>
161 iaugusti 1062
 
121 hknight 1063
      <tr>
6873 dpurdie 1064
         <td>Following:<%=Quick_Help("following")%></td>
1065
         <td><%=GetFollowing()%></td>
5266 dpurdie 1066
      </tr>
1067
 
1068
      <tr>
6873 dpurdie 1069
         <td>Build Standard:</td>
121 hknight 1070
         <%
1071
         If pkgInfoHash.Item ("bs_id") <> "" Then
1072
            If pkgInfoHash.Item ("bs_id") = "1" Then
6873 dpurdie 1073
               Response.write "<td>JATS<br></td>"
119 ghuddy 1074
 
121 hknight 1075
            ElseIf pkgInfoHash.Item ("bs_id") = "2" Then
6873 dpurdie 1076
               Response.write "<td>ANT<br></td>"
119 ghuddy 1077
 
121 hknight 1078
            ElseIf pkgInfoHash.Item ("bs_id") = "3" Then
6873 dpurdie 1079
               Response.write "<td>NONE"
5596 dpurdie 1080
               If pkgInfoHash.Item("build_type") = "A" Then
1081
                    Response.write "<span class='err_alert'> [Must be specified for an automated build]</span>"
1082
               End If
1083
               Response.write "<br></td>"
121 hknight 1084
            End If
1085
         Else
129 ghuddy 1086
            If vcsInfoCollector.Item("vcs_tag") <> enum_VCS_UNCONTROLLED_TAG Then
6873 dpurdie 1087
               Response.write "<td><span class='err_alert'>Required!</span><br></td>"
129 ghuddy 1088
            Else
6873 dpurdie 1089
               Response.write "<td>Unspecified<br></td>"
129 ghuddy 1090
            End If
121 hknight 1091
         End If
1092
         %>
1093
      </tr>
129 ghuddy 1094
      <%If (NOT IsNull(pkgInfoHash.Item ("bs_id"))) AND (pkgInfoHash.Item ("bs_id") <> "3") Then%>
1095
         <tr>
6873 dpurdie 1096
            <td>Build Environment:</td>
129 ghuddy 1097
            <%
1098
            '--- Get Build Env Details
1099
            Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
1100
            %>
6873 dpurdie 1101
            <td>
129 ghuddy 1102
               <%If rsTemp.RecordCount = 0 Then%>
1103
                  <%If rsQry("is_build_env_required") = enumDB_NO Then%>
1104
                     Not Required
1105
                  <%Else%>
1106
                     <span class='err_alert'>Required!</span>
1107
                  <%End If%>
1108
               <%Else%>
1109
                  <%If (IsNull( rsQry("is_build_env_required") ) AND (rsQry("comments") <> "Rippled Build.")) Then%>
1110
                     <span class='err_alert'>Required!</span>
1111
                  <%ElseIf rsQry("is_build_env_required") = enumDB_NO Then%>
1112
                     Not Required.
1113
                  <%Else%>
1376 dpurdie 1114
                     <table width="40%"  border="0" cellspacing="0" cellpadding="1">
129 ghuddy 1115
                        <%
1116
                        currG1 = 0
1117
                        While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
4134 dpurdie 1118
                           If currG1 <> CInt(rsTemp("bm_id")) Then%>
129 ghuddy 1119
                              <tr>
6873 dpurdie 1120
                                 <td colspan="2" nowrap>
4134 dpurdie 1121
                                    <%=rsTemp("bm_name")%>&nbsp;<%=GetBuildType( rsTemp("bsa_id"),rsTemp("bsa_name") )%>
129 ghuddy 1122
                                 </td>
1123
                              </tr>
1124
                              <%currG1 = CInt(rsTemp("bm_id"))
1125
                           End If
1126
                           rsTemp.MoveNext
1127
                        WEnd
1128
                        %>
1129
                     </table>
1130
                  <%End If%>
121 hknight 1131
               <%End If%>
129 ghuddy 1132
            </td>
1133
         </tr>
1134
      <%End If%>
1135
 
2735 dpurdie 1136
      <%
1137
      ' Get JATS extraction commands
1138
      Dim  sjats_cmd_test, sjats_cmds_qh, sjats_extractable
1139
      ReDim sjats_cmds(6)
1140
      call Jats_Extract_Command(sjats_cmds, sjats_cmd_test, sjats_cmds_qh, sjats_extractable)
6497 dpurdie 1141
      Dim PrevVerTitle : PrevVerTitle = "Previous Version:"
2735 dpurdie 1142
 
6480 dpurdie 1143
      ' Previous Versions 
6827 dpurdie 1144
      If pkgInfoHash.Item ("pkg_count") = 1 AND pkgInfoHash.Item ("dlocked") = "N" Then
6497 dpurdie 1145
        Call DisplayVersionRow(NULL, PrevVerTitle, "PreviousVcsTag")
1146
        Call DisplayCreationCommands()
6480 dpurdie 1147
 
6497 dpurdie 1148
      ElseIf IsNull(pkgInfoHash.Item ("is_patch")) Then
1149
 
6480 dpurdie 1150
        If canActionControlInProject("ChangePreviousVersion") AND NOT pkgInfoHash.Item("is_sdkpkg") Then
5590 dpurdie 1151
            sonclick="MM_openVixIFrame('_wform_change_previous_version.asp?rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change Previous Version')"
6873 dpurdie 1152
            PrevVerTitle = "<span onClick=""" & sonclick & """ class='sublbox_txt'> " & PrevVerTitle & " <img src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'></span>"
6480 dpurdie 1153
        Else
6642 dpurdie 1154
            PrevVerTitle = PrevVerTitle & "<img src='images/i_edit_disable.gif' width='12' height='12' border='0' align='absmiddle'>"
6480 dpurdie 1155
        End If
1156
        Call DisplayVersionRow(pkgInfoHash.Item ("last_pv_id"), PrevVerTitle, "PreviousVcsTag") 
129 ghuddy 1157
 
6480 dpurdie 1158
        Dim iLastSignificantPVID
1159
        Dim iRippleBasePVID
1160
        Call getLastSignificantVersions(pkgInfoHash.Item("pv_id"), iRippleBasePVID, iLastSignificantPVID)
129 ghuddy 1161
 
6480 dpurdie 1162
        Call DisplayVersionRow(iRippleBasePVID, "Previous NonRipple Version:", "PreviousNonRippleVcsTag") 
1163
        Call DisplayVersionRow(iLastSignificantPVID, "Previous Significant Version:", "PreviousSignificantVcsTag") 
1164
      End If
161 iaugusti 1165
      %>
1166
      <tr>
6873 dpurdie 1167
         <td>JATS extraction commands:<%=Quick_Help ( "JatsExtraction_" & sjats_cmds_qh )%></td>
6121 dpurdie 1168
         <td style="padding: 0px;">
1169
         <table class="full_table">
1376 dpurdie 1170
         <% Dim ii : For ii = 0 to UBound(sjats_cmds) %>
6873 dpurdie 1171
             <tr><td class="clip"><%=NewLine_To_BR ( To_HTML(sjats_cmds(ii)) )%>&nbsp;</td>
1376 dpurdie 1172
         <% Next %>
161 iaugusti 1173
         </td>
1376 dpurdie 1174
         </tr>
1175
         </table>
161 iaugusti 1176
      </tr>
1177
      <tr>
6873 dpurdie 1178
         <td>JATS Test:<%=Quick_Help ( "JatsTest" )%></td>
1179
         <td class="clip"><%=NewLine_To_BR ( To_HTML(sjats_cmd_test) )%></td>
161 iaugusti 1180
      </tr>
129 ghuddy 1181
 
161 iaugusti 1182
      <%
1376 dpurdie 1183
      ' Beyond Compare difference command
1184
      Dim prevVcsTag
1185
      Dim curVcsTag
6497 dpurdie 1186
      Dim sBcCmd, sBcClass 
1376 dpurdie 1187
 
1188
      prevVcsTag = Get_Pkg_Vcs_Tag(iLastSignificantPVID)
1189
      curVcsTag = Get_Pkg_Vcs_Tag(parPv_id)
1190
      sBcCmd = ""
6497 dpurdie 1191
      sBcClass = ""
1376 dpurdie 1192
 
6497 dpurdie 1193
      If pkgInfoHash.Item ("pkg_count") = 1 Then
1194
            sBcCmd = "No prior version compare against"
1195
      ElseIf (IsNull(prevVcsTag) OR prevVcsTag = "" ) Then
1376 dpurdie 1196
            sBcCmd = "No prior label to compare against"
1197
      ElseIf (IsNull(curVcsTag) OR curVcsTag = "" ) Then
1198
            sBcCmd = "Current VCS tag not yet specified"
2735 dpurdie 1199
      ElseIf (not sjats_extractable) Then
1200
            sBcCmd = "Cannot be extracted with JATS"
1376 dpurdie 1201
      Else
1202
            sBcCmd = "jats vcsdiff -old=" & prevVcsTag & " -new=" & curVcsTag
6497 dpurdie 1203
            sBcClass = "clip"
1376 dpurdie 1204
      End If
1205
      sBcCmd = NewLine_To_BR( To_HTML (sBcCmd) )
6873 dpurdie 1206
      %>
1376 dpurdie 1207
 
161 iaugusti 1208
      <tr>
6873 dpurdie 1209
        <td>Beyond Compare command:<%=Quick_Help ( "BeyondCompare" )%></td>
1210
        <td class="<%=sBcClass%>"><%=sBcCmd%></td>
161 iaugusti 1211
      </tr>
1212
 
119 ghuddy 1213
 
121 hknight 1214
      <%If pkgInfoHash.Item("is_deployable") = "Y" Then
1215
         OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
1216
         Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DeploymentManagerReference.sql"), cint(0))
1217
         If rsTemp.RecordCount = 0 Then%>
1218
            <tr>
6873 dpurdie 1219
               <td>SBOM Information:</td>
121 hknight 1220
               <%If pkgInfoHash.Item("product_state") = 3 Then%>
6873 dpurdie 1221
                  <td class="err_alert"><b>Ready For Deployment!</b></td>
121 hknight 1222
               <%ElseIf pkgInfoHash.Item("product_state") = 2 Then%>
6873 dpurdie 1223
                  <td class="err_alert"><b>Ready For Testing!</b></td>
121 hknight 1224
               <%ElseIf pkgInfoHash.Item("product_state") = 1 Then%>
6873 dpurdie 1225
                  <td class="err_alert"><b>Ready For Integration!</b></td>
121 hknight 1226
               <%ElseIf pkgInfoHash.Item("product_state") = 5 Then%>
6873 dpurdie 1227
                  <td class="err_alert"><b>Ready For Integration and Deployment!</b></td>
121 hknight 1228
               <%ElseIf IsNull(pkgInfoHash.Item("product_state")) Then%>
6873 dpurdie 1229
                  <td class="err_alert"><b>Information Unavailable!</b></td>
121 hknight 1230
               <%End If%>
119 ghuddy 1231
 
1232
            </tr>
121 hknight 1233
         <%Else%>
119 ghuddy 1234
            <tr>
6873 dpurdie 1235
               <td>SBOM Added/Updated:</td>
1236
               <td><%=rsTemp("branch_name")%> - <%=rsTemp("bom_name")%><%=VBNewLine%><%=rsTemp("version")%></td>
119 ghuddy 1237
            </tr>
121 hknight 1238
         <%End If
1239
         rsTemp.Close()
1240
         Set rsTemp = Nothing
1241
         OraDatabase.Parameters.Remove "PV_ID"
1242
      End If
1243
      %>
1244
   </table>
161 iaugusti 1245
   </fieldset>
121 hknight 1246
   <br>
1376 dpurdie 1247
 
121 hknight 1248
<!-- PACKAGE METRICS -------------------------------------------------------------------------------------------------------------------->
5383 dpurdie 1249
   <%
1250
   Call GetPackageMetrics( parPv_id, rsPkgMetrics )
1251
   %>
6324 dpurdie 1252
   <fieldset class="fset" onclick="ToggleDisplay('divPkgMetrics','pkg_metrics_filler')">
5526 dpurdie 1253
   <%If IsNull(rsPkgMetrics("pkg_name")) Then %>
5383 dpurdie 1254
      <legend class="body_colb">
6827 dpurdie 1255
         <img src="images/i_metrics.gif" width="20" height="24" hspace="4" border="0" align='absmiddle' >Package Metrics not available
6324 dpurdie 1256
      </legend>
5526 dpurdie 1257
   <%Else%>
1258
      <legend class="body_colb">
6827 dpurdie 1259
         <img src="images/i_metrics.gif" width="20" height="24" hspace="4" border="0" align='absmiddle' >Package Metrics...
6324 dpurdie 1260
      </legend>
5383 dpurdie 1261
      <div name="pkg_metrics_filler" id="pkg_metrics_filler" style="display:block;" class="div_filler">
6827 dpurdie 1262
         <span class="txt_linked pointer">Show...</span>
5383 dpurdie 1263
      </div>
1264
      <div name="divPkgMetrics" id="divPkgMetrics" style="display:none;">
1265
         <a name="PACKAGE_METRICS"></a>
6873 dpurdie 1266
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='lhsGrey'>
5383 dpurdie 1267
            <tr>
6873 dpurdie 1268
               <td width='20%'>Autobuilt:</td>
1269
               <td><%If rsPkgMetrics("is_autobuildable") = "Y" Then%>Yes<%Else%>No<%End If%></td>
5383 dpurdie 1270
            </tr>
1271
            <tr>
6873 dpurdie 1272
               <td>Unit Tested:</td>
1273
               <td><%If rsPkgMetrics("unit_tested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
5383 dpurdie 1274
            </tr>
1275
            <tr>
6873 dpurdie 1276
               <td>Autotested:</td>
1277
               <td><%If rsPkgMetrics("autotested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
5383 dpurdie 1278
            </tr>
1279
            <%If NOT IsNull(rsPkgMetrics("code_lines")) Then%>
1280
            <tr>
6873 dpurdie 1281
               <td>Code Lines:</td>
1282
               <td><%=rsPkgMetrics("code_lines")%></td>
5383 dpurdie 1283
            </tr>
1284
            <%End If%>
1285
            <%If NOT IsNull(rsPkgMetrics("comment_lines")) Then%>
1286
            <tr>
6873 dpurdie 1287
               <td>Comment Lines:</td>
1288
               <td><%=rsPkgMetrics("comment_lines")%></td>
5383 dpurdie 1289
            </tr>
1290
            <%End If%>
1291
            <%If NOT IsNull(rsPkgMetrics("blank_lines")) Then%>
1292
            <tr>
6873 dpurdie 1293
               <td>Blank Lines:</td>
1294
               <td><%=rsPkgMetrics("blank_lines")%></td>
5383 dpurdie 1295
            </tr>
1296
            <%End If%>
1297
            <%If NOT IsNull(rsPkgMetrics("branches")) Then%>
1298
            <tr>
6873 dpurdie 1299
               <td>Number of Branches:</td>
1300
               <td><%=rsPkgMetrics("branches")%></td>
5383 dpurdie 1301
            </tr>
1302
            <%End If%>
1303
            <%If NOT IsNull(rsPkgMetrics("branch_list")) Then%>
1304
            <tr>
6873 dpurdie 1305
               <td>Branch List:</td>
1306
               <td><%=rsPkgMetrics("branch_list")%></td>
5383 dpurdie 1307
            </tr>
1308
            <%End If%>
1309
            <%If NOT IsNull(rsPkgMetrics("code_files")) Then%>
1310
            <tr>
6873 dpurdie 1311
               <td>Code Files:</td>
1312
               <td><%=rsPkgMetrics("code_files")%></td>
5383 dpurdie 1313
            </tr>
1314
            <%End If%>
1315
            <%If NOT IsNull(rsPkgMetrics("ignored_files")) Then%>
1316
            <tr>
6873 dpurdie 1317
               <td>Ignored Files:</td>
1318
               <td><%=rsPkgMetrics("ignored_files")%></td>
5383 dpurdie 1319
            </tr>
1320
            <%End If%>
1321
            <%If NOT IsNull(rsPkgMetrics("makefiles")) Then%>
1322
            <tr>
6873 dpurdie 1323
               <td>Makefiles:</td>
1324
               <td><%=rsPkgMetrics("makefiles")%></td>
5383 dpurdie 1325
            </tr>
1326
            <%End If%>
1327
            <%If NOT IsNull(rsPkgMetrics("total_files")) Then%>
1328
            <tr>
6873 dpurdie 1329
               <td>Total Files:</td>
1330
               <td><%=rsPkgMetrics("total_files")%></td>
5383 dpurdie 1331
            </tr>
1332
            <%End If%>
1333
            <%If NOT IsNull(rsPkgMetrics("directories")) Then%>
1334
            <tr>
6873 dpurdie 1335
               <td>Number of Directories:</td>
1336
               <td><%=rsPkgMetrics("directories")%></td>
5383 dpurdie 1337
            </tr>
1338
            <%End If%>
1339
            <%If NOT IsNull(rsPkgMetrics("directory_depth")) Then%>
1340
            <tr>
6873 dpurdie 1341
               <td>Directory Depth:</td>
1342
               <td><%=rsPkgMetrics("directory_depth")%></td>
5383 dpurdie 1343
            </tr>
1344
            <%End If%>
1345
            <%If NOT IsNull(rsPkgMetrics("created_stamp")) Then%>
1346
            <tr>
6873 dpurdie 1347
               <td>Metrics Collected:</td>
1348
               <td><%=rsPkgMetrics("created_stamp")%></td>
5383 dpurdie 1349
            </tr>
1350
            <%End If%>
5632 dpurdie 1351
            <%If NOT IsNull(rsPkgMetrics("build_time")) Then%>
1352
            <tr>
6873 dpurdie 1353
               <td>Build Time:</td>
1354
               <td><%=rsPkgMetrics("build_time")%> Seconds</td>
5632 dpurdie 1355
            </tr>
1356
            <%End If%>
1357
 
5383 dpurdie 1358
         </table>
1359
      </div>
5526 dpurdie 1360
   <%End If%>
5383 dpurdie 1361
   </fieldset>
1362
   <br>
1363
   <%
1364
   rsPkgMetrics.Close()
1365
   Set rsPkgMetrics = nothing
1366
   %>
121 hknight 1367
<!-- PRODUCTS AFFECTED BY CHANGE -------------------------------------------------------------------------------------------------------->
119 ghuddy 1368
 
1369
<!-- REASON FOR DEPRECATION/DEPENDANCY DEPRECATED ----------------------------------------------------------------------------------------------------------------->
121 hknight 1370
   <%If pkgInfoHash.Item("deprecated_state") = 6 Then %>
119 ghuddy 1371
 
121 hknight 1372
      <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>
1373
         <a name="REASON_FOR_DEPRECATION"></a>
6873 dpurdie 1374
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
121 hknight 1375
            <tr>
6873 dpurdie 1376
               <td>
121 hknight 1377
                  <%
1378
                  Dim rsComment
1379
                  Set rsComment = OraDatabase.DbCreateDynaset("SELECT * FROM DEPRECATED_PACKAGES WHERE RTAG_ID ="& Request("rtag_id") &" AND PKG_ID = "& pkgInfoHash.Item ("pkg_id") &"", cint(0))
1380
                  If rsComment("comments") <> "" Then
1381
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1382
                     Response.write "<tr>"
1383
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR((  rsComment("comments") ) ) &"<br></td>"
1384
                     Response.write "</tr>"
1385
                     Response.write "</table>"
1386
                  'Else
1387
                  '   If FixedIssues ( parPv_id ) Then
1388
                  '      Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
1389
                  '   Else
1390
                  '      Response.write "<span class='err_alert'>Required!</span><br>"
1391
                  '   End If
1392
                  End If
1393
                  rsComment.Close()
1394
                  Set rsComment = nothing
1395
                  %>
1396
               </td>
1397
            </tr>
1398
         </table>
1399
      </fieldset>
4230 dpurdie 1400
      <br>
121 hknight 1401
   <%End If%>
119 ghuddy 1402
<!-- SBOM PRIORITY/CRITICALITY  --------------------------------------------------------------------------------------------------------->
121 hknight 1403
   <%If NOT pageIsEditable AND pkgInfoHash.Item ("is_deployable") = "Y" Then%>
6324 dpurdie 1404
      <fieldset class="fset">
1405
      <legend class="body_colb"><img src='icons/i_prod_sbom_priority.gif' hspace='4' border='0' align='absmiddle'>SBOM Priority</legend>
1406
       <%If (pkgInfoHash.Item ("dlocked") = "Y") Then%>
1407
       <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
6827 dpurdie 1408
            <span onClick="MM_openVixIFrame('_wform_sbom_priority.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','SBOM Priority')" class="pointer txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1409
       </div>
1410
       <%End If%>
121 hknight 1411
         <a name="SBOM_PRIORITY"></a>
6873 dpurdie 1412
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class=allGrey>
121 hknight 1413
            <tr>
6873 dpurdie 1414
               <td>
121 hknight 1415
                  <%If pkgInfoHash.Item ("sbom_priority") <> "" Then%>
1416
                     <table border='0' cellspacing='0' cellpadding='0'>
1417
                        <tr>
6873 dpurdie 1418
                           <td>
121 hknight 1419
                              <%
1420
                              If pkgInfoHash.Item ("sbom_priority") = "C" Then
1421
                                 Response.write "<b><font color='red'>Critical.</font></b>"
1422
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "I" Then
1423
                                 Response.write "<b>Important.</b>"
1424
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "R" Then
1425
                                 Response.write "Routine"
1426
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "L" Then
1427
                                 Response.write "Low"
1428
                              End If
1429
                              %>
1430
                           </td>
1431
                        </tr>
1432
                     </table>
1433
                  <%Else%>
1434
                     <span class='err_alert'>Required!</span><br>
1435
                  <%End If%>
1436
               </td>
1437
            </tr>
1438
         </table>
1439
      </fieldset>
4230 dpurdie 1440
      <br>
121 hknight 1441
   <%End If%>
119 ghuddy 1442
<!-- CHANGE TYPE  ----------------------------------------------------------------------------------------------------------------------->
4230 dpurdie 1443
   <fieldset class="fset">
1444
   <a name="CHANGE_TYPE"></a>
121 hknight 1445
   <%If pkgInfoHash.Item ("build_type") = "A" Then%>
4218 dpurdie 1446
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Change Type</legend>
6324 dpurdie 1447
         <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
1448
              <%If (pkgInfoHash.Item ("dlocked") <> "A")  AND (pkgInfoHash.Item ("dlocked") <> "Y") AND criticalSectionIsEditable Then%>
6827 dpurdie 1449
                 <span onClick="MM_openVixIFrame('_wform_rename_version.asp?renameMode=2&rfile=<%=ScriptName%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Change Ripple Type')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1450
              <%End If%>
1451
         </div>
6873 dpurdie 1452
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
121 hknight 1453
            <tr>
6873 dpurdie 1454
               <td>
121 hknight 1455
                  <%
1456
                  If pkgInfoHash.Item ("change_type") <> "" Then
1457
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1458
                     Response.write "<tr>"
1459
                     If pkgInfoHash.Item ("change_type") = "M" Then
1460
                        Response.write "<td class='sublbox_txt'>Major Change.<br></td>"
1461
                     ElseIf pkgInfoHash.Item ("change_type") = "N" Then
1462
                        Response.write "<td class='sublbox_txt'>Minor Change.<br></td>"
1463
                     ElseIf pkgInfoHash.Item ("change_type") = "P" Then
1464
                        Response.write "<td class='sublbox_txt'>Patch Change.<br></td>"
4230 dpurdie 1465
                     ElseIf pkgInfoHash.Item ("change_type") = "F" Then
1466
                        Response.write "<td class='sublbox_txt'>Version Specified by User.<br></td>"
1467
                     Else
1468
                        Response.write "<td><span class='err_alert'>Unknown Change Type: " & pkgInfoHash.Item ("change_type") & "</span></td>"
121 hknight 1469
                     End If
1470
                     Response.write "</tr>"
1471
                     Response.write "</table>"
1472
                  Else
1473
                     Response.write "<span class='err_alert'>Required!</span><br>"
1474
                  End If
1475
                  %>
1476
               </td>
1477
            </tr>
1478
         </table>
4230 dpurdie 1479
   <%ElseIf pkgInfoHash.Item ("build_type") = "M" Then%>
1480
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1481
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
4230 dpurdie 1482
            <tr>
6873 dpurdie 1483
               <td>Manually Built Package.
4230 dpurdie 1484
                  <%If pkgInfoHash.Item ("change_type") <> "F" Then%>
1485
                        <span class='err_alert'>Unexpected Change Type: <%=pkgInfoHash.Item ("change_type")%></span>
1486
                  <%End If%>
1487
               </td>
1488
            </tr>
1489
         </table>
5898 dpurdie 1490
   <%ElseIf pkgInfoHash.Item ("build_type") = "U" Then%>
1491
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1492
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
5898 dpurdie 1493
            <tr>
6873 dpurdie 1494
               <td>
6881 dpurdie 1495
               <span class='err_alert'>UnbuildablePackage.</span> This version has been created outside of the build system, possibly via Deployment Manager or as a part of the unification of the Pulse Build System.
5898 dpurdie 1496
               </td>
1497
            </tr>
1498
         </table>
4230 dpurdie 1499
   <%ElseIf pkgInfoHash.Item ("build_type") = "Y" Then%>
1500
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1501
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
4230 dpurdie 1502
            <tr>
6873 dpurdie 1503
               <td>Ripple Built</td>
4230 dpurdie 1504
            </tr>
1505
         </table>
1506
   <%Else%>
1507
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1508
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
4230 dpurdie 1509
            <tr>
6873 dpurdie 1510
               <td><span class='err_alert'>Unknown Build Type (<%=pkgInfoHash.Item ("build_type")%>) Change Type (<%=pkgInfoHash.Item ("change_type")%>)</span></td>
4230 dpurdie 1511
            </tr>
1512
         </table>
121 hknight 1513
   <%End If%>
4230 dpurdie 1514
   </fieldset>
1515
   <br>
131 ghuddy 1516
 
119 ghuddy 1517
<!-- RIPPLE PROPERTIES  ----------------------------------------------------------------------------------------------------------------------->
131 ghuddy 1518
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
6324 dpurdie 1519
      <fieldset class="fset">
1520
         <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>
1521
         <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
6538 dpurdie 1522
            <%Dim canEditRippleProperties : canEditRippleProperties = FALSE
6700 dpurdie 1523
 
1524
                canEditRippleProperties = (pageIsEditable AND canShowControlInProject( "RipplePackage" )) OR _ 
6538 dpurdie 1525
                                          canShowControlInProject( "AdvRipPackageVersions" ) OR _
6700 dpurdie 1526
                                          canShowControlInProject( "PegPackageVersions" ) OR _
6538 dpurdie 1527
                                          criticalSectionIsEditable
1528
 
1529
            If canEditRippleProperties Then%>
6827 dpurdie 1530
                <span onClick="MM_openVixIFrame('_wform_ripple_properties.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Edit Ripple Type')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1531
            <%End If%>
1532
         </div>
121 hknight 1533
         <a name="RIPPLE_PROPERTIES"></a>
6873 dpurdie 1534
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='lhsGrey'>
131 ghuddy 1535
            <%If Request("rtag_id") <> "" Then
5098 dpurdie 1536
               If pkgInfoHash.Item ("is_pegged")  Then %>
131 ghuddy 1537
                  <tr>
6873 dpurdie 1538
                     <td>Is Pegged <%=Quick_Help ( "pegged_version" )%></td>
1539
                     <td>Yes</td>
131 ghuddy 1540
                  </tr>
1541
               <%End If%>
5098 dpurdie 1542
            <%End If%>
131 ghuddy 1543
 
5098 dpurdie 1544
            <%If NOT pkgInfoHash.Item ("is_pegged") Then%>
6440 dpurdie 1545
              <%If Request("rtag_id") <> "" Then%>
131 ghuddy 1546
               <tr>
6873 dpurdie 1547
                  <td>Build Inclusion<%=Quick_Help ( "ripple_build" )%>
131 ghuddy 1548
                  </td>
6440 dpurdie 1549
                     <%Dim rsQryRipple
1550
                     Set rsQryRipple = OraDatabase.DbCreateDynaset( "SELECT p.PKG_NAME, pv.PV_OVERVIEW, pv.PKG_ID,nvl(dnr.root_pv_id, -1) as root_pv_id, dnr.* FROM DO_NOT_RIPPLE dnr, PACKAGE_VERSIONS pv, PACKAGES p WHERE dnr.RTAG_ID ="& Request("rtag_id") &"AND dnr.PV_ID ="&Request("pv_id") &" AND  pv.pv_id(+) = dnr.ROOT_PV_ID AND p.PKG_ID(+) = pv.PKG_ID", cint(0))
6370 dpurdie 1551
                        If rsQryRipple.RecordCount <> 0  Then
6440 dpurdie 1552
                            Dim CauseText
1553
                            Dim rowData
1554
                            If (IsNull(rsQryRipple("root_file")) AND IsNull(rsQryRipple("root_cause"))) Then
1555
                                If rsQryRipple("root_pv_id") < 0 Then
1556
                                    CauseText = "Directly Excluded"
6370 dpurdie 1557
                                Else
1558
                                    CauseText = "Indirectly excluded by <a class=""txt_linked"" title='"&rsQryRipple("PV_OVERVIEW")&"' href=fixed_issues.asp?pv_id="& rsQryRipple("root_pv_id") & "&rtag_id="&rsQryRipple("rtag_id") & ">" & rsQryRipple("pkg_name") & "</a>"
1559
                                End If
1560
 
1561
                            ElseIf IsNull(rsQryRipple("root_file")) Then
1562
                               CauseText = rsQryRipple("root_cause")
1563
 
1564
                            Else
1565
                                CauseText = "<a class=""txt_linked"" title=""" & rsQryRipple("root_file") &_
1566
                                          " Log file may have expired."" " &_
7260 dpurdie 1567
                                          "href=""" & ABTLOG_URL & "/" & rsQryRipple("root_file") & """>" &_
6370 dpurdie 1568
                                          "Build Failure Log File</a>"
1569
                            End If
1570
                            %>
6873 dpurdie 1571
                            <td>No.&nbsp;<%=CauseText%></td>
6440 dpurdie 1572
                         <%Else%>
6873 dpurdie 1573
                            <td>Yes</td>
6440 dpurdie 1574
                         <%End If%>
131 ghuddy 1575
                     <%rsQryRipple.Close()
6440 dpurdie 1576
                     Set rsQryRipple = nothing%>
131 ghuddy 1577
               </tr>
6440 dpurdie 1578
               <%End If%>
6642 dpurdie 1579
               <%If pkgInfoHash.Item ("advisory_ripple") Then%>
6873 dpurdie 1580
                <tr>
1581
                      <td>Advisory Ripple <%=Quick_Help ( "advisory_ripple" )%></td>
1582
                      <td>Enabled</td>
6642 dpurdie 1583
                </tr>
1584
               <%End If%>
131 ghuddy 1585
               <tr>
6873 dpurdie 1586
                  <td>Ripple Type <%=Quick_Help ( "ripple_type" )%></td>
1587
                  <td>
131 ghuddy 1588
                        <%
1589
                        Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1590
                        Response.write "<tr>"
1591
                        Response.write "<td class='sublbox_txt'>"
5648 dpurdie 1592
                        Dim selectedRippleType, selectedRippleName, selectedRippleState
131 ghuddy 1593
                        selectedRippleType = pkgInfoHash.Item ("ripple_field")
5648 dpurdie 1594
                        selectedRippleName = rippleFieldName(selectedRippleType, selectedRippleState)
1595
                        If NOT selectedRippleState Then
131 ghuddy 1596
                           Response.write "<span class='err_alert'>Required!</span>"
1597
                        Else
5648 dpurdie 1598
                            Response.write( selectedRippleName )
131 ghuddy 1599
                        End If
1600
                        If ( selectedRippleType = "L" ) Then
1601
                        Dim qry
1602
                        Set qry = OraDatabase.DbCreateDynaset( "SELECT major_limit, minor_limit, patch_limit, build_number_limit from package_versions where pv_id="& Request("pv_id"), cint(0))
1603
                        Response.write " "
1604
                        If isNull(qry("major_limit")) Then
1605
                           Response.write("0")
1606
                        Else
1607
                           Response.write( qry.Fields( "major_limit" ).Value )
1608
                        End If
1609
                        Response.write ", "
1610
                        If isNull(qry("minor_limit")) Then
1611
                           Response.write("0")
1612
                        Else
1613
                           Response.write( qry.Fields( "minor_limit" ).Value )
1614
                        End If
1615
                        Response.write ", "
1616
                        If isNull(qry("patch_limit")) Then
1617
                           Response.write("0")
1618
                        Else
1619
                           Response.write( qry.Fields( "patch_limit" ).Value )
1620
                        End If
1621
                        Response.write ", "
1622
                        If isNull(qry("build_number_limit")) Then
1623
                           Response.write("0")
1624
                        Else
1625
                           Response.write( qry.Fields( "build_number_limit" ).Value )
1626
                        End If
1627
                        qry.Close()
1628
                        Set qry = nothing
1629
                        End If
5648 dpurdie 1630
                        Response.Write "</td>"
131 ghuddy 1631
                        Response.write "</tr>"
1632
                        Response.write "</table>"
1633
                        %>
1634
                  </td>
1635
               </tr>
1636
            <%End If%>
6480 dpurdie 1637
            <%If Request("rtag_id") <> ""  AND pkgInfoHash.Item("dlocked") = "Y" Then
6440 dpurdie 1638
              Dim sClickStop, sStopText, dRippleStop, sButtonText, sPersistText
1639
              dRippleStop = pkgInfoHash.Item("ripple_stop")
1640
              If dRippleStop = "" OR IsNull(dRippleStop) Then
1641
                sClickStop="vixConfirm('Marked this package so as to prevent it from being built<br>when its dependencies change, until it is manually resumed.<p>Stop Ripple Builds',{title:'Stop Ripple', button:'Stop', url: '_s_ripple_stop.asp?mode=s&rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"'});"
1642
                sStopText = "Normal"
1643
                sButtonText = "Change"
1644
              ElseIf dRippleStop = "s" Then 
1645
                sClickStop="vixConfirm('This package has been marked to prevented ripple builds.<p>Remove this marker',{title:'Remove Ripple', button:'Remove', url: '_s_ripple_stop.asp?mode=r&rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"'});"
1646
                sStopText = "Ripples will stop at this package"
1647
                sButtonText = "Remove"
1648
              ElseIf dRippleStop = "w" Then 
1649
                sClickStop="vixConfirm('This package has been marked to prevented ripple builds<br>and a ripple is required.<p>Allow ripple to continue.',{title:'Continue Ripple', button:'Allow Ripple', url: '_s_ripple_stop.asp?mode=g&rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"'});"
1650
                sStopText = "Ripple required and awaiting manual intervention"
1651
                sButtonText = "Resume"
1652
              ElseIf dRippleStop = "g" Then 
1653
                sStopText = "Ripple resumed. Awaiting build"
1654
              Else
1655
                sStopText = "Ripple Stop: Unknown state:" & dRippleStop 
1656
              End If
1657
 
1658
              sPersistText = ""
6441 dpurdie 1659
              If pkgInfoHash.Exists("persist_ripple_stop") Then
1660
                  If NOT IsNull(pkgInfoHash.Item("persist_ripple_stop")) Then
1661
                      sPersistText = "&nbsp;[Persistent Ripple Stop Enabled]"
1662
                  End If
6440 dpurdie 1663
              End If
1664
 
1665
             %>
1666
             <tr>
6873 dpurdie 1667
                  <td>Ripple Stop <%=Quick_Help ( "ripple_stop" )%></td>
1668
                  <td><%=sStopText%><%=sPersistText%>
6440 dpurdie 1669
                  <%If canActionInProject() AND sClickStop <> "" Then%>
6827 dpurdie 1670
                    <span onClick="<%=sClickStop%>" class="txt_linked pointer"><%=sButtonText%><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6873 dpurdie 1671
                  <%End If%>
1672
                  </td>
6440 dpurdie 1673
            </tr>
1674
            <%End If%>
121 hknight 1675
         </table>
1676
      </fieldset>
1677
      <br>
1678
   <%End If%>
131 ghuddy 1679
 
119 ghuddy 1680
<!-- REASON FOR RELEASE ----------------------------------------------------------------------------------------------------------------->
6324 dpurdie 1681
   <fieldset class="fset">
1682
      <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>
6610 dpurdie 1683
      <div style="display: block;float: right;margin-top: -25px;background-color: #FFF;padding: 0 5px;">
1684
          <span class="clipElement txt_linked" title="Copy to Clipboard" data-target="releaseReason">Copy<%=enum_imgClipBoard12%></span>
6324 dpurdie 1685
       <%If pageIsEditable Then%>
6873 dpurdie 1686
             <span title='Insert dependency changes as the comment' onClick="return vixConfirm('Current comments would be deleted.<br>Do you wish to continue?',{url :'_update_versions.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>' })" class="txt_linked pointer">Update Dependencies<img src="images/i_new.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6827 dpurdie 1687
             <span onClick="MM_openVixIFrame('_wform_reason_for_version.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Reason For Release')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1688
       <%End If%>
1689
      </div>
121 hknight 1690
      <a name="REASON_FOR_THIS_RELEASE"></a>
6873 dpurdie 1691
      <table width="100%" border="0" cellspacing="1" cellpadding="2" >
121 hknight 1692
         <tr>
6873 dpurdie 1693
            <td>
121 hknight 1694
            <%If pkgInfoHash.Item ("comments") <> "" Then%>
6873 dpurdie 1695
               <table width="100%" border='0' cellspacing='0' cellpadding='0' class='allGrey'>
121 hknight 1696
                  <tr>
6873 dpurdie 1697
                     <td id=releaseReason> <%Response.Write( NewLine_To_BR(pkgInfoHash.Item("comments")) )%><br></td>
121 hknight 1698
                  </tr>
1699
               </table>
1700
            <%ElseIf FixedIssues ( parPv_id ) Then%>
6873 dpurdie 1701
               <span>Not specified.</span><br>
121 hknight 1702
            <%Else%>
1703
               <span class='err_alert'>Required!</span><br>
1704
            <%End If%>
1705
            </td>
1706
         </tr>
1707
      </table>
1708
   </fieldset>
4230 dpurdie 1709
   <br>
119 ghuddy 1710
<!-- REASON FOR NON_RIPPLE RELEASE ----------------------------------------------------------------------------------------------------------------->
121 hknight 1711
   <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then%>
119 ghuddy 1712
 
6324 dpurdie 1713
      <fieldset class="fset">
1714
         <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>
6873 dpurdie 1715
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
121 hknight 1716
            <tr>
6873 dpurdie 1717
               <td>
121 hknight 1718
                  <%
1719
                  'Dim rsQry
1720
                  Call LastPvId(pkgInfoHash.Item ("pv_id"))
119 ghuddy 1721
 
121 hknight 1722
                  While rsQry("comments") = "Rippled Build."
1723
                     Call LastPvId(rsQry("last_pv_id"))
1724
                  Wend
119 ghuddy 1725
 
121 hknight 1726
                  If pkgInfoHash.Item ("comments") <> "" Then
1727
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1728
                     Response.write "<tr>"
1729
                     Response.write "<td class='sublbox_txt'><b>Package Version:</b> <b>"& NewLine_To_BR(( rsQry ("pkg_version") ) ) &"</b><br></td>"
1730
                     Response.write "</tr>"
1731
                     Response.write "<tr>"
1732
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR(( rsQry ("comments") ) ) &"<br></td>"
1733
                     Response.write "</tr>"
119 ghuddy 1734
 
121 hknight 1735
                     Response.write "</table>"%>
119 ghuddy 1736
 
121 hknight 1737
                     <table width="100%" border="0" cellspacing="1" cellpadding="2">
1738
                        <tr>
1739
                           <td valign="top" class="sublbox_txt"><b>Fixed Issues For Last Non-Ripple Build</b></td>
1740
                           <td align="right" valign="top">
1741
                              <%If pageIsEditable Then%>
6827 dpurdie 1742
                                 <span onClick="MM_openVixIFrame('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','Import Fixed Issues')" class="txt_linked pointer">Import Fixed Issues from ClearQuest<img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
121 hknight 1743
                              <%End If%>
1744
                           </td>
1745
                        </tr>
1746
                     </table>
1747
                     <%Call Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1748
                     If (retVal > 0) Then
1749
                        retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1750
                        If retVal = 0 Then%>
1751
                           <table width="100%" border="0" cellspacing="1" cellpadding="3">
1752
                              <tr>
6873 dpurdie 1753
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field" align="center">Fixed</td>
1754
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Issue&nbsp;Id&nbsp;</td>
1755
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Issue&nbsp;DB&nbsp;</td>
161 iaugusti 1756
                                 <td bgcolor=#e4e9ec nowrap width="100%" class="form_field">Summary</td>
6873 dpurdie 1757
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Issue&nbsp;Type&nbsp;</td>
1758
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Priority</td>
1759
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Status</td>
1760
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Note</td>
1761
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">&nbsp;</td>
121 hknight 1762
                              </tr>
1763
                              <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1764
                                 <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1765
                                    <tr>
161 iaugusti 1766
                                       <td align="center" nowrap bgcolor=#e4e9ec><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
6873 dpurdie 1767
                                       <td nowrap class="form_item"><span onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Details')" class="txt_linked pointer"><%=rsCQ("iss_num")%></span></td>
1768
                                       <td class="form_item">
4553 dpurdie 1769
                                            <%If Cint(rsCQ("iss_db")) = enumCLEARQUEST_DEVI_ID Then%>
3975 dpurdie 1770
                                                DEVI
1771
                                            <%Else%>
1772
                                                UNKNOWN
1773
                                            <%End If%></td>
6873 dpurdie 1774
                                       <td class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1775
                                       <td nowrap  class="form_item"><%=rsCQ("issue_type")%></td>
1776
                                       <td nowrap  class="form_item"><%=rsCQ("priority")%></td>
1777
                                       <td nowrap  class="form_item"><%=rsCQ("Status")%></td>
121 hknight 1778
                                       <%If sectionIsEditable Then%>
1779
                                           <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1780
                                             <td align="center"  class="form_item"><span class='pointer' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></span></td>
121 hknight 1781
                                          <%Else%>
6873 dpurdie 1782
                                             <td align="center"  class="form_item"><span class='pointer' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')"><img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note"></span></td>
121 hknight 1783
                                          <%End If%>
1784
                                       <%Else%>
1785
                                          <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1786
                                             <td align="center"  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>
121 hknight 1787
                                          <%Else%>
6873 dpurdie 1788
                                             <td align="center"  class="form_item"><img src="images/i_note_off.gif" width="11" height="12" border="0"></td>
121 hknight 1789
                                          <%End If%>
1790
                                       <%End If%>
1791
                                       <%If NOT pageIsEditable Then%>
6873 dpurdie 1792
                                          <td align="center"  class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
121 hknight 1793
                                       <%Else%>
6873 dpurdie 1794
                                          <td align="center"  class="form_item"><span class=pointer data-href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('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"></span></td>
121 hknight 1795
                                       <%End If%>
1796
                                    </tr>
1797
                                    <%rsCQ.MoveNext
1798
                                 WEnd
1799
                                 rsCQ.Close()%>
1800
                              <%Else%>
1801
                                 <tr>
161 iaugusti 1802
                                    <td bgcolor=#e4e9ec nowrap>&nbsp;</td>
6873 dpurdie 1803
                                    <td nowrap></td>
1804
                                    <td class="form_item"></td>
1805
                                    <td class="form_item"></td>
1806
                                    <td class="form_item"></td>
1807
                                    <td class="form_item"></td>
1808
                                    <td class="form_item"></td>
1809
                                    <td class="form_item"></td>
1810
                                    <td align="center"  class="form_item"></td>
121 hknight 1811
                                 </tr>
1812
                              <%End If%>
1813
                           </table>
1814
                        <%End If%>
1815
                        <%If retVal <> 0 Then Response.write enumMSSQL_ERROR
1816
                     End If
1817
                  Else
1818
                     If FixedIssues ( parPv_id ) Then
1819
                        Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
1820
                     Else
1821
                        Response.write "<span class='err_alert'>Required!</span><br>"
1822
                     End If
1823
                  End If
119 ghuddy 1824
 
121 hknight 1825
                  rsQry.Close()
1826
                  Set rsQry = nothing
1827
                  %>
1828
               </td>
1829
            </tr>
1830
         </table>
1831
      </fieldset>
4230 dpurdie 1832
      <br>
121 hknight 1833
   <%End If%>
1834
<!-- FIXED ISSUES ----------------------------------------------------------------------------------------------------------------------->
123 ghuddy 1835
   <fieldset class="fset">
1836
      <legend class="body_colb">
6827 dpurdie 1837
         <img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align='absmiddle'>
123 ghuddy 1838
         Issues
1839
      </legend>
5861 dpurdie 1840
      <a name="ISSUES"></a>
121 hknight 1841
      <p class="body_colb"><a name="ISSUES"></a></p>
1842
      <table width="100%" border="0" cellpadding="2" cellspacing="1">
1843
         <tr>
4254 dpurdie 1844
            <!-- Jira Issues -->
121 hknight 1845
            <td valign="top" class="body_colb">JIRA Issues</td>
1846
            <td align="right" valign="top">
6827 dpurdie 1847
            <%BuildEditButtonRaw  pageIsEditable, "Import JIRA issues", "Edit", TRUE, "src='images/i_download.gif' width='12' height='12' hspace='2' border='0' align='absmiddle'", "MM_openVixIFrame('_wform_import_jira_issues.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"&skip_open=true','Import Issues')" %>
121 hknight 1848
            </td>
119 ghuddy 1849
 
4254 dpurdie 1850
            <%
1851
            Dim issueInfo, el, key
1852
            Set issueInfo = CreateObject( "Scripting.Dictionary" )
1853
            Call getJiraIssueDetails(parPv_id,issueInfo, 0)
1854
            If issueInfo.Count > 0 Then
1855
            %>
121 hknight 1856
 
6873 dpurdie 1857
            <table width="100%" border="0" cellspacing="1" cellpadding="3" class=stdGrey>
1858
                <thead>
1859
                   <th width="1%" align="center">Fixed</th>
1860
                   <th width="1%" >IssueId</th>
1861
                   <th width="1%" >IssueDB</th>
1862
                   <th width="100%" >Summary</th>
1863
                   <th width="1%" >IssueType</th>
1864
                   <th width="1%" >Priority</th>
1865
                   <th width="1%" >Status</th>
1866
                   <th width="1%" >Note</th>
1867
                   <th width="1%" ></th>
1868
                </thead>
4254 dpurdie 1869
                <%
1870
                For Each key In issueInfo
1871
                Set el = issueInfo.item(key)
1872
                %>
1873
                <tr>
1874
                  <%If el.Exists("resolution") Then %>
6873 dpurdie 1875
                     <td align="center" nowrap>
4254 dpurdie 1876
                        <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
1877
                     </td>
1878
                  <%Else%>
6873 dpurdie 1879
                     <td align="center" nowrap></td>
4254 dpurdie 1880
                  <%End If%>
6873 dpurdie 1881
                  <td nowrap class="form_item">
4254 dpurdie 1882
                     <a href="<%=el.item("url")%>" target="_blank" class="txt_linked"><%=key%></a>
1883
                  </td>
6873 dpurdie 1884
                  <td><%=el.item("type")%></td>
1885
                  <td><%=NewLine_To_BR ( To_HTML ( el.item("summary") ) )%></td>
1886
                  <td nowrap><%=el.item("issuetype")%></td>
1887
                  <td nowrap><%=el.item("priority")%></td>
1888
                  <td nowrap><%=el.item("status")%></td>
1889
                  <td nowrap></td>
4254 dpurdie 1890
                  <%If NOT pageIsEditable Then%>
6873 dpurdie 1891
                     <td align="center">
4254 dpurdie 1892
                        <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1893
                     </td>
1894
                  <%Else%>
6873 dpurdie 1895
                     <td align="center">
1896
                        <span class=pointer data-href="_remove_jira_issue.asp?iss_link=<%=el.item("key")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');">
4254 dpurdie 1897
                           <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
6873 dpurdie 1898
                        </span>
4254 dpurdie 1899
                     </td>
1900
                  <%End If%>
1901
               </tr>
1902
               <%
1903
               Next
1904
               Set issueInfo = nothing
1905
               %>
1906
            </table>
121 hknight 1907
            <%End If%>
119 ghuddy 1908
 
4254 dpurdie 1909
            <!-- Fixed ClearCase Issues -->
121 hknight 1910
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1911
               <tr>
1912
                  <td valign="top" class="body_colb">Fixed Issues</td>
1913
                  <td align="right" valign="top">
6827 dpurdie 1914
                    <%BuildEditButtonRaw  pageIsEditable, "Import Fixed Issues from ClearQuest", "Edit", TRUE, "src='images/i_download.gif' width='12' height='12' hspace='2' border='0' align='absmiddle'", "MM_openVixIFrame('_wform_import_issues.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"&skip_open=true','Import Fixed Issues')" %>
121 hknight 1915
                  </td>
1916
               </tr>
1917
            </table>
119 ghuddy 1918
 
121 hknight 1919
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1920
            If (retVal > 0) Then
1921
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1922
               If retVal = 0 Then%>
6873 dpurdie 1923
                  <table width="100%" border="0" cellspacing="1" cellpadding="3" class=stdGrey>
1924
                     <thead>
1925
                        <th width="1%" align="center">Fixed</th>
1926
                        <th width="1%" >IssueId</th>
1927
                        <th width="1%" >IssueDB</th>
1928
                        <th width="100%">Summary</th>
1929
                        <th width="1%" >IssueType</th>
1930
                        <th width="1%" >Priority</th>
1931
                        <th width="1%" >Status</th>
1932
                        <th width="1%" >Note</th>
1933
                        <th width="1%" ></th>
1934
                     </thead>
121 hknight 1935
                     <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1936
                        <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1937
                           <tr>
161 iaugusti 1938
                              <td align="center" nowrap bgcolor=#e4e9ec><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
6873 dpurdie 1939
                              <td nowrap class="form_item">
6827 dpurdie 1940
                                <%BuildEditButtonRaw  TRUE, rsCQ("iss_num") , "Edit", TRUE, "", "MM_openVixIFrame('_wform_issues_details.asp?iss_db="&rsCQ("iss_db")&"&iss_id="&rsCQ("iss_id")&"','Issue Details')" %>
123 ghuddy 1941
                              </td>
6873 dpurdie 1942
                              <td class="form_item">
4553 dpurdie 1943
                                 <%If CInt(rsCQ("iss_db")) = enumCLEARQUEST_DEVI_ID Then%>
123 ghuddy 1944
                                    DEVI
1945
                                 <%Else%>
3975 dpurdie 1946
                                    UNKNOWN
123 ghuddy 1947
                                 <%End If%>
1948
                              </td>
6873 dpurdie 1949
                              <td class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1950
                              <td nowrap  class="form_item"><%=rsCQ("issue_type")%></td>
1951
                              <td nowrap  class="form_item"><%=rsCQ("priority")%></td>
1952
                              <td nowrap  class="form_item"><%=rsCQ("Status")%></td>
6827 dpurdie 1953
                              <%If sectionIsEditable AND pageIsEditable Then
1954
                                    Dim noteImage
1955
                                    If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then
1956
                                        noteImage = "images/i_note_on.gif"
1957
                                    Else
1958
                                        noteImage = "images/i_note_off.gif"
1959
                                    End If
1960
                                End If
1961
                                 %>
1962
 
1963
 
121 hknight 1964
                              <%If sectionIsEditable AND pageIsEditable Then%>
1965
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1966
                                    <td align="center"  class="form_item">
1967
                                       <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 1968
                                          <img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
6873 dpurdie 1969
                                       </span>
123 ghuddy 1970
                                    </td>
121 hknight 1971
                                 <%Else%>
6873 dpurdie 1972
                                    <td align="center"  class="form_item">
1973
                                       <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 1974
                                          <img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note">
6873 dpurdie 1975
                                       </span>
123 ghuddy 1976
                                    </td>
121 hknight 1977
                                 <%End If%>
1978
                              <%Else%>
1979
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1980
                                    <td align="center"  class="form_item">
123 ghuddy 1981
                                       <img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
1982
                                    </td>
121 hknight 1983
                                 <%Else%>
6873 dpurdie 1984
                                    <td align="center"  class="form_item">
123 ghuddy 1985
                                       <img src="images/i_note_off.gif" width="11" height="12" border="0">
1986
                                    </td>
121 hknight 1987
                                 <%End If%>
1988
                              <%End If%>
1989
                              <%If NOT pageIsEditable Then%>
6873 dpurdie 1990
                                 <td align="center"  class="form_item">
123 ghuddy 1991
                                    <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1992
                                 </td>
121 hknight 1993
                              <%Else%>
6873 dpurdie 1994
                                 <td align="center"  class="form_item">
1995
                                    <span class=pointer data-href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');">
123 ghuddy 1996
                                       <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
6873 dpurdie 1997
                                    </span>
123 ghuddy 1998
                                 </td>
121 hknight 1999
                              <%End If%>
2000
                           </tr>
2001
                           <%rsCQ.MoveNext
2002
                        WEnd
2003
                        rsCQ.Close()%>
2004
                     <%Else%>
2005
                        <tr>
6873 dpurdie 2006
                           <td>&nbsp;</td>
2007
                           <td></td>
2008
                           <td></td>
2009
                           <td></td>
2010
                           <td></td>
2011
                           <td></td>
2012
                           <td></td>
2013
                           <td></td>
2014
                           <td></td>
121 hknight 2015
                        </tr>
2016
                     <%End If%>
119 ghuddy 2017
 
121 hknight 2018
                  </table>
2019
               <%End If%>
2020
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
2021
            <%End If%>
119 ghuddy 2022
 
4254 dpurdie 2023
            <!-- Outstanding ClearCase Issues -->
121 hknight 2024
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
2025
               <tr>
2026
                  <td valign="top" class="body_colb">Outstanding Issues</td>
2027
                  <td align="right" valign="top">
2028
                     <%If pageIsEditable Then%>
6873 dpurdie 2029
                        <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Import Issues')" class="txt_linked">
123 ghuddy 2030
                           Import Outstanding Issues from ClearQuest
6827 dpurdie 2031
                           <img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'>
6873 dpurdie 2032
                        </span>
121 hknight 2033
                     <%End If%>
2034
                  </td>
2035
               </tr>
2036
            </table>
119 ghuddy 2037
 
121 hknight 2038
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_IMPORTED )
2039
            If (retVal > 0) Then
2040
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
2041
               If retVal = 0 Then%>
6873 dpurdie 2042
                  <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
121 hknight 2043
                     <form name="fixedissues" method="get" action="_update_issues_state.asp">
6873 dpurdie 2044
                        <thead>
121 hknight 2045
                           <%If pageIsEditable Then%>
6873 dpurdie 2046
                              <th nowrap width="1%" align="center">Fixed</th>
121 hknight 2047
                           <%End If%>
6873 dpurdie 2048
                           <th  nowrap width="1%" >Issue&nbsp;Id&nbsp;</th>
2049
                           <th  nowrap width="1%" >Issue DB&nbsp;</th>
2050
                           <th  nowrap width="100%" >Summary</th>
2051
                           <th  nowrap width="1%" >Issue&nbsp;Type&nbsp;</th>
2052
                           <th  nowrap width="1%" >Priority</th>
2053
                           <th  nowrap width="1%" >Status</th>
2054
                           <th  nowrap width="1%" >Note</th>
2055
                           <th  nowrap width="1%" >&nbsp;</th>
2056
                        </thead>
121 hknight 2057
                        <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
2058
                           <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
2059
                              <tr>
2060
                                 <%If pageIsEditable Then%>
6873 dpurdie 2061
                                    <td align="center" nowrap>
123 ghuddy 2062
                                       <input type="checkbox" name="FRfixed" value="<%=rsCQ("iss_db") &"."& rsCQ("iss_id")%>">
2063
                                    </td>
121 hknight 2064
                                 <%End If%>
6873 dpurdie 2065
                                 <td nowrap class="form_item">
2066
                                    <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Details')" class="txt_linked">
123 ghuddy 2067
                                       <%=rsCQ("iss_num")%>
6873 dpurdie 2068
                                    </span>
123 ghuddy 2069
                                 </td>
6873 dpurdie 2070
                                 <td class="form_item">
4553 dpurdie 2071
                                    <%If CInt(rsCQ("iss_db")) = enumCLEARQUEST_DEVI_ID Then%>
123 ghuddy 2072
                                       DEVI
2073
                                    <%Else%>
4553 dpurdie 2074
                                       UNKNOWN
123 ghuddy 2075
                                    <%End If%>
2076
                                 </td>
6873 dpurdie 2077
                                 <td class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
2078
                                 <td nowrap  class="form_item"><%=rsCQ("issue_type")%></td>
2079
                                 <td nowrap  class="form_item"><%=rsCQ("priority")%></td>
2080
                                 <td nowrap  class="form_item"><%=rsCQ("Status")%></td>
121 hknight 2081
                                 <%If sectionIsEditable AND pageIsEditable Then%>
2082
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 2083
                                       <td align="center"  class="form_item">
2084
                                          <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 2085
                                             <img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
6873 dpurdie 2086
                                          </span>
123 ghuddy 2087
                                       </td>
121 hknight 2088
                                    <%Else%>
6873 dpurdie 2089
                                       <td align="center"  class="form_item">
2090
                                          <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 2091
                                             <img src="images/i_note_off.gif" width="11" height="12" border="0" alt="Add Note">
6873 dpurdie 2092
                                          </span>
123 ghuddy 2093
                                       </td>
121 hknight 2094
                                    <%End If%>
2095
                                 <%Else%>
2096
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 2097
                                       <td align="center"  class="form_item">
123 ghuddy 2098
                                          <img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
2099
                                       </td>
121 hknight 2100
                                    <%Else%>
6873 dpurdie 2101
                                       <td align="center"  class="form_item">
123 ghuddy 2102
                                          <img src="images/i_note_off.gif" width="11" height="12" border="0">
2103
                                       </td>
121 hknight 2104
                                    <%End If%>
2105
                                 <%End If%>
2106
                                 <%If NOT pageIsEditable Then%>
6873 dpurdie 2107
                                    <td align="center"  class="form_item">
123 ghuddy 2108
                                       <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
2109
                                    </td>
121 hknight 2110
                                 <%Else%>
6873 dpurdie 2111
                                    <td align="center"  class="form_item">
2112
                                       <span class=pointer data-href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');">
123 ghuddy 2113
                                          <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
6873 dpurdie 2114
                                       </span>
123 ghuddy 2115
                                    </td>
121 hknight 2116
                                 <%End If%>
2117
                              </tr>
2118
                              <%rsCQ.MoveNext
2119
                           WEnd
2120
                           rsCQ.Close()%>
2121
                           <%If pageIsEditable Then%>
6873 dpurdie 2122
                              <tr class=blank>
161 iaugusti 2123
                                 <td align="center" nowrap bgcolor=#e4e9ec>
123 ghuddy 2124
                                    <input type="submit" name="Apply" value="Apply" class="form_btn">
2125
                                 </td>
121 hknight 2126
                                 <td></td>
2127
                                 <td></td>
2128
                                 <td></td>
2129
                                 <td></td>
2130
                                 <td></td>
2131
                                 <td></td>
2132
                                 <td></td>
2133
                                 <td></td>
2134
                              </tr>
2135
                           <%End If%>
2136
                        <%Else%>
2137
                           <tr>
2138
                              <%If pageIsEditable Then%>
161 iaugusti 2139
                                 <td bgcolor=#e4e9ec nowrap>&nbsp;</td>
121 hknight 2140
                              <%End If%>
6873 dpurdie 2141
                              <td nowrap></td>
2142
                              <td class="form_item"></td>
2143
                              <td class="form_item"></td>
2144
                              <td class="form_item"></td>
2145
                              <td class="form_item"></td>
2146
                              <td class="form_item"></td>
2147
                              <td class="form_item"></td>
2148
                              <td align="center"  class="form_item"></td>
121 hknight 2149
                           </tr>
2150
                        <%End If%>
2151
                        <input name="pv_id" type="hidden" value="<%=parPv_id%>">
2152
                        <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
2153
                     </form>
2154
                  </table>
2155
               <%End If%>
2156
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
2157
            <%End If%>
123 ghuddy 2158
<!-- DEVI-050133 Although it would seem to the human eye that the following row and table closing tags are needed, -->
2159
<!--             they do in fact cause the page to be rendered incorrectly. Hence they are commented out for now   -->
2160
<!--             until the true cause of the mis-rendering can be ascertained.                                    -->
2161
<!--     </tr> -->
2162
<!--  </table> -->
121 hknight 2163
   </fieldset>
4230 dpurdie 2164
   <br>
119 ghuddy 2165
<!-- DEPENDENCY ISSUES (NOT FOR PATCHES!) ------------------------------------------------------------------------------------------------------->
2166
 
121 hknight 2167
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
6827 dpurdie 2168
      <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>
6873 dpurdie 2169
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
119 ghuddy 2170
 
4585 dpurdie 2171
            <%
2172
            If  Request("ShowIssues") <> "" Then
2173
                retVal = Get_Package_Issues ( parPv_id, SQLstr, NULL, NULL, NULL )
2174
            Else
2175
                retVal = 0
2176
                %>
2177
                <tr>
6873 dpurdie 2178
                    <td>
2179
                        <span class='pointer txt_linked' onClick="window.location.href=window.location.href+'&ShowIssues=1'">Show Issues of Dependent Packages</span>
4585 dpurdie 2180
                    </td>
2181
                </tr>
2182
                <%
2183
            End If
121 hknight 2184
            If (retVal > 0) Then
2185
               retVal = Get_Dependency_CQ_Issues ( SQLstr, rsCQ, depIssDict, issArr )
2186
               If retVal = 0 Then%>
2187
                  <%
2188
                  currG1 = 0
2189
                  G1_template = _
2190
                  "<tr>"&_
2191
                  "  <td colspan='7'><img src='images/spacer.gif' width='2' height='2'></td>"&_
2192
                  "</tr>"&_
2193
                  "<tr>"&_
161 iaugusti 2194
                  "  <td colspan='7' bgcolor=#e4e9ec class='form_item'>/*DEP_NAME_VERSION*//*REASONS*/</td>"&_
121 hknight 2195
                  "</tr>"
2196
                  Set rsDepIss = OraDatabase.DbCreateDynaset( SQL_Dependency_Issues( parPv_id ), cint(0))
2197
                  %>
2198
                  <%If ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF)) Then%>
2199
                     <%While ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF))%>
2200
                        <%
2201
                        iss_db_id = Cstr(rsDepIss("iss_db") &"."& rsDepIss("iss_id"))
2202
                        G1_style = Replace(G1_template, "/*DEP_NAME_VERSION*/", "<SPAN class='envolPkg'><b>"& rsDepIss("pkg_name") &" "& rsDepIss("pkg_version") &"</b></SPAN>")
2203
                        If IsNull(rsDepIss("iss_id")) Then
2204
                           If IsNull(rsDepIss("reasons")) Then
2205
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>Reason for this version is not specified.")
2206
                           Else
2207
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
2208
                           End If
2209
                        Else
2210
                           If IsNull(rsDepIss("reasons")) Then
2211
                              G1_style = Replace(G1_style, "/*REASONS*/", "")
2212
                           Else
2213
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
2214
                           End If
2215
                        End If
119 ghuddy 2216
 
121 hknight 2217
                        Call Group_By ( rsDepIss("pv_id"), G1_style, currG1 )
2218
                        If NOT IsNull(rsDepIss("iss_id")) Then
2219
                           If rsDepIss("pv_id") <> currG1 Then
2220
                              currG1 = rsDepIss("pv_id")%>
6873 dpurdie 2221
                              <thead>
2222
                                 <th width="1%" align="center"></th>
2223
                                 <th width="1%" align="center">Fixed</th>
2224
                                 <th width="1%" >IssueId</th>
2225
                                 <th width="1%" >Issue DB</th>
2226
                                 <th width="100%">Summary</th>
2227
                                 <th width="1%" >IssueType</th>
2228
                                 <th width="1%" >Priority</th>
2229
                              </thead>
121 hknight 2230
                           <%End If%>
2231
                           <tr>
161 iaugusti 2232
                              <td bgcolor=#e4e9ec></td>
6873 dpurdie 2233
                              <td align="center" nowrap>
121 hknight 2234
                                 <%If CInt(rsDepIss("iss_state")) = enumISSUES_STATE_FIXED Then%>
2235
                                    <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
2236
                                 <%Else%>
2237
                                    <img src="images/spacer.gif" width="7" height="7" vspace="2">
2238
                                 <%End If%>
2239
                              </td>
6873 dpurdie 2240
                              <td nowrap class="form_item"><span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=asDepIss( iss_db_id, enumLoc_iss_db )%>&iss_id=<%=asDepIss( iss_db_id, enumLoc_iss_id )%>','Issue Details')" class="txt_linked"><%=asDepIss( iss_db_id, enumLoc_iss_num )%></span></td>
2241
                              <td class="form_item">
4553 dpurdie 2242
                                    <%If CInt(asDepIss( iss_db_id, enumLoc_iss_db )) = enumCLEARQUEST_DEVI_ID Then%>
3975 dpurdie 2243
                                        DEVI
2244
                                    <%Else%>
2245
                                        UNKNOWN
2246
                                    <%End If%></td>
6873 dpurdie 2247
                              <td class="form_item"><%=asDepIss( iss_db_id, enumLoc_summary)%></td>
2248
                              <td nowrap  class="form_item"><%=asDepIss( iss_db_id, enumLoc_issue_type)%></td>
2249
                              <td nowrap  class="form_item"><%=asDepIss( iss_db_id, enumLoc_priority)%></td>
121 hknight 2250
                           </tr>
2251
                        <%End If%>
2252
                        <%rsDepIss.MoveNext
2253
                     WEnd
2254
                     rsDepIss.Close()
2255
                     Set rsDepIss = nothing%>
2256
                  <%Else%>
2257
                     <tr>
6873 dpurdie 2258
                        <td nowrap></td>
2259
                        <td></td>
2260
                        <td></td>
2261
                        <td></td>
2262
                        <td></td>
2263
                        <td></td>
2264
                        <td></td>
121 hknight 2265
                     </tr>
2266
                  <%End If%>
2267
               <%End If%>
2268
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
2269
            <%End If%>
2270
         </table>
2271
      </fieldset>
4230 dpurdie 2272
      <br>
121 hknight 2273
   <%End If%>
119 ghuddy 2274
<!-- UNIT TESTS --------------------------------------------------------------------------------------------------------------------->
121 hknight 2275
   <%
2276
   Dim testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound
2277
   Call CheckUnitTestsState ( parPv_id, testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound  )
2278
   Set rsQry = OraDatabase.DbCreateDynaset( SQL_Unit_Tests ( parPv_id ), cint(0))
2279
   %>
6324 dpurdie 2280
   <fieldset class="fset">
6827 dpurdie 2281
      <legend class="body_colb"><img src="images/i_unit_test.gif" width="18" height="25" hspace="4" border="0" align='absmiddle' alt="">Unit Tests
2282
      <%If testCheckMSG_ID = 0 AND (pkgInfoHash.Item("dlocked") <> "Y") Then%>
121 hknight 2283
         &nbsp;&nbsp;<%=testCheckMSG%>
2284
      <%End If%></legend>
6324 dpurdie 2285
      <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
2286
           <%If ( scriptName = "fixed_issues.asp" ) Then%>
2287
              <%If objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2288
                 <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Add Unit Test')" 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."></span>
6324 dpurdie 2289
              <%End If%>
2290
              <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = 0)  Then%>
6827 dpurdie 2291
                 <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>
6324 dpurdie 2292
              <%End If%>
2293
           <%End If%>
2294
      </div>
121 hknight 2295
      <a name="UNIT_TESTS"></a>
2296
      <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = -1) Then%>
2297
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
2298
            <tr>
6873 dpurdie 2299
               <td class="form_item">
121 hknight 2300
                  <%Call DisplayInfo ( "UNIT_TEST_NOT_DONE", 300 )%>
2301
                  <span class="rep_small">Last Modified: <%=testCheckMSG%></span><br>
2302
                  <%=NewLine_To_BR( To_HTML ( testCheckNote ) )%>
2303
               </td>
2304
            </tr>
2305
         </table>
2306
      <%End If%>
119 ghuddy 2307
 
6873 dpurdie 2308
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class='stdGrey'>
121 hknight 2309
         <form name="review" method="get" action="_update_unit_test_accepted_state.asp">
6873 dpurdie 2310
            <thead>
2311
               <th width="1%" nowrap valign="middle">Test Type</th>
2312
               <th width="100%" nowrap valign="middle">Test Summary</th>
2313
               <th width="1%" nowrap align="center" valign="middle">Test<br>Completed</th>
2314
               <th width="1%" nowrap align="center" valign="middle">Passed<br># / Total</th>
2315
               <th width="1%" nowrap align="center" valign="middle">Results</th>
2316
               <th width="1%" nowrap align="center" valign="middle">Accepted</th>
2317
               <th width="1%" nowrap align="center" valign="middle">Review<br>Completed</th>
2318
               <th width="1%" nowrap valign="middle">Comments /<br>Issue#</th>
2319
               <th width="1%" ></th>
2320
            </thead>
2321
            <%
2322
               Dim ShowApply: ShowApply = FALSE
2323
               While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) )%>
121 hknight 2324
               <tr>
2325
                  <%If NOT pageIsEditable Then%>
6873 dpurdie 2326
                     <%If NOT IsNull(rsQry("test_id")) AND ( scriptName = "fixed_issues.asp") Then %>
2327
                        <td nowrap   valign="top"><span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_update_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Update Unit Test')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align='absmiddle' border="0"><%=rsQry("test_type_name")%></span></td>
2328
                     <%Else %>
2329
                        <td nowrap   valign="top"><img src="images/i_test.gif" width="16" height="16" hspace="3" align='absmiddle'><%=rsQry("test_type_name")%></td>
121 hknight 2330
                     <%End If%>
6873 dpurdie 2331
                  <%Else %>
2332
                     <td nowrap   valign="top"><span class='pointer txt_linked' onClick="MM_openVixIFrame('<%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")%>','Update Unit Test')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align='absmiddle' border="0"><%=rsQry("test_type_name")%></span></td>
2333
                  <%End If %>
2334
                  <%If rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF) Then %>
2335
                  <td valign="top"><%=NewLine_To_BR( To_HTML( rsQry("test_summary") ))%></td>
2336
                  <td nowrap   valign="top"><%If ( NOT IsNull(rsQry("tester")) ) Then%><%=DisplayDate ( rsQry("completion_date") )%><br>by <%=emailField(rsQry("tester"),rsQry("tester_email"))%><%End If%></td>
2337
                  <td nowrap   valign="top" align="center"><%=rsQry("numof_test")%></td>
119 ghuddy 2338
 
6873 dpurdie 2339
                  <%If CInt(rsQry("test_type_id")) = enumTEST_TYPE_AUTOMATIC Then %>
2340
                     <td align="center" valign="top">
121 hknight 2341
                        <%If NOT IsNull( rsQry("results_url") ) Then%>
2342
                           <%If InStr( rsQry("results_url"), "http://" ) = 1 Then%>
2343
                              <a href="<%=rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
2344
                           <%Else%>
3959 dpurdie 2345
                              <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>
121 hknight 2346
                           <%End If%>
2347
                        <%End If%>
2348
                     </td>
6873 dpurdie 2349
                  <% Else %>
2350
                     <td align="center" valign="top">
121 hknight 2351
                        <%If NOT IsNull( rsQry("results_attachment_name") ) Then%>
4809 dpurdie 2352
                            <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>
121 hknight 2353
                        <%End If%>
2354
                     </td>
2355
                  <%End If%>
119 ghuddy 2356
 
6873 dpurdie 2357
                  <td nowrap bgcolor=#e4e9ec class="sublbox_txt" valign="top" align="center">
2358
                        <%=FormatAccepted(rsQry("test_accepted"), rsQry("test_id"))%>
2359
                        <%ShowApply = true%>
2360
                  </td>
2361
                  <td nowrap   valign="top"><%If NOT IsNull(rsQry("reviewee")) Then%><%=DisplayDate ( rsQry("acceptance_date") )%><br>by <%=emailField(rsQry("reviewee"),rsQry("reviewee_email"))%><%End If%></td>
2362
                  <td valign="top"><%=NewLine_To_BR( To_HTML( rsQry("review_comments") ))%></td>
2363
                  <%Else%>
2364
                    <td colspan=7><a class=txt_linked href='unit_test_log.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>'>See Unit Tests tab</a></td>
2365
                  <%End If%>
157 ghuddy 2366
                  <%
2367
                  If (  (    pageIsEditable _
2368
                         AND (scriptName = "fixed_issues.asp") _
2369
                         AND (IsNull(rsQry("test_accepted")) OR (rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED))) _
2370
                      OR _
2371
                        (    objAccessControl.UserLogedIn _
2372
                         AND (scriptName = "fixed_issues.asp") _
2373
                         AND (pkgInfoHash.Item("dlocked") = "Y") _
2374
                         AND (IsNull(rsQry("test_accepted")) OR (rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED)) _
2375
                         AND (rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF))) ) Then
2376
                  %>
6873 dpurdie 2377
                     <td valign="top"><%If NOT IsNull(rsQry("test_id")) Then%><span class=pointer data-href="_remove_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this unit test');"><img src="images/i_delete.gif" alt="Remove this test." width="13" height="12" hspace="3" border="0"></span><%End If%></td>
2378
                  <% Else %>
2379
                     <td valign="top"></td>
121 hknight 2380
                  <%End If%>
2381
               </tr>
157 ghuddy 2382
               <%
2383
               rsQry.MoveNext
2384
            WEnd
2385
            %>
6873 dpurdie 2386
            <tr class=blank>
2387
               <td></td>
2388
               <td></td>
2389
               <td></td>
2390
               <td></td>
2391
               <td></td>
2392
               <td align="center">
2393
                  <%If ShowApply AND (testCheckTestsFound) AND (testCheckMSG_ID = 0) AND ( scriptName = "fixed_issues.asp" ) AND pageIsEditable Then%>
157 ghuddy 2394
                     <input type="submit" name="Apply" value="Apply" class="form_btn">
2395
                  <%End If%>
2396
               </td>
6873 dpurdie 2397
               <td></td>
2398
               <td></td>
2399
               <td></td>
121 hknight 2400
            </tr>
2401
            <input name="pv_id" type="hidden" value="<%=parPv_id%>">
2402
            <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
2403
         </form>
2404
      </table>
2405
   </fieldset>
4230 dpurdie 2406
    <br>
119 ghuddy 2407
<!-- CODE REVIEW ------------------------------------------------------------------------------------------------------------------->
6324 dpurdie 2408
   <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_CodeReview ( parPv_id ), cint(0))%>
2409
   <fieldset class="fset">
2410
      <legend class="body_colb"><img src='images/s_code_review.gif' width='21' height='23' hspace='4' border='0' align='absmiddle'>Code Review</legend>
2411
      <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
2412
           <%If ( scriptName = "fixed_issues.asp" ) Then%>
2413
              <%If objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2414
                 <span class='pointer txt_linked' onClick="MM_openBrWindow('_wform_update_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewEdit','scrollbars=yes,status=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'></span>
6324 dpurdie 2415
              <%End If%>
2416
              <%If rsQry.RecordCount > 0 Then%>
2417
                 <%If NOT IsNull(rsQry("date_of_review")) Then%>
2418
                    &nbsp;
6873 dpurdie 2419
                    <span class='pointer txt_linked' onClick="MM_openBrWindow('_wform_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewView','scrollbars=yes,status=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'></span>
6324 dpurdie 2420
                 <%End If%>
2421
              <%End If%>
2422
           <%End If%>
2423
      </div>
121 hknight 2424
      <a name="CODE_REVIEW" id="CODE_REVIEW"></a>
2425
      <%If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then%>
2426
         <%If NOT IsNull(rsQry("date_of_review")) Then%>
6873 dpurdie 2427
            <table width="100%"  border="0" cellspacing="1" cellpadding="4" class=lhsGrey>
121 hknight 2428
               <tr>
6873 dpurdie 2429
                  <td>Date of Review</td>
2430
                  <td width='1%' nowrap><%=DisplayDate ( rsQry("date_of_review") )%>&nbsp;&nbsp;&nbsp;</td>
2431
                  <td width='1%' align="right" nowrap class="hdr">&nbsp;&nbsp;&nbsp;Time Spent:</td>
2432
                  <td><%=rsQry("time_spent")%> hrs </td>
121 hknight 2433
               </tr>
2434
               <tr>
6873 dpurdie 2435
                  <td>Reason for Review</td>
2436
                  <td colspan="3"  ><%=NewLine_To_BR( To_HTML( rsQry("review_reason") ))%></td>
121 hknight 2437
               </tr>
2438
               <tr>
6873 dpurdie 2439
                  <td>Review Results </td>
2440
                  <td colspan="3"  >
121 hknight 2441
                  <%=DecodeOverallResult( rsQry("review_results") )%>
2442
                  </td>
2443
               </tr>
2444
               <tr>
6873 dpurdie 2445
                  <td>Issues Raised </td>
2446
                  <td colspan="3"  ><%=NewLine_To_BR( To_HTML( rsQry("issues_raised") ))%></td>
121 hknight 2447
               </tr>
119 ghuddy 2448
            </table>
121 hknight 2449
         <%Else%>
119 ghuddy 2450
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
121 hknight 2451
               <tr>
6873 dpurdie 2452
                  <td><span class='sublbox_txt'>No details found.</span></td>
121 hknight 2453
               </tr>
119 ghuddy 2454
            </table>
121 hknight 2455
         <%End If%>
2456
      <%Else%>
2457
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
2458
            <tr>
6873 dpurdie 2459
               <td><span class='sublbox_txt'>No details found.</span></td>
121 hknight 2460
            </tr>
2461
         </table>
2462
      <%End If%>
119 ghuddy 2463
 
121 hknight 2464
      <!-- Code Review URL section for this version -->
2465
      <%Call GetCodeReviewURLs( parPv_id, rsCodeReviewURL )%>
6873 dpurdie 2466
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
121 hknight 2467
         <tr>
2468
            <td align="left" valign="top" class="body_colb">Code Review URL for this version</td>
2469
            <td align="right" valign="top" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='5'")%>>
157 ghuddy 2470
               <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2471
                  <span class='pointer txt_linked' onclick="MM_openVixIFrame('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Edit Code Review URL')" class="txt_linked">New<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align='absmiddle'></span>
121 hknight 2472
               <%End If%>
2473
            </td>
2474
         </tr>
2475
         <%If IsNull(rsCodeReviewURL("full_url")) Then %>
2476
            <tr>
6873 dpurdie 2477
               <td width="100%"  colspan="2">
121 hknight 2478
                  <span class='sublbox_txt'>No details found.</span>
2479
               </td>
2480
            </tr>
2481
         <%Else%>
2482
            <tr>
161 iaugusti 2483
               <td bgcolor=#e4e9ec class="form_field">URL</td>
2484
               <td bgcolor=#e4e9ec width="25%" class="form_field">Reason for Review</td>
2485
               <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Date of Review</td>
2486
               <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Last Modified</td>
2487
               <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
2488
               <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
121 hknight 2489
            </tr>
2490
            <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
2491
               While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
2492
                  <tr>
2493
                     <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
6873 dpurdie 2494
                        <td valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
121 hknight 2495
                     <%Else%>
6873 dpurdie 2496
                        <td valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
121 hknight 2497
                     <%End If%>
6873 dpurdie 2498
                     <td valign="top"><%=rsCodeReviewURL("reason")%></td>
2499
                     <td valign="top"><%=DisplayDate(rsCodeReviewURL("date_of_review"))%></td>
2500
                     <td valign="top"><%=DisplayDate(rsCodeReviewURL("last_modified"))%></td>
157 ghuddy 2501
                     <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2502
                        <td valign="top"><span class='pointer txt_linked' onclick="MM_openVixIFrame('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','Edit Code Review URL')" 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"></span></td>
2503
                        <td valign="top"><span calss=pointer data-href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onclick="return vixConfirmDelete('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" align='absmiddle'></span></td>
121 hknight 2504
                     <%Else%>
6873 dpurdie 2505
                        <td valign="top"></td>
2506
                        <td valign="top"></td>
121 hknight 2507
                     <%End If%>
2508
                  </tr>
2509
                  <%rsCodeReviewURL.MoveNext
2510
               WEnd
2511
            Else%>
2512
               <tr>
6873 dpurdie 2513
                  <td></td>
2514
                  <td></td>
2515
                  <td></td>
2516
                  <td></td>
2517
                  <td></td>
2518
                  <td></td>
121 hknight 2519
               </tr>
2520
            <%End If
2521
         End If%>
2522
      </table>
119 ghuddy 2523
 
121 hknight 2524
      <!-- Code Review URL section for last non-ripple build -->
2525
      <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then
2526
         Call LastPvId(pkgInfoHash.Item ("pv_id"))
2527
         While rsQry("comments") = "Rippled Build."
119 ghuddy 2528
            Call LastPvId(rsQry("last_pv_id"))
121 hknight 2529
         Wend
2530
         Dim sOldPkgVersion
157 ghuddy 2531
         Dim oldDlocked
2532
         Call Get_Pkg_Short_Info ( rsQry("pv_id"), NULL, NULL, sOldPkgVersion, NULL, NULL, oldDlocked )
121 hknight 2533
         Call GetCodeReviewURLs( rsQry("pv_id"), rsCodeReviewURL )
2534
         %>
2535
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
2536
            <tr>
2537
               <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>
2538
            </tr>
2539
            <%If IsNull(rsCodeReviewURL("url")) Then%>
2540
               <tr>
6873 dpurdie 2541
                  <td width="100%"  colspan="2">
121 hknight 2542
                     <span class='sublbox_txt'>No details found.</span>
119 ghuddy 2543
                  </td>
121 hknight 2544
               </tr>
2545
            <%Else%>
2546
               <tr>
161 iaugusti 2547
                  <td bgcolor=#e4e9ec class="form_field">URL</td>
2548
                  <td bgcolor=#e4e9ec width="30%" class="form_field">Reason for Review</td>
2549
                  <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Date of Review</td>
2550
                  <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Last Modified</td>
2551
                  <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
2552
                  <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
121 hknight 2553
               </tr>
2554
               <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
119 ghuddy 2555
                  While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
121 hknight 2556
                     <tr>
2557
                        <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
6873 dpurdie 2558
                           <td valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
121 hknight 2559
                        <%Else%>
6873 dpurdie 2560
                           <td valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
121 hknight 2561
                        <%End If%>
6873 dpurdie 2562
                        <td valign="top"><%=rsCodeReviewURL("reason")%></td>
2563
                        <td valign="top"><%=rsCodeReviewURL("date_of_review")%></td>
2564
                        <td valign="top"><%=rsCodeReviewURL("last_modified")%></td>
157 ghuddy 2565
                        <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (oldDlocked = "Y")) Then%>
6873 dpurdie 2566
                           <td valign="top"><span class='pointer txt_linked' onclick="MM_openVixIFrame('_wform_edit_code_review_url.asp?pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','Edit Code Review URL')" 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"></span></td>
2567
                           <td valign="top"><span class=pointer data-href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>" onclick="return vixConfirmDelete('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" align='absmiddle'></span></td>
121 hknight 2568
                        <%Else%>
6873 dpurdie 2569
                           <td valign="top"></td>
2570
                           <td valign="top"></td>
121 hknight 2571
                        <%End If%>
2572
                     </tr>
2573
                     <%rsCodeReviewURL.MoveNext
119 ghuddy 2574
                  WEnd
121 hknight 2575
               Else%>
119 ghuddy 2576
                  <tr>
6873 dpurdie 2577
                     <td></td>
2578
                     <td></td>
2579
                     <td></td>
2580
                     <td></td>
2581
                     <td></td>
2582
                     <td></td>
119 ghuddy 2583
                  </tr>
121 hknight 2584
               <%End If
2585
            End If%>
2586
         </table>
2587
      <%End If%>
119 ghuddy 2588
 
121 hknight 2589
   </fieldset>
2590
   <br>
119 ghuddy 2591
<!-- ADDITIONAL NOTES ------------------------------------------------------------------------------------------------------------------->
6324 dpurdie 2592
   <fieldset class="fset">
6827 dpurdie 2593
      <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>
6324 dpurdie 2594
      <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
2595
       <%If pageIsEditable Then%>
6873 dpurdie 2596
          <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_additional_note.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Additional Notes')" class="txt_linked">New Note<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align='absmiddle' title="Add new note."></span>
6324 dpurdie 2597
       <%End If%>
2598
      </div>
121 hknight 2599
      <a name="ADDITIONAL_NOTES"></a>
6873 dpurdie 2600
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
121 hknight 2601
         <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_Additional_Notes ( parPv_id ), cint(0))%>
2602
         <%If rsQry.RecordCount < 1 Then%>
2603
            <tr>
6873 dpurdie 2604
               <td>&nbsp;</td>
121 hknight 2605
            </tr>
2606
         <%End If%>
2607
         <%While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
6873 dpurdie 2608
            <tr class=hdr>
2609
               <td width="100%" nowrap>
121 hknight 2610
                  <%If pageIsEditable Then%>
6873 dpurdie 2611
                     <span onClick="MM_openVixIFrame('_wform_update_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Update Note')" class="pointer"><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"))%></span>
121 hknight 2612
                  <%Else%>
2613
                     <%=To_HTML (rsQry("note_title"))%>
2614
                  <%End If%>
2615
               </td>
6873 dpurdie 2616
               <td width="1%">
121 hknight 2617
                  <%If pageIsEditable Then%>
6873 dpurdie 2618
                     <span class=pointer data-href="_remove_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this note');"><img src="images/i_delete.gif" alt="Remove this note." width="13" height="12" hspace="3" border="0"></span>
121 hknight 2619
                  <%End If%>
2620
               </td>
2621
            </tr>
2622
            <tr>
6873 dpurdie 2623
               <td colspan="2">
4230 dpurdie 2624
                  <%=NewLine_To_BR( To_HTML ( rsQry("note_body") ) )%><br>
121 hknight 2625
                  <span class="rep_small">Last Modified: <%=rsQry("lastmod")%></span>
2626
               </td>
2627
            </tr>
2628
            <tr>
2629
               <td colspan="2"><img src='images/spacer.gif' width='2' height='2'></td>
2630
            </tr>
2631
            <%rsQry.MoveNext
2632
         WEnd%>
2633
      </table>
2634
   </fieldset>
5932 dpurdie 2635
   <br>
2636
<%End If%>
2637