Rev 185 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| FIXED ISSUES |'| |'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.Expires = 0 ' always load the page, dont store%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/common_dbedit.asp"--><!--#include file="_tabs.asp"--><!--#include file="_action_buttons.asp"--><!--#include file="common/_package_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ Variable Definition -------------Dim pageIsEditableDim sectionIsEditableDim criticalSectionIsEditable'------------ Constants Declaration -----------'------------ Variable Init -------------------'----------------------------------------------'-----------------------------------------------------------------------------------------------------------------Sub fillCommentsWithDifferences ( parPv_id )DIM outputStringDIM rsTempIf pkgInfoHash.Item("comments") = "" or isnull(pkgInfoHash.Item("comments")) ThenOraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBERIf (pkgInfoHash.Item ("last_pv_id") = "") OR IsNull(pkgInfoHash.Item ("last_pv_id")) ThenOraDatabase.Parameters.Add "OLD_PV_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBERElseOraDatabase.Parameters.Add "OLD_PV_ID", pkgInfoHash.Item ("last_pv_id"), ORAPARM_INPUT, ORATYPE_NUMBEREnd IfSet rsTemp = OraDatabase.DbCreateDynaset( GetQuery ( "diff_dependencies.sql" ), cint(0))Dim style, iconWhile ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))Select Case CInt(rsTemp("status"))Case enumDB_NUM_DIFF_UPDATEDoutputString = outputString & "[UPDATED] " & rsTemp("pkg_name") &" to "& rsTemp("pkg_version") &" ("& rsTemp("previous_version") &")"& VBNewLineCase enumDB_NUM_DIFF_NEWoutputString = outputString & "[NEW] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLineCase enumDB_NUM_DIFF_REMOVEDoutputString = outputString & "[REMOVED] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLineEnd SelectrsTemp.MoveNextWEnd' An error occured when outputString was longer than 4000 bytes, so this truncates it and adds "..."If LenB(outputString) > 4000 ThenoutputString = Left(outputString, 3995)outputString = Left(outputString, InStrRev(outputString, vbNewLine)) & vbNewLine & "..."End IfobjEH.TryORA ( OraSession )On Error Resume NextOraDatabase.ExecuteSQL _" UPDATE PACKAGE_VERSIONS"&_" SET COMMENTS = '"& outputString &"'"&_" WHERE PV_ID = :PV_ID "objEH.CatchORA ( OraSession )pkgInfoHash.Item("comments") = outputStringrsTemp.CloseSet rsTemp = nothingOraDatabase.Parameters.Remove "PV_ID"OraDatabase.Parameters.Remove "OLD_PV_ID"End IfEnd Sub'-----------------------------------------------------------------------------------------------------------------'------------------ MAIN LINE --------------------pageIsEditable = Is_Page_Editable ( pkgInfoHash.Item ("dlocked") )sectionIsEditable = Is_Section_Editable ()criticalSectionIsEditable = Is_Critical_Section_Editable ( pkgInfoHash.Item ("dlocked") )'-------------------------------------------------%><html><title><%=Title(Request("rtag_id"))%></title><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="images/release_manager_style.css" type="text/css"><link rel="stylesheet" href="images/navigation.css" type="text/css"><script language="JavaScript" src="images/common.js"></script><script language="JavaScript" src="scripts/remote_scripting.js"></script><!-- TIPS --><script language="JavaScript" src="images/tipster.js"></script><script language="JavaScript" src="images/_help_tips.js"></script><!-- DROPDOWN MENUS --><!--#include file="_menu_def.asp"--><script language="JavaScript1.2" src="images/popup_menu.js"></script></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" ><!-- MENU LAYERS --------------------------------------><div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"><!-----------------------------------------------------></div><!-- TIPS LAYERS --------------------------------------><div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div><!-----------------------------------------------------><!-- HEADER --><!--#include file="_header.asp"--><!-- BODY ----><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" width="1" background="images/bg_bage.gif"><!-- LEFT --><!--#include file="_environment.asp"--></td><td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td><td valign="top" width="100%"><!-- MIDDLE --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td><td width="100%" background="images/bg_action_norm.gif"><%Call RenderActionBar(parRtag_id,parPv_id)%></td><td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td></tr><tr><td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td><td background="images/bg_lght_gray.gif"><%Call RenderStatus(parRtag_id,parPv_id)%></td><td background="images/bg_lght_gray.gif"> </td></tr><tr><td background="images/bg_lght_gray.gif"> </td><td valign="bottom" background="images/bg_lght_gray.gif"><table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td><IMG height=1 src="images/spacer.gif" width=50></td><td><!-- TABS -------------------------------------><%Call Generate_Tab_Menu ( TABarray1, "Release Notes", "orange" )%></td></tr></table></td><td background="images/bg_lght_gray.gif"> </td></tr><tr><td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td><td background="images/lbox_bg_orange.gif"><!-- TAB ACTION BUTTONS -------------------------------------><%Call Action_Buttons ( "Release Notes" )%></td><td background="images/lbox_bg_orange.gif"> </td></tr><tr><td></td><td valign="top"><!-- DETAILS -------------------------------------------------><br><%If (pkgInfoHash.Item ("dlocked") = "Y") ThenIf (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") > 0) ThenSelect Case CStr( pkgInfoHash.Item ("release_notes_info") )Case enum_RELEASE_NOTES_GENERATINGCall DisplayInfo ( "GENERATING_RELEASE_NOTES", "400" )Case enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVECall DisplayInfo ( "NOT_FOUND_IN_PKG_ARCHIVE_RELEASE_NOTES", "400" )Case enum_RELEASE_NOTES_FAILEDCall DisplayInfo ( "FAILED_GENERATING_RELEASE_NOTES", "400" )Case enum_RELEASE_NOTES_NO_PREVIOUS_VERSIONCall DisplayInfo ( "NO_PREVIOUS_VERSION_RELEASE_NOTES", "400" )End SelectElseIf IsNull(pkgInfoHash.Item ("release_notes_info")) ThenCall DisplayInfo ( "GENERATE_RELEASE_NOTES", "400" )End IfElseCall fillCommentsWithDifferences ( parPv_id )End If%><!--#include file="_release_notes.asp"--><!-- END DETAILS -------------------------------------------------></td><td> </td></tr></table><!-- END MIDDLE --------></td></tr></table><!-- FOOTER --><!--#include file="_footer.asp"--></body></html><%Call Destroy_All_Objects%>