Subversion Repositories DevTools

Rev

Rev 185 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
129 ghuddy 5
'|                    FIXED ISSUES                   |
119 ghuddy 6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
129 ghuddy 12
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<!--#include file="_tabs.asp"-->
21
<!--#include file="_action_buttons.asp"-->
22
<!--#include file="common/_package_common.asp"-->
23
<%
24
'------------ ACCESS CONTROL ------------------
25
%>
26
<!--#include file="_access_control_general.asp"-->
27
<%
28
'------------ Variable Definition -------------
29
Dim pageIsEditable
30
Dim sectionIsEditable
31
Dim criticalSectionIsEditable
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
'----------------------------------------------
35
'-----------------------------------------------------------------------------------------------------------------
36
Sub fillCommentsWithDifferences ( parPv_id )
129 ghuddy 37
   DIM outputString
38
   DIM rsTemp
119 ghuddy 39
 
129 ghuddy 40
   If pkgInfoHash.Item("comments") = "" or isnull(pkgInfoHash.Item("comments")) Then
119 ghuddy 41
 
129 ghuddy 42
      OraDatabase.Parameters.Add "PV_ID", parPv_id,    ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 43
 
129 ghuddy 44
      If (pkgInfoHash.Item ("last_pv_id") = "") OR IsNull(pkgInfoHash.Item ("last_pv_id")) Then
45
         OraDatabase.Parameters.Add "OLD_PV_ID",    0,    ORAPARM_INPUT, ORATYPE_NUMBER
46
      Else
47
         OraDatabase.Parameters.Add "OLD_PV_ID",    pkgInfoHash.Item ("last_pv_id"),    ORAPARM_INPUT, ORATYPE_NUMBER
48
      End If
49
 
50
      Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery ( "diff_dependencies.sql" ), cint(0))
51
      Dim style, icon
52
 
53
      While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
54
 
55
         Select Case CInt(rsTemp("status"))
56
         Case enumDB_NUM_DIFF_UPDATED
57
            outputString = outputString & "[UPDATED] " & rsTemp("pkg_name") &" to "& rsTemp("pkg_version") &" ("& rsTemp("previous_version") &")"& VBNewLine
58
 
59
            Case enumDB_NUM_DIFF_NEW
60
            outputString = outputString & "[NEW] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
61
 
62
         Case enumDB_NUM_DIFF_REMOVED
63
            outputString = outputString & "[REMOVED] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
64
 
65
         End Select
66
 
67
            rsTemp.MoveNext
68
      WEnd
69
 
70
      ' An error occured when outputString was longer than 4000 bytes, so this truncates it and adds "..."
71
      If LenB(outputString) > 4000 Then
72
         outputString = Left(outputString, 3995)
73
         outputString = Left(outputString, InStrRev(outputString, vbNewLine)) & vbNewLine & "..."
74
      End If
75
 
76
      objEH.TryORA ( OraSession )
77
      On Error Resume Next
78
 
79
      OraDatabase.ExecuteSQL _
80
      " UPDATE PACKAGE_VERSIONS"&_
81
      " SET COMMENTS = '"& outputString &"'"&_
82
      " WHERE PV_ID = :PV_ID "
83
 
84
      objEH.CatchORA ( OraSession )
85
 
86
      pkgInfoHash.Item("comments") = outputString
87
 
88
      rsTemp.Close
89
      Set rsTemp = nothing
90
 
91
      OraDatabase.Parameters.Remove "PV_ID"
92
      OraDatabase.Parameters.Remove "OLD_PV_ID"
93
   End If
119 ghuddy 94
End Sub
95
'-----------------------------------------------------------------------------------------------------------------
96
 
97
 
98
'------------------ MAIN LINE --------------------
99
pageIsEditable = Is_Page_Editable ( pkgInfoHash.Item ("dlocked") )
100
sectionIsEditable = Is_Section_Editable ()
101
criticalSectionIsEditable = Is_Critical_Section_Editable ( pkgInfoHash.Item ("dlocked") )
102
'-------------------------------------------------
103
 
104
%>
105
<html>
106
<title><%=Title(Request("rtag_id"))%></title>
107
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
108
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
109
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
110
<link rel="stylesheet" href="images/navigation.css" type="text/css">
111
<script language="JavaScript" src="images/common.js"></script>
112
<script language="JavaScript" src="scripts/remote_scripting.js"></script>
113
<!-- TIPS -->
114
<script language="JavaScript" src="images/tipster.js"></script>
115
<script language="JavaScript" src="images/_help_tips.js"></script>
116
<!-- DROPDOWN MENUS -->
117
<!--#include file="_menu_def.asp"-->
118
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
119
</head>
120
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
121
<!-- MENU LAYERS -------------------------------------->
129 ghuddy 122
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
119 ghuddy 123
  <!----------------------------------------------------->
124
</div>
125
<!-- TIPS LAYERS -------------------------------------->
126
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
127
<!----------------------------------------------------->
128
<!-- HEADER -->
129
<!--#include file="_header.asp"-->
130
<!-- BODY ---->
131
<table width="100%" border="0" cellspacing="0" cellpadding="0">
129 ghuddy 132
   <tr>
133
      <td valign="top" width="1" background="images/bg_bage.gif">
134
      <!-- LEFT -->
135
      <!--#include file="_environment.asp"-->
136
      </td>
137
      <td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
138
      <td valign="top" width="100%">
139
      <!-- MIDDLE -->
140
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
141
        <tr>
142
          <td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td>
185 brianf 143
          <td width="100%" background="images/bg_action_norm.gif"><%Call RenderActionBar(parRtag_id,parPv_id)%></td>
129 ghuddy 144
          <td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td>
145
        </tr>
146
        <tr>
183 brianf 147
          <td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td>
148
          <td background="images/bg_lght_gray.gif"><%Call RenderStatus(parRtag_id,parPv_id)%></td>
129 ghuddy 149
          <td background="images/bg_lght_gray.gif">&nbsp;</td>
183 brianf 150
        </tr>
151
        <tr>
152
          <td background="images/bg_lght_gray.gif">&nbsp;</td>
129 ghuddy 153
          <td valign="bottom" background="images/bg_lght_gray.gif">
154
            <table width="100" border="0" cellspacing="0" cellpadding="0">
155
              <tr>
156
                <td><IMG height=1 src="images/spacer.gif" width=50></td>
157
                <td>
158
              <!-- TABS ------------------------------------->
159
              <%Call Generate_Tab_Menu ( TABarray1, "Release Notes", "orange" )%>
160
              </td>
161
              </tr>
162
            </table>
163
          </td>
164
          <td background="images/bg_lght_gray.gif">&nbsp;</td>
165
        </tr>
166
        <tr>
167
          <td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td>
168
          <td background="images/lbox_bg_orange.gif">
169
         <!-- TAB ACTION BUTTONS ------------------------------------->
170
         <%Call Action_Buttons ( "Release Notes" )%>
171
         </td>
172
          <td background="images/lbox_bg_orange.gif">&nbsp;</td>
173
        </tr>
174
        <tr>
175
          <td></td>
176
          <td valign="top">
177
         <!-- DETAILS ------------------------------------------------->
178
         <br>
179
         <%
180
         If (pkgInfoHash.Item ("dlocked") = "Y") Then
181
            If (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") > 0) Then
182
               Select Case CStr( pkgInfoHash.Item ("release_notes_info") )
183
               Case enum_RELEASE_NOTES_GENERATING
184
                  Call DisplayInfo ( "GENERATING_RELEASE_NOTES", "400" )
185
               Case enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE
186
                  Call DisplayInfo ( "NOT_FOUND_IN_PKG_ARCHIVE_RELEASE_NOTES", "400" )
187
               Case enum_RELEASE_NOTES_FAILED
188
                  Call DisplayInfo ( "FAILED_GENERATING_RELEASE_NOTES", "400" )
189
               Case enum_RELEASE_NOTES_NO_PREVIOUS_VERSION
190
                  Call DisplayInfo ( "NO_PREVIOUS_VERSION_RELEASE_NOTES", "400" )
191
               End Select
119 ghuddy 192
 
129 ghuddy 193
            ElseIf IsNull(pkgInfoHash.Item ("release_notes_info")) Then
194
               Call DisplayInfo ( "GENERATE_RELEASE_NOTES", "400" )
195
 
196
            End If
197
         Else
198
            Call fillCommentsWithDifferences ( parPv_id )
199
         End If
200
 
201
         %>
202
 
203
         <!--#include file="_release_notes.asp"-->
204
 
205
         <!-- END DETAILS ------------------------------------------------->
206
         </td>
207
          <td>&nbsp;</td>
208
        </tr>
209
      </table>
210
      <!-- END MIDDLE -------->
211
      </td>
212
   </tr>
119 ghuddy 213
</table>
214
<!-- FOOTER -->
215
<!--#include file="_footer.asp"-->
216
</body>
217
</html>
218
<%
219
Call Destroy_All_Objects
220
%>