Subversion Repositories DevTools

Rev

Rev 5983 | Rev 6070 | 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
'|                 BUILD MACHINE                     |
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
%>
6048 dpurdie 29
<!--#include file="_access_control_login.asp"-->
5357 dpurdie 30
<!--#include file="_access_control_general.asp"-->
31
<%
32
'------------ Variable Definition -------------
33
Dim objBtnControl
5983 dpurdie 34
Dim bCanEdit
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>Build Machine 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">
47
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
48
<link rel="stylesheet" href="images/navigation.css" type="text/css">
49
<script language="JavaScript" src="images/common.js"></script>
50
<!--#include file="_jquery_includes.asp"-->
51
<!-- DROPDOWN MENUS -->
52
<!--#include file="_menu_def.asp"-->
53
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
54
</head>
55
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
56
<!-- MENU LAYERS -------------------------------------->
57
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
58
</div>
59
<!-- TIPS LAYERS -------------------------------------->
60
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
61
<!-- HEADER -->
62
<!--#include file="_header.asp"-->
63
 
64
  <%
65
  '-- FROM START ---------------------------------------------------------------------------------------------------------
66
  objFormComponent.FormName = "BUILD_MACHINE"
67
  objFormComponent.Action = ScriptName
68
  objFormComponent.OnSubmit = "ShowProgress();"
69
  Call objFormComponent.FormStart()
70
  %>   
71
  <div class="div_table">
72
    <table border="0" cellspacing="0" cellpadding="0" class="center_table">
73
      <tr>
74
        <td background="images/bg_bage_0a.gif">
75
            <div align="center" class=" body_col">Current List of Build Machines</div>
76
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
77
            <tr>
78
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
79
            <td background="images/bg_bage_0.gif"></td>
80
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">DISPLAY NAME</td>
81
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">MACHINE HOSTNAME</td>
82
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">GBE_MACHTYPE</td>
83
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">ALLOW USE</td>
84
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col" width=250>DESCRIPTION</td>
85
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>         
86
            </tr>
87
 
88
          <%
89
          ' Load some action buttons
90
          Call objBtnControl.LoadActionButtons ( Array("btnEditBuildMachine", "btnDeleteBuildMachine"), OraDatabase )
91
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 92
 
93
          If NOT bCanEdit Then
94
            Call objBtnControl.Active  ( "btnEditBuildMachine", "N" )
95
            Call objBtnControl.Active  ( "btnDeleteBuildMachine", "N" )
96
          End If
5357 dpurdie 97
 
98
          Dim rsQry
99
          Dim gbe_id, gbe_value
100
          Dim bmcon_id
101
          Dim display_name
102
          Dim machine_hostname, description, active, activeChecked
103
 
104
          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 )
105
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
106
              bmcon_id = rsQry("bmcon_id")
107
              display_name = rsQry("display_name")
108
              machine_hostname = rsQry("machine_hostname")
109
              active = rsQry("active")
110
              If active = "Y" Then activeChecked = "checked" Else activeChecked = ""
111
              description = rsQry("description")
112
              gbe_id = rsQry("gbe_id")
113
              gbe_value = rsQry("gbe_value")
114
              %>
115
              <tr style="vertical-align:top;" >
116
                <td background="images/bg_bage_0.gif" align="center"></td>
117
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=display_name%></td>
118
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=machine_hostname%></td>
119
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=gbe_value%></td>
120
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
121
                <td bgcolor="#FFFFFF" class="body_row" wrap><%=description%></td>
122
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditBuildMachine", "btnDeleteBuildMachine"), objAccessControl )%></td>
123
              </tr> 
124
              <%
125
              rsQry.MoveNext()
126
          Wend
127
          rsQry.Close()
128
          Set rsQry = nothing
129
          %>
130
 
131
      <tr>
132
        <td background="images/bg_bage_0.gif" align="center"></td>
133
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
134
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
135
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
136
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
137
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
5983 dpurdie 138
        <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call Action_Buttons_State("Add Build Machine", bCanEdit)%>
5357 dpurdie 139
      </tr>
140
 
141
    </table>
142
    <%=objPMod.ComposeHiddenTags()%>
143
    <input type="hidden" name="action" value="true">
144
    <%Call objFormComponent.FormEnd()%>
145
    </table>
146
    </div>
5957 dpurdie 147
<!-- FOOTER -->
148
<!--#include file="_footer.asp"-->
5357 dpurdie 149
</body>
150
</html>