Subversion Repositories DevTools

Rev

Rev 5357 | Rev 5590 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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