Subversion Repositories DevTools

Rev

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 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="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 -------------
32
Dim objBtnControl
5983 dpurdie 33
Dim bCanEdit
34
 
5357 dpurdie 35
'------------ Constants Declaration -----------
36
'------------ Variable Init -------------------
37
Set objBtnControl = New ActionButtonControl
5983 dpurdie 38
bCanEdit = canActionControl("ConfigureBuildService")
5357 dpurdie 39
'----------------------------------------------
40
%>
41
<html>
42
<head>
43
<title>GBE MachClass Administration</title>
44
<link rel="shortcut icon" href="<%=FavIcon%>"/>
45
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
46
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 47
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
48
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
49
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 50
<!--#include file="_jquery_includes.asp"-->
51
<!-- DROPDOWN MENUS -->
52
<!--#include file="_menu_def.asp"-->
6579 dpurdie 53
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 54
</head>
55
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
56
<!-- HEADER -->
57
<!--#include file="_header.asp"-->
58
  <div class="div_table">
6793 dpurdie 59
        <table border="0" cellspacing="1" cellpadding="2" class='stdBrown center_table'>
60
            <caption>Build Machine Classes</caption>
61
            <thead>
5357 dpurdie 62
            <tr>
63
            <!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
6793 dpurdie 64
                <th>BM ID</th>
65
                <th>BM Name</th>
66
                <th>Edit</th>
5357 dpurdie 67
            </tr>
6793 dpurdie 68
            </thead>
5357 dpurdie 69
 
6793 dpurdie 70
      <%
71
      ' Load some action buttons
72
      Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
73
      objBtnControl.ButtonSpacer = 1
5983 dpurdie 74
 
6793 dpurdie 75
      If NOT bCanEdit Then
76
        Call objBtnControl.Active  ( "btnEditGBE_Machclass", "N" )
77
        Call objBtnControl.Active  ( "btnDeleteGBE_Machclass", "N" )
78
      End If
5983 dpurdie 79
 
6793 dpurdie 80
 
81
      Dim rsQry, bm_id,GBE_VALUE
82
 
83
      Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
84
      While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
85
          bm_id = rsQry("bm_id")
86
          GBE_VALUE = rsQry("bm_name") 
5357 dpurdie 87
          %>
6793 dpurdie 88
          <tr>  
89
            <td nowrap><%=rsQry("bm_id")%></td>
90
            <td nowrap><%=rsQry("bm_name")%></td>
91
            <td nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
92
          </tr> 
93
          <%
94
          rsQry.MoveNext()
95
      Wend
96
      rsQry.Close()
97
      Set rsQry = nothing
98
      %>
99
 
100
    <tr>
101
        <td colspan=2></td>
102
        <td nowrap><%Call Action_Buttons_State("Add BM_NAME", bCanEdit)%></td>
103
    </tr>
5357 dpurdie 104
 
6793 dpurdie 105
</table>
5357 dpurdie 106
    </div>
5957 dpurdie 107
<!-- FOOTER -->
108
<!--#include file="_footer.asp"-->
5357 dpurdie 109
</body>
110
</html>