Subversion Repositories DevTools

Rev

Rev 3867 | Rev 3885 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
151 ghuddy 3
'                 NEW VERSION
4
'                      PAGE
119 ghuddy 5
'=====================================================
6
%>
7
<!--#include file="_tabs.asp"-->
121 hknight 8
<!--#include file="_drawExtensionSelectBox.asp"-->
151 ghuddy 9
<!--#include file="class/classSortHelper.asp"-->
119 ghuddy 10
<%
11
'------------ Variable Definition -------------
12
Dim parPv_id
13
Dim rsLocRel
14
Dim parPage_title
15
Dim objPkgInfo
121 hknight 16
Dim rsTemp2
151 ghuddy 17
Dim rsLatest
18
Dim aVersions
19
Dim lastRow, i
20
Dim objSortHelper
3884 dpurdie 21
Dim newPackage
22
Dim majorState
23
Dim minorState
24
Dim patchState
25
Dim parBase_view_id
26
 
119 ghuddy 27
'------------ Constants Declaration -----------
28
'------------ Variable Init -------------------
29
parPv_id = QStrPar("pv_id")
3884 dpurdie 30
parBase_view_id = Request("base_view_id")
31
 
119 ghuddy 32
parPage_title = "NEW VERSION"
3884 dpurdie 33
 
34
If ( isempty(parPv_id) OR (NOT parPv_id <> "") ) Then
35
    newPackage = TRUE
36
ElseIf IsNumeric(parPv_id) Then
37
    If (parPv_id <= 0) Then
38
        newPackage = TRUE
39
    End if
40
End if
41
 
42
majorState = ""
43
minorState = ""
44
patchState = "checked"
45
 
119 ghuddy 46
Set objPkgInfo = CreateObject("Scripting.Dictionary")
3884 dpurdie 47
 
119 ghuddy 48
'-----------------------------------------------------------------------------------------------------------------------------
49
Sub GetPackageInfo( nPvId, outPkgInfo )
151 ghuddy 50
   Dim rsTemp, Query_String
3884 dpurdie 51
   If (IsEmpty(nPvId) OR newPackage) Then Exit Sub
121 hknight 52
 
151 ghuddy 53
   Query_String = _
54
   " SELECT pv.pv_id, pkg.pkg_id, pkg.pkg_name, pv.pkg_version, pv.v_ext"&_
55
   "  FROM packages pkg, package_versions pv"&_
56
   " WHERE pkg.pkg_id = pv.pkg_id  AND pv.pv_id ="& nPvId
121 hknight 57
 
151 ghuddy 58
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
121 hknight 59
 
151 ghuddy 60
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
61
      outPkgInfo.Item("pv_id") = rsTemp.Fields("pv_id")
62
      outPkgInfo.Item("pkg_id") = rsTemp.Fields("pkg_id")
63
      outPkgInfo.Item("pkg_name") = rsTemp.Fields("pkg_name")
64
      outPkgInfo.Item("pkg_version") = rsTemp.Fields("pkg_version")
65
      outPkgInfo.Item("v_ext") = rsTemp.Fields("v_ext")
66
   End If
121 hknight 67
 
151 ghuddy 68
   rsTemp.Close
69
   Set rsTemp = nothing
119 ghuddy 70
End Sub
71
'-----------------------------------------------------------------------------------------------------------------------------
151 ghuddy 72
Function Get_Latest_All_Ext ( NNpkg_id, nPv_id )
73
	Get_Latest_All_Ext = _
74
	" SELECT pv.pkg_version, pv.dlocked,"&_
75
	"        DECODE ( pv.pv_id, "& nPv_id &", 'selected', NULL ) AS selected"&_
76
	"    FROM PACKAGES pkg, package_versions pv"&_
77
	"   WHERE pkg.pkg_id = pv.pkg_id  AND  pkg.pkg_id = "& NNpkg_id
78
End Function
165 brianf 79
 
80
'-------------------------------------------------------------------------------------------------------------
3867 dpurdie 81
' Returns TRUE if the specified version has a COTS extension
82
' Really determines if the extension has to be strict Major.Minor.PatchBuild
83
' or is allowed to be more relaxes. As in COTS and TOOL packages.
3865 dpurdie 84
'
3867 dpurdie 85
' Read from the database to determine type
86
' If we cannot determine the project suffix then assume the worst
87
'
165 brianf 88
Function HasCotsExtension(aversion)
3867 dpurdie 89
   Dim rsQry, Query_String
90
   Dim reResult
91
   HasCotsExtension = FALSE
92
 
93
   ' Extract package suffix .xxxx
165 brianf 94
   Dim re: Set re = New RegExp
3867 dpurdie 95
   re.IgnoreCase = true
96
   re.Pattern = "(\.[a-z]{2,4})$"
97
   Set reResult = re.Execute(aversion)
98
   if reResult.Count = 1 Then
99
       Query_String = "SELECT EXT_NAME FROM PROJECT_EXTENTIONS pe WHERE " &_
100
                      "pe.IS_COTS='Y' AND pe.EXT_NAME='"&_
101
                       LCase(reResult.Item(0).Submatches(0)) & "'"
102
       Set rsQry = OraDatabase.DbCreateDynaset( Query_String, ORADYN_DEFAULT )
103
       If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
104
           HasCotsExtension = TRUE
105
       End If
106
       rsQry.Close
107
   Else
108
       HasCotsExtension = TRUE
109
   end If
110
 
111
   Set rsQry = Nothing
165 brianf 112
   Set re = Nothing
3867 dpurdie 113
   Set reResult = Nothing
165 brianf 114
End Function
115
 
116
'-------------------------------------------------------------------------------------------------------------
117
'Returns TRUE if the specified version has a patch-build number.
118
Function HasPatchBuildNumber(aversion)
119
   'test for a version with a patch build number, ie a dot and at least 4 digits before the extenstion.
120
   Dim re: Set re = New RegExp
121
   re.Pattern = "\.\d{4,}\.[^\.]+$"
122
   HasPatchBuildNumber = re.Test(aversion)
123
   Set re = Nothing      
124
End Function
125
 
3621 dpurdie 126
'-------------------------------------------------------------------------------------------------------------
127
'Returns TRUE if the specified version has a well formed version number
128
Function HasWellFormedVersion(aversion)
129
   'If a package has a major.minor.patch-build number then it is well formed
130
   Dim re: Set re = New RegExp
131
   re.Pattern = "^\d+\.\d+\.\d{4,}\.[^\.]+$"
132
   HasWellFormedVersion = re.Test(aversion)
133
   Set re = Nothing      
134
End Function
135
 
3884 dpurdie 136
'-----------------------------------------------------------------------------------------------------------------------------
137
Sub Get_All_Base_Views ( NNnewgroup_id )
138
   Dim rsTemp, Query_String
3621 dpurdie 139
 
3884 dpurdie 140
   Query_String = _
141
   "   SELECT vi.view_id, vi.view_name "&_
142
   "     FROM views vi "&_
143
   "    WHERE UPPER(vi.base_view) = 'Y'"&_
144
   "    ORDER BY vi.view_name ASC"
145
 
146
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
147
 
148
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
149
      If NNnewgroup_id = Cstr( rsTemp.Fields("view_id")) Then
150
         Response.write "<option value='"& rsTemp("view_id") &"' selected>"& rsTemp("view_name") &"</option>"
151
      Else
152
         Response.write "<option value='"& rsTemp("view_id") &"'>" & rsTemp("view_name") &"</option>"
153
      End If
154
 
155
      rsTemp.MoveNext
156
   WEnd
157
 
158
   rsTemp.Close
159
   Set rsTemp = nothing
160
End Sub
151 ghuddy 161
'-----------------------------------------------------------------------------------------------------------------------------
3884 dpurdie 162
Sub Get_All_Personal_Views ( NNuser_id )
163
   Dim rsTemp, Query_String
164
   If NNuser_id = "" Then Exit Sub
165
 
166
   Query_String = _
167
   " SELECT vi.view_id, vi.view_name"&_
168
   "  FROM view_settings vs,"&_
169
   "       views vi"&_
170
   " WHERE vs.view_id = vi.view_id"&_
171
   "   AND vs.user_id = vi.owner_id  "&_
172
   "   AND vs.user_id = "& NNuser_id &_
173
   "   AND vi.base_view = 'N'"&_
174
   " ORDER BY UPPER(vi.view_name)"
175
 
176
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
177
 
178
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
179
      Response.write "<option value='"& rsTemp.Fields("view_id") &"'>"& rsTemp.Fields("view_name") &"</option>"
180
 
181
      rsTemp.MoveNext
182
   WEnd
183
 
184
   rsTemp.Close
185
   Set rsTemp = nothing
186
End Sub
187
'-----------------------------------------------------------------------------------------------------------------------------
188
 
119 ghuddy 189
%>
190
<%
191
'===================== MAIN LINE ============================
3884 dpurdie 192
Dim bDisableAuto, bPatchOnly, bIsCots, bIsAuto
151 ghuddy 193
 
3884 dpurdie 194
If NOT newPackage Then
3867 dpurdie 195
 
3884 dpurdie 196
    Call GetPackageInfo( parPv_id, objPkgInfo )
165 brianf 197
 
3884 dpurdie 198
    bIsCots = HasCotsExtension(objPkgInfo.Item("pkg_version"))
199
    'Disable the "Auto" build option if the package is a COTS package and the version doesn't have a patch-build number.
200
    bDisableAuto = bIsCots and not HasPatchBuildNumber(objPkgInfo.Item("pkg_version"))
201
    'Enable only the "Patch Change" option if the package is a COTS package and the version has a patch-build number.
202
    bPatchOnly = bIsCots and not HasWellFormedVersion(objPkgInfo.Item("pkg_version")) and HasPatchBuildNumber(objPkgInfo.Item("pkg_version"))
203
 
204
    'if "Auto" build option is disabled then select the Manual option
205
    If bDisableAuto Then
206
       bIsAuto = FALSE
207
    'else default to Auto
208
    Else
209
       bIsAuto = TRUE
210
    End If
151 ghuddy 211
End If
3884 dpurdie 212
 
213
' If New Package and First version
214
If newPackage Then
215
    parPage_title = "NEW PACKAGE and FIRST VERSION"
216
    bIsCots = FALSE
217
    bDisableAuto = FALSE
218
    bPatchOnly = FALSE
219
    bIsAuto = TRUE
220
    majorState = "checked"
221
    minorState = ""
222
    patchState = ""
223
End If
224
 
119 ghuddy 225
'============================================================
226
%>
227
<script language="JavaScript" type="text/JavaScript">
228
<!--
3884 dpurdie 229
var savedVersion;
121 hknight 230
 
3884 dpurdie 231
window.onload = function(e)
121 hknight 232
{
151 ghuddy 233
   var isAutobuild = document.NEWversion.build_type[0].checked;
234
   if (!isAutobuild)
235
   {
3884 dpurdie 236
      changeToManualVersionNumberAssignment();
151 ghuddy 237
   }
3884 dpurdie 238
   else
239
   {
240
      changeToAutoVersionNumberAssignment();
241
   }
119 ghuddy 242
}
121 hknight 243
 
244
//////////////////////////////////////////////////////////////////
151 ghuddy 245
// Function: changeToAutoVersionNumberAssignment
121 hknight 246
//
3884 dpurdie 247
// Purpose: Hide the relevent sections of the form
121 hknight 248
//
151 ghuddy 249
function changeToAutoVersionNumberAssignment()
250
{
3884 dpurdie 251
   document.getElementById('change_type').style.display = 'table-row';
252
   //document.getElementById('pkgver').style.display = 'none';
253
   savedVersion = document.getElementById('inputVersionNumber').value;
254
   document.getElementById('inputVersionNumber').disabled = true;
255
   document.getElementById('inputVersionNumber').value = '(auto)';
151 ghuddy 256
}
257
 
258
//////////////////////////////////////////////////////////////////
259
// Function: changeToManualVersionNumberAssignment
121 hknight 260
//
3884 dpurdie 261
// Purpose: Show the relevent sections of the form
151 ghuddy 262
//
263
function changeToManualVersionNumberAssignment()
121 hknight 264
{
3884 dpurdie 265
   var f;
266
   document.getElementById('change_type').style.display = 'none';
267
   document.getElementById('pkgver').style.display = 'table-row';
268
   document.getElementById('inputVersionNumber').disabled = false;
269
   document.getElementById('inputVersionNumber').value = savedVersion;
121 hknight 270
}
271
 
151 ghuddy 272
 
121 hknight 273
// Do not remove these next few lines, otherwise the page does not load properly in Microsoft IE.
119 ghuddy 274
//-->
275
</script>
276
 
277
<script>
121 hknight 278
 
279
 
119 ghuddy 280
function Dependency()
281
{
151 ghuddy 282
   parent.window.location.href="dependencies.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>";
119 ghuddy 283
}
121 hknight 284
 
151 ghuddy 285
////////////////////////////////////////////////////////////////////////////////////////////////////////
286
// This function returns true if form validation passes, else false
287
// It is called when a user hits the submit button.
288
////////////////////////////////////////////////////////////////////////////////////////////////////////
289
function validateFormNEWversion()
290
{
291
   var f = document.getElementById('NEWversion');
121 hknight 292
 
151 ghuddy 293
   if (f == null)
294
      alert('Failed To Get NEWversion');   // should never happen unless a coding/rendering mistake is made?
295
   else
296
   {
3884 dpurdie 297
        // Check Package Name exists - only for new packages
298
        if ( f.newPackage.value )
299
        {
300
            MM_validateForm('inputPackageName','Package Name','RisPackage');
301
            if ( ! document.MM_returnValue )
302
            {
303
                return false;
304
            }
305
            // Ensure that a Base View has been selected
306
            MM_validateForm('base_view_id','Base View','R');
307
            if ( ! document.MM_returnValue )
308
            {
309
                return false;
310
            }
311
        }
312
 
313
        // check the version number is good
314
 
315
        // Get Full version - store into hidden field processing
316
        var versionExt = document.all['v_ext'].value;
317
        var versionBase = document.all['inputVersionNumber'].value;
318
        document.all['FRnewver'].value = versionBase + versionExt;
319
 
320
        var isAutobuild = document.NEWversion.build_type[0].checked;
321
        document.MM_returnValue = MM_ValidateVersion(null, versionBase, versionExt, isAutobuild, false);
322
 
151 ghuddy 323
      if (document.MM_returnValue)
324
      {
325
         // check the reason for change is good
326
         // NOTE: MM_validateForm returns its result through MM_returnValue : true if validation passes, else false
327
         MM_validateForm('FRreason','Reason for This Version','maxLength:4000');
328
         if (document.MM_returnValue)
329
         {
330
            f.action='_new_version.asp';
331
            parent.window.location.href='dependencies.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>';
332
 
333
            return true; // let the submit happen
334
         }
335
      }
336
   }
337
   return false; // prevent the submit
121 hknight 338
}
151 ghuddy 339
 
119 ghuddy 340
</script>
341
 
342
<table width="650" border="0" cellspacing="0" cellpadding="0">
151 ghuddy 343
   <tr>
344
      <td>
345
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
346
            <tr>
347
               <td width="1%">&nbsp;</td>
348
               <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
349
               <td width="1%">&nbsp;</td>
350
            </tr>
351
            <tr>
352
               <td width="1%">&nbsp;</td>
353
               <td>
354
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
355
                     <tr>
356
                        <td nowrap class="form_ttl"><%=parPage_title%></td>
357
                        <td align="right" valign="bottom">
358
                           <!-- TABS -->
359
                           &nbsp;
360
                        </td>
361
                     </tr>
362
                  </table>
363
               </td>
364
               <td width="1%">&nbsp;</td>
365
            </tr>
366
            <tr>
367
               <td align="left" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
368
               <td background="images/lbox_bg_blue.gif"><!-- Heading --><img src="images/h_trsp_dot.gif" width="1" height="20"><!-- END Heading --></td>
369
               <td align="right" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
370
            </tr>
371
            <tr>
372
               <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
373
               <td bgcolor="#FFFFFF" valign="top">
374
                  <!-- Body -->
375
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
376
                     <form id="NEWversion"  name="NEWversion" method="post">
377
                        <tr>
378
                           <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="10"></td>
379
                           <td width="1%" nowrap class="form_group" valign="bottom"></td>
380
                           <td nowrap width="100%" align="right" class="form_step"></td>
381
                        </tr>
382
                        <tr>
383
                           <td width="1%">&nbsp;</td>
384
                           <td colspan="2" width="1%" nowrap class="form_field">
385
                              <table width="100%" border="0" cellspacing="1" cellpadding="5">
3884 dpurdie 386
 
387
                                 <!-- Package Name -->
151 ghuddy 388
                                 <tr>
389
                                    <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field">Package Name</td>
3884 dpurdie 390
                                    <% if newPackage Then %>
391
                                        <td background="images/bg_form_lightgray.gif" class="form_item">
392
                                          <input type="text" id="inputPackageName" name="inputPackageName" class="form_item" size="40">
393
                                        </td>
394
                                    <% Else %>
395
                                        <td background="images/bg_form_lightgray.gif" class="form_field"><%=objPkgInfo.Item("pkg_name")%></td>
396
                                    <% End If %>
151 ghuddy 397
                                 </tr>
3884 dpurdie 398
 
399
                                 <!--Base View -------------->
400
                                 <% if newPackage Then %>
401
                                    <tr>
402
                                        <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field">To Base View</td>
403
                                        <td colspan="2" width="1%" nowrap background="images/bg_form_lightgray.gif">
404
                                           <select name="base_view_id" id="base_view_id" class="form_item">
405
                                              <option></option>
406
                                              <%Call Get_All_Base_Views(parBase_view_id)%>
407
                                           </select>
408
                                        </td>
409
                                     </tr>
410
 
411
                                 <!--Personal View -------------->
412
                                    <tr>
413
                                        <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field">To Personal View</td>
414
                                       <td colspan="2" width="1%" nowrap background="images/bg_form_lightgray.gif">
415
                                          <select name="personal_view_id" class="form_item">
416
                                             <option value="">None</option>
417
                                             <%Call Get_All_Personal_Views(objAccessControl.UserId )%>
418
                                          </select>
419
                                       </td>
420
                                    </tr>
421
 
422
                                 <!--Dummy Line to highlight New Package Data -------------->
423
                                    <tr>
424
                                        <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field"></td>
425
                                        <td background="images/bg_form_lightbluedark.gif" class="form_field"></td>
426
                                    </tr>
427
                                 <% End If %>
428
 
429
                                 <!--Version Number Assignment -------------->
151 ghuddy 430
                                 <tr>
431
                                    <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field">Version Number Assignment</td>
432
                                    <td background="images/bg_form_lightgray.gif" class="form_txt">
3884 dpurdie 433
                                       <%
434
                                            Dim flagAuto, flagMan
435
                                            if bDisableAuto Then
436
                                                flagAuto = "disabled"
437
                                                flagMan = "checked"
438
                                            Else
439
                                                If bIsAuto Then
440
                                                    flagAuto = "checked"
441
                                                    flagMan = ""
442
                                                Else
443
                                                    flagAuto = ""
444
                                                    flagMan = "checked"
445
                                                End if
446
                                            End if
447
                                       %>
448
                                        <table>
449
                                        <tr>
450
                                            <td background="images/bg_form_lightgray.gif" class="form_txt">
451
 
452
                                            <input name="build_type" id="build_type" type="radio" value="A" <%=flagAuto%> onclick="changeToAutoVersionNumberAssignment();"> Auto
453
                                            <input name="build_type" id="build_type" type="radio" value="M" <%=flagMan%> onclick="changeToManualVersionNumberAssignment();"> Manual
454
                                        </td>
455
                                        </table>
151 ghuddy 456
                                    </td>
457
                                 </tr>
458
 
3884 dpurdie 459
                                 <!-- New Version Number -->
151 ghuddy 460
                                 <tr>
461
                                    <td background="images/bg_form_lightbluedark.gif"  width="20%" class="form_field">New Version Number</td>
3884 dpurdie 462
                                    <td>
463
                                        <table>
464
                                        <tr>
465
                                        <td background="images/bg_form_lightgray.gif" class="form_item">
466
                                            <input type="text" id="inputVersionNumber"
467
                                                    name="inputVersionNumber"
468
                                                    class="form_item" size="12">
469
                                        </td>
470
                                           <td id="pkgver" background="images/bg_form_lightgray.gif" class="form_item">
471
                                           <%If NOT newPackage Then%>
472
                                              <select id="FRpkgver"  name="FRpkgver" class="form_item">
473
                                                 <option value=""></option>
474
                                                 <%
475
                                                 Set rsLatest = OraDatabase.DbCreateDynaset( Get_Latest_All_Ext( objPkgInfo.Item("pkg_id"), parPv_id ), cint(0))
151 ghuddy 476
 
3884 dpurdie 477
                                                 If rsLatest.RecordCount > 0 Then
478
                                                    aVersions = rsLatest.GetRows()
479
                                                    lastRow = UBound( aVersions, 2 )
480
                                                    Set objSortHelper = New SortHelper
151 ghuddy 481
 
3884 dpurdie 482
                                                    ' Sort versions
483
                                                    Call objSortHelper.VersionSort( aVersions, 0, lastRow, rsLatest.FieldIndex("pkg_version") )
151 ghuddy 484
 
3884 dpurdie 485
                                                    ' Descending order
486
                                                    For i = lastRow To 0 Step -1
487
                                                    %>
488
                                                       <option value="<%=aVersions( rsLatest.FieldIndex("pkg_version"), i )%>" <%=aVersions( rsLatest.FieldIndex("selected"), i )%>>
489
                                                          <%If aVersions( rsLatest.FieldIndex("dlocked"), i ) = "Y" Then%>
490
                                                             R&nbsp;
491
                                                          <%Else%>
492
                                                             &nbsp;&nbsp;&nbsp;&nbsp;
493
                                                          <%End If%>
494
                                                          <%=aVersions( rsLatest.FieldIndex("pkg_version"), i )%>
495
                                                       </option>
496
                                                    <%
497
                                                    Next
498
                                                    Set objSortHelper = nothing
151 ghuddy 499
 
3884 dpurdie 500
                                                 End If
501
                                                 %>
502
                                              </select>&nbsp;Existing Versions (For Reference Only)
503
                                           <%End If%>
504
                                           </td>
505
                                        </tr>
506
                                        </table>
507
                                    </td>
151 ghuddy 508
                                 </tr>
509
                                 <tr>
510
                                    <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field">Version Extension</td>
511
                                    <td background="images/bg_form_lightgray.gif" class="form_item">
512
                                       <DIV id="divVersionExt" name="divVersionExt">
3884 dpurdie 513
                                          <select name="v_ext" id="v_ext">
151 ghuddy 514
                                             <%
515
                                             Call drawExtensionSelectBox( objPkgInfo.Item("v_ext"), true )
516
                                             %>
517
                                          </select>
518
                                       </DIV>
519
                                    </td>
520
                                 </tr>
521
 
522
                                 <tr>
523
                                    <td background="images/bg_form_lightbluedark.gif" width="20%" class="form_field">Reason For This Version</td>
524
                                    <td background="images/bg_form_lightgray.gif" nowrap width="100%" class="form_field">
525
                                       <textarea name="FRreason" class="form_item" style="width: 420px; height: 150px"></textarea>
526
                                    </td>
527
                                 </tr>
528
 
3884 dpurdie 529
                                <tr id="change_type">
530
                                   <td background="images/bg_form_lightbluedark.gif" nowrap width="20%" class="form_field">Change Type</td>
531
                                   <td background="images/bg_form_lightgray.gif" >
532
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
533
                                         <tr>
534
                                            <td width="1%">
535
                                              <%If bPatchOnly Then majorState = "disabled" %>
536
                                              <input name="change_type" type="radio" value="M" <%=majorState%>>
537
                                            </td>
538
                                            <td nowrap>
539
                                               <span class="form_field">Major Change</span>
540
                                            </td>
541
                                            <td>&nbsp;</td>
542
                                            <td>
543
                                               <span class="form_txt">A major number change indicates the contract of the package has changed in a non-backwardly compatible manner.</span>
544
                                            </td>
545
                                         </tr>
546
                                         <tr>
547
                                            <td colspan="4"><hr width="100%" size="1" noshade></td>
548
                                         </tr>
549
                                         <tr>
550
                                            <td width="1%">
551
                                              <%If bPatchOnly Then minorState = "disabled" %>
552
                                              <input name="change_type" type="radio" value="N" <%=minorState%>>
553
                                            </td>
554
                                            <td align="center" nowrap>
555
                                               <span class="form_field">Minor Change</span>
556
                                            </td>
557
                                            <td>&nbsp;</td>
558
                                            <td>
559
                                               <span class="form_txt">A minor number change indicates the contract of the package has changed in a backwardly compatible manner.</span>
560
                                            </td>
561
                                         </tr>
562
                                         <tr>
563
                                            <td colspan="4"><hr width="100%" size="1" noshade></td>
564
                                         </tr>
565
                                         <tr>
566
                                            <td width="1%">
567
                                               <input name="change_type" type="radio" value="P" <%=patchState%>>
568
                                            </td>
569
                                            <td nowrap>
570
                                               <span class="form_field">Patch Change</span>
571
                                            </td>
572
                                            <td>&nbsp;</td>
573
                                            <td>
574
                                               <span class="form_txt">A patch number change indicates the package has changed internally.</span>
575
                                            </td>
576
                                         </tr>
577
                                      </table>
151 ghuddy 578
 
3884 dpurdie 579
                                   </td>
580
                                </tr>
151 ghuddy 581
                                 <tr>
582
                                    <td nowrap><img src="images/h_trsp_dot.gif" width="120" height="1"></td>
583
                                    <td></td>
584
                                 </tr>
585
                                 <input type="hidden" name="FRnewver" id="FRnewver" value="hello">
586
                                 <input type="hidden" name="OLDpv_id" value="<%=parPv_id%>">
587
                                 <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
3884 dpurdie 588
                                 <input type="hidden" name="newPackage" value="<%=newPackage%>">
151 ghuddy 589
                              </table>
590
                           </td>
591
                        </tr>
592
                        <tr>
593
                           <td width="1%">&nbsp;</td>
594
                           <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
595
                           <td nowrap width="100%" class="body_scol">
596
                              <input type="submit" name="btn" value="Submit" class="form_btn" onClick="return validateFormNEWversion();">
597
                              <input type="reset" name="btn" value="Cancel" class="form_btn" onClick="Dependency();">
598
                              <SPAN id="ProgressBar" name="ProgressBar" style="visibility:hidden;"><img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...</SPAN>
599
                              <br><br>
600
                           </td>
601
                        </tr>
602
                     </form>
603
                  </table>
604
                  <!-- END Body-->
605
               </td>
606
               <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
607
            </tr>
608
            <tr>
609
               <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
610
               <td background="images/lbox_bg_blue.gif"></td>
611
               <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
612
            </tr>
613
         </table>
614
      </td>
615
   </tr>
119 ghuddy 616
</table>