| 5357 |
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 |
%>
|
| 6181 |
dpurdie |
28 |
<!--#include file="_access_control_login_optional.asp"-->
|
| 5357 |
dpurdie |
29 |
<!--#include file="_access_control_general.asp"-->
|
|
|
30 |
<%
|
|
|
31 |
'------------ Variable Definition -------------
|
| 5982 |
dpurdie |
32 |
Dim canEdit
|
| 5357 |
dpurdie |
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
| 5982 |
dpurdie |
35 |
canEdit = canActionControl("ConfigureLicenses") AND canActionControl("ConfigureBuildService")
|
| 5357 |
dpurdie |
36 |
'----------------------------------------------
|
|
|
37 |
%>
|
|
|
38 |
<html>
|
|
|
39 |
<head>
|
|
|
40 |
<title>Licence Administration</title>
|
|
|
41 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
42 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
43 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
44 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
45 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
46 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5590 |
dpurdie |
47 |
<!--#include file="_jquery_includes.asp"-->
|
| 5357 |
dpurdie |
48 |
<!-- DROPDOWN MENUS -->
|
|
|
49 |
<!--#include file="_menu_def.asp"-->
|
| 6579 |
dpurdie |
50 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
51 |
</head>
|
|
|
52 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
53 |
<!-- HEADER -->
|
|
|
54 |
<!--#include file="_header.asp"-->
|
|
|
55 |
<div class="div_table">
|
| 6793 |
dpurdie |
56 |
<table border="0" cellspacing="1" cellpadding="2" class="stdBrown center_table">
|
|
|
57 |
<caption>Configured Licences</caption>
|
|
|
58 |
<thead>
|
| 5357 |
dpurdie |
59 |
<tr>
|
|
|
60 |
<!-- GBE_MACHTYPE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 6793 |
dpurdie |
61 |
<th class="body_col">LICENCE NAME</th>
|
|
|
62 |
<th class="body_col">Edit</th>
|
| 5357 |
dpurdie |
63 |
</tr>
|
| 6793 |
dpurdie |
64 |
</thead>
|
| 5357 |
dpurdie |
65 |
|
| 6793 |
dpurdie |
66 |
<%
|
|
|
67 |
Dim name, lic_id, rsQry
|
| 5357 |
dpurdie |
68 |
|
| 6793 |
dpurdie |
69 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM LICENCES ORDER BY NAME", ORADYN_DEFAULT )
|
|
|
70 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
71 |
name = rsQry("name")
|
|
|
72 |
lic_id = rsQry("licence")
|
| 5357 |
dpurdie |
73 |
%>
|
| 6793 |
dpurdie |
74 |
<tr>
|
|
|
75 |
<td nowrap><%=name%></td>
|
|
|
76 |
<td nowrap align=center>
|
|
|
77 |
<%If canEdit Then%>
|
|
|
78 |
<a href="javascript:;" onclick="MM_openVixIFrame('_wform_edit_licences.asp?lic_id=<%=lic_id%>','Edit Licence Name')"><%=LIMG_EDIT%></a>
|
|
|
79 |
<%Else%>
|
|
|
80 |
<%=LIMG_EDIT_DISABLED%>
|
|
|
81 |
<%End If%>
|
| 5981 |
dpurdie |
82 |
</td>
|
| 6793 |
dpurdie |
83 |
</tr>
|
|
|
84 |
<%
|
|
|
85 |
rsQry.MoveNext()
|
|
|
86 |
Wend
|
|
|
87 |
rsQry.Close()
|
|
|
88 |
Set rsQry = nothing
|
|
|
89 |
%>
|
|
|
90 |
<tr>
|
|
|
91 |
<td nowrap colspan="2"><%Call Action_Buttons_State("Add Licence", canEdit)%></td>
|
|
|
92 |
</tr>
|
|
|
93 |
</table>
|
| 5357 |
dpurdie |
94 |
</div>
|
| 5957 |
dpurdie |
95 |
<!-- FOOTER -->
|
|
|
96 |
<!--#include file="_footer.asp"-->
|
| 5357 |
dpurdie |
97 |
</body>
|
|
|
98 |
</html>
|