| 6584 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| ADMIN licences |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="sec/Crypt.asp"-->
|
|
|
20 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
21 |
<!--#include file="_action_buttons.asp"-->
|
|
|
22 |
|
|
|
23 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
24 |
|
|
|
25 |
<%
|
|
|
26 |
'------------ ACCESS CONTROL ------------------
|
|
|
27 |
%>
|
|
|
28 |
<!--#include file="_access_control_login_optional.asp"-->
|
|
|
29 |
<!--#include file="_access_control_general.asp"-->
|
|
|
30 |
<%
|
|
|
31 |
'------------ Variable Definition -------------
|
|
|
32 |
Dim canEdit, canDelete, canCreate
|
|
|
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
|
|
35 |
canEdit = canActionControl("EditBaseViews")
|
|
|
36 |
canDelete = canActionControl("DeleteBaseViews")
|
|
|
37 |
canCreate = canActionControl("CreateBaseViews")
|
|
|
38 |
'----------------------------------------------
|
|
|
39 |
%>
|
|
|
40 |
<html>
|
|
|
41 |
<head>
|
|
|
42 |
<title>BaseView Administration</title>
|
|
|
43 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
44 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
45 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
46 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
47 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
48 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
|
|
49 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
50 |
<!-- DROPDOWN MENUS -->
|
|
|
51 |
<!--#include file="_menu_def.asp"-->
|
|
|
52 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
|
|
53 |
</head>
|
|
|
54 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
55 |
<!-- HEADER -->
|
|
|
56 |
<!--#include file="_header.asp"-->
|
|
|
57 |
<div class="div_table">
|
| 6793 |
dpurdie |
58 |
<td>
|
|
|
59 |
<table border="0" cellspacing="1" cellpadding="2" class='stdBrown center_table'>
|
|
|
60 |
<caption>Package Base Views</caption>
|
|
|
61 |
<thead>
|
| 6877 |
dpurdie |
62 |
<!-- BASE VIEW DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
63 |
<th nowrap >Base View Name</th>
|
|
|
64 |
<th nowrap >Count</th>
|
|
|
65 |
<th nowrap colspan=2>Edit</th>
|
| 6793 |
dpurdie |
66 |
</thead>
|
| 6584 |
dpurdie |
67 |
|
| 6793 |
dpurdie |
68 |
<%
|
|
|
69 |
Dim view_id, name, count, rsQry, SqlQry, rmText
|
| 6584 |
dpurdie |
70 |
|
| 6793 |
dpurdie |
71 |
SqlQry = "select vv.VIEW_ID, vv.VIEW_NAME, count from ( " &_
|
|
|
72 |
"select rc.base_view_id, count(pv.pkg_id) as count from release_content rc, views v, package_versions pv " &_
|
|
|
73 |
"where rc.base_view_id = v.view_id " &_
|
|
|
74 |
"AND rc.pv_id = pv.pv_id " &_
|
|
|
75 |
"and v.BASE_VIEW = 'Y' " &_
|
|
|
76 |
"group by rc.base_view_id " &_
|
|
|
77 |
") t1 " &_
|
|
|
78 |
"join views vv on t1.base_view_id(+) = vv.view_id where vv.BASE_VIEW = 'Y' " &_
|
|
|
79 |
"order by upper(view_name)"
|
| 6584 |
dpurdie |
80 |
|
| 6793 |
dpurdie |
81 |
Set rsQry = OraDatabase.DbCreateDynaset( SqlQry, ORADYN_DEFAULT )
|
|
|
82 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
83 |
view_id = rsQry("view_id")
|
|
|
84 |
name = rsQry("view_name")
|
|
|
85 |
count = rsQry("count")
|
|
|
86 |
%>
|
|
|
87 |
<tr>
|
|
|
88 |
<td nowrap><%=name%></td>
|
|
|
89 |
<td nowrap><%=count%></td>
|
| 6827 |
dpurdie |
90 |
<%BuildActionButtonClick canEdit, "", "", FALSE, LIMG_EDIT, "MM_openVixIFrame('_wform_edit_baseview.asp?view_id="&view_id&"','Edit Base Name')" %>
|
|
|
91 |
<%BuildActionButtonClick canDelete and isNull(count), "", "", FALSE, LIMG_NDEL, "vixConfirm('Delete the \'Base View\' named \'"&name&"\'',{title : 'Delete Base View', button:'Delete', url: '_DeleteBaseView.asp?view_id="&view_id&"'});" %>
|
| 6793 |
dpurdie |
92 |
</tr>
|
|
|
93 |
<%
|
|
|
94 |
rsQry.MoveNext()
|
|
|
95 |
Wend
|
|
|
96 |
rsQry.Close()
|
|
|
97 |
Set rsQry = nothing
|
|
|
98 |
%>
|
|
|
99 |
<tr>
|
| 6877 |
dpurdie |
100 |
<td colspan='4' align=right>
|
| 6827 |
dpurdie |
101 |
<%BuildActionButtonClickRaw canCreate, " New Base View", "", TRUE, _
|
|
|
102 |
"src='images/i_new_group.gif' width='20' height='20' align='absmiddle' border='0'",_
|
|
|
103 |
"MM_openVixIFrame('_wform_new_group.asp?noFrame=1','New Base View Name')" %>
|
| 6793 |
dpurdie |
104 |
</td>
|
|
|
105 |
</tr>
|
|
|
106 |
</table>
|
|
|
107 |
</div>
|
| 6584 |
dpurdie |
108 |
<!-- FOOTER -->
|
|
|
109 |
<!--#include file="_footer.asp"-->
|
|
|
110 |
</body>
|
|
|
111 |
</html>
|