Subversion Repositories DevTools

Rev

Rev 7225 | Details | Compare with Previous | Last modification | View Log | RSS feed

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