Subversion Repositories DevTools

Rev

Rev 5190 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5190 Rev 5357
Line 1... Line 1...
1
<%@LANGUAGE="VBSCRIPT"%>
1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
2
<%
3
'=====================================================
3
'=====================================================
4
'|                                                   |
4
'|                                                   |
5
'|                  ADMIN Page                       |
5
'|                  ADMIN Page                       |
6
'|                 GBE  MACHCLASS                    |
6
'|                 GBE  MACHCLASS                    |
7
'|                                                   |
7
'|                                                   |
8
'=====================================================
8
'=====================================================
9
%>
9
%>
10
<%
10
<%
11
Option explicit
11
Option explicit
12
' Good idea to set when using redirect
12
' Good idea to set when using redirect
13
Response.Expires = 0    ' always load the page, dont store
13
Response.Expires = 0    ' always load the page, dont store
14
%>
14
%>
15
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
22
<!--#include file="_action_buttons.asp"-->
22
<!--#include file="_action_buttons.asp"-->
23
 
23
 
24
<!--#include file="class/classActionButtonControl.asp"-->
24
<!--#include file="class/classActionButtonControl.asp"-->
25
 
25
 
26
<%
26
<%
27
'------------ ACCESS CONTROL ------------------
27
'------------ ACCESS CONTROL ------------------
28
%>
28
%>
29
<!--#include file="_access_control_general.asp"-->
29
<!--#include file="_access_control_general.asp"-->
30
<%
30
<%
31
'------------ Variable Definition -------------
31
'------------ Variable Definition -------------
32
Dim objBtnControl
32
Dim objBtnControl
33
'------------ Constants Declaration -----------
33
'------------ Constants Declaration -----------
34
'------------ Variable Init -------------------
34
'------------ Variable Init -------------------
35
Set objBtnControl = New ActionButtonControl
35
Set objBtnControl = New ActionButtonControl
36
'----------------------------------------------
36
'----------------------------------------------
37
%>
37
%>
38
 
38
 
39
 
39
 
40
 
40
 
41
<%
41
<%
42
' Page Access Condition
42
' Page Access Condition
43
If NOT canActionControl("ConfigureBuildService") Then
43
If NOT canActionControl("ConfigureBuildService") Then
44
    Response.Redirect("message.asp?msg=401-9")
44
    Response.Redirect("message.asp?msg=401-9")
45
End If
45
End If
46
%>
46
%>
47
<html>
47
<html>
48
<head>
48
<head>
49
 
49
 
50
<title>GBE MachClass Administration</title>
50
<title>GBE MachClass Administration</title>
51
 
51
<link rel="shortcut icon" href="<%=FavIcon%>"/>
52
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
52
 
53
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
53
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
54
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
54
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
55
<link rel="stylesheet" href="images/navigation.css" type="text/css">
55
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
56
<script language="JavaScript" src="images/common.js"></script>
56
<link rel="stylesheet" href="images/navigation.css" type="text/css">
57
<!--#include file="_jquery_includes.asp"-->
57
<script language="JavaScript" src="images/common.js"></script>
58
<!-- DROPDOWN MENUS -->
58
<!--#include file="_jquery_includes.asp"-->
59
<!--#include file="_menu_def.asp"-->
59
<!-- DROPDOWN MENUS -->
60
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
60
<!--#include file="_menu_def.asp"-->
61
</head>
61
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
62
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
62
</head>
63
<!-- MENU LAYERS -------------------------------------->
63
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
64
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
64
<!-- MENU LAYERS -------------------------------------->
65
</div>
65
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
66
<!-- TIPS LAYERS -------------------------------------->
66
</div>
67
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
67
<!-- TIPS LAYERS -------------------------------------->
68
<!-- HEADER -->
68
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
69
<!--#include file="_header.asp"-->
69
<!-- HEADER -->
70
 
70
<!--#include file="_header.asp"-->
71
  <%
71
 
72
  '-- FROM START ---------------------------------------------------------------------------------------------------------
72
  <%
73
  objFormComponent.FormName = "GBE_MACHCLASS"
73
  '-- FROM START ---------------------------------------------------------------------------------------------------------
74
  objFormComponent.Action = ScriptName
74
  objFormComponent.FormName = "GBE_MACHCLASS"
75
  objFormComponent.OnSubmit = "ShowProgress();"
75
  objFormComponent.Action = ScriptName
76
  Call objFormComponent.FormStart()
76
  objFormComponent.OnSubmit = "ShowProgress();"
77
  %>   
77
  Call objFormComponent.FormStart()
78
  <div class="div_table">
78
  %>   
79
    <table class="center_table" >
79
  <div class="div_table">
80
      <tr>
80
    <table class="center_table" >
81
        <td background="images/bg_bage_0a.gif">
81
      <tr>
82
            <div align="center" class=" body_col">Build Machine Types</div>
82
        <td background="images/bg_bage_0a.gif">
83
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
83
            <div align="center" class=" body_col">Build Machine Types</div>
84
            <tr>
84
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
85
            <!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
85
            <tr>
86
            <td background="images/bg_bage_0.gif" align="center"></td>
86
            <!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
87
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM ID</td>
87
            <td background="images/bg_bage_0.gif" align="center"></td>
88
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM Name</td>
88
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM ID</td>
89
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
89
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM Name</td>
90
            </tr>
90
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
91
 
91
            </tr>
92
          <%
92
 
93
          ' Load some action buttons
93
          <%
94
          Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
94
          ' Load some action buttons
95
          objBtnControl.ButtonSpacer = 1
95
          Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
96
          
96
          objBtnControl.ButtonSpacer = 1
97
          Dim rsQry, bm_id,GBE_VALUE
97
          
98
          
98
          Dim rsQry, bm_id,GBE_VALUE
99
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
99
          
100
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
100
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
101
              bm_id = rsQry("bm_id")
101
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
102
              GBE_VALUE = rsQry("bm_name") 
102
              bm_id = rsQry("bm_id")
103
              %>
103
              GBE_VALUE = rsQry("bm_name") 
104
              <tr>  
104
              %>
105
                <td background="images/bg_bage_0.gif"></td>
105
              <tr>  
106
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_id")%></td>
106
                <td background="images/bg_bage_0.gif"></td>
107
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_name")%></td>
107
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_id")%></td>
108
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
108
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_name")%></td>
109
              </tr> 
109
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
110
              <%
110
              </tr> 
111
              rsQry.MoveNext()
111
              <%
112
          Wend
112
              rsQry.MoveNext()
113
          rsQry.Close()
113
          Wend
114
          Set rsQry = nothing
114
          rsQry.Close()
115
          %>
115
          Set rsQry = nothing
116
        
116
          %>
117
        <tr>
117
        
118
            <td background="images/bg_bage_0.gif"></td>
118
        <tr>
119
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
119
            <td background="images/bg_bage_0.gif"></td>
120
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
120
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
121
            <td bgcolor="#FFFFFF" class="body_row" nowrap><a href=""><%Call Action_Buttons("Add BM_NAME")%></a></td>
121
            <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
122
        </tr>
122
            <td bgcolor="#FFFFFF" class="body_row" nowrap><a href=""><%Call Action_Buttons("Add BM_NAME")%></a></td>
123
 
123
        </tr>
124
    </table>
124
 
125
    <%=objPMod.ComposeHiddenTags()%>
125
    </table>
126
    <input type="hidden" name="action" value="true">
126
    <%=objPMod.ComposeHiddenTags()%>
127
    <%Call objFormComponent.FormEnd()%>
127
    <input type="hidden" name="action" value="true">
128
    </table>
128
    <%Call objFormComponent.FormEnd()%>
129
    </div>
129
    </table>
130
</body>
130
    </div>
131
</html>
131
</body>
132
<!-- FOOTER -->
132
</html>
133
<!--#include file="_footer.asp"-->
133
<!-- FOOTER -->
134
<%
134
<!--#include file="_footer.asp"-->
135
Call Destroy_All_Objects
135
<%
-
 
136
Call Destroy_All_Objects
136
%>
137
%>
137
138