| 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">
|
|
|
44 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
45 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
46 |
<script language="JavaScript" src="images/common.js"></script>
|
| 5590 |
dpurdie |
47 |
<!--#include file="_jquery_includes.asp"-->
|
| 5357 |
dpurdie |
48 |
<!-- DROPDOWN MENUS -->
|
|
|
49 |
<!--#include file="_menu_def.asp"-->
|
|
|
50 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
51 |
</head>
|
|
|
52 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
53 |
<!-- HEADER -->
|
|
|
54 |
<!--#include file="_header.asp"-->
|
|
|
55 |
|
|
|
56 |
<%
|
|
|
57 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
58 |
objFormComponent.FormName = "VCSTYPE"
|
|
|
59 |
objFormComponent.Action = ScriptName
|
|
|
60 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
61 |
Call objFormComponent.FormStart()
|
|
|
62 |
%>
|
|
|
63 |
<div class="div_table">
|
|
|
64 |
<table class="center_table" >
|
|
|
65 |
<tr>
|
|
|
66 |
<td background="images/bg_bage_0a.gif">
|
|
|
67 |
<div align="center" class=" body_col">Configured Licences</div>
|
|
|
68 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
69 |
<tr>
|
|
|
70 |
<!-- GBE_MACHTYPE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
71 |
<td background="images/bg_bage_0.gif" align="center"></td>
|
|
|
72 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">LICENCE NAME</td>
|
|
|
73 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
|
|
|
74 |
</tr>
|
|
|
75 |
|
|
|
76 |
<%
|
| 5981 |
dpurdie |
77 |
Dim name, lic_id, rsQry
|
| 5357 |
dpurdie |
78 |
|
|
|
79 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM LICENCES ORDER BY NAME", ORADYN_DEFAULT )
|
|
|
80 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
81 |
name = rsQry("name")
|
| 5981 |
dpurdie |
82 |
lic_id = rsQry("licence")
|
| 5357 |
dpurdie |
83 |
%>
|
|
|
84 |
<tr>
|
|
|
85 |
<td background="images/bg_bage_0.gif"></td>
|
|
|
86 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%=name%></td>
|
| 5981 |
dpurdie |
87 |
<td bgcolor="#FFFFFF" class="body_row" nowrap style="padding-right:0px">
|
| 5982 |
dpurdie |
88 |
<%If canEdit Then%>
|
| 5981 |
dpurdie |
89 |
<a href="javascript:;" onclick="MM_openVixIFrame('_wform_edit_licences.asp?lic_id=<%=lic_id%>','Edit Licence Name')">
|
|
|
90 |
<img src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle">
|
|
|
91 |
</a>
|
| 5982 |
dpurdie |
92 |
<%Else%>
|
|
|
93 |
<img class ="lessOpacity" src="icons/i_edit.gif" width="16" height="16" hspace="2" border="0" align="absmiddle">
|
|
|
94 |
<%End If%>
|
| 5981 |
dpurdie |
95 |
</td>
|
| 5357 |
dpurdie |
96 |
</tr>
|
|
|
97 |
<%
|
|
|
98 |
rsQry.MoveNext()
|
|
|
99 |
Wend
|
|
|
100 |
rsQry.Close()
|
|
|
101 |
Set rsQry = nothing
|
|
|
102 |
%>
|
|
|
103 |
<tr>
|
|
|
104 |
<td background="images/bg_bage_0.gif"></td>
|
| 5983 |
dpurdie |
105 |
<td bgcolor="#FFFFFF" nowrap colspan="2">
|
|
|
106 |
<%Call Action_Buttons_State("Add Licence", canEdit)%>
|
| 5981 |
dpurdie |
107 |
</td>
|
| 5357 |
dpurdie |
108 |
</tr>
|
|
|
109 |
</table>
|
|
|
110 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
111 |
<input type="hidden" name="action" value="true">
|
|
|
112 |
<%Call objFormComponent.FormEnd()%>
|
|
|
113 |
</table>
|
|
|
114 |
</div>
|
| 5957 |
dpurdie |
115 |
<!-- FOOTER -->
|
|
|
116 |
<!--#include file="_footer.asp"-->
|
| 5357 |
dpurdie |
117 |
</body>
|
|
|
118 |
</html>
|