Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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