Subversion Repositories DevTools

Rev

Rev 5957 | Rev 6048 | 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
%>
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">
64
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
65
<link rel="stylesheet" href="images/navigation.css" type="text/css">
66
<script language="JavaScript" src="images/common.js"></script>
67
<!--#include file="_jquery_includes.asp"-->
68
<!-- DROPDOWN MENUS -->
69
<!--#include file="_menu_def.asp"-->
70
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
71
</head>
72
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
73
<!-- MENU LAYERS -------------------------------------->
74
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
75
</div>
76
<!-- TIPS LAYERS -------------------------------------->
77
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
78
<!-- HEADER -->
79
<!--#include file="_header.asp"-->
80
  <%
81
  '-- FROM START ---------------------------------------------------------------------------------------------------------
82
  objFormComponent.FormName = "PROJECT_SUFFIX"
83
  objFormComponent.Action = ScriptName
84
  objFormComponent.OnSubmit = "ShowProgress();"
85
  Call objFormComponent.FormStart()
86
  %>
87
  <div class="div_table">
88
    <table border="0" cellspacing="0" cellpadding="0" >
89
      <tr>
90
        <td background="images/bg_bage_0a.gif">
91
            <div align="center" class=" body_col">Current Project Suffixes</div>
92
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
93
 
94
            <tr>
95
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
96
            <td width="1%"  background="images/bg_bage_0.gif"></td>
97
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Suffix</td>
98
            <td width="250" align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Comment</td>
99
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Free Form Version</td>
100
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Enable Selection</td>
101
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Edit</td>
102
            </tr>
103
 
104
          <%
105
          ' Load some action buttons
106
          Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
107
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 108
 
109
          If NOT bCanEdit Then
110
            Call objBtnControl.Active  ( "btnEditProjectExtensions", "N" )
111
            Call objBtnControl.Active  ( "btnDeleteProjectExtension", "N" )
112
          End If
113
 
5357 dpurdie 114
          Dim rsQry
115
          Dim extName
116
          Dim comment
117
          dim isaCots
118
          dim isVis
119
 
120
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
121
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
122
              extName = rsQry("EXT_NAME")
123
              comment = rsQry("UCOMMENT")
124
              isaCots = niceBool(rsQry("IS_COTS"))
125
              isVis   = niceBool(rsQry("IS_VISIBLE"))
126
              %>
127
              <tr>  
128
                <td background="images/bg_bage_0.gif" align="center"></td>
129
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=extName%></td>
130
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=comment%></td>
131
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
132
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
133
 
134
 
135
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
136
              </tr> 
137
              <%
138
              rsQry.MoveNext()
139
          Wend
140
          rsQry.Close()
141
          Set rsQry = nothing
142
          %>
143
 
144
      <tr>
5983 dpurdie 145
        <td background="images/bg_bage_0.gif" align="center" ></td>
146
        <td bgcolor="#FFFFFF" class="body_row" nowrap colspan="5">
147
            <%Call Action_Buttons_State ( "Add Project Extension", bCanEdit )%>
5357 dpurdie 148
      </tr>
149
    </table>
150
    <%=objPMod.ComposeHiddenTags()%>
151
    <input type="hidden" name="action" value="true">
152
    <%Call objFormComponent.FormEnd()%>
153
    </table>
154
    </div>
5957 dpurdie 155
<!-- FOOTER -->
156
<!--#include file="_footer.asp"-->
5357 dpurdie 157
</body>
158
</html>