Subversion Repositories DevTools

Rev

Rev 6793 | 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
'|  admin_gbe_buildstandard.asp
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="common/_form_window_common.asp"-->
21
<!--#include file="_action_buttons.asp"-->
22
 
23
<!--#include file="class/classActionButtonControl.asp"-->
24
 
25
<%
26
'------------ ACCESS CONTROL ------------------
27
%>
6181 dpurdie 28
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim objBtnControl
5983 dpurdie 33
Dim bCanEdit
5357 dpurdie 34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
Set objBtnControl = New ActionButtonControl
5983 dpurdie 37
bCanEdit = canActionControl("ConfigureBuildService") 
5357 dpurdie 38
'----------------------------------------------
39
%>
40
<html>
41
<head>
42
<title>GBE Build Standard Addendum</title>
43
<link rel="shortcut icon" href="<%=FavIcon%>"/>
44
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
45
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 46
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
47
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
48
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 49
<!--#include file="_jquery_includes.asp"-->
50
<!-- DROPDOWN MENUS -->
51
<!--#include file="_menu_def.asp"-->
6579 dpurdie 52
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 53
</head>
54
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
55
<!-- HEADER -->
56
<!--#include file="_header.asp"-->
57
  <div class="div_table">
6793 dpurdie 58
        <table border="0" cellspacing="1" cellpadding="2" class="stdBrown center_table">
59
            <caption>Build Standards</caption>
60
            <thead>
5357 dpurdie 61
            <tr>
62
            <!-- BSA DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
6793 dpurdie 63
            <th>Id</th>
64
            <th>Build Standard</th>
65
            <th>Sub Type</th>
66
            <th>Edit</th>
5357 dpurdie 67
            </tr>
6793 dpurdie 68
            </thead>
5357 dpurdie 69
 
6793 dpurdie 70
      <%
71
      ' Load some action buttons
72
      Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_BuildStandard", "btnDeleteGBE_BuildStandard"), OraDatabase )
73
      objBtnControl.ButtonSpacer = 1
5983 dpurdie 74
 
6793 dpurdie 75
      If NOT bCanEdit Then
76
        Call objBtnControl.Active  ( "btnEditGBE_BuildStandard", "N" )
77
        Call objBtnControl.Active  ( "btnDeleteGBE_BuildStandard", "N" )
78
      End If
5983 dpurdie 79
 
6793 dpurdie 80
 
81
      Dim bsa_id,rsQry ,GBE_VALUE
5357 dpurdie 82
 
6793 dpurdie 83
      Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_STANDARDS BS, BUILD_STANDARDS_ADDENDUM BSA WHERE BSA.BS_ID=BS.BS_ID(+) ORDER BY BSA.BS_ID, BSA_ID", ORADYN_DEFAULT )
84
      While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
85
          bsa_id = rsQry("bsa_id")
86
          GBE_VALUE = rsQry("bs_name") & " - " & rsQry("bsa_name")
5357 dpurdie 87
          %>
6793 dpurdie 88
          <tr>  
89
            <td nowrap><%=bsa_id%></td>
90
            <td nowrap><%=rsQry("bs_name")%></td>
91
            <td nowrap><%=rsQry("bsa_name")%></td>
92
            <td nowrap><%Call objBtnControl.Render( Array("btnEditGBE_BuildStandard", "btnDeleteGBE_BuildStandard"), objAccessControl )%></td>
93
          </tr> 
94
          <%
95
          rsQry.MoveNext()
96
      Wend
97
      rsQry.Close()
98
      Set rsQry = nothing
99
      %>
100
 
101
    <tr>
102
        <td colspan=3></td>
103
        <td><%Call Action_Buttons_State("Add GBE_BUILDSTANDARD", bCanEdit)%></td>
104
    </tr>
5357 dpurdie 105
 
6793 dpurdie 106
</table>
5357 dpurdie 107
    </div>
5957 dpurdie 108
<!-- FOOTER -->
109
<!--#include file="_footer.asp"-->
5357 dpurdie 110
</body>
111
</html>