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