Subversion Repositories DevTools

Rev

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