Subversion Repositories DevTools

Rev

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