Subversion Repositories DevTools

Rev

Rev 6770 | 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
'=====================================================
6770 dpurdie 4
'   admin_build_machine.asp
5357 dpurdie 5
'=====================================================
6
%>
7
<%
8
Option explicit
9
' Good idea to set when using redirect
10
Response.Expires = 0    ' always load the page, dont store
11
%>
12
<!--#include file="common/conf.asp"-->
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/formating.asp"-->
15
<!--#include file="common/qstr.asp"-->
16
<!--#include file="common/common_subs.asp"-->
17
<!--#include file="sec/Crypt.asp"-->
18
<!--#include file="common/_form_window_common.asp"-->
19
<!--#include file="_action_buttons.asp"-->
20
<!--#include file="class/classActionButtonControl.asp"-->
21
<%
22
'------------ ACCESS CONTROL ------------------
23
%>
6181 dpurdie 24
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 25
<!--#include file="_access_control_general.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
Dim objBtnControl
5983 dpurdie 29
Dim bCanEdit
5357 dpurdie 30
'------------ Constants Declaration -----------
31
'------------ Variable Init -------------------
32
Set objBtnControl = New ActionButtonControl
5983 dpurdie 33
bCanEdit = canActionControl("ConfigureBuildService")
5357 dpurdie 34
'----------------------------------------------
35
%>
36
<html>
37
<head>
38
<title>Build Machine Administration</title>
39
<link rel="shortcut icon" href="<%=FavIcon%>"/>
40
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
41
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 42
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
43
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
44
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 45
<!--#include file="_jquery_includes.asp"-->
46
<!-- DROPDOWN MENUS -->
47
<!--#include file="_menu_def.asp"-->
6579 dpurdie 48
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 49
</head>
50
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
51
<!-- HEADER -->
52
<!--#include file="_header.asp"-->
53
 
54
  <%
55
  '-- FROM START ---------------------------------------------------------------------------------------------------------
56
  objFormComponent.FormName = "BUILD_MACHINE"
57
  objFormComponent.Action = ScriptName
58
  objFormComponent.OnSubmit = "ShowProgress();"
59
  Call objFormComponent.FormStart()
60
  %>   
61
  <div class="div_table">
62
    <table border="0" cellspacing="0" cellpadding="0" class="center_table">
63
      <tr>
6793 dpurdie 64
        <td>
65
            <table width="100%"  border="0" cellspacing="1" cellpadding="2" class=stdBrown>
66
                <caption>Current List of Build Machines</caption>
67
                <thead>
68
                <tr>
69
                <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
70
                <th></th>
71
                <th>DISPLAY NAME</th>
72
                <th>MACHINE HOSTNAME</th>
73
                <th>GBE_MACHTYPE</th>
74
                <th>ALLOW USE</th>
75
                <th width=250>DESCRIPTION</th>
76
                <th>Edit</th>         
77
                </tr>
78
                </thead>
5357 dpurdie 79
 
80
          <%
81
          ' Load some action buttons
82
          Call objBtnControl.LoadActionButtons ( Array("btnEditBuildMachine", "btnDeleteBuildMachine"), OraDatabase )
83
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 84
 
85
          If NOT bCanEdit Then
86
            Call objBtnControl.Active  ( "btnEditBuildMachine", "N" )
87
            Call objBtnControl.Active  ( "btnDeleteBuildMachine", "N" )
88
          End If
5357 dpurdie 89
 
90
          Dim rsQry
91
          Dim gbe_id, gbe_value
92
          Dim bmcon_id
93
          Dim display_name
94
          Dim machine_hostname, description, active, activeChecked
95
 
96
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT bm.bmcon_id, bm.display_name,bm.machine_hostname, bm.description, bm.gbe_id, bm.active, gb.gbe_value FROM BUILD_MACHINE_CONFIG bm, GBE_MACHTYPE gb WHERE bm.gbe_id = gb.gbe_id ORDER BY bm.display_name", ORADYN_DEFAULT )
97
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
98
              bmcon_id = rsQry("bmcon_id")
99
              display_name = rsQry("display_name")
100
              machine_hostname = rsQry("machine_hostname")
101
              active = rsQry("active")
102
              If active = "Y" Then activeChecked = "checked" Else activeChecked = ""
103
              description = rsQry("description")
104
              gbe_id = rsQry("gbe_id")
105
              gbe_value = rsQry("gbe_value")
106
              %>
107
              <tr style="vertical-align:top;" >
6793 dpurdie 108
                <td></td>
109
                <td nowrap><%=display_name%></td>
110
                <td nowrap><%=machine_hostname%></td>
111
                <td nowrap><%=gbe_value%></td>
112
                <td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
113
                <td wrap><%=description%></td>
114
                <td nowrap><%Call objBtnControl.Render( Array("btnEditBuildMachine", "btnDeleteBuildMachine"), objAccessControl )%></td>
5357 dpurdie 115
              </tr> 
116
              <%
117
              rsQry.MoveNext()
118
          Wend
119
          rsQry.Close()
120
          Set rsQry = nothing
121
          %>
122
 
123
      <tr>
6793 dpurdie 124
        <td colspan=5></td>
125
        <td align=right nowrap colspan=2><%Call Action_Buttons_State("Add Build Machine", bCanEdit)%>
5357 dpurdie 126
      </tr>
127
 
128
    </table>
129
    <%=objPMod.ComposeHiddenTags()%>
130
    <input type="hidden" name="action" value="true">
131
    <%Call objFormComponent.FormEnd()%>
132
    </table>
133
    </div>
5957 dpurdie 134
<!-- FOOTER -->
135
<!--#include file="_footer.asp"-->
5357 dpurdie 136
</body>
137
</html>