Subversion Repositories DevTools

Rev

Rev 5506 | Rev 5598 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5506 Rev 5590
Line 90... Line 90...
90
   Set rsTemp = nothing
90
   Set rsTemp = nothing
91
End Sub
91
End Sub
92
 
92
 
93
'-----------------------------------------------------------------------------------------------------------------------------
93
'-----------------------------------------------------------------------------------------------------------------------------
94
Function Get_Latest_All_Ext ( NNpkg_id, nPv_id )
94
Function Get_Latest_All_Ext ( NNpkg_id, nPv_id )
95
	Get_Latest_All_Ext = _
95
    Get_Latest_All_Ext = _
96
	" SELECT pv.pkg_version, pv.dlocked,"&_
96
    " SELECT pv.pkg_version, pv.dlocked,"&_
97
	"        DECODE ( pv.pv_id, "& nPv_id &", 'selected', NULL ) AS selected"&_
97
    "        DECODE ( pv.pv_id, "& nPv_id &", 'selected', NULL ) AS selected"&_
98
	"    FROM PACKAGES pkg, package_versions pv"&_
98
    "    FROM PACKAGES pkg, package_versions pv"&_
99
	"   WHERE pkg.pkg_id = pv.pkg_id  AND  pkg.pkg_id = "& NNpkg_id
99
    "   WHERE pkg.pkg_id = pv.pkg_id  AND  pkg.pkg_id = "& NNpkg_id
100
End Function
100
End Function
101
 
101
 
102
'-------------------------------------------------------------------------------------------------------------
102
'-------------------------------------------------------------------------------------------------------------
103
' Returns TRUE if the specified version has a COTS extension
103
' Returns TRUE if the specified version has a COTS extension
104
' Really determines if the extension has to be strict Major.Minor.PatchBuild
104
' Really determines if the extension has to be strict Major.Minor.PatchBuild
Line 405... Line 405...
405
   <%If NOT newPackage > 0 Then%>
405
   <%If NOT newPackage > 0 Then%>
406
   document.getElementById('FRuseVersion').style.visibility = 'hidden';
406
   document.getElementById('FRuseVersion').style.visibility = 'hidden';
407
   <%End If%>
407
   <%End If%>
408
   document.getElementById('FRvnumber').value = '(auto)';
408
   document.getElementById('FRvnumber').value = '(auto)';
409
   checkVersionNumber();
409
   checkVersionNumber();
-
 
410
   resizeFrame();
410
}
411
}
411
 
412
 
412
//////////////////////////////////////////////////////////////////
413
//////////////////////////////////////////////////////////////////
413
// Function: changeToManualVersionNumberAssignment
414
// Function: changeToManualVersionNumberAssignment
414
//
415
//
Line 426... Line 427...
426
       document.getElementById('FRvnumber').value = savedVersion;
427
       document.getElementById('FRvnumber').value = savedVersion;
427
   } else {
428
   } else {
428
       document.getElementById('FRvnumber').value = "";
429
       document.getElementById('FRvnumber').value = "";
429
   }
430
   }
430
   checkVersionNumber();
431
   checkVersionNumber();
-
 
432
   resizeFrame();
431
}
433
}
432
 
434
 
433
//////////////////////////////////////////////////////////////////
435
//////////////////////////////////////////////////////////////////
434
// Function: changeToAutoBuild
436
// Function: changeToAutoBuild
435
//
437
//
Line 569... Line 571...
569
        }
571
        }
570
        catch(e) {
572
        catch(e) {
571
            checkPackageHighlight( 1, '','Error in AJAX operation');
573
            checkPackageHighlight( 1, '','Error in AJAX operation');
572
        }
574
        }
573
        MM_hideProgressBar();
575
        MM_hideProgressBar();
-
 
576
        resizeFrame();
574
    }
577
    }
575
}
578
}
576
 
579
 
577
function checkPackageHighlight(v, msggood, msgbad)
580
function checkPackageHighlight(v, msggood, msgbad)
578
{
581
{
Line 715... Line 718...
715
        {
718
        {
716
            removeClass(document.getElementById('FRvnumber'), 'form_error' );
719
            removeClass(document.getElementById('FRvnumber'), 'form_error' );
717
            setIdText('vnError','');
720
            setIdText('vnError','');
718
        }
721
        }
719
        MM_hideProgressBar();
722
        MM_hideProgressBar();
-
 
723
        resizeFrame();
720
    }
724
    }
721
}
725
}
722
 
726
 
723
function checkReason()
727
function checkReason()
724
{
728
{
Line 803... Line 807...
803
        {
807
        {
804
            showeMessage('Error changing version number');
808
            showeMessage('Error changing version number');
805
            fieldError = true;
809
            fieldError = true;
806
        }
810
        }
807
        MM_hideProgressBar();
811
        MM_hideProgressBar();
-
 
812
        resizeFrame();
808
    }
813
    }
809
}
814
}
810
<%End If%>
815
<%End If%>
811
 
816
 
812
function reseteMessage()
817
function reseteMessage()
Line 839... Line 844...
839
//-->
844
//-->
840
</script>
845
</script>
841
 
846
 
842
<script>
847
<script>
843
 
848
 
-
 
849
<%If NOT bInIframe Then %>
-
 
850
    function Dependency()
-
 
851
    {
-
 
852
    <%If parRename <> "" Then%>
-
 
853
       parent.window.close();
-
 
854
    <%ElseIf newPackage > 0 Then%>
-
 
855
       parent.window.location.href="<%=rFile%>?rtag_id=<%=parRtag_id%>";
-
 
856
    <%Else%>
-
 
857
       parent.window.location.href="<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>";
-
 
858
    <%End If%>
-
 
859
    }
844
 
860
 
845
function Dependency()
861
    function resizeFrame()
846
{
862
    {
847
<%If parRename <> "" Then%>
863
    }
848
   parent.window.close();
-
 
849
<%ElseIf newPackage > 0 Then%>
-
 
850
   parent.window.location.href="<%=rFile%>?rtag_id=<%=parRtag_id%>";
-
 
851
<%Else%>
864
<%Else%>
-
 
865
    function Dependency()
-
 
866
    {
-
 
867
    <%If parRename <> "" Then%>
-
 
868
       parent.closeIFrame();
-
 
869
    <%ElseIf newPackage > 0 Then%>
-
 
870
       window.opener.document.location.href="<%=rFile%>?rtag_id=<%=parRtag_id%>";
-
 
871
    <%Else%>
852
   parent.window.location.href="<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>";
872
       window.opener.document.location.href="<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>";
-
 
873
    <%End If%>
-
 
874
    }
-
 
875
 
-
 
876
    function resizeFrame()
-
 
877
    {
-
 
878
        parent.resizeIframe();
-
 
879
    }
853
<%End If%>
880
<%End If%>
854
}
-
 
855
 
881
 
856
////////////////////////////////////////////////////////////////////////////////////////////////////////
882
////////////////////////////////////////////////////////////////////////////////////////////////////////
857
// This function returns true if form validation passes, else false
883
// This function returns true if form validation passes, else false
858
// It is called when a user hits the submit button.
884
// It is called when a user hits the submit button.
859
////////////////////////////////////////////////////////////////////////////////////////////////////////
885
////////////////////////////////////////////////////////////////////////////////////////////////////////
Line 886... Line 912...
886
            MM_showProgressBar();
912
            MM_showProgressBar();
887
            <%If parRename <> "" Then%>
913
            <%If parRename <> "" Then%>
888
                updateVersionInfo();
914
                updateVersionInfo();
889
                if (!fieldError)
915
                if (!fieldError)
890
                {
916
                {
-
 
917
                    <%If NOT bInIframe Then %>
891
                    parent.window.close();
918
                        parent.window.close();
892
                    window.opener.document.location='<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>';
919
                        window.opener.document.location='<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>';
-
 
920
                    <%Else%>
-
 
921
                        window.parent.location.reload(false);
-
 
922
                    <%End If%>
893
                    return true;
923
                    return true;
894
                }
924
                }
895
            <%Else%>
925
            <%Else%>
896
                f.action='_new_version.asp';
926
                f.action='_new_version.asp';
897
                parent.window.location.href='<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>';
927
                parent.window.location.href='<%=rFile%>?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>';
Line 900... Line 930...
900
        }
930
        }
901
    }
931
    }
902
 
932
 
903
    // Hide progress bar that is exposed because the previous tests were OK
933
    // Hide progress bar that is exposed because the previous tests were OK
904
    MM_hideProgressBar();
934
    MM_hideProgressBar();
-
 
935
    resizeFrame();
905
    checkMode = 0;
936
    checkMode = 0;
906
    return false;
937
    return false;
907
}
938
}
908
 
939
 
909
</script>
940
</script>
910
 
941
 
911
<table width="650" border="0" cellspacing="0" cellpadding="0">
942
<table width="650px" border="0" cellspacing="0" cellpadding="0">
912
   <tr>
943
   <tr>
913
      <td>
944
      <td>
914
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
945
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
946
<%If NOT bInIframe Then %>
915
            <tr>
947
            <tr>
916
               <td width="1%">&nbsp;</td>
948
               <td width="1%">&nbsp;</td>
917
               <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
949
               <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
918
               <td width="1%">&nbsp;</td>
950
               <td width="1%">&nbsp;</td>
919
            </tr>
951
            </tr>
Line 935... Line 967...
935
            <tr>
967
            <tr>
936
               <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>
968
               <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>
937
               <td background="images/lbox_bg_blue.gif"><!-- Heading --><img src="images/h_trsp_dot.gif" width="1" height="20"><!-- END Heading --></td>
969
               <td background="images/lbox_bg_blue.gif"><!-- Heading --><img src="images/h_trsp_dot.gif" width="1" height="20"><!-- END Heading --></td>
938
               <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>
970
               <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>
939
            </tr>
971
            </tr>
-
 
972
<%End If%>
940
            <tr>
973
            <tr>
941
               <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
974
               <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
942
               <td bgcolor="#FFFFFF" valign="top">
975
               <td bgcolor="#FFFFFF" valign="top">
943
                  <!-- Body -->
976
                  <!-- Body -->
944
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
977
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
Line 1205... Line 1238...
1205
                  </table>
1238
                  </table>
1206
                  <!-- END Body-->
1239
                  <!-- END Body-->
1207
               </td>
1240
               </td>
1208
               <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
1241
               <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
1209
            </tr>
1242
            </tr>
-
 
1243
<%If NOT bInIframe Then %>
1210
            <tr>
1244
            <tr>
1211
               <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
1245
               <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
1212
               <td background="images/lbox_bg_blue.gif"></td>
1246
               <td background="images/lbox_bg_blue.gif"></td>
1213
               <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>
1247
               <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>
1214
            </tr>
1248
            </tr>
-
 
1249
<%End If%>
1215
         </table>
1250
         </table>
1216
      </td>
1251
      </td>
1217
   </tr>
1252
   </tr>
1218
</table>
1253
</table>