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
'|                 Project Suffix                    |
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("CreateNewProject") and canActionControl("ConfigureBuildService")
5357 dpurdie 38
'----------------------------------------------
39
 
40
function niceBool (val)
41
    if val = "Y" Then
42
        niceBool = "Y"
43
    Else
44
        niceBool = "N"
45
    End If
46
End Function
47
 
48
function showCheck (val)
49
    if val = "Y" Then
50
        showCheck = "checked"
51
    Else
52
        showCheck = ""
53
    End If
54
End Function
55
 
56
%>
57
<html>
58
<head>
59
 
60
<title>Project Suffix Administration</title>
61
<link rel="shortcut icon" href="<%=FavIcon%>"/>
62
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
63
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 64
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
65
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
66
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 67
<!--#include file="_jquery_includes.asp"-->
68
<!-- DROPDOWN MENUS -->
69
<!--#include file="_menu_def.asp"-->
6579 dpurdie 70
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 71
</head>
72
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
73
<!-- HEADER -->
74
<!--#include file="_header.asp"-->
75
  <div class="div_table">
6793 dpurdie 76
        <table border="0" cellspacing="1" cellpadding="2" class='stdBrown center_table'>
77
            <caption>Project Suffixes</caption>
78
            <thead>
5357 dpurdie 79
            <tr>
6793 dpurdie 80
                <th nowrap            >Suffix</th>
81
                <th nowrap width="250">Comment</th>
82
                <th nowrap width="20" >Free Form Version</th>
83
                <th nowrap width="20" >Enable Selection</th>
84
                <th nowrap            >Edit</th>
5357 dpurdie 85
            </tr>
6793 dpurdie 86
            </thead>
5357 dpurdie 87
 
6793 dpurdie 88
      <%
89
      ' Load some action buttons
90
      Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
91
      objBtnControl.ButtonSpacer = 1
5983 dpurdie 92
 
6793 dpurdie 93
      If NOT bCanEdit Then
94
        Call objBtnControl.Active  ( "btnEditProjectExtensions", "N" )
95
        Call objBtnControl.Active  ( "btnDeleteProjectExtension", "N" )
96
      End If
5983 dpurdie 97
 
6793 dpurdie 98
      Dim rsQry
99
      Dim extName
100
      Dim comment
101
      dim isaCots
102
      dim isVis
5357 dpurdie 103
 
6793 dpurdie 104
      Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
105
      While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
106
          extName = rsQry("EXT_NAME")
107
          comment = rsQry("UCOMMENT")
108
          isaCots = niceBool(rsQry("IS_COTS"))
109
          isVis   = niceBool(rsQry("IS_VISIBLE"))
110
          %>
111
          <tr>  
112
            <td nowrap><%=extName%></td>
113
            <td nowrap><%=comment%></td>
114
            <td nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
115
            <td nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
5357 dpurdie 116
 
117
 
6793 dpurdie 118
            <td nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
119
          </tr> 
120
          <%
121
          rsQry.MoveNext()
122
      Wend
123
      rsQry.Close()
124
      Set rsQry = nothing
125
      %>
126
 
127
  <tr>
128
    <td colspan="5"><%Call Action_Buttons_State ( "Add Project Extension", bCanEdit )%></tr>
129
</table>
5357 dpurdie 130
    </div>
5957 dpurdie 131
<!-- FOOTER -->
132
<!--#include file="_footer.asp"-->
5357 dpurdie 133
</body>
134
</html>