| 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 |
|
|
|
58 |
<%
|
|
|
59 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
60 |
objFormComponent.FormName = "VCSTYPE"
|
|
|
61 |
objFormComponent.Action = ScriptName
|
|
|
62 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
63 |
Call objFormComponent.FormStart()
|
|
|
64 |
%>
|
|
|
65 |
<div class="div_table">
|
|
|
66 |
<table class="center_table" >
|
|
|
67 |
<tr>
|
|
|
68 |
<td background="images/bg_bage_0a.gif">
|
|
|
69 |
<div align="center" class=" body_col">Package Base Views</div>
|
|
|
70 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
71 |
<tr>
|
|
|
72 |
<!-- BASE VIEW DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
73 |
<td background="images/bg_bage_0.gif" align="center"></td>
|
|
|
74 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BASE VIEW NAME</td>
|
|
|
75 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Count</td>
|
|
|
76 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
|
|
|
77 |
</tr>
|
|
|
78 |
|
|
|
79 |
<%
|
|
|
80 |
Dim view_id, name, count, rsQry, SqlQry, rmText
|
|
|
81 |
|
|
|
82 |
SqlQry = "select vv.VIEW_ID, vv.VIEW_NAME, count from ( " &_
|
|
|
83 |
"select rc.base_view_id, count(pv.pkg_id) as count from release_content rc, views v, package_versions pv " &_
|
|
|
84 |
"where rc.base_view_id = v.view_id " &_
|
|
|
85 |
"AND rc.pv_id = pv.pv_id " &_
|
|
|
86 |
"and v.BASE_VIEW = 'Y' " &_
|
|
|
87 |
"group by rc.base_view_id " &_
|
|
|
88 |
") t1 " &_
|
|
|
89 |
"join views vv on t1.base_view_id(+) = vv.view_id where vv.BASE_VIEW = 'Y' " &_
|
|
|
90 |
"order by upper(view_name)"
|
|
|
91 |
|
|
|
92 |
Set rsQry = OraDatabase.DbCreateDynaset( SqlQry, ORADYN_DEFAULT )
|
|
|
93 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
94 |
view_id = rsQry("view_id")
|
|
|
95 |
name = rsQry("view_name")
|
|
|
96 |
count = rsQry("count")
|
|
|
97 |
%>
|
|
|
98 |
<tr>
|
|
|
99 |
<td background="images/bg_bage_0.gif"></td>
|
|
|
100 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%=name%></td>
|
|
|
101 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%=count%></td>
|
|
|
102 |
<td bgcolor="#FFFFFF" class="body_row" nowrap style="padding-right:0px">
|
|
|
103 |
<%If canEdit Then%>
|
|
|
104 |
<a href="javascript:;" onclick="MM_openVixIFrame('_wform_edit_baseview.asp?view_id=<%=view_id%>','Edit Base Name')"><img src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle"></a>
|
|
|
105 |
<%Else%>
|
|
|
106 |
<img class ="lessOpacity" src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle">
|
|
|
107 |
<%End If%>
|
|
|
108 |
<%If canDelete and isNull(count) Then%>
|
|
|
109 |
<a href='javascript:;' onclick="vixConfirm('Delete the \'Base View\' named \'<%=name%>\'',{title : 'Delete Base View', button:'Delete', url: '_DeleteBaseView.asp?view_id=<%=view_id%>'});"><img src="icons/i_remove.gif" hspace="2" border="0" align="absmiddle"></a>
|
|
|
110 |
|
|
|
111 |
<%Else%>
|
|
|
112 |
<img class ="lessOpacity" src="icons/i_remove.gif" hspace="2" border="0" align="absmiddle">
|
|
|
113 |
<%End If%>
|
|
|
114 |
</td>
|
|
|
115 |
</tr>
|
|
|
116 |
<%
|
|
|
117 |
rsQry.MoveNext()
|
|
|
118 |
Wend
|
|
|
119 |
rsQry.Close()
|
|
|
120 |
Set rsQry = nothing
|
|
|
121 |
%>
|
|
|
122 |
<tr>
|
|
|
123 |
<td background="images/bg_bage_0.gif"></td>
|
|
|
124 |
<td bgcolor="#FFFFFF" nowrap colspan="3" class="abtnItem" align=right>
|
|
|
125 |
<%If canCreate Then%>
|
|
|
126 |
<a href="javascript:;"
|
|
|
127 |
onclick="MM_openVixIFrame('_wform_new_group.asp?noFrame=1','New Base View Name')">
|
|
|
128 |
<img src="images/i_new_group.gif" width="20" height="20" align="absmiddle" border="0" title="Create New Base View Group"> Create New Base View</a>
|
|
|
129 |
<%Else%>
|
|
|
130 |
<img class ="lessOpacity" src="images/i_new_group.gif" hspace="2" border="0" align="absmiddle"> Create New Base View
|
|
|
131 |
<%End If%>
|
|
|
132 |
</td>
|
|
|
133 |
</tr>
|
|
|
134 |
</table>
|
|
|
135 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
136 |
<input type="hidden" name="action" value="true">
|
|
|
137 |
<%Call objFormComponent.FormEnd()%>
|
|
|
138 |
</table>
|
|
|
139 |
</div>
|
|
|
140 |
<!-- FOOTER -->
|
|
|
141 |
<!--#include file="_footer.asp"-->
|
|
|
142 |
</body>
|
|
|
143 |
</html>
|