Subversion Repositories DevTools

Rev

Rev 119 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 5357
Line 1... Line 1...
1
<%@LANGUAGE="VBSCRIPT"%>
1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
2
<%
3
Option explicit
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
4
Response.Expires = 0	' always load the page, dont store
5
%>
5
%>
6
<%
6
<%
7
'=====================================================
7
'=====================================================
8
'					SBOM Priority
8
'					SBOM Priority
9
'=====================================================
9
'=====================================================
10
%>
10
%>
11
<!--#include file="common/conf.asp"-->
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
<!--#include file="common/_popup_window_common.asp"-->
17
<!--#include file="common/_popup_window_common.asp"-->
18
<%
18
<%
19
' Set rfile parameter. This is a return page after Login
19
' Set rfile parameter. This is a return page after Login
20
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
20
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
21
'------------ ACCESS CONTROL ------------------
21
'------------ ACCESS CONTROL ------------------
22
%>
22
%>
23
<!--#include file="_access_control_login.asp"-->
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_project.asp"-->
25
<!--#include file="_access_control_project.asp"-->
26
<%
26
<%
27
'------------ Variable Definition -------------
27
'------------ Variable Definition -------------
28
Dim parPv_id
28
Dim parPv_id
29
Dim SBOMPriority
29
Dim SBOMPriority
30
'------------ Constants Declaration -----------
30
'------------ Constants Declaration -----------
31
'------------ Variable Init -------------------
31
'------------ Variable Init -------------------
32
parPv_id = QStrPar("pv_id")
32
parPv_id = QStrPar("pv_id")
33
'----------------------------------------------
33
'----------------------------------------------
34
%>
34
%>
35
<%
35
<%
36
'------------------------------------------------------------------------------------------------------------------------------------
36
'------------------------------------------------------------------------------------------------------------------------------------
37
Function GetCurrentSBOMPriority ()
37
Function GetCurrentSBOMPriority ()
38
	Dim rsTemp, Query_String
38
	Dim rsTemp, Query_String
39
	Query_String = _
39
	Query_String = _
40
	" SELECT sbom_priority"&_
40
	" SELECT sbom_priority"&_
41
	" FROM package_versions"&_
41
	" FROM package_versions"&_
42
	" WHERE pv_id = "& Request("pv_id")
42
	" WHERE pv_id = "& Request("pv_id")
43
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
43
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
44
	
44
	
45
	If (NOT rsTemp.EOF) AND (NOT rsTemp.BOF) Then
45
	If (NOT rsTemp.EOF) AND (NOT rsTemp.BOF) Then
46
		GetCurrentSBOMPriority = rsTemp("sbom_priority")
46
		GetCurrentSBOMPriority = rsTemp("sbom_priority")
47
	End If
47
	End If
48
	
48
	
49
	rsTemp.Close
49
	rsTemp.Close
50
	Set rsTemp = Nothing
50
	Set rsTemp = Nothing
51
End Function
51
End Function
52
'------------------------------------------------------------------------------------------------------------------------------------
52
'------------------------------------------------------------------------------------------------------------------------------------
53
Sub UpdateSBOMPriority ( )
53
Sub UpdateSBOMPriority ( )
54
	Dim rsTemp, Query_String
54
	Dim rsTemp, Query_String
55
	Query_String = _
55
	Query_String = _
56
	" SELECT sbom_priority"&_
56
	" SELECT sbom_priority"&_
57
	" FROM package_versions"&_
57
	" FROM package_versions"&_
58
	" WHERE pv_id = "& Request("pv_id")
58
	" WHERE pv_id = "& Request("pv_id")
59
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
59
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
60
	'update fields
60
	'update fields
61
	rsTemp.Edit
61
	rsTemp.Edit
62
	rsTemp.Fields("sbom_priority").Value = Request("sbom_priority")
62
	rsTemp.Fields("sbom_priority").Value = Request("sbom_priority")
63
	rsTemp.Update
63
	rsTemp.Update
64
	
64
	
65
	rsTemp.Close
65
	rsTemp.Close
66
	Set rsTemp = nothing
66
	Set rsTemp = nothing
67
	
67
	
68
	
68
	
69
	'/* Log Action */
69
	'/* Log Action */
70
	If Request("sbom_priority") = "C" Then
70
	If Request("sbom_priority") = "C" Then
71
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Critical Priority" )
71
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Critical Priority" )
72
 
72
 
73
	ElseIf Request("sbom_priority") = "I" Then
73
	ElseIf Request("sbom_priority") = "I" Then
74
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Important Priority" )
74
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Important Priority" )
75
		
75
		
76
	ElseIf Request("sbom_priority") = "R" Then
76
	ElseIf Request("sbom_priority") = "R" Then
77
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Routine Priority" )
77
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Routine Priority" )
78
		
78
		
79
	ElseIf Request("sbom_priority") = "L" Then
79
	ElseIf Request("sbom_priority") = "L" Then
80
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Low Priority" )
80
		Call Log_Action ( Request("pv_id"), "sbom_priority_update", "Low Priority" )
81
		
81
		
82
	End If
82
	End If
83
	
83
	
84
End Sub
84
End Sub
85
'------------------------------------------------------------------------------------------------------------------------------------
85
'------------------------------------------------------------------------------------------------------------------------------------
86
%>
86
%>
87
<%
87
<%
88
'Process submition
88
'Process submition
89
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
89
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
90
	Call UpdateSBOMPriority ( )
90
	Call UpdateSBOMPriority ( )
91
	Call OpenInParentWindow ("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
91
	Call OpenInParentWindow ("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
92
	Call CloseWindow
92
	Call CloseWindow
93
Else
93
Else
94
	SBOMPriority = GetCurrentSBOMPriority ()
94
	SBOMPriority = GetCurrentSBOMPriority ()
95
End If
95
End If
96
%>
96
%>
97
<html>
97
<html>
98
<head>
98
<head>
99
<title>Release Manager</title>
99
<title>Release Manager</title>
100
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
100
<link rel="shortcut icon" href="<%=FavIcon%>"/>
101
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
101
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
102
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
102
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
103
<link rel="stylesheet" href="images/navigation.css" type="text/css">
103
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
104
<script language="JavaScript" src="images/common.js"></script>
104
<link rel="stylesheet" href="images/navigation.css" type="text/css">
105
</head>
105
<script language="JavaScript" src="images/common.js"></script>
106
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
106
</head>
107
<form name="reason" method="post" action="<%=scriptName%>" >
107
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
108
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
108
<form name="reason" method="post" action="<%=scriptName%>" >
109
    <tr> 
109
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
110
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/s_notes_off.gif" width="20" height="24" hspace="5" border="0"></td>
110
    <tr> 
111
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;SBOM Priority </td>
111
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/s_notes_off.gif" width="20" height="24" hspace="5" border="0"></td>
112
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
112
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;SBOM Priority </td>
113
        <input type="submit" name="btn" value="Submit" class="form_btn_comp">
113
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
114
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
114
        <input type="submit" name="btn" value="Submit" class="form_btn_comp">
115
      </td>
115
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
116
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
116
      </td>
117
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
117
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
118
    </tr>
118
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
119
    <tr> 
119
    </tr>
120
      <td height="100%" width="1%">&nbsp;</td>
120
    <tr> 
121
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
121
      <td height="100%" width="1%">&nbsp;</td>
122
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
122
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
123
          <tr> 
123
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
124
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
124
          <tr> 
125
            <td nowrap width="100%">&nbsp; </td>
125
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
126
          </tr>
126
            <td nowrap width="100%">&nbsp; </td>
127
          <tr> 
127
          </tr>
128
            <td width="1%">&nbsp;</td>
128
          <tr> 
129
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
129
            <td width="1%">&nbsp;</td>
130
              <table width="100%"  border="0" cellspacing="0" cellpadding="3">
130
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
131
                <tr>
131
              <table width="100%"  border="0" cellspacing="0" cellpadding="3">
132
                  <td width="1"><input name="sbom_priority" type="radio" value="C" <%If SBOMPriority = "C" Then%>checked<%End If%>></td>
132
                <tr>
133
                  <td width="100%" class="form_field">Critical</td>
133
                  <td width="1"><input name="sbom_priority" type="radio" value="C" <%If SBOMPriority = "C" Then%>checked<%End If%>></td>
134
                </tr>
134
                  <td width="100%" class="form_field">Critical</td>
135
                <tr>
135
                </tr>
136
                  <td>&nbsp;</td>
136
                <tr>
137
                  <td class="form_txt">&nbsp;</td>
137
                  <td>&nbsp;</td>
138
                </tr>
138
                  <td class="form_txt">&nbsp;</td>
139
                <tr>
139
                </tr>
140
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
140
                <tr>
141
                </tr>
141
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
142
                <tr>
142
                </tr>
143
                <tr>
143
                <tr>
144
                  <td width="1"><input name="sbom_priority" type="radio" value="I" <%If SBOMPriority = "I" Then%>checked<%End If%>></td>
144
                <tr>
145
                  <td width="100%" class="form_field">Important</td>
145
                  <td width="1"><input name="sbom_priority" type="radio" value="I" <%If SBOMPriority = "I" Then%>checked<%End If%>></td>
146
                </tr>
146
                  <td width="100%" class="form_field">Important</td>
147
                <tr>
147
                </tr>
148
                  <td>&nbsp;</td>
148
                <tr>
149
                  <td class="form_txt">&nbsp;</td>
149
                  <td>&nbsp;</td>
150
                </tr>
150
                  <td class="form_txt">&nbsp;</td>
151
                <tr>
151
                </tr>
152
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
152
                <tr>
153
                </tr>
153
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
154
                <tr>
154
                </tr>
155
                  <td><input name="sbom_priority" type="radio" value="R" <%If SBOMPriority = "R" Then%>checked<%End If%>></td>
155
                <tr>
156
                  <td class="form_field">Routine</td>
156
                  <td><input name="sbom_priority" type="radio" value="R" <%If SBOMPriority = "R" Then%>checked<%End If%>></td>
157
                </tr>
157
                  <td class="form_field">Routine</td>
158
                <tr>
158
                </tr>
159
                  <td>&nbsp;</td>
159
                <tr>
160
                  <td class="form_txt">&nbsp;</td>
160
                  <td>&nbsp;</td>
161
                </tr>
161
                  <td class="form_txt">&nbsp;</td>
162
                <tr>
162
                </tr>
163
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
163
                <tr>
164
                </tr>
164
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
165
                <tr>
165
                </tr>
166
                  <td><input name="sbom_priority" type="radio" value="L" <%If SBOMPriority = "L" Then%>checked<%End If%>></td>
166
                <tr>
167
                  <td class="form_field">Low</td>
167
                  <td><input name="sbom_priority" type="radio" value="L" <%If SBOMPriority = "L" Then%>checked<%End If%>></td>
168
                </tr>
168
                  <td class="form_field">Low</td>
169
                <tr>
169
                </tr>
170
                  <td>&nbsp;</td>
170
                <tr>
171
                  <td class="form_txt">&nbsp;</td>
171
                  <td>&nbsp;</td>
172
                </tr>
172
                  <td class="form_txt">&nbsp;</td>
173
                <tr>
173
                </tr>
174
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
174
                <tr>
175
                </tr>
175
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
176
              </table>			  
176
                </tr>
177
              <input type="hidden" name="pv_id" value="<%=parPv_id%>">
177
              </table>			  
178
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
178
              <input type="hidden" name="pv_id" value="<%=parPv_id%>">
179
            <input type="hidden" name="action" value="true">            </td>
179
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
180
          </tr>
180
            <input type="hidden" name="action" value="true">            </td>
181
          <tr> 
181
          </tr>
182
            <td width="1%">&nbsp;</td>
182
          <tr> 
183
            <td nowrap width="100%"> 
183
            <td width="1%">&nbsp;</td>
184
              <p>&nbsp;</p>
184
            <td nowrap width="100%"> 
185
            </td>
185
              <p>&nbsp;</p>
186
          </tr>
186
            </td>
187
        </table>
187
          </tr>
188
      </td>
188
        </table>
189
    </tr>
189
      </td>
190
    <tr>
190
    </tr>
191
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
191
    <tr>
192
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
192
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
193
    </tr>
193
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
194
  </table>
194
    </tr>
195
</form>
195
  </table>
196
</body>
196
</form>
197
</html>
197
</body>
198
 
198
</html>
199
 
199
 
200
<!-- DESTRUCTOR ------->
200
 
-
 
201
<!-- DESTRUCTOR ------->
201
<!--#include file="common/destructor.asp"-->
202
<!--#include file="common/destructor.asp"-->
202
203