Subversion Repositories DevTools

Rev

Rev 5506 | Rev 5983 | 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
33
'------------ Constants Declaration -----------
34
'------------ Variable Init -------------------
35
Set objBtnControl = New ActionButtonControl
36
'----------------------------------------------
37
 
38
function niceBool (val)
39
    if val = "Y" Then
40
        niceBool = "Y"
41
    Else
42
        niceBool = "N"
43
    End If
44
End Function
45
 
46
function showCheck (val)
47
    if val = "Y" Then
48
        showCheck = "checked"
49
    Else
50
        showCheck = ""
51
    End If
52
End Function
53
 
54
%>
55
<%
56
' Page Access Condition
57
If NOT canActionControl("ConfigureBuildService") Then
5957 dpurdie 58
    Call Destroy_All_Objects
5357 dpurdie 59
    Response.Redirect("message.asp?msg=401-9")
60
End If
61
%>
62
<html>
63
<head>
64
 
65
<title>Project Suffix Administration</title>
66
<link rel="shortcut icon" href="<%=FavIcon%>"/>
67
 
68
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
69
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
70
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
71
<link rel="stylesheet" href="images/navigation.css" type="text/css">
72
<script language="JavaScript" src="images/common.js"></script>
73
<!--#include file="_jquery_includes.asp"-->
74
<!-- DROPDOWN MENUS -->
75
<!--#include file="_menu_def.asp"-->
76
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
77
</head>
78
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
79
<!-- MENU LAYERS -------------------------------------->
80
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
81
</div>
82
<!-- TIPS LAYERS -------------------------------------->
83
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
84
<!-- HEADER -->
85
<!--#include file="_header.asp"-->
86
 
87
  <%
88
  '-- FROM START ---------------------------------------------------------------------------------------------------------
89
  objFormComponent.FormName = "PROJECT_SUFFIX"
90
  objFormComponent.Action = ScriptName
91
  objFormComponent.OnSubmit = "ShowProgress();"
92
  Call objFormComponent.FormStart()
93
  %>
94
  <div class="div_table">
95
    <table border="0" cellspacing="0" cellpadding="0" >
96
      <tr>
97
        <td background="images/bg_bage_0a.gif">
98
            <div align="center" class=" body_col">Current Project Suffixes</div>
99
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
100
 
101
            <tr>
102
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
103
            <td width="1%"  background="images/bg_bage_0.gif"></td>
104
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Suffix</td>
105
            <td width="250" align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Comment</td>
106
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Free Form Version</td>
107
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Enable Selection</td>
108
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Edit</td>
109
            </tr>
110
 
111
          <%
112
          ' Load some action buttons
113
          Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
114
          objBtnControl.ButtonSpacer = 1
115
          Dim rsQry
116
          Dim extName
117
          Dim comment
118
          dim isaCots
119
          dim isVis
120
 
121
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
122
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
123
              extName = rsQry("EXT_NAME")
124
              comment = rsQry("UCOMMENT")
125
              isaCots = niceBool(rsQry("IS_COTS"))
126
              isVis   = niceBool(rsQry("IS_VISIBLE"))
127
              %>
128
              <tr>  
129
                <td background="images/bg_bage_0.gif" align="center"></td>
130
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=extName%></td>
131
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=comment%></td>
132
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
133
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
134
 
135
 
136
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
137
              </tr> 
138
              <%
139
              rsQry.MoveNext()
140
          Wend
141
          rsQry.Close()
142
          Set rsQry = nothing
143
          %>
144
 
145
      <tr>
146
        <td background="images/bg_bage_0.gif" align="center"></td>
147
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
148
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
149
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
150
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
151
        <td bgcolor="#FFFFFF" class="body_row" nowrap><a href=""><%Call Action_Buttons ( "Add Project Extension" )%> </a>
152
      </tr>
153
    </table>
154
    <%=objPMod.ComposeHiddenTags()%>
155
    <input type="hidden" name="action" value="true">
156
    <%Call objFormComponent.FormEnd()%>
157
    </table>
158
    </div>
5957 dpurdie 159
<!-- FOOTER -->
160
<!--#include file="_footer.asp"-->
5357 dpurdie 161
</body>
162
</html>