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
'|                 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
%>
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>GBE MachClass 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 = "GBE_MACHCLASS"
76
  objFormComponent.Action = ScriptName
77
  objFormComponent.OnSubmit = "ShowProgress();"
78
  Call objFormComponent.FormStart()
79
  %>   
80
  <div class="div_table">
81
    <table class="center_table" >
82
      <tr>
83
        <td background="images/bg_bage_0a.gif">
84
            <div align="center" class=" body_col">Build Machine Types</div>
85
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
86
            <tr>
87
            <!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
88
            <td background="images/bg_bage_0.gif" align="center"></td>
89
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM ID</td>
90
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM Name</td>
91
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
92
            </tr>
93
 
94
          <%
95
          ' Load some action buttons
96
          Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
97
          objBtnControl.ButtonSpacer = 1
98
 
99
          Dim rsQry, bm_id,GBE_VALUE
100
 
101
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
102
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
103
              bm_id = rsQry("bm_id")
104
              GBE_VALUE = rsQry("bm_name") 
105
              %>
106
              <tr>  
107
                <td background="images/bg_bage_0.gif"></td>
108
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_id")%></td>
109
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_name")%></td>
110
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
111
              </tr> 
112
              <%
113
              rsQry.MoveNext()
114
          Wend
115
          rsQry.Close()
116
          Set rsQry = nothing
117
          %>
118
 
119
        <tr>
120
            <td background="images/bg_bage_0.gif"></td>
121
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
122
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
123
            <td bgcolor="#FFFFFF" class="body_row" nowrap><a href=""><%Call Action_Buttons("Add BM_NAME")%></a></td>
124
        </tr>
125
 
126
    </table>
127
    <%=objPMod.ComposeHiddenTags()%>
128
    <input type="hidden" name="action" value="true">
129
    <%Call objFormComponent.FormEnd()%>
130
    </table>
131
    </div>
5957 dpurdie 132
<!-- FOOTER -->
133
<!--#include file="_footer.asp"-->
5357 dpurdie 134
</body>
135
</html>