Subversion Repositories DevTools

Rev

Rev 6579 | Rev 6793 | 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
%>
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
 
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%>
6783 dpurdie 89
                    <a href="javascript:;" onclick="MM_openVixIFrame('_wform_edit_licences.asp?lic_id=<%=lic_id%>','Edit Licence Name')"><%=LIMG_EDIT%></a>
5982 dpurdie 90
                  <%Else%>
6783 dpurdie 91
                    <%=LIMG_EDIT_DISABLED%>
5982 dpurdie 92
                  <%End If%>
5981 dpurdie 93
                </td>
5357 dpurdie 94
              </tr> 
95
              <%
96
              rsQry.MoveNext()
97
          Wend
98
          rsQry.Close()
99
          Set rsQry = nothing
100
          %>
101
        <tr>
102
            <td background="images/bg_bage_0.gif"></td>
5983 dpurdie 103
            <td bgcolor="#FFFFFF" nowrap colspan="2">
104
                <%Call Action_Buttons_State("Add Licence", canEdit)%>
5981 dpurdie 105
            </td>
5357 dpurdie 106
        </tr>
107
    </table>
108
    <%=objPMod.ComposeHiddenTags()%>
109
    <input type="hidden" name="action" value="true">
110
    <%Call objFormComponent.FormEnd()%>
111
    </table>
112
    </div>
5957 dpurdie 113
<!-- FOOTER -->
114
<!--#include file="_footer.asp"-->
5357 dpurdie 115
</body>
116
</html>