Subversion Repositories DevTools

Rev

Rev 6579 | Rev 7225 | 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 Page                       |
6
'|                 GBE  MACHCLASS                    |
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0    ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
22
<!--#include file="_action_buttons.asp"-->
23
 
24
<!--#include file="class/classActionButtonControl.asp"-->
25
 
26
<%
27
'------------ ACCESS CONTROL ------------------
28
%>
6181 dpurdie 29
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 30
<!--#include file="_access_control_general.asp"-->
31
<%
32
'------------ Variable Definition -------------
33
Dim objBtnControl
5983 dpurdie 34
Dim bCanEdit
35
 
5357 dpurdie 36
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
Set objBtnControl = New ActionButtonControl
5983 dpurdie 39
bCanEdit = canActionControl("ConfigureBuildService")
5357 dpurdie 40
'----------------------------------------------
41
%>
42
<html>
43
<head>
44
<title>GBE MachClass Administration</title>
45
<link rel="shortcut icon" href="<%=FavIcon%>"/>
46
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
47
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 48
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
49
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
50
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 51
<!--#include file="_jquery_includes.asp"-->
52
<!-- DROPDOWN MENUS -->
53
<!--#include file="_menu_def.asp"-->
6579 dpurdie 54
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 55
</head>
56
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
57
<!-- HEADER -->
58
<!--#include file="_header.asp"-->
59
  <div class="div_table">
6793 dpurdie 60
        <table border="0" cellspacing="1" cellpadding="2" class='stdBrown center_table'>
61
            <caption>Build Machine Classes</caption>
62
            <thead>
5357 dpurdie 63
            <tr>
64
            <!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
6793 dpurdie 65
                <th>BM ID</th>
66
                <th>BM Name</th>
67
                <th>Edit</th>
5357 dpurdie 68
            </tr>
6793 dpurdie 69
            </thead>
5357 dpurdie 70
 
6793 dpurdie 71
      <%
72
      ' Load some action buttons
73
      Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
74
      objBtnControl.ButtonSpacer = 1
5983 dpurdie 75
 
6793 dpurdie 76
      If NOT bCanEdit Then
77
        Call objBtnControl.Active  ( "btnEditGBE_Machclass", "N" )
78
        Call objBtnControl.Active  ( "btnDeleteGBE_Machclass", "N" )
79
      End If
5983 dpurdie 80
 
6793 dpurdie 81
 
82
      Dim rsQry, bm_id,GBE_VALUE
83
 
84
      Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
85
      While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
86
          bm_id = rsQry("bm_id")
87
          GBE_VALUE = rsQry("bm_name") 
5357 dpurdie 88
          %>
6793 dpurdie 89
          <tr>  
90
            <td nowrap><%=rsQry("bm_id")%></td>
91
            <td nowrap><%=rsQry("bm_name")%></td>
92
            <td nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
93
          </tr> 
94
          <%
95
          rsQry.MoveNext()
96
      Wend
97
      rsQry.Close()
98
      Set rsQry = nothing
99
      %>
100
 
101
    <tr>
102
        <td colspan=2></td>
103
        <td nowrap><%Call Action_Buttons_State("Add BM_NAME", bCanEdit)%></td>
104
    </tr>
5357 dpurdie 105
 
6793 dpurdie 106
</table>
5357 dpurdie 107
    </div>
5957 dpurdie 108
<!-- FOOTER -->
109
<!--#include file="_footer.asp"-->
5357 dpurdie 110
</body>
111
</html>