Subversion Repositories DevTools

Rev

Rev 7235 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7225 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'   admin_build_platforms.asp
5
'=====================================================
6
%>
7
<%
8
Option explicit
9
' Good idea to set when using redirect
10
Response.Expires = 0    ' always load the page, dont store
11
%>
12
<!--#include file="common/conf.asp"-->
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/formating.asp"-->
15
<!--#include file="common/qstr.asp"-->
16
<!--#include file="common/common_subs.asp"-->
17
<!--#include file="common/_form_window_common.asp"-->
18
<!--#include file="class/classActionButtonControl.asp"-->
19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_login_optional.asp"-->
23
<!--#include file="_access_control_general.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim objBtnControl
27
Dim bCanEdit
28
'------------ Constants Declaration -----------
29
'------------ Variable Init -------------------
30
Set objBtnControl = New ActionButtonControl
31
bCanEdit = canActionControl("ConfigureBuildService")
32
'----------------------------------------------
33
%>
34
<html>
35
<head>
36
<title>Build Machine Administration</title>
37
<link rel="shortcut icon" href="<%=FavIcon%>"/>
38
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
39
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
40
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
41
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
42
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
43
<!--#include file="_jquery_includes.asp"-->
44
<!-- DROPDOWN MENUS -->
45
<!--#include file="_menu_def.asp"-->
46
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
47
</head>
48
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
49
<!-- HEADER -->
50
<!--#include file="_header.asp"-->
51
 
52
  <%
53
  '-- FROM START ---------------------------------------------------------------------------------------------------------
54
  objFormComponent.FormName = "BUILD_PLATFORMS"
55
  objFormComponent.Action = ScriptName
56
  objFormComponent.OnSubmit = "ShowProgress();"
57
  Call objFormComponent.FormStart()
58
  %>   
59
  <div class="div_table">
60
    <table border="0" cellspacing="0" cellpadding="0" class="center_table">
61
      <tr>
62
        <td>
63
            <table width="100%"  border="0" cellspacing="1" cellpadding="2" class=stdBrown>
64
                <caption>Current List of Build Platforms</caption>
65
                <thead>
66
                <tr>
67
                <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
68
					<th>PLATFORM NAME</th>
69
					<th>ALLOW USE</th>
70
					<th width=250>DESCRIPTION</th>
71
					<th>Edit</th>         
72
                </tr>
73
                </thead>
74
 
75
          <%
76
          ' Load some action buttons
77
          Call objBtnControl.LoadActionButtons ( Array("btnEditBuildPlatforms", "btnDeleteBuildPlatforms"), OraDatabase )
78
          objBtnControl.ButtonSpacer = 1
79
 
80
          If NOT bCanEdit Then
81
            Call objBtnControl.Active  ( "btnEditBuildPlatforms", "N" )
82
            Call objBtnControl.Active  ( "btnDeleteBuildPlatforms", "N" )
83
          End If
84
 
85
          Dim rsQry
86
          Dim bp_id
87
          Dim bp_name
88
          Dim description, active, activeChecked
89
 
90
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT bp_id, bp_name, bp_active, bp_description FROM BUILD_PLATFORMS bp ORDER BY UPPER(bp.bp_name)", ORADYN_DEFAULT )
91
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
92
              bp_id = rsQry("bp_id")
93
              bp_name = rsQry("bp_name")
94
              active = rsQry("bp_active")
95
              If active = "Y" Then activeChecked = "checked" Else activeChecked = ""
96
              description = rsQry("bp_description")
97
              %>
98
              <tr style="vertical-align:top;" >
99
                <td nowrap><%=bp_name%></td>
100
                <td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
101
                <td wrap><%=description%></td>
102
                <td nowrap class=tight><%Call objBtnControl.Render( Array("btnEditBuildPlatforms", "btnDeleteBuildPlatforms"), objAccessControl )%></td>
103
              </tr> 
104
              <%
105
              rsQry.MoveNext()
106
          Wend
107
          rsQry.Close()
108
          Set rsQry = nothing
109
          %>
110
 
111
      <tr>
112
        <td align=right nowrap colspan=4 class=tight>
113
		<% BuildEditButtonRaw bCanEdit, "Add Build Platform", "Insert New Build Platform",TRUE, _
114
								 "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
115
								 "MM_openVixIFrame('wAddBuildPlatform.asp','Add Build Platform')"%>
116
      </tr>
117
 
118
    </table>
119
    <%=objPMod.ComposeHiddenTags()%>
120
    <input type="hidden" name="action" value="true">
121
    <%Call objFormComponent.FormEnd()%>
122
    </table>
123
    </div>
124
<!-- FOOTER -->
125
<!--#include file="_footer.asp"-->
126
</body>
127
</html>