Subversion Repositories DevTools

Rev

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