Subversion Repositories DevTools

Rev

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

Rev 183 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
'               New Category
8
'               New Category
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/qstr.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
17
<%
17
<%
18
'------------ ACCESS CONTROL ------------------
18
'------------ ACCESS CONTROL ------------------
19
%>
19
%>
20
<!--#include file="_access_control_login.asp"-->
20
<!--#include file="_access_control_login.asp"-->
21
<!--#include file="_access_control_general.asp"-->
21
<!--#include file="_access_control_general.asp"-->
22
<!--#include file="_access_control_project.asp"-->
22
<!--#include file="_access_control_project.asp"-->
23
<%
23
<%
24
'------------ Variable Definition -------------
24
'------------ Variable Definition -------------
25
Dim NEWBase_view_id
25
Dim NEWBase_view_id
26
 
26
 
27
Dim parPv_id
27
Dim parPv_id
28
Dim parPPv_id
28
Dim parPPv_id
29
Dim parAdd_type
29
Dim parAdd_type
30
Dim parPkg_list
30
Dim parPkg_list
31
Dim parRFile
31
Dim parRFile
32
Dim parMovePkg
32
Dim parMovePkg
33
'------------ Constants Declaration -----------
33
'------------ Constants Declaration -----------
34
'------------ Variable Init -------------------
34
'------------ Variable Init -------------------
35
parPv_id = Request("pv_id")
35
parPv_id = Request("pv_id")
36
parPPv_id = Request("ppv_id")
36
parPPv_id = Request("ppv_id")
37
parAdd_type = Request("add_type")
37
parAdd_type = Request("add_type")
38
parPkg_list = Request("pkg_list")
38
parPkg_list = Request("pkg_list")
39
parRFile = Request("rfile")
39
parRFile = Request("rfile")
40
parMovePkg = Request("movepkg")
40
parMovePkg = Request("movepkg")
41
'----------------------------------------------
41
'----------------------------------------------
42
%>
42
%>
43
<%
43
<%
44
Function Create_New_Base_View( SSvname )
44
Function Create_New_Base_View( SSvname )
45
   ' Return new Base View
45
   ' Return new Base View
46
   Dim SEQ_view_id
46
   Dim SEQ_view_id
47
   SEQ_view_id = Get_From_DUAL("SEQ_VIEW_ID.nextval")
47
   SEQ_view_id = Get_From_DUAL("SEQ_VIEW_ID.nextval")
48
 
48
 
49
   objEH.TryORA ( OraSession )
49
   objEH.TryORA ( OraSession )
50
   On Error Resume Next
50
   On Error Resume Next
51
 
51
 
52
   OraDatabase.ExecuteSQL _
52
   OraDatabase.ExecuteSQL _
53
      " INSERT INTO views (view_id, view_name, owner_id, base_view, public_read)"&_
53
      " INSERT INTO views (view_id, view_name, owner_id, base_view, public_read)"&_
54
      " VALUES ("& SEQ_view_id &", '"& UCase(SSvname) &"', 0,'Y','Y')"
54
      " VALUES ("& SEQ_view_id &", '"& UCase(SSvname) &"', 0,'Y','Y')"
55
 
55
 
56
   objEH.CatchORA ( OraSession )
56
   objEH.CatchORA ( OraSession )
57
   Create_New_Base_View = SEQ_view_id
57
   Create_New_Base_View = SEQ_view_id
58
End Function
58
End Function
59
 
59
 
60
 
60
 
61
Function BaseViewExists ( SSbname )
61
Function BaseViewExists ( SSbname )
62
   ' RETURN -1 if baseview not found, else return VIEW_ID
62
   ' RETURN -1 if baseview not found, else return VIEW_ID
63
   Dim rsTemp, Query_String
63
   Dim rsTemp, Query_String
64
   Query_String = _
64
   Query_String = _
65
   " SELECT view_id FROM views"&_
65
   " SELECT view_id FROM views"&_
66
   " WHERE view_name ='"& UCase(SSbname)&"'"&_
66
   " WHERE view_name ='"& UCase(SSbname)&"'"&_
67
   " AND owner_id = 0  AND base_view = 'Y'  AND public_read = 'Y'"
67
   " AND owner_id = 0  AND base_view = 'Y'  AND public_read = 'Y'"
68
   Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
68
   Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
69
 
69
 
70
   If rsTemp.RecordCount > 0 Then
70
   If rsTemp.RecordCount > 0 Then
71
      BaseViewExists = rsTemp.Fields("view_id")
71
      BaseViewExists = rsTemp.Fields("view_id")
72
   Else
72
   Else
73
      BaseViewExists = -1
73
      BaseViewExists = -1
74
   End If
74
   End If
75
 
75
 
76
   rsTemp.Close
76
   rsTemp.Close
77
   Set rsTemp = nothing
77
   Set rsTemp = nothing
78
End Function
78
End Function
79
%>
79
%>
80
<%
80
<%
81
'Process submition
81
'Process submition
82
If CBool(QStrPar("action")) AND  objAccessControl.UserLogedIn Then
82
If CBool(QStrPar("action")) AND  objAccessControl.UserLogedIn Then
83
   NEWBase_view_id = BaseViewExists ( Request("base_view_name") )
83
   NEWBase_view_id = BaseViewExists ( Request("base_view_name") )
84
   If NEWBase_view_id = -1 Then
84
   If NEWBase_view_id = -1 Then
85
      'Group not found i.e. create it
85
      'Group not found i.e. create it
86
      NEWBase_view_id = Create_New_Base_View( Request("base_view_name") )
86
      NEWBase_view_id = Create_New_Base_View( Request("base_view_name") )
87
   End If
87
   End If
88
 
88
 
89
   If parMovePkg = "true" Then
89
   If parMovePkg = "true" Then
90
      ' Call is comming from dependencies page to move package to other base view
90
      ' Call is comming from dependencies page to move package to other base view
91
      Call Update_Pkg_Category ( parRtag_id, parPv_id, NEWBase_view_id )
91
      Call Update_Pkg_Category ( parRtag_id, parPv_id, NEWBase_view_id )
92
      Call OpenInParentWindow ("dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id)
92
      Call OpenInParentWindow ("dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id)
93
      Call CloseWindow
93
      Call CloseWindow
94
   Else
94
   Else
95
      Call OpenInParentWindow ( parRFile &"?base_view_id="& NEWBase_view_id &_
95
      Call OpenInParentWindow ( parRFile &"?base_view_id="& NEWBase_view_id &_
96
                                "&pkg_list="& parPkg_list &_
96
                                "&pkg_list="& parPkg_list &_
97
                          "&add_type="& parAdd_type &_
97
                          "&add_type="& parAdd_type &_
98
                          "&pv_id="& parPv_id &_
98
                          "&pv_id="& parPv_id &_
99
                          "&ppv_id="& parPPv_id &_
99
                          "&ppv_id="& parPPv_id &_
100
                          "&rtag_id="& parRtag_id )
100
                          "&rtag_id="& parRtag_id )
101
      Call CloseWindow
101
      Call CloseWindow
102
   End If
102
   End If
103
End If
103
End If
104
%>
104
%>
105
<html>
105
<html>
106
<head>
106
<head>
107
<title>Release Manager</title>
107
<title>Release Manager</title>
108
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
108
<link rel="shortcut icon" href="<%=FavIcon%>"/>
109
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
109
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
110
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
110
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
111
<link rel="stylesheet" href="images/navigation.css" type="text/css">
111
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
112
<script language="JavaScript" src="images/common.js"></script>
112
<link rel="stylesheet" href="images/navigation.css" type="text/css">
113
</head>
113
<script language="JavaScript" src="images/common.js"></script>
114
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();window.document.newbaseview.base_view_name.focus();">
114
</head>
115
<form name="newbaseview" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('base_view_name','Base View','RisCleanStr');return document.MM_returnValue">
115
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();window.document.newbaseview.base_view_name.focus();">
116
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
116
<form name="newbaseview" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('base_view_name','Base View','RisCleanStr');return document.MM_returnValue">
117
    <tr>
117
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
118
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_change_group_off.gif" width="22" height="25" hspace="5"></td>
118
    <tr>
119
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Create NEW Base View</td>
119
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_change_group_off.gif" width="22" height="25" hspace="5"></td>
120
      <td background="images/lbox_bg_blue.gif" align="right" width="50%">
120
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Create NEW Base View</td>
121
        <input type="submit" name="btn" value="Create" class="form_btn_comp">
121
      <td background="images/lbox_bg_blue.gif" align="right" width="50%">
122
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
122
        <input type="submit" name="btn" value="Create" class="form_btn_comp">
123
      </td>
123
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
124
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
124
      </td>
125
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
125
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
126
    </tr>
126
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
127
    <tr>
127
    </tr>
128
      <td height="100%" width="1%">&nbsp;</td>
128
    <tr>
129
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
129
      <td height="100%" width="1%">&nbsp;</td>
130
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
130
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
131
          <tr>
131
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
132
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
132
          <tr>
133
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
133
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
134
            <td nowrap width="100%">&nbsp; </td>
134
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
135
          </tr>
135
            <td nowrap width="100%">&nbsp; </td>
136
          <tr>
136
          </tr>
137
            <td width="1%">&nbsp;</td>
137
          <tr>
138
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Base View</td>
138
            <td width="1%">&nbsp;</td>
139
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
139
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Base View</td>
140
              <input type="text" name="base_view_name" maxlength="30" class="form_item">
140
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
141
            </td>
141
              <input type="text" name="base_view_name" maxlength="30" class="form_item">
142
          </tr>
142
            </td>
143
          <tr>
143
          </tr>
144
            <td width="1%">&nbsp;</td>
144
          <tr>
145
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
145
            <td width="1%">&nbsp;</td>
146
            <td nowrap width="100%">
146
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
147
              <p>&nbsp;</p>
147
            <td nowrap width="100%">
148
            </td>
148
              <p>&nbsp;</p>
149
          </tr>
149
            </td>
150
        </table>
150
          </tr>
151
      </td>
151
        </table>
152
    </tr>
152
      </td>
153
    <tr>
153
    </tr>
154
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
154
    <tr>
155
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
155
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
156
    </tr>
156
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
157
  </table>
157
    </tr>
158
   <input type="hidden" name="rfile" value="<%=parRFile%>">
158
  </table>
159
   <input type="hidden" name="movepkg" value="<%=parMovePkg%>">
159
   <input type="hidden" name="rfile" value="<%=parRFile%>">
160
   <input type="hidden" name="add_type" value="<%=parAdd_type%>">
160
   <input type="hidden" name="movepkg" value="<%=parMovePkg%>">
161
   <input type="hidden" name="pv_id" value="<%=parPv_id%>">
161
   <input type="hidden" name="add_type" value="<%=parAdd_type%>">
162
   <input type="hidden" name="ppv_id" value="<%=parPPv_id%>">
162
   <input type="hidden" name="pv_id" value="<%=parPv_id%>">
163
   <input type="hidden" name="pkg_list" value="<%=parPkg_list%>">
163
   <input type="hidden" name="ppv_id" value="<%=parPPv_id%>">
164
   <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
164
   <input type="hidden" name="pkg_list" value="<%=parPkg_list%>">
165
   <input type="hidden" name="action" value="true">
165
   <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
166
</form>
166
   <input type="hidden" name="action" value="true">
167
</body>
167
</form>
168
</html>
168
</body>
169
 
169
</html>
170
 
170
 
171
<!-- DESTRUCTOR ------->
171
 
172
<!--#include file="common/destructor.asp"-->
172
<!-- DESTRUCTOR ------->
-
 
173
<!--#include file="common/destructor.asp"-->