Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 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
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
101
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
102
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
103
<link rel="stylesheet" href="images/navigation.css" type="text/css">
104
<script language="JavaScript" src="images/common.js"></script>
105
</head>
106
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
107
<form name="reason" method="post" action="<%=scriptName%>" >
108
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
109
    <tr> 
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>
111
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;SBOM Priority </td>
112
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
113
        <input type="submit" name="btn" value="Submit" class="form_btn_comp">
114
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
115
      </td>
116
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
117
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
118
    </tr>
119
    <tr> 
120
      <td height="100%" width="1%">&nbsp;</td>
121
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
122
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
123
          <tr> 
124
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
125
            <td nowrap width="100%">&nbsp; </td>
126
          </tr>
127
          <tr> 
128
            <td width="1%">&nbsp;</td>
129
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
130
              <table width="100%"  border="0" cellspacing="0" cellpadding="3">
131
                <tr>
132
                  <td width="1"><input name="sbom_priority" type="radio" value="C" <%If SBOMPriority = "C" Then%>checked<%End If%>></td>
133
                  <td width="100%" class="form_field">Critical</td>
134
                </tr>
135
                <tr>
136
                  <td>&nbsp;</td>
137
                  <td class="form_txt">&nbsp;</td>
138
                </tr>
139
                <tr>
140
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
141
                </tr>
142
                <tr>
143
                <tr>
144
                  <td width="1"><input name="sbom_priority" type="radio" value="I" <%If SBOMPriority = "I" Then%>checked<%End If%>></td>
145
                  <td width="100%" class="form_field">Important</td>
146
                </tr>
147
                <tr>
148
                  <td>&nbsp;</td>
149
                  <td class="form_txt">&nbsp;</td>
150
                </tr>
151
                <tr>
152
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
153
                </tr>
154
                <tr>
155
                  <td><input name="sbom_priority" type="radio" value="R" <%If SBOMPriority = "R" Then%>checked<%End If%>></td>
156
                  <td class="form_field">Routine</td>
157
                </tr>
158
                <tr>
159
                  <td>&nbsp;</td>
160
                  <td class="form_txt">&nbsp;</td>
161
                </tr>
162
                <tr>
163
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
164
                </tr>
165
                <tr>
166
                  <td><input name="sbom_priority" type="radio" value="L" <%If SBOMPriority = "L" Then%>checked<%End If%>></td>
167
                  <td class="form_field">Low</td>
168
                </tr>
169
                <tr>
170
                  <td>&nbsp;</td>
171
                  <td class="form_txt">&nbsp;</td>
172
                </tr>
173
                <tr>
174
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
175
                </tr>
176
              </table>			  
177
              <input type="hidden" name="pv_id" value="<%=parPv_id%>">
178
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
179
            <input type="hidden" name="action" value="true">            </td>
180
          </tr>
181
          <tr> 
182
            <td width="1%">&nbsp;</td>
183
            <td nowrap width="100%"> 
184
              <p>&nbsp;</p>
185
            </td>
186
          </tr>
187
        </table>
188
      </td>
189
    </tr>
190
    <tr>
191
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
192
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
193
    </tr>
194
  </table>
195
</form>
196
</body>
197
</html>
198
 
199
 
200
<!-- DESTRUCTOR ------->
201
<!--#include file="common/destructor.asp"-->