Subversion Repositories DevTools

Rev

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