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
'|                 GBE  MACHCLASS                    |
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
35
 
5357 dpurdie 36
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
Set objBtnControl = New ActionButtonControl
5983 dpurdie 39
bCanEdit = canActionControl("ConfigureBuildService")
5357 dpurdie 40
'----------------------------------------------
41
%>
42
<html>
43
<head>
44
<title>GBE MachClass Administration</title>
45
<link rel="shortcut icon" href="<%=FavIcon%>"/>
46
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
47
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
48
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
49
<link rel="stylesheet" href="images/navigation.css" type="text/css">
50
<script language="JavaScript" src="images/common.js"></script>
51
<!--#include file="_jquery_includes.asp"-->
52
<!-- DROPDOWN MENUS -->
53
<!--#include file="_menu_def.asp"-->
54
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
55
</head>
56
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
57
<!-- MENU LAYERS -------------------------------------->
58
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
59
</div>
60
<!-- TIPS LAYERS -------------------------------------->
61
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
62
<!-- HEADER -->
63
<!--#include file="_header.asp"-->
64
 
65
  <%
66
  '-- FROM START ---------------------------------------------------------------------------------------------------------
67
  objFormComponent.FormName = "GBE_MACHCLASS"
68
  objFormComponent.Action = ScriptName
69
  objFormComponent.OnSubmit = "ShowProgress();"
70
  Call objFormComponent.FormStart()
71
  %>   
72
  <div class="div_table">
73
    <table class="center_table" >
74
      <tr>
75
        <td background="images/bg_bage_0a.gif">
76
            <div align="center" class=" body_col">Build Machine Types</div>
77
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
78
            <tr>
79
            <!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
80
            <td background="images/bg_bage_0.gif" align="center"></td>
81
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM ID</td>
82
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM Name</td>
83
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
84
            </tr>
85
 
86
          <%
87
          ' Load some action buttons
88
          Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
89
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 90
 
91
          If NOT bCanEdit Then
92
            Call objBtnControl.Active  ( "btnEditGBE_Machclass", "N" )
93
            Call objBtnControl.Active  ( "btnDeleteGBE_Machclass", "N" )
94
          End If
95
 
5357 dpurdie 96
 
97
          Dim rsQry, bm_id,GBE_VALUE
98
 
99
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
100
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
101
              bm_id = rsQry("bm_id")
102
              GBE_VALUE = rsQry("bm_name") 
103
              %>
104
              <tr>  
105
                <td background="images/bg_bage_0.gif"></td>
106
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_id")%></td>
107
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_name")%></td>
108
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
109
              </tr> 
110
              <%
111
              rsQry.MoveNext()
112
          Wend
113
          rsQry.Close()
114
          Set rsQry = nothing
115
          %>
116
 
117
        <tr>
118
            <td background="images/bg_bage_0.gif"></td>
119
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
120
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
5983 dpurdie 121
            <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call Action_Buttons_State("Add BM_NAME", bCanEdit)%></td>
5357 dpurdie 122
        </tr>
123
 
124
    </table>
125
    <%=objPMod.ComposeHiddenTags()%>
126
    <input type="hidden" name="action" value="true">
127
    <%Call objFormComponent.FormEnd()%>
128
    </table>
129
    </div>
5957 dpurdie 130
<!-- FOOTER -->
131
<!--#include file="_footer.asp"-->
5357 dpurdie 132
</body>
133
</html>