Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5354 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          Control List					 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_control_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim sNode
24
Dim rsQry
25
Dim objAppCollector
26
'------------ CONSTANTS DECLARATION -----------
27
'------------ VARIABLE INIT -------------------
28
Set objAppCollector = CreateObject("Scripting.Dictionary")
29
'------------ CONDITIONS ----------------------
30
'----------------------------------------------
31
%>
32
<%
33
'------------ RUN BEFORE PAGE RENDER ----------
34
Call GetApplicationDetails ( parApp_id, objAppCollector )
35
 
36
If (Request("action") <> "") Then
37
	'-- Select Action
38
 
39
	Select Case Request("action")
40
		Case "btnRemoveControl"
41
			Call OpenInWindow ( "_RemoveControl.asp?obj_id_list="& Request("obj_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
42
 
43
	End Select
44
 
45
End If
46
'----------------------------------------------
47
%>
48
<html>
49
<head>
50
<title>Access Manager</title>
51
<link rel="shortcut icon" href="<%=FavIcon%>"/>
52
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
53
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
54
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
55
<script language="JavaScript" src="scripts/common.js"></script>
56
 
57
</head>
58
 
59
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
60
<!-- HEADER ++++++++++++++++++++++ -->
61
<!--#include file="_header.asp"-->
62
<!-- +++++++++++++++++++++++++++++ -->
63
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
64
  <tr>
65
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
66
	<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
67
	<!--#include file="_treeNavigator.asp"-->  
68
	<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
69
	</td>
70
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
71
    <td width="100%" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="9">
72
	<form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
73
      <tr>
74
        <td background="images/bg_drk_bage_pane.gif">
75
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
76
            <tr>
77
              <td nowrap class="body_txt">
78
			    <!-- BUTTONS CONTROL +++++++++++++++++++ -->
79
				<%
80
				'-- Define Action buttons on this tab
81
				aTabBtnsDef = Array("btnNewControl", "btnRemoveControl")
82
				If  NOT canActionControl("canCreateActions") Then objBtnControl.AllActive = "N"
83
 
84
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
85
 
86
				objBtnControl.Render( aTabBtnsDef )
87
				%>
88
				<!-- +++++++++++++++++++++++++++++++++++ -->
89
			  </td>
90
              <td align="right" nowrap class="section_ttl"><%=objAppCollector.Item ("application_name")%></td>
91
            </tr>
92
          </table>
93
		</td>
94
      </tr>
95
	  <tr>
96
        <td class="menu_crumbttl"><img src="images/i_folder_lrg.gif" width="18" height="15" border="0" align="absmiddle" hspace="4"><strong>Actions</strong></td>
97
      </tr>
98
      <tr>
99
        <td>
100
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
101
		 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
102
          <tr>
103
		  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
104
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
105
              <tr>
106
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Action Name</td>
107
              </tr>
108
            </table></td>
109
            <td width="70%" nowrap align="right" background="images/bg_table_col.gif" class="body_col">Description</td>
110
            <td width="1%" nowrap align="right" background="images/bg_table_col.gif" class="body_col">Edit</td>
111
          </tr>
112
		  <%
113
		  OraDatabase.Parameters.Add "APP_ID", parApp_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
114
 
115
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetControlList.sql"), ORADYN_DEFAULT )
116
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
117
		  %>
118
          <tr>
119
		  	<td align="center"><input type="checkbox" name="obj_id_list" value="<%=rsQry("obj_id")%>"></td>
120
            <td nowrap class="body_row"><a href="Control_General.asp?obj_id=<%=rsQry("obj_id")%>&<%=objPMod.ComposeURL%>" class="body_link" title="See Control General Info"><%=LIMG_CONTROL &  rsQry("obj_name")%></a></td>
121
            <td class="body_row"><%=rsQry("obj_description")%></td>
122
			<td align="center">
123
            <% If canActionControl("canCreateActions") Then%>
124
                <a href="javascript:;" onClick="MM_openBrWindow('wEditControl.asp?obj_id=<%=rsQry("obj_id")%>&rfile=<%=SCRIPT_NAME%>&<%=objPMod.ComposeURL%>','Edit Action','scrollbars=yes,resizable=yes,width=600,height=350')" title='Edit Action'><%=LIMG_EDIT%></a>
125
            <%Else%>
126
                <%=LIMG_EDIT_OFF%>
127
            <%End If%>
128
            </td>
129
          </tr>
130
		  <%rsQry.MoveNext%>
131
 
132
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
133
          <tr>
134
            <td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
135
          </tr>
136
		  <%End If%>
137
 
138
		  <%
139
		  WEnd
140
 
141
		  OraDatabase.Parameters.Remove "APP_ID"
142
		  %>
143
          <tr>
144
            <td colspan="3" background="images/bg_table_border.gif">
145
			 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
146
              <tr>
147
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
148
              </tr>
149
             </table>
150
			</td>
151
          </tr>
152
         </table>	 
153
		 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
154
         <br></td>
155
      </tr>
156
	  <%=objPMod.ComposeHiddenTags()%>
157
	  <input type="hidden" name="action" value="true">
158
	</form>
159
    </table></td>
160
  </tr>
161
</table>
162
<!-- FOOTER ++++++++++++++++++++++ -->
163
<!--#include file="_footer.asp"-->
164
<!-- +++++++++++++++++++++++++++++ -->
165
</body>
166
</html>
167
<%
168
'------------ RUN AFTER PAGE RENDER -----------
169
'----------------------------------------------
170
%>
2 rsolanki 171
<!--#include file="common/globals_destructor.asp"-->