Subversion Repositories DevTools

Rev

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